AI for bug bounty: recon to report without breaking scope
A bug-bounty workflow with an AI agent that stays in scope and in the rules — encoding the scope, respecting rate limits, running subfinder/httpx/ffuf/nuclei, and writing a report a triager accepts. Authorization throughout.
· 7 min read

An AI agent is a strong bug-bounty teammate: it runs recon tooling, reads results, spots the odd endpoint, drafts the request to test a hunch, and writes the report. It's also the fastest way to break a program's rules, because an agent with a shell will happily enumerate an out-of-scope host, hammer an endpoint past the rate limit, or run an aggressive scan the program forbids — and do it in seconds, under your name. The entire skill of using one here is keeping it inside the authorization the program gave you.
One principle governs the rest: the program's scope and rules are the authorization, and the agent has no idea what they are unless you tell it. A bug bounty is permission to test specific assets, specific ways. Everything below is about encoding that permission so the agent can't wander out of it, then using it to move fast inside the lines.
Step 0: encode the scope before any tool runs
Before the agent touches the target, write the rules down where it reads them — your project instructions (CAVEIRA.md, CLAUDE.md, AGENTS.md) — in plain terms it can't miss:
- In-scope assets, exactly: the domains, wildcards, IP ranges, apps. Paste them from the program page.
- Out-of-scope, explicitly: subdomains, third-party services, acquisitions, anything the program excludes. Out-of-scope findings are wasted work at best and a rules violation at worst.
- Forbidden actions: most programs ban automated scanning, aggressive fuzzing, DoS/stress testing, social engineering, and testing against production data. Many disallow running scanners like nuclei at all, or only at a throttle. Read the policy; copy the specifics in.
- Rate limits: the requests-per-second the program allows, or a conservative default if it's silent.
Keep a machine-checkable scope file too, and have the agent diff every target host against it before sending traffic:
# scope.txt — in-scope apex domains, one per line
example.com
api.example.com
The habit that keeps you safe: the agent proposes targets; you confirm they're in scope before it sends a packet. Make "is this host in scope.txt?" a step it can't skip.
Step 1: recon, in scope and gentle
Passive first — it touches the target least. subfinder enumerates subdomains from public sources, then httpx probes which are alive, and you filter to scope:
subfinder -d example.com -silent > subs.txt
# keep only in-scope hosts before probing anything
grep -Ff scope.txt subs.txt > subs.inscope.txt
httpx -l subs.inscope.txt -rate-limit 5 -silent -title -status-code -tech-detect
Note the -rate-limit: set it low and deliberately on every tool. A good prompt frames the constraint first:
These are in-scope hosts for a bug-bounty program (scope.txt). Probe only hosts in that file, at 5 requests/second max. Summarize live hosts, their tech stack, and anything worth a closer look. Do not touch anything not in scope.txt.
Let the agent read the httpx output and prioritize — unusual tech, admin panels, API hosts, dev/staging that's explicitly in scope. This is where it saves you time: triaging a hundred live hosts into the ten worth your attention.
Step 2: content discovery with ffuf, throttled
ffuf finds paths and endpoints. The flags that keep it polite are not optional on a live program:
ffuf -u https://api.example.com/FUZZ -w wordlist.txt \
-rate 10 -t 5 -mc 200,301,302,401,403 -o ffuf.json -of json
-rate 10 caps requests per second; -t 5 caps concurrency; -mc filters to interesting status codes. Have the agent read ffuf.json and flag what matters, but you set the rate — never let the model raise it to "go faster." Faster is exactly what gets you flagged, rate-limited, or kicked from a program. If the program forbids automated discovery, skip this step; the policy wins.
Step 3: nuclei, only if the program allows it
nuclei runs community templates for known issues. It's powerful and it's loud — many programs ban it or restrict it, so check the policy before you run it at all. If it's allowed:
nuclei -l subs.inscope.txt -rl 10 -c 5 -severity medium,high,critical -o nuclei.txt
-rl rate-limits, -c caps concurrency, -severity cuts the noise. The agent is good at reading nuclei output and separating real signal from the usual false positives — but nuclei raising a template match is a lead, not a finding. Every hit gets manually confirmed before it goes near a report. An automated match you didn't verify is how you file a false positive and lose a triager's trust.
Step 4: verify by hand
This is the step that separates a good report from a duplicate-flagged, auto-generated one. Whatever the tools surfaced, confirm it yourself:
- Reproduce the issue manually, minimally, in scope.
- Confirm real impact — an IDOR that returns another user's data, not just a different status code.
- Check it isn't already known or explicitly accepted-risk in the program.
Have the agent help build the minimal reproduction and reason about impact, but the claim "this is a vulnerability" is yours to stand behind. Models over-call findings; a triager remembers who files noise.
Step 5: write the report the triager wants
A good report gets paid faster, and this is where the agent earns its keep — it's genuinely good at turning your confirmed finding into a clean write-up. Give it the facts and ask for the standard structure:
- Title: the vulnerability and the asset, specific.
- Severity: with a CVSS vector and the reasoning, not just a word.
- Steps to reproduce: numbered, minimal, copy-pasteable, with the exact in-scope request.
- Impact: what an attacker actually gains — concrete, not hypothetical.
- Remediation: the fix, specific to their stack.
- Evidence: request/response, a screenshot, the proof-of-concept.
A useful prompt:
Write a bug-bounty report for this confirmed finding. Here's the request, response and impact. Use the standard structure, give a CVSS v3.1 vector with justification, and keep the reproduction minimal. Don't overstate severity.
The one thing to watch: don't let the model inflate severity or invent impact it can't back. An honest medium gets paid; an exaggerated critical gets downgraded and costs you credibility.
The rules, every step
Recap, because this is the part that actually matters:
- Only in-scope assets. Diff every target against the scope file first.
- Respect the rate limits the program sets, and stay conservative when it's silent.
- No forbidden techniques — no DoS, no social engineering, no scanning where it's banned, no testing production data.
- Verify before you report; automated hits are leads.
- The authorization is the program's scope — not your agent's enthusiasm, and not "it's probably fine."
An agent with the scope encoded, the rate limits set, and a human confirming every finding turns bug bounty from a slow grind into a fast loop that stays inside the rules. Practice the workflow first on targets built for it — Juice Shop, DVWA and WebGoat via caveira's /lab start, where the scope is "everything" and nobody gets paged — before you point any of it at a real program. If you hit a mainstream assistant refusing the recon tooling, this guide covers getting legitimate work unstuck.