hunt-recon
Skill0 starsChanged 3 months agoMITView on GitHub
Systematic wide-recon and attack-surface mapping, including exploitable-secret hunting. TRIGGER: user is starting a new target, wants to enumerate subdomains/hosts/endpoints, map attack surface, do wider/systematic recon, extract endpoints from JS, hunt leaked secrets, run nuclei, or scan IP ranges/ASNs/ports.
- Reads credentials
- Installs packages
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- ffuf-web-fuzzingSkill
- hunt-aiSkill
- hunt-atoSkill
- hunt-bxssSkill
- hunt-idorSkill
- hunt-rbacSkill
- hunt-rceSkill
- hunt-ssrfSkill
- hunt-vibecodedSkill
- hunt-xssSkill
- js-analyzeSkill
- triage-findingSkill
- write-reportSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 34
If a phase below names a tool you don't have, install it rather than skipping the phase — coverage is the point.
- Distinctive: line 40
ONLY against in-scope assets.
- Distinctive: line 73
Not low-impact "disclosure" — hunt secrets that DO something:
- Distinctive: line 90
Only if IP ranges/ASNs are in scope:
- Distinctive: line 95
Look for exposed services: databases, dashboards, git servers, dev tools.
- Distinctive: line 109
No active testing of out-of-scope or third-party hosts you discover.
- Distinctive: line 111
If a step could breach scope or program rules, stop and ask the user first.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
hunt-recon — Systematic Attack-Surface Mapping
You are assisting an authorized bug bounty hunter under a program's published policy. Their known weakness is NARROW, opportunistic recon — poking the first interesting subdomain. Your job is to make recon WIDE and SYSTEMATIC so no attack surface is missed, then RANK it so hunting time goes to the highest-impact targets. Recon isn't a bug class; it's what feeds every other hunt-* skill.
Core philosophy
Bounties are lost at recon. The hunter who maps 400 hosts and every JS endpoint beats the one who deep-dives the first subdomain they see. Go wide first (breadth), THEN deep on the highest-value surface. Always work from the program's scope; never let breadth pull you out of bounds.
Recommended arsenal (install what's missing — don't be limited by defaults)
Fastest path for the ProjectDiscovery suite is pdtm (installs subfinder, httpx, dnsx, naabu, katana, nuclei, asnmap, mapcidr, alterx, notify):
go install github.com/projectdiscovery/pdtm/cmd/pdtm@latest && pdtm -iaOthers (go/pipx/cargo/apt):- Subdomains: assetfinder, github-subdomains, amass (Kali has amass)
- Permutations + resolve: puredns, gotator/dnsgen (+ a fresh resolvers list)
- Probe/screenshot: httpx, gowitness
- Crawl + URLs: katana, gau, waybackurls
- JS analysis: jsluice (BishopFox), plus source-map fetching
- Params: arjun (
pipx install arjun), x8 (cargo install x8) - Content brute: ffuf (have it), feroxbuster (recursive)
- Secrets: trufflehog, gitleaks, noseyparker
- Pipe helpers: anew, gf, qsreplace (tomnomnom) If a phase below names a tool you don't have, install it rather than skipping the phase — coverage is the point.
Phase 0 — Scope lock
Pull and read the program scope. List in-scope apexes, wildcard domains, IP ranges/ASNs, mobile apps, and explicit out-of-scope assets. Everything below runs ONLY against in-scope assets. If scope is ambiguous, stop and ask the user.
Phase 1 — Subdomain enumeration (go wide)
Passive first, then active:
subfinder -d target.com -all -o subs_passive.txtamass enum -passive -d target.com -o subs_amass.txt(add API keys in ~/.config/amass/config.ini — Shodan, Censys, VirusTotal, SecurityTrails, GitHub — for far wider coverage; single biggest recon upgrade).github-subdomains -d target.com(subs leaked in public code).- Permutations for non-obvious hosts (dev-, staging-, api2-, internal-): generate with alterx/gotator/dnsgen, then resolve.
- Merge/dedupe with anew:
cat subs_*.txt | anew subs_all.txt - Resolve live with
dnsxorpuredns resolve(use a fresh resolvers list).
Phase 2 — Live hosts + fingerprint
httpx -l subs_all.txt -sc -title -tech-detect -server -ip -cdn -o live.txt- Screenshot with
gowitnessand eyeball for login/admin/dashboards/dev/staging.
Phase 3 — Endpoint & content discovery
- Historical URLs:
gau/waybackurlsper apex. - Active crawl:
katana -jc(crawl + JS) on live hosts. - Hidden params:
arjunorx8on interesting endpoints. - Content brute where appropriate: ffuf skill (
-ac, rate-limited) or feroxbuster. - Pre-sort with gf patterns (idor, ssrf, xss, sqli, redirect) for later hunting.
Phase 4 — JavaScript extraction (your strength — every live host)
- Pull every .js (main, chunks, vendor).
jsluice urls/jsluice secretsto pull endpoints AND secrets from JS at once; katana-jcalso extracts JS endpoints.- Fetch any
.js.mapsource maps — reconstruct original source, config, internal endpoints/comments.
Phase 5 — Exploitable-secret hunting (only secrets that grant/chain access)
Not low-impact "disclosure" — hunt secrets that DO something:
- Grep/jsluice JS + responses for API keys, tokens, Authorization, cloud keys (AWS/GCP/Azure), Firebase/Stripe/Sentry/Maps keys, JWTs, internal hostnames.
- Exposed files:
.git/(rebuild history),.env, backups (.bak/.old/.sql/.zip), swagger/OpenAPI. - GitHub dorking: org + employee repos + commit history for hardcoded creds tied to the in-scope target (trufflehog/gitleaks/noseyparker on cloned repos).
- Validate: state what a key unlocks; do NOT use live creds against real data beyond a minimal validity check. Route anything real through triage-finding.
Phase 6 — Nuclei sweep (known CVEs, misconfigs, exposures)
nuclei -l live.txt -t exposures/ -t misconfiguration/ -t cves/ -severity low,medium,high,critical -rl <rate>(respect program rate limits).- Triage hits by real impact — a nuclei "info" match is not automatically a bug; run promising ones through triage-finding.
Phase 7 — IP range / ASN / port surface (scope-permitting)
Only if IP ranges/ASNs are in scope:
asnmap -d target.com-> ASNs ->mapcidrto expand to CIDR.- Find origin IPs behind CDNs where allowed.
naabu -host <ips>thennmap -sVon open ports. Watch rate/intensity — no scanning a policy forbids.- Look for exposed services: databases, dashboards, git servers, dev tools.
Phase 8 — Rank the surface, then hand off
Produce a ranked attack-surface list by impact potential:
- Auth/admin panels, dev/staging, internal tools -> hunt-ato, hunt-rbac.
- APIs & object-referencing endpoints -> hunt-idor.
- Fetching/URL/webhook features -> hunt-ssrf.
- Rendering/upload/version-control/CI features -> hunt-rce.
- Input reflected to other users -> hunt-xss / hunt-bxss. Feed the top targets into the matching skill; don't just start on the first host.
Guardrails
- Everything runs against IN-SCOPE assets only. Re-check scope before Phases 6-7.
- Respect rate limits — throttle scans (
-rl/-rate); no DoS-level traffic. - No active testing of out-of-scope or third-party hosts you discover.
- GitHub/OSINT: only act on leaks tied to the in-scope target.
- If a step could breach scope or program rules, stop and ask the user first.
JS bundle handling (never load whole bundles)
Bundles are routinely 1–20MB. Treat them as on-disk artifacts, never context.
- Download to a bundles/ dir with the required program header.
- Extract, do not read:
- jsluice urls
<file>; jsluice secrets<file> - rg -n '(/v[0-9]+/|/api/|Authorization|Bearer|api[_-]?key|secret|token|window.__env)'
<file> - endpoint call shapes: rg -n -C3 'fetch(|axios|.(get|post|put|delete)('
<file>
- jsluice urls
- Surface only the matched lines + minimal context. Dedup into an endpoint/secret inventory file.
- Triage any secret by type before claiming (publishable/anon/analytics keys are public by design).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

