hunt — Claude Code prompt: automated vulnerability hunting
hunt — a prompt for systematic vulnerability detection on target hosts. Reads scope, detects tech stack, auto-selects vuln classes by likelihood, and runs targeted tests with concrete payloads and WAF bypass rules.
no license ★ 1,298 updated 2026-06-12
.claude/commands/hunt.mdWhat hunt does
hunt loads the scan scope from scope.yaml, checks what has already been tested via brain telemetry, detects the target's technology stack from HTTP headers, and ranks vulnerability classes by attack surface and ROI. For each class, it dispatches specialized agents armed with ready-to-use payloads, WAF bypass techniques, and chain anchors for low-value findings.
The prompt enforces four mandatory phases: artifact reads (scope, brain, policy), tech stack detection via curl headers, automatic class selection by probability ranking, and prior art search through MCP writeup-search. If a WAF is detected (Cloudflare, Akamai, AWS WAF), the prompt injects a seven-level bypass ladder: encoding, tag mutation, JavaScript obfuscation, and compound techniques. Time and token budgets gate each class. If a vuln class is exhausted (too many attempts without signal), an exhaustion check either advances to the next class or re-dispatches with stricter requirements. For feeder classes that sell low as standalone findings (open-redirect, info-disclosure, CSRF), the prompt mandates chain hunting before writeup submission.
What it helps with
- determine which vulnerability classes are most likely on a given tech stack
- bypass WAF and shields without wasting testing budget
- find proven techniques and payloads for the target vulnerability from community knowledge
- track what has already been tested to avoid duplicate effort
- chain low-value findings into high-impact reports before submission
Example prompts for the agent
- /hunt example.com
- /hunt api.target.org --vuln-class xss
- /hunt app.service.io --vuln-class idor
How to install hunt
Manually: put the files in place
.claude/commands/hunt.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about hunt
How do I install hunt in Claude Code?
Create a file .claude/commands/hunt.md at the project root and paste the prompt text into it. After that, the /hunt slash command will be available in Claude Code.
What does hunt do?
It automates vulnerability discovery: reads the scan scope, identifies the target's technology stack, ranks vulnerability classes by likelihood, and runs targeted tests with payloads. If a WAF is detected, hunt applies its built-in bypass protocol.
What dependencies does hunt need?
hunt calls internal tools: brain.py for test history, scope_check.py for scope validation, intel_engine.py for class ranking and budget allocation. It also uses the writeup-search MCP server if available. All of these must be present in your project.