source-leak-hunt
Skill by uphiago
Scans lists of live URLs for exposed sensitive files such as .env, .git/config and database backups. It checks response content to filter out false positives. Built for reconnaissance and exposure testing.
Install source-leak-hunt
Built from the published package, never by AI.
git clone --depth 1 https://github.com/uphiago/recon-skills /tmp/recon-skills && mkdir -p ~/.claude/skills && cp -r /tmp/recon-skills/recon/source-leak-hunt ~/.claude/skills/source-leak-huntRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/uphiago/recon-skills /tmp/recon-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/recon-skills/recon/source-leak-hunt ~/.gemini/antigravity-cli/skills/source-leak-huntAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Source Leak Hunt is an agent skill that scans many web hosts for exposed sensitive files. It requests about 20 paths per target, including .env, .git/config, wp-config.php.bak, debug.log, backup.sql and phpinfo.php, and records any that return HTTP 200. For common file types, it checks the response body against patterns, such as DB_PASSWORD for wp-config backups or [core] for git configs, before logging a verified leak.
The skill also extracts credentials from leaked files, ranks targets by number of leaks, and covers backup file discovery and Google services dorking. It is categorized as recon and is intended for reconnaissance work across batches of domains, typically after a target is confirmed alive.
Written from the project's SKILL.md and checked against it.
What it can do
- Mass path scanRequests about 20 sensitive paths per target in parallel and records HTTP 200 responses.
- Content verificationChecks response bodies against patterns to filter out SPA catch-all and false positive pages.
- Credential extractionPulls DB, APP, key and password lines from saved .env, wp-config and .git/config leaks.
- Multi-leak rankingCounts leaks per domain and lists targets with three or more as deep-dive candidates.
- Backup file discoveryUses bfac and waybackurls to find backup and historical sensitive files still accessible.
- Google services dorkingProvides search queries for exposed Google Sheets, Drive files, Firebase and GCP buckets.
What you need
- Linux
- curl
- grep
- A list of live URLs, such as httpx or wp-mass-recon output
- bfac and waybackurls for the optional backup discovery phase
Try asking
- Scan these live URLs for exposed .env and .git/config files and save verified leaks
- Count the leaks per domain from my last scan and list the top candidates
- Check these hosts for backup.sql and wp-config.php.bak files
Good to know
- Single-page apps can return HTTP 200 for every path, so content checks are required.
- Some CDNs return 200 with error bodies for missing files.
- Large files such as error_log can be truncated unless sampled in chunks.
- Parked domains can return identical pages for every path.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: recon/source-leak-hunt/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to source-leak-hunt
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
source-leak-hunt: common questions
What files does Source Leak Hunt check for?
It checks paths such as .env, .git/config, wp-config.php.bak, debug.log, backup.sql, info.php, phpinfo.php, Dockerfile and docker-compose.yml. Each path has a severity level in the quick reference table.
How does it avoid false positives?
For most file types it checks the first 2000 bytes of the response against a pattern, such as DB_NAME and DB_PASSWORD for wp-config backups. It also flags parked domains that return the same page for many paths.
What platform does it run on?
The skill lists linux as its only platform and requires curl and grep.
How do I install source-leak-hunt?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is source-leak-hunt free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is source-leak-hunt safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to source-leak-hunt?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
