A multi-agent, LLM-driven bug bounty framework built on Claude Code and the Caido proxy.
Agents handle recon, exploitation and validation in parallel and share a single knowledge base. Every request is forced through a default-deny scope gate and logged in Caido. Nothing is called a vulnerability until an adversarial validator has failed to disprove it. The human stays in the loop and submits every report.
flowchart LR
S[scope.yaml] --> G{scope-check}
T[targets] --> G
G -- DENY --> X[skip]
G -- ALLOW --> R[recon-agent]
R --> KB[(knowledge base)]
KB --> E[exploit-agent]
E -- candidate --> V[validator-agent]
V -- REJECT --> KB
V -- PROMOTE --> KB
KB --> D[report draft]
D --> H[human review & submit]
E -. all traffic .-> C[Caido proxy]
V -. all traffic .-> C
LLM agents are good at the tedious parts of bug hunting: enumerating surface, reading JavaScript, replaying requests with small changes. They are also good at being confidently wrong and at wandering off scope. hackbot is built around those two failure modes:
- Scope is enforced in code, not in the prompt. Every script that touches a
host calls
bin/scope-check, which denies anything not explicitly listed. - False positives are filtered by a second agent whose job is to reject them. The validator starts from REJECT, reproduces from a clean session and has to confirm real impact before a finding is promoted.
| Scope gate | bin/scope-check: default-deny, glob matching, out_of_scope always wins. Called by every wrapper, agent and prompt. |
| Proxied traffic | bin/caido send scope-checks, rate-limits and routes every request through Caido, so the whole hunt is in history and replayable. |
| Agent graph | recon-agent per target, exploit-agent per lead, validator-agent per candidate, running in parallel. |
| Knowledge base | bin/kb: JSONL store of findings with OWASP class, CVSS v3.1 vector and auto-computed base score. |
| Adversarial validation | bin/validate: reproduces each candidate twice from a fresh context; only survivors become validated. |
| Model tiering | bin/worker: mechanical work (ranking, report drafting) goes to a cheap model via opencode; reasoning stays on Claude. |
| Human-in-the-loop | The autonomous runner stops at every stage for a go/no-go. --yolo exists, but is not meant for real targets. |
| Guarded PoCs | bin/exploit only runs scripts under exploits/, scope-checks every URL in them and forces traffic through Caido. |
| Triager-ready PoCs | bin/poc builds a self-contained package per finding (browser HTML + stdlib-only Python + README) that reproduces on any OS with no tools; credentials go in a git-ignored config, never in the report. |
| Deep OSINT | bin/osint pulls certificate-transparency subdomains (crt.sh) and historical URLs (Wayback), scope-filtered — surfaces forgotten/dev hosts and archived parameters. |
| Secrets hunting | bin/secrets runs trufflehog plus a high-signal regex sweep over collected JS/responses/recon; verified hits auto-seed the KB. |
| Asset monitoring | bin/monitor re-discovers assets over time and alerts on new subdomains — fresh attack surface, fewer duplicates, first to report. |
| Persistence | prompts/persistence.md keeps the hunt working the (endpoint × bug-class) matrix until you stop it — no "that's enough for today". |
| Program memory | knowledge/<program>.md records stack, what worked, dead ends and the reported list, so the bot improves per program and dedups before resubmitting. |
| Disclosed-report learning | bin/library distills publicly disclosed reports/writeups into technique cards and matches them to a target's fingerprints — so when a target looks like a known writeup, the bot already knows what to try. |
| Strix wrapper | bin/strix-safe puts the scope gate, a USD budget and a turn cap in front of Strix. |
| Dashboard | bin/viewer serves a live view of the knowledge base on 127.0.0.1. |
Only point this at targets you are authorised to test: a bug bounty program's published scope, or systems you own.
scope.yamlis the single source of truth. Copy it from the program's policy page exactly. An emptyin_scopeblocks everything.- Agents run under
.claude/settings.json: a tight allow-list of tools;rm,sudo,dd, writes toscope.yamland writes outsidefindings/andlogs/are denied. - Target traffic goes through
bin/caido send(rate-limited byHACKBOT_RPS), never directly. - No DoS, no destructive writes, no account takeover against real users, no credential brute force. These rules are repeated in every prompt.
- Reports are drafts. The tool never claims a report was submitted.
- Claude Code (
claudeonPATH) - Caido running on
127.0.0.1:8080 - ProjectDiscovery
subfinder,httpx,nucleianddnsx python3,curl,jq,tmux,node/npx(Playwright MCP for browser-based validation)trufflehogfor the secrets scanner (regex sweep works without it)- Optional: opencode for the cheap worker tier, Strix
git clone https://github.com/hallllow29/hackbot.git && cd hackbot
cp env.example.sh env.sh # Caido endpoint, rate limit, worker model
cp scope.example.yaml scope.yaml # fill in from the program's policy page
mkdir -p targets logs findings/{candidates,validated,reports,recon}
echo "app.example.com" > targets/predefined.txt
source env.sh # puts bin/ on PATH
scope-check app.example.com # ALLOW / DENY
caido up # proxy and API reachable?To get the hackbot command in every shell, add this to ~/.bashrc:
source /path/to/hackbot/hackbot.rchackbot orchestrator session: reads scope, KB, program memory and queue, proposes a plan, waits for you
hackbot panes tmux cockpit with four Claude panes: recon, hacking + Caido, JS analysis, notes
hackbot recon <apex> enumerate, scope-filter and rank attack surface for one apex
hackbot osint <apex> deep passive recon: crt.sh subdomains + Wayback URLs, scope-filtered
hackbot secrets trufflehog + regex sweep for leaked keys/tokens in collected data
hackbot monitor <apex> diff assets vs the last snapshot and surface NEW ones (add --recon to auto-recon them)
hackbot library <args> learn from disclosed reports: ingest <url>, match <tech>, list, stats
hackbot hunt <target> FULL auto on one target: osint+recon+secrets -> library match -> every bug class -> validate -> PoC -> report (gated)
hackbot auto [host] gated hunt over targets/predefined.txt, or one host
hackbot validate run the validator over new candidates
hackbot poc <F-ID> build a triager-ready PoC package for a finding
hackbot report draft reports for validated findings
hackbot kb <args> query or update the knowledge base
hackbot exploit <poc> run a PoC from exploits/ through the gate and the proxy
hackbot viewer live dashboard on 127.0.0.1:8899
hackbot status one-screen summary (status watch to refresh)
hackbot strix <args> Strix with the scope gate, budget and turn cap
hackbot scope print the current scope
hackbot osint example.com # crt.sh + Wayback -> forgotten hosts & archived params
hackbot recon example.com # live surface, ranked -> findings/recon/
hackbot secrets # leaked keys in collected JS/responses -> KB
hackbot auto app.example.com # hunt, stopping for approval at each stage
hackbot validate # try to disprove each candidate
kb list --status validated # what survived
hackbot poc F-0003 # triager-ready PoC package
hackbot report # drafts in findings/reports/, you review and submit
hackbot monitor example.com --loop 3600 # keep watching for new assets (run in a side pane)kb add --target app.example.com --url https://app.example.com/api/orders/42 \
--title "IDOR on order details" --class IDOR --owasp "API1:2023" \
--cvss "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
kb set F-0003 status=validated
kb stats| Agent | Model | Role |
|---|---|---|
recon-agent |
Sonnet | Maps one target: subdomains, live hosts, tech, endpoints, nuclei signals. Writes leads to the KB. |
exploit-agent |
Opus | Takes one lead and tests one hypothesis at a time, non-destructively, through the proxy. |
validator-agent |
Opus | Reproduces a candidate from scratch and tries to prove it is a false positive. Uses the browser for XSS/DOM proof. |
The validator-agent also builds a triager-ready PoC (bin/poc) on every promotion.
Recon skills
| Skill | Purpose |
|---|---|
recon |
Scope-gated surface mapping with subfinder and httpx. |
deep-recon |
crt.sh, Wayback, leaked secrets, forgotten dev/staging hosts, archived params. |
api-recon |
REST/OpenAPI/Swagger, GraphQL introspection + field mining, gRPC, Postman. |
content-discovery |
Hidden paths, parameters, vhosts, backups and debug surfaces. |
js-analysis |
Mines client-side JavaScript for endpoints, parameters and secrets. |
protocol-analysis |
Protobuf/gRPC, WebSockets, JWT/JWS/JWE, SAML, serialized blobs, MessagePack. |
Exploit skills
| Skill | Purpose |
|---|---|
access-control |
IDOR/BOLA, function-level authz, privilege escalation, tenant isolation. |
injection |
SQL/NoSQL, command, SSTI, XSS, XXE, CRLF/header. |
ssrf-cloud |
SSRF, cloud metadata (IMDS), internal access and cloud misconfig. |
auth-attacks |
Login, reset, MFA, JWT, session and OAuth/SSO flaws. |
business-logic |
Race conditions, value tampering, workflow/limit bypass. |
chaining |
Combine findings into a higher-impact chain (where the big payouts are). |
Support skills
| Skill | Purpose |
|---|---|
caido-mode |
Send and replay through the proxy: baseline first, then tamper. |
validator |
The checklist a candidate must pass before promotion. |
poc-writer |
Complete a cross-platform, credential-safe PoC for a validated finding. |
program-memory |
Read and maintain knowledge/<program>.md; dedup before resubmitting. |
disclosed-learning |
Distil disclosed reports into technique cards; match them to the target's stack. |
hacking |
Legacy one-hypothesis methodology (superseded by the exploit specialists). |
Persistence is governed by prompts/persistence.md: the hunt never stops on its
own — it works the (endpoint × bug-class) matrix until you say stop.
bin/
scope-check default-deny scope gate (Python, no dependencies)
caido proxy send / GraphQL / history, scope-checked and rate-limited
kb knowledge base + CVSS v3.1 calculator
recon enumeration and ranking for one apex
osint crt.sh + Wayback passive recon, scope-filtered
secrets trufflehog + regex secrets scanner
monitor asset-diff monitoring (be first to new surface)
library technique corpus from disclosed reports (ingest / match)
autonomous gated hunt runner
validate adversarial validator runner
poc triager-ready PoC package builder
report report drafting for validated findings
exploit guarded PoC runner
worker routes tasks to the cheap or smart model tier
strix-safe Strix behind the scope gate
viewer, status dashboard and terminal summary
hackbot-panes tmux four-pane cockpit
.claude/
agents/ recon, exploit and validator subagents
skills/ recon/deep-recon/api-recon/content-discovery/js-analysis/protocol-analysis,
access-control/injection/ssrf-cloud/auth-attacks/business-logic/chaining,
caido-mode/validator/poc-writer/program-memory/hacking
settings.json tool allow/deny list
prompts/ headless prompts: playbook (full methodology), hunt, validate, persistence
knowledge/ per-program memory (_TEMPLATE.md) + library/ (56 built-in technique cards + disclosed-report cards)
exploits/ PoC scripts (_template.py to start from)
poc/ generated triager-ready PoC packages (git-ignored)
findings/ kb.jsonl, candidates/, validated/, reports/, osint/, secrets/, dashboard/ (git-ignored)
scope.yaml authoritative scope (git-ignored; see scope.example.yaml)
env.sh local config and secrets (git-ignored; see env.example.sh)
The workflow is inspired by the Critical Thinking Bug Bounty Podcast and Rhynorater's Claude Code hacking setup.
For authorised security testing only. You are responsible for staying inside each program's scope and rules of engagement.