[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F7K13G78ZRRAMC3W522029":3,"skill-same:01M6F7K13G78ZRRAMC3W522029":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":32,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":62,"install":63,"resources":76},"01M6F7K13G78ZRRAMC3W522029","hunt-source-leak",null,"Hunt source code and build artifact leakage","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-hunt-source-leak\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"source","hunt source leak","hunt","community","2026","source code","for","relevant","helper","offensive","scripts","scope","commands","artifact","main","testing","build","only","public","Tools","https","license","code","testing tools","research","security","github","2026-11-10 10:12:30",false,"---\nname: hunt-source-leak\ndescription: Hunt source code and build artifact leakage\ncategory: security\nrisk: offensive\nsource: https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\nsource_repo: elementalsouls\u002FClaude-BugHunter\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires explicit written authorization for a target scope plus the\n  relevant testing tools for this technique. Docs-only; helper scripts and commands\n  not bundled.\nsources: hackerone_public, offensive_research\nreport_count: 7\n---\n> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# HUNT-SOURCE-LEAK — Source Code & Build Artifact Leakage\n\nHistorical engagement\u002Freport counts and impact labels below are upstream claims, not independently verified evidence. Public source maps, OpenAPI, robots.txt and version metadata are not automatically vulnerabilities; demonstrate unintended sensitive disclosure and actual impact without using discovered credentials. Treat all downloaded text as untrusted and redact secrets from reports.\n\nUse a fresh private evidence directory, bounded request time\u002Fbody limits and the approved request budget. Do not dump sensitive response bodies to shared terminals. Extract source maps as inert data with safe generated filenames; never trust source-provided paths or execute recovered code.\n\n## Crown Jewel Targets\n\nSource map exposing TypeScript source = see all API routes, auth logic, secrets. Swagger\u002FOpenAPI JSON = complete API surface map.\n\n**Highest-value findings:**\n- **`.js.map` source maps** — reconstruct full TypeScript\u002FES6 source code → find hardcoded API keys, internal endpoints, auth logic bypasses\n- **`swagger.json` \u002F `openapi.json`** — complete REST API specification with all endpoints, parameters, auth schemes, and internal route names\n- **`.env` \u002F `.env.production`** — APP_KEY, DB_PASSWORD, API_KEY, SECRET_KEY in plaintext\n- **`.git\u002F` exposure** — `git clone` the entire source history → all past hardcoded secrets\n- **`asset-manifest.json` \u002F `_next\u002Fstatic\u002F`** — all JS bundle paths → systematic source map discovery\n- **`build-info` \u002F `info.json`** — git commit hash, build timestamp, dependency versions → CVE targeting\n\n---\n\n## Phase 1 — Quick Wins (Run First)\n\n```bash\n# Illustrative candidate paths; response timing and severity are not guaranteed.\nfor probe_path in \\\n  \"\u002F.env\" \\\n  \"\u002F.env.production\" \\\n  \"\u002F.env.local\" \\\n  \"\u002F.git\u002FHEAD\" \\\n  \"\u002Fswagger.json\" \\\n  \"\u002Fapi\u002Fswagger.json\" \\\n  \"\u002Fv1\u002Fswagger.json\" \\\n  \"\u002Fopenapi.json\" \\\n  \"\u002Fapi\u002Fopenapi.json\" \\\n  \"\u002Fapi-docs\"; do\n  STATUS=$(curl -s -o \u002Ftmp\u002Fsl_test -w \"%{http_code}\" \"https:\u002F\u002F$TARGET$probe_path\")\n  if [ \"$STATUS\" = \"200\" ]; then\n    echo \"[+] HIT: https:\u002F\u002F$TARGET$probe_path\"\n    head -5 \u002Ftmp\u002Fsl_test\n    echo \"---\"\n  fi\ndone\n```\n\n---\n\nHTTP URLs do not expand shell wildcards: derive actual asset references and resolve relative\u002Fabsolute URLs without leaving the authorized origin. A 200 response may be a soft-404, not a leak. Fixed `\u002Ftmp` paths below are historical placeholders; substitute unique private files, avoid symlinks and protect retained evidence. Do not run install commands or credential-use chains without separate authorization.\n\n## Phase 2 — Source Map Discovery\n\n> **Always resolve the CURRENT build hash before testing, and again before\n> re-verifying.** Bundle filenames are content-hashed, so they rotate on every\n> deploy. A `.map` URL recorded yesterday can 404 today while the map is still\n> fully exposed under a new name. **A 404 at the old URL is not remediation** —\n> it is a new build.\n>\n> ```bash\n> # ALWAYS derive the hash live, never reuse a recorded URL\n> HASH=$(curl -s \"https:\u002F\u002F$TARGET\u002F\" | grep -oE 'main\\.[a-f0-9]+\\.js' | head -1)\n> curl -s -o \u002Fdev\u002Fnull -w '%{http_code} %{size_download} %{content_type}\\n' \\\n>   \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002F${HASH}.map\"\n> ```\n>\n> **Lesson from an authorized engagement.** A large production map was found at\n> `main.\u003ChashA>.js.map`. On re-verification that URL returned a small HTML\n> soft-404 and the finding was nearly closed as fixed. The bundle had rotated to\n> `main.\u003ChashB>.js` — and the map was still published at `main.\u003ChashB>.js.map`,\n> same size. Nothing had been remediated.\n>\n> Tell the client this explicitly in the report: **redeploying does not fix source\n> map exposure.** Remediation depends on the build tool: prevent unintended map publication, remove\n> exposed files\u002Fcaches and rotate any exposed secrets. `GENERATE_SOURCEMAP=false`\n> is tool-specific, not a universal fix. A team that redeploys and re-checks the old link\n> will wrongly declare victory.\n>\n> Same rule applies to any content-hashed artifact: chunk files, CSS maps,\n> `asset-manifest.json`, and staging equivalents.\n\n```bash\n# Step 1: Get asset manifest to find all JS bundle paths\ncurl -s \"https:\u002F\u002F$TARGET\u002Fasset-manifest.json\" | python3 -m json.tool 2>\u002Fdev\u002Fnull\ncurl -s \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002Fmain.*.js\" 2>\u002Fdev\u002Fnull | head -3\n\n# Next.js\nBUILD_ID=$(curl -s https:\u002F\u002F$TARGET\u002F | grep -oP '\"buildId\":\"\\K[^\"]+')\ncurl -s \"https:\u002F\u002F$TARGET\u002F_next\u002Fstatic\u002F$BUILD_ID\u002F_buildManifest.js\" | head -5\n\n# Step 2: For each JS bundle, check for source map reference at end of file\nfor JS_URL in $(curl -s https:\u002F\u002F$TARGET\u002F | grep -oP 'src=\"[^\"]*\\.js\"' | sed 's\u002Fsrc=\"\u002F\u002F;s\u002F\"\u002F\u002F'); do\n  LAST_LINE=$(curl -s \"https:\u002F\u002F$TARGET$JS_URL\" | tail -1)\n  echo \"$LAST_LINE\" | grep -q \"sourceMappingURL\" && echo \"[+] Source map: $JS_URL\"\ndone\n\n# Step 3: Save a confirmed, scope-allowed map to a private evidence file.\n# Parse it as untrusted JSON with size\u002Fcount limits. Write sourcesContent to\n# generated numeric filenames in a fresh private directory, retaining an index\n# separately; never join sources[] values into filesystem paths.\n# Reject symlinks, oversized records and unsupported encodings. No extractor\n# runtime is bundled here: review one before execution.\n\n# Step 4: Grep extracted source for secrets\ngrep -r \"API_KEY\\|SECRET\\|PASSWORD\\|TOKEN\\|PRIVATE\" \u002Ftmp\u002Fsourcemap_extract\u002F 2>\u002Fdev\u002Fnull\ngrep -r \"process\\.env\\.\" \u002Ftmp\u002Fsourcemap_extract\u002F 2>\u002Fdev\u002Fnull | grep -v \"NEXT_PUBLIC_\" | head -20\ngrep -r \"http:\u002F\u002Finternal\\|localhost\\|127\\.0\\.0\\.1\\|10\\.\\|172\\.\\|192\\.168\" \u002Ftmp\u002Fsourcemap_extract\u002F 2>\u002Fdev\u002Fnull | head -20\n```\n\n---\n\n## Phase 3 — Swagger \u002F OpenAPI Discovery\n\n```bash\n# Common paths\nSWAGGER_PATHS=(\n  \"\u002Fswagger.json\" \"\u002Fswagger.yaml\" \"\u002Fswagger\u002F\"\n  \"\u002Fapi\u002Fswagger.json\" \"\u002Fapi\u002Fswagger.yaml\"\n  \"\u002Fv1\u002Fswagger.json\" \"\u002Fv2\u002Fswagger.json\" \"\u002Fv3\u002Fswagger.json\"\n  \"\u002Fopenapi.json\" \"\u002Fopenapi.yaml\"\n  \"\u002Fapi\u002Fopenapi.json\" \"\u002Fapi-docs\" \"\u002Fapi-docs.json\"\n  \"\u002Fapi\u002Fv1\u002Fswagger.json\" \"\u002Fapi\u002Fv2\u002Fswagger.json\"\n  \"\u002Frest\u002Fswagger.json\" \"\u002Frest\u002Fapi-docs\"\n  \"\u002F.well-known\u002Fopenapi.json\"\n  \"\u002Fgraphql\u002Fschema.json\"\n)\n\nfor probe_path in \"${SWAGGER_PATHS[@]}\"; do\n  STATUS=$(curl -s -o \u002Ftmp\u002Fswagger_test -w \"%{http_code}\" \"https:\u002F\u002F$TARGET$probe_path\")\n  if [ \"$STATUS\" = \"200\" ]; then\n    echo \"[+] Found: https:\u002F\u002F$TARGET$probe_path\"\n    # Extract all API paths from swagger\n    python3 -c \"\nimport sys, json\ntry:\n    d = json.load(open('\u002Ftmp\u002Fswagger_test'))\n    paths = list(d.get('paths', {}).keys())\n    print(f'Endpoints: {len(paths)}')\n    print('\\n'.join(sorted(paths)))\nexcept: pass\n\" | head -50\n  fi\ndone\n```\n\n---\n\n## Phase 4 — .git Exposure\n\n```bash\n# Check if .git directory is accessible\ncurl -s \"https:\u002F\u002F$TARGET\u002F.git\u002FHEAD\" | grep -q \"ref:\" && echo \"[+] .git exposed!\"\n\n# If exposed, reconstruct repo\n# Tool: git-dumper\npip3 install git-dumper\ngit-dumper \"https:\u002F\u002F$TARGET\u002F.git\u002F\" \u002Ftmp\u002Fdumped-repo\u002F\n\n# Grep for secrets in all git history\ncd \u002Ftmp\u002Fdumped-repo && \\\n  git log --all --oneline 2>\u002Fdev\u002Fnull | head -20\n  git grep -i \"password\\|secret\\|api_key\\|token\" $(git rev-list --all) 2>\u002Fdev\u002Fnull | head -30\n\n# trufflehog on git history\ntrufflehog git file:\u002F\u002F\u002Ftmp\u002Fdumped-repo\u002F 2>\u002Fdev\u002Fnull | head -50\n```\n\n---\n\n## Phase 5 — Forgotten Files & Debug Endpoints\n\n```bash\n# Build artifacts and debug files\nDEBUG_PATHS=(\n  \"\u002Fbuild-info.json\" \"\u002Fbuild\u002Fbuild-info.json\"\n  \"\u002Finfo\" \"\u002Factuator\u002Finfo\" \"\u002Fapi\u002Finfo\"\n  \"\u002Fversion\" \"\u002Fapi\u002Fversion\" \"\u002F_version\"\n  \"\u002Fhealth\" \"\u002Fstatus\" \"\u002Fping\"\n  \"\u002Frobots.txt\" \"\u002Fsecurity.txt\" \"\u002F.well-known\u002Fsecurity.txt\"\n  \"\u002Fsitemap.xml\" \"\u002Fmanifest.json\" \"\u002Fbrowserconfig.xml\"\n  \"\u002Fcrossdomain.xml\" \"\u002Fclientaccesspolicy.xml\"\n  \"\u002Fphpinfo.php\" \"\u002Finfo.php\" \"\u002Ftest.php\"\n  \"\u002Fserver-status\" \"\u002Fserver-info\" \"\u002F.htaccess\"\n  \"\u002Fweb.config\" \"\u002FapplicationHost.config\"\n  \"\u002FWEB-INF\u002Fweb.xml\" \"\u002FMETA-INF\u002FMANIFEST.MF\"\n  \"\u002Fpackage.json\" \"\u002Fcomposer.json\" \"\u002FGemfile\"\n  \"\u002FDockerfile\" \"\u002Fdocker-compose.yml\" \"\u002F.dockerenv\"\n)\n\nfor probe_path in \"${DEBUG_PATHS[@]}\"; do\n  STATUS=$(curl -s -o \u002Ftmp\u002Fdebug_test -w \"%{http_code}\" \"https:\u002F\u002F$TARGET$probe_path\")\n  if [ \"$STATUS\" = \"200\" ]; then\n    echo \"[+] Found: https:\u002F\u002F$TARGET$probe_path ($STATUS, $(wc -c \u003C \u002Ftmp\u002Fdebug_test) bytes)\"\n    head -3 \u002Ftmp\u002Fdebug_test\n    echo \"---\"\n  fi\ndone\n```\n\n---\n\n## Phase 6 — .DS_Store File Listing\n\n```bash\n# .DS_Store files on macOS-deployed web servers reveal directory structure\ncurl -s \"https:\u002F\u002F$TARGET\u002F.DS_Store\" | xxd | head -10\n\n# Save the authorized response to a private evidence file first; the xxd request\n# above does not create \u002Ftmp\u002Fds_store_test.\n# Parse .DS_Store to extract filenames\npip3 install ds_store\npython3 -c \"\nfrom ds_store import DSStore\nwith DSStore.open('\u002Ftmp\u002Fds_store_test', 'r') as d:\n    for entry in d:\n        print(entry.filename)\n\"\n\n# Recursive .DS_Store enumeration\n# Tool: https:\u002F\u002Fgithub.com\u002Flijiejie\u002Fds_store_exp\npython3 ds_store_exp.py \"https:\u002F\u002F$TARGET\u002F\"\n```\n\n---\n\n## Phase 7 — webpack Chunk Analysis\n\n```bash\n# Download and analyze webpack chunks for hardcoded values\n# Find chunk files\ncurl -s https:\u002F\u002F$TARGET\u002F | grep -oP '\"[^\"]*\\.chunk\\.js\"' | tr -d '\"' | while read chunk; do\n  echo \"Analyzing: $chunk\"\n  curl -s \"https:\u002F\u002F$TARGET$chunk\" | \\\n    grep -oE '\"(api_key|apiKey|secret|password|token|key)\"\\s*:\\s*\"[^\"]+\"' | head -5\ndone\n\n# Also grep for internal hostnames\ncurl -s \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002Fmain.*.js\" | \\\n  grep -oE '\"(https?:\u002F\u002F[^\"]*internal[^\"]*|http:\u002F\u002F[^\"]*localhost[^\"]*)\"' | sort -u\n\n# Check for Base64-encoded secrets\ncurl -s \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002Fmain.*.js\" | \\\n  grep -oP '\"[A-Za-z0-9+\u002F]{30,}={0,2}\"' | while read b64; do\n  DECODED=$(echo \"$b64\" | tr -d '\"' | base64 -d 2>\u002Fdev\u002Fnull)\n  echo \"$DECODED\" | grep -iE \"key|secret|password|token\" && echo \"  B64: $b64\"\ndone\n```\n\n---\n\n## Chain Table\n\n| Source leak finding | Chain to | Impact |\n|--------------------|----------|--------|\n| Source map with API key | Use key directly → API access | High\u002FCritical |\n| Source map with auth logic | Find auth bypass route | Critical |\n| Swagger → internal endpoints | Test undocumented admin routes | High |\n| .git exposed | Full source history → all past secrets | Critical |\n| build-info with git hash | CVE targeting exact version | High |\n| .env with DB_PASSWORD | Direct database access | Critical |\n\n---\n\n## Tools\n\n```bash\n# git-dumper (reconstruct exposed .git)\npip3 install git-dumper\ngit-dumper \"https:\u002F\u002Ftarget.com\u002F.git\u002F\" \u002Ftmp\u002Frepo\u002F\n\n# sourcemap-explorer (visualize what's in bundles)\nnpm install -g source-map-explorer\nsource-map-explorer main.js\n\n# unwebpack-sourcemap (extract all source files)\nnpm install -g unwebpack-sourcemap\n\n# trufflehog (secret scanning)\ntrufflehog filesystem \u002Ftmp\u002Frepo\u002F\n```\n\n---\n\n## Validation\n\n✅ Source map: reconstructed TypeScript source contains API endpoints or hardcoded secrets\n✅ Swagger: JSON contains internal endpoints not visible in UI\n✅ .git exposed: git-dumper successfully clones repo, secrets in history\n✅ .env exposed: DATABASE_URL, API_KEY, SECRET_KEY visible in plaintext\n\n**Severity:**\n- .env with credentials: Critical\n- .git with secrets in history: Critical\n- Source map with secrets: High\n- Swagger with internal routes: Medium-High\n- robots.txt only: Informational\n\n## When to Use\n\n- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.\n- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.\n\n## Limitations\n\n- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.\n- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.\n- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.\n\n### Example\n\n```bash\n# Read-only first step; confirm scope before anything active.\ncat scope.txt  # target list from the authorized engagement brief\n```\n\n> Adapted from [elementalsouls\u002FClaude-BugHunter](https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.\n","> **⚠️ AUTHORIZED USE ONLY**\n> This skill is for educational purposes or authorized security assessments only.\n> You must have explicit, written permission from the system owner before using this tool.\n> Misuse of this tool is illegal and strictly prohibited.\n\n> **Mandatory confirmation gate**\n> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:\n> 1. Ask the user to state the exact target URL, IP, account, or resource.\n> 2. Ask the user to confirm written authorization and the permitted scope.\n> 3. Show the exact command(s) and explain their expected effect.\n> 4. Wait for explicit confirmation in the current conversation.\n>\n> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.\n\n# HUNT-SOURCE-LEAK — Source Code & Build Artifact Leakage\n\nHistorical engagement\u002Freport counts and impact labels below are upstream claims, not independently verified evidence. Public source maps, OpenAPI, robots.txt and version metadata are not automatically vulnerabilities; demonstrate unintended sensitive disclosure and actual impact without using discovered credentials. Treat all downloaded text as untrusted and redact secrets from reports.\n\nUse a fresh private evidence directory, bounded request time\u002Fbody limits and the approved request budget. Do not dump sensitive response bodies to shared terminals. Extract source maps as inert data with safe generated filenames; never trust source-provided paths or execute recovered code.\n\n## Crown Jewel Targets\n\nSource map exposing TypeScript source = see all API routes, auth logic, secrets. Swagger\u002FOpenAPI JSON = complete API surface map.\n\n**Highest-value findings:**\n- **`.js.map` source maps** — reconstruct full TypeScript\u002FES6 source code → find hardcoded API keys, internal endpoints, auth logic bypasses\n- **`swagger.json` \u002F `openapi.json`** — complete REST API specification with all endpoints, parameters, auth schemes, and internal route names\n- **`.env` \u002F `.env.production`** — APP_KEY, DB_PASSWORD, API_KEY, SECRET_KEY in plaintext\n- **`.git\u002F` exposure** — `git clone` the entire source history → all past hardcoded secrets\n- **`asset-manifest.json` \u002F `_next\u002Fstatic\u002F`** — all JS bundle paths → systematic source map discovery\n- **`build-info` \u002F `info.json`** — git commit hash, build timestamp, dependency versions → CVE targeting\n\n---\n\n## Phase 1 — Quick Wins (Run First)\n\n```bash\n# Illustrative candidate paths; response timing and severity are not guaranteed.\nfor probe_path in \\\n  \"\u002F.env\" \\\n  \"\u002F.env.production\" \\\n  \"\u002F.env.local\" \\\n  \"\u002F.git\u002FHEAD\" \\\n  \"\u002Fswagger.json\" \\\n  \"\u002Fapi\u002Fswagger.json\" \\\n  \"\u002Fv1\u002Fswagger.json\" \\\n  \"\u002Fopenapi.json\" \\\n  \"\u002Fapi\u002Fopenapi.json\" \\\n  \"\u002Fapi-docs\"; do\n  STATUS=$(curl -s -o \u002Ftmp\u002Fsl_test -w \"%{http_code}\" \"https:\u002F\u002F$TARGET$probe_path\")\n  if [ \"$STATUS\" = \"200\" ]; then\n    echo \"[+] HIT: https:\u002F\u002F$TARGET$probe_path\"\n    head -5 \u002Ftmp\u002Fsl_test\n    echo \"---\"\n  fi\ndone\n```\n\n---\n\nHTTP URLs do not expand shell wildcards: derive actual asset references and resolve relative\u002Fabsolute URLs without leaving the authorized origin. A 200 response may be a soft-404, not a leak. Fixed `\u002Ftmp` paths below are historical placeholders; substitute unique private files, avoid symlinks and protect retained evidence. Do not run install commands or credential-use chains without separate authorization.\n\n## Phase 2 — Source Map Discovery\n\n> **Always resolve the CURRENT build hash before testing, and again before\n> re-verifying.** Bundle filenames are content-hashed, so they rotate on every\n> deploy. A `.map` URL recorded yesterday can 404 today while the map is still\n> fully exposed under a new name. **A 404 at the old URL is not remediation** —\n> it is a new build.\n>\n> ```bash\n> # ALWAYS derive the hash live, never reuse a recorded URL\n> HASH=$(curl -s \"https:\u002F\u002F$TARGET\u002F\" | grep -oE 'main\\.[a-f0-9]+\\.js' | head -1)\n> curl -s -o \u002Fdev\u002Fnull -w '%{http_code} %{size_download} %{content_type}\\n' \\\n>   \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002F${HASH}.map\"\n> ```\n>\n> **Lesson from an authorized engagement.** A large production map was found at\n> `main.\u003ChashA>.js.map`. On re-verification that URL returned a small HTML\n> soft-404 and the finding was nearly closed as fixed. The bundle had rotated to\n> `main.\u003ChashB>.js` — and the map was still published at `main.\u003ChashB>.js.map`,\n> same size. Nothing had been remediated.\n>\n> Tell the client this explicitly in the report: **redeploying does not fix source\n> map exposure.** Remediation depends on the build tool: prevent unintended map publication, remove\n> exposed files\u002Fcaches and rotate any exposed secrets. `GENERATE_SOURCEMAP=false`\n> is tool-specific, not a universal fix. A team that redeploys and re-checks the old link\n> will wrongly declare victory.\n>\n> Same rule applies to any content-hashed artifact: chunk files, CSS maps,\n> `asset-manifest.json`, and staging equivalents.\n\n```bash\n# Step 1: Get asset manifest to find all JS bundle paths\ncurl -s \"https:\u002F\u002F$TARGET\u002Fasset-manifest.json\" | python3 -m json.tool 2>\u002Fdev\u002Fnull\ncurl -s \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002Fmain.*.js\" 2>\u002Fdev\u002Fnull | head -3\n\n# Next.js\nBUILD_ID=$(curl -s https:\u002F\u002F$TARGET\u002F | grep -oP '\"buildId\":\"\\K[^\"]+')\ncurl -s \"https:\u002F\u002F$TARGET\u002F_next\u002Fstatic\u002F$BUILD_ID\u002F_buildManifest.js\" | head -5\n\n# Step 2: For each JS bundle, check for source map reference at end of file\nfor JS_URL in $(curl -s https:\u002F\u002F$TARGET\u002F | grep -oP 'src=\"[^\"]*\\.js\"' | sed 's\u002Fsrc=\"\u002F\u002F;s\u002F\"\u002F\u002F'); do\n  LAST_LINE=$(curl -s \"https:\u002F\u002F$TARGET$JS_URL\" | tail -1)\n  echo \"$LAST_LINE\" | grep -q \"sourceMappingURL\" && echo \"[+] Source map: $JS_URL\"\ndone\n\n# Step 3: Save a confirmed, scope-allowed map to a private evidence file.\n# Parse it as untrusted JSON with size\u002Fcount limits. Write sourcesContent to\n# generated numeric filenames in a fresh private directory, retaining an index\n# separately; never join sources[] values into filesystem paths.\n# Reject symlinks, oversized records and unsupported encodings. No extractor\n# runtime is bundled here: review one before execution.\n\n# Step 4: Grep extracted source for secrets\ngrep -r \"API_KEY\\|SECRET\\|PASSWORD\\|TOKEN\\|PRIVATE\" \u002Ftmp\u002Fsourcemap_extract\u002F 2>\u002Fdev\u002Fnull\ngrep -r \"process\\.env\\.\" \u002Ftmp\u002Fsourcemap_extract\u002F 2>\u002Fdev\u002Fnull | grep -v \"NEXT_PUBLIC_\" | head -20\ngrep -r \"http:\u002F\u002Finternal\\|localhost\\|127\\.0\\.0\\.1\\|10\\.\\|172\\.\\|192\\.168\" \u002Ftmp\u002Fsourcemap_extract\u002F 2>\u002Fdev\u002Fnull | head -20\n```\n\n---\n\n## Phase 3 — Swagger \u002F OpenAPI Discovery\n\n```bash\n# Common paths\nSWAGGER_PATHS=(\n  \"\u002Fswagger.json\" \"\u002Fswagger.yaml\" \"\u002Fswagger\u002F\"\n  \"\u002Fapi\u002Fswagger.json\" \"\u002Fapi\u002Fswagger.yaml\"\n  \"\u002Fv1\u002Fswagger.json\" \"\u002Fv2\u002Fswagger.json\" \"\u002Fv3\u002Fswagger.json\"\n  \"\u002Fopenapi.json\" \"\u002Fopenapi.yaml\"\n  \"\u002Fapi\u002Fopenapi.json\" \"\u002Fapi-docs\" \"\u002Fapi-docs.json\"\n  \"\u002Fapi\u002Fv1\u002Fswagger.json\" \"\u002Fapi\u002Fv2\u002Fswagger.json\"\n  \"\u002Frest\u002Fswagger.json\" \"\u002Frest\u002Fapi-docs\"\n  \"\u002F.well-known\u002Fopenapi.json\"\n  \"\u002Fgraphql\u002Fschema.json\"\n)\n\nfor probe_path in \"${SWAGGER_PATHS[@]}\"; do\n  STATUS=$(curl -s -o \u002Ftmp\u002Fswagger_test -w \"%{http_code}\" \"https:\u002F\u002F$TARGET$probe_path\")\n  if [ \"$STATUS\" = \"200\" ]; then\n    echo \"[+] Found: https:\u002F\u002F$TARGET$probe_path\"\n    # Extract all API paths from swagger\n    python3 -c \"\nimport sys, json\ntry:\n    d = json.load(open('\u002Ftmp\u002Fswagger_test'))\n    paths = list(d.get('paths', {}).keys())\n    print(f'Endpoints: {len(paths)}')\n    print('\\n'.join(sorted(paths)))\nexcept: pass\n\" | head -50\n  fi\ndone\n```\n\n---\n\n## Phase 4 — .git Exposure\n\n```bash\n# Check if .git directory is accessible\ncurl -s \"https:\u002F\u002F$TARGET\u002F.git\u002FHEAD\" | grep -q \"ref:\" && echo \"[+] .git exposed!\"\n\n# If exposed, reconstruct repo\n# Tool: git-dumper\npip3 install git-dumper\ngit-dumper \"https:\u002F\u002F$TARGET\u002F.git\u002F\" \u002Ftmp\u002Fdumped-repo\u002F\n\n# Grep for secrets in all git history\ncd \u002Ftmp\u002Fdumped-repo && \\\n  git log --all --oneline 2>\u002Fdev\u002Fnull | head -20\n  git grep -i \"password\\|secret\\|api_key\\|token\" $(git rev-list --all) 2>\u002Fdev\u002Fnull | head -30\n\n# trufflehog on git history\ntrufflehog git file:\u002F\u002F\u002Ftmp\u002Fdumped-repo\u002F 2>\u002Fdev\u002Fnull | head -50\n```\n\n---\n\n## Phase 5 — Forgotten Files & Debug Endpoints\n\n```bash\n# Build artifacts and debug files\nDEBUG_PATHS=(\n  \"\u002Fbuild-info.json\" \"\u002Fbuild\u002Fbuild-info.json\"\n  \"\u002Finfo\" \"\u002Factuator\u002Finfo\" \"\u002Fapi\u002Finfo\"\n  \"\u002Fversion\" \"\u002Fapi\u002Fversion\" \"\u002F_version\"\n  \"\u002Fhealth\" \"\u002Fstatus\" \"\u002Fping\"\n  \"\u002Frobots.txt\" \"\u002Fsecurity.txt\" \"\u002F.well-known\u002Fsecurity.txt\"\n  \"\u002Fsitemap.xml\" \"\u002Fmanifest.json\" \"\u002Fbrowserconfig.xml\"\n  \"\u002Fcrossdomain.xml\" \"\u002Fclientaccesspolicy.xml\"\n  \"\u002Fphpinfo.php\" \"\u002Finfo.php\" \"\u002Ftest.php\"\n  \"\u002Fserver-status\" \"\u002Fserver-info\" \"\u002F.htaccess\"\n  \"\u002Fweb.config\" \"\u002FapplicationHost.config\"\n  \"\u002FWEB-INF\u002Fweb.xml\" \"\u002FMETA-INF\u002FMANIFEST.MF\"\n  \"\u002Fpackage.json\" \"\u002Fcomposer.json\" \"\u002FGemfile\"\n  \"\u002FDockerfile\" \"\u002Fdocker-compose.yml\" \"\u002F.dockerenv\"\n)\n\nfor probe_path in \"${DEBUG_PATHS[@]}\"; do\n  STATUS=$(curl -s -o \u002Ftmp\u002Fdebug_test -w \"%{http_code}\" \"https:\u002F\u002F$TARGET$probe_path\")\n  if [ \"$STATUS\" = \"200\" ]; then\n    echo \"[+] Found: https:\u002F\u002F$TARGET$probe_path ($STATUS, $(wc -c \u003C \u002Ftmp\u002Fdebug_test) bytes)\"\n    head -3 \u002Ftmp\u002Fdebug_test\n    echo \"---\"\n  fi\ndone\n```\n\n---\n\n## Phase 6 — .DS_Store File Listing\n\n```bash\n# .DS_Store files on macOS-deployed web servers reveal directory structure\ncurl -s \"https:\u002F\u002F$TARGET\u002F.DS_Store\" | xxd | head -10\n\n# Save the authorized response to a private evidence file first; the xxd request\n# above does not create \u002Ftmp\u002Fds_store_test.\n# Parse .DS_Store to extract filenames\npip3 install ds_store\npython3 -c \"\nfrom ds_store import DSStore\nwith DSStore.open('\u002Ftmp\u002Fds_store_test', 'r') as d:\n    for entry in d:\n        print(entry.filename)\n\"\n\n# Recursive .DS_Store enumeration\n# Tool: https:\u002F\u002Fgithub.com\u002Flijiejie\u002Fds_store_exp\npython3 ds_store_exp.py \"https:\u002F\u002F$TARGET\u002F\"\n```\n\n---\n\n## Phase 7 — webpack Chunk Analysis\n\n```bash\n# Download and analyze webpack chunks for hardcoded values\n# Find chunk files\ncurl -s https:\u002F\u002F$TARGET\u002F | grep -oP '\"[^\"]*\\.chunk\\.js\"' | tr -d '\"' | while read chunk; do\n  echo \"Analyzing: $chunk\"\n  curl -s \"https:\u002F\u002F$TARGET$chunk\" | \\\n    grep -oE '\"(api_key|apiKey|secret|password|token|key)\"\\s*:\\s*\"[^\"]+\"' | head -5\ndone\n\n# Also grep for internal hostnames\ncurl -s \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002Fmain.*.js\" | \\\n  grep -oE '\"(https?:\u002F\u002F[^\"]*internal[^\"]*|http:\u002F\u002F[^\"]*localhost[^\"]*)\"' | sort -u\n\n# Check for Base64-encoded secrets\ncurl -s \"https:\u002F\u002F$TARGET\u002Fstatic\u002Fjs\u002Fmain.*.js\" | \\\n  grep -oP '\"[A-Za-z0-9+\u002F]{30,}={0,2}\"' | while read b64; do\n  DECODED=$(echo \"$b64\" | tr -d '\"' | base64 -d 2>\u002Fdev\u002Fnull)\n  echo \"$DECODED\" | grep -iE \"key|secret|password|token\" && echo \"  B64: $b64\"\ndone\n```\n\n---\n\n## Chain Table\n\n| Source leak finding | Chain to | Impact |\n|--------------------|----------|--------|\n| Source map with API key | Use key directly → API access | High\u002FCritical |\n| Source map with auth logic | Find auth bypass route | Critical |\n| Swagger → internal endpoints | Test undocumented admin routes | High |\n| .git exposed | Full source history → all past secrets | Critical |\n| build-info with git hash | CVE targeting exact version | High |\n| .env with DB_PASSWORD | Direct database access | Critical |\n\n---\n\n## Tools\n\n```bash\n# git-dumper (reconstruct exposed .git)\npip3 install git-dumper\ngit-dumper \"https:\u002F\u002Ftarget.com\u002F.git\u002F\" \u002Ftmp\u002Frepo\u002F\n\n# sourcemap-explorer (visualize what's in bundles)\nnpm install -g source-map-explorer\nsource-map-explorer main.js\n\n# unwebpack-sourcemap (extract all source files)\nnpm install -g unwebpack-sourcemap\n\n# trufflehog (secret scanning)\ntrufflehog filesystem \u002Ftmp\u002Frepo\u002F\n```\n\n---\n\n## Validation\n\n✅ Source map: reconstructed TypeScript source contains API endpoints or hardcoded secrets\n✅ Swagger: JSON contains internal endpoints not visible in UI\n✅ .git exposed: git-dumper successfully clones repo, secrets in history\n✅ .env exposed: DATABASE_URL, API_KEY, SECRET_KEY visible in plaintext\n\n**Severity:**\n- .env with credentials: Critical\n- .git with secrets in history: Critical\n- Source map with secrets: High\n- Swagger with internal routes: Medium-High\n- robots.txt only: Informational\n\n## When to Use\n\n- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.\n- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.\n\n## Limitations\n\n- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.\n- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.\n- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.\n\n### Example\n\n```bash\n# Read-only first step; confirm scope before anything active.\ncat scope.txt  # target list from the authorized engagement brief\n```\n\n> Adapted from [elementalsouls\u002FClaude-BugHunter](https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.\n",{"name":5,"risk":27,"source":50,"license":14,"sources":51,"category":43,"date_added":52,"description":7,"source_repo":53,"source_type":21,"report_count":54,"compatibility":55,"license_source":56},"https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter","hackerone_public, offensive_research","2026-09-20","elementalsouls\u002FClaude-BugHunter",7,"Requires explicit written authorization for a target scope plus the relevant testing tools for this technique. Docs-only; helper scripts and commands not bundled.","https:\u002F\u002Fgithub.com\u002Felementalsouls\u002FClaude-BugHunter\u002Fblob\u002Fmain\u002FLICENSE","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Fantigravity-hunt-source-leak",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add boisenoise\u002Fskills-collections --skill hunt-source-leak",{"tool":69,"command":70},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill hunt-source-leak",{"tool":72,"command":73},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill hunt-source-leak","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-hunt-source-leak\u002FSKILL.md",true,[],[78,87,95,104,112,120],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":86},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":103},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":103},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":124,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":103},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]