Tooluck logoTooluck
SKILL.md

js-secrets-extraction

Agent skill fromuphiago/recon-skills

Analyze JS bundles and source maps for hardcoded secrets, API keys, JWTs, and internal endpoints

How to install js-secrets-extraction

install js-secrets-extraction
# install the recon-skills pack with the skills CLI
npx skills add uphiago/recon-skills

# or add only this skill to Claude Code: copy the folder

recon/js-secrets-extraction/

# into

~/.claude/skills/js-secrets-extraction/ (all projects)

.claude/skills/js-secrets-extraction/ (one project)

recon/js-secrets-extraction/SKILL.md

MITFull file
1# JS Bundle & Source Map Analysis -- Secret Extraction
2
3## When to Use
4
5- **ALWAYS** after initial web enumeration
6- When you find modern SPA (React, Angular, Vue)
7- When target uses Firebase, Supabase, Auth0
8- Higher yield than directory scanning on many targets
9
10## Prerequisites
11
12- Explicit authorization, target boundaries, and rate limits for the target.
13- Tooling: `curl`, `python3`, `waybackurls`.
14- A writable evidence directory: `export OUTPUT_DIR="${OUTPUT_DIR:-./output}" && mkdir -p "$OUTPUT_DIR"`.
15- For any state-changing step (writes, uploads, credential attempts), obtain explicit confirmation immediately before the command.
16
17## How to Run
18
19```bash
20curl --max-time 30 --connect-timeout 10 -s "https://target.com" > index.html
21grep -Eo 'src="[^"]*\.js"' index.html | cut -d'"' -f2 | while read js; do
22 curl --max-time 30 --connect-timeout 10 -s "https://target.com$js" > "$(basename $js)"
23done
24
25# Search for secrets in bundles
26grep -rEn "(apiKey|api_key|API_KEY|token|secret|password|clientId|client_id|auth0|firebase|supabase)[\"'\"]?[[:space:]]*[:=][[:space:]]*[\"'\'][^\"'\']{8,}" *.js
27```
28
29## Procedure
30
31The phases below are the procedure. Keep each probe bounded (`--max-time`), record evidence beneath `OUTPUT_DIR`, and stop at the stop-conditions listed in Pitfalls.
32
33## Why Analyze JS Bundles
34
35Modern JavaScript bundles (Webpack, Vite, esbuild) often contain:
36- Hardcoded API keys and tokens
37- Internal API URLs
38- Firebase, Auth0, Supabase configurations
39…

Excerpt shown under the repository's MIT license.

More skills in recon-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates