murrtada/bug-bounty-agent-skills/hunt-source-leak
Claude Code and agent skill by murrtada/bug-bounty-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Hunt source code and build artifact leakage — JavaScript source maps (.js.map) reconstructing TypeScript/ES6 source, Swagger/OpenAPI JSON endpoint discovery, .env/.git exposure, webpack chunks with hardcoded secrets, robots.txt/security.txt recon, build-info files, asset-manifest.json API route discovery, .DS_Store file listing. Use at the START of every recon session — these findings often unlock the entire attack surface.
Install
npx vskill@latest install murrtada/bug-bounty-agent-skills/hunt-source-leakSKILL.md
The same SKILL.md was published earlier as murrtada/bug-bounty-agent-skills/hunt-source-leak.
Phase 1 — Quick Wins (Run First)
Phase 2 — Source Map Discovery
**Always resolve the CURRENT build hash before testing, and again beforere-verifying.** Bundle filenames are content-hashed, so they rotate on everydeploy. A.mapURL recorded yesterday can 404 today while the map is stillfully exposed under a new name. A 404 at the old URL is not remediation —it is a new build.```bash# ALWAYS derive the hash live, never reuse a recorded URLHASH=$(curl -s "https://$TARGET/" | grep -oE 'main\.[a-f0-9]+\.js' | head -1)curl -s -o /dev/null -w '%{http_code} %{size_download} %{content_type}\n' \"https://$TARGET/static/js/${HASH}.map"```Lesson from an authorized engagement. A large production map was found atmain.<hashA>.js.map. On re-verification that URL returned a small HTMLsoft-404 and the finding was nearly closed as fixed. The bundle had rotated tomain.<hashB>.js— and the map was still published atmain.<hashB>.js.map,same size. Nothing had been remediated.Tell the client this explicitly in the report: **redeploying does not fix sourcemap exposure.** OnlyGENERATE_SOURCEMAP=false(or stripping.mapat deploy)plus a CDN purge closes it. A team that redeploys and re-checks the old linkwill wrongly declare victory.Same rule applies to any content-hashed artifact: chunk files, CSS maps,asset-manifest.json, and staging equivalents.
Phase 3 — Swagger / OpenAPI Discovery
Phase 4 — .git Exposure
Phase 5 — Forgotten Files & Debug Endpoints
Phase 6 — .DS_Store File Listing
Phase 7 — webpack Chunk Analysis
Chain Table
| Source leak finding | Chain to | Impact | |
|---|---|---|---|
| Source map with API key | Use key directly → API access | High/Critical | |
| Source map with auth logic | Find auth bypass route | Critical | |
| Swagger → internal endpoints | Test undocumented admin routes | High | |
| .git exposed | Full source history → all past secrets | Critical | |
| build-info with git hash | CVE targeting exact version | High | |
| .env with DB_PASSWORD | Direct database access | Critical |
Tools
Validation
✅ Source map: reconstructed TypeScript source contains API endpoints or hardcoded secrets ✅ Swagger: JSON contains internal endpoints not visible in UI ✅ .git exposed: git-dumper successfully clones repo, secrets in history ✅ .env exposed: DATABASE_URL, API_KEY, SECRET_KEY visible in plaintext
Severity:
- .env with credentials: Critical
- .git with secrets in history: Critical
- Source map with secrets: High
- Swagger with internal routes: Medium-High
- robots.txt only: Informational
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/hunt-source-leak/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/murrtada/bug-bounty-agent-skills/hunt-source-leak)