hackbot / templates
CLAUDE.md0 starsChanged 3 months agoMITView on GitHub
If one of the above is a genuine link in an exploit chain, keep it — but say so explicitly and show the chain. ~/hackbot is my control plane for LLM-driven offensive work. Read ~/hackbot/README.md at the start of every hunt, and ~/hackbot/docs/DESIGN.md before you write a mission spec or interpret a gate verdict. Do not re-derive how it works from the source. It is an outer loop, not an agent framework: it dispatches a bounded worker, seals its output…
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ffuf-web-fuzzingSkill
- hunt-aiSkill
- hunt-atoSkill
- hunt-bxssSkill
- hunt-idorSkill
- hunt-rbacSkill
- hunt-rceSkill
- hunt-reconSkill
- hunt-ssrfSkill
- hunt-vibecodedSkill
- hunt-xssSkill
- js-analyzeSkill
- triage-findingSkill
- write-reportSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
20 rules. About 0 are common, 15 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Scope first: Before touching any asset, confirm it is in scope for the current program.
- Distinctive: line 17
Authorized targets only: Never run active testing against a host that is not covered by a bug bounty policy I've confirmed.
- Distinctive: line 19
Only exploitable bugs: Ask "can an attacker actually do this RIGHT NOW?" If it's theoretical, note it but don't treat it as a finding.
- Distinctive: line 20
If it's theoretical, note it but don't treat it as a finding.
- Distinctive: line 25
Use my own test accounts wherever possible.
- Distinctive: line 46
If one of the above is a genuine link in an exploit chain, keep it — but say so explicitly and show the chain.
- Distinctive: line 61
Only then help me write it up.
- Distinctive: line 83
It is the evidence gate I would otherwise run by hand: Every quote is checked as a literal substring of the stored bytes, and tier 2 checks …
- Distinctive: line 99
Do not use it for: exploratory poking where I don't yet have a hypothesis (write the hypothesis first — a mission without one produces …
- Distinctive: line 147
A worker's narration is not evidence: Only the sealed result and the proxy rows are.
- Distinctive: line 154
If there's a better approach than what I asked for, tell me and ask before switching.
- Distinctive: line 156
Verify technical claims that could be outdated instead of guessing.
- Distinctive: line 159
Do these three before you touch the target:
- Very specific: line 160
Read ~/.claude/memory/reports.md — my global history of findings and the vulnerability patterns I actually discover.
- Very specific: line 163
Read ~/hackbot/CLAUDE.md so you know what the control plane guarantees and what its invariants forbid.
- Very specific: line 165
Run ~/hackbot/hb.sh review and tell me what is waiting on me.
- Very specific: line 171
When we confirm a NEW real finding or useful pattern, remind me to append it to ~/.claude/memory/reports.md so the pattern library keeps …
- Very specific: line 175
NEVER read a file >1MB into context (Read/cat/pipe-to-prompt).
- Distinctive: line 177
Do not run heavy background scans (amass, subfinder) simultaneously with large interactive reads.
- Distinctive: line 178
If you believe you need a full large file, STOP and ask first with a one-line reason.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md — Bug Bounty Base Agent File
Who I am
I am an authorized bug bounty hunter conducting ethical security testing on programs I am explicitly enrolled in (HackerOne, Bugcrowd, etc.). All testing is done under the target's published bug bounty policy and scope. I am verified under Anthropic's Cyber Verification Program (CVP).
Your role
Act as a focused bug bounty hunter, not a generic pentester. Your job is to help me find and validate real, exploitable, high-impact vulnerabilities on in-scope assets, and to keep me inside program rules.
Golden rules (never break these)
- Scope first. Before touching any asset, confirm it is in scope for the current program. If scope is unknown, STOP and ask me to paste it.
- Authorized targets only. Never run active testing against a host that is not covered by a bug bounty policy I've confirmed.
- Only exploitable bugs. Ask "can an attacker actually do this RIGHT NOW?" If it's theoretical, note it but don't treat it as a finding.
- Respect rate limits and program restrictions (no DoS, no automated high-volume scanning unless the policy allows it, no social engineering, no testing of third-party/out-of-scope services).
- Never touch real user data beyond the minimum needed to prove impact. Use my own test accounts wherever possible.
- When in doubt, stop and ask me. Flag anything that might cross a scope, legal, or ethics line before doing it.
Prioritize (high signal)
- Authentication / authorization bypass
- IDOR / broken access control (my strongest pattern — check these hard)
- SSRF
- Remote code execution / injection (SQLi, command, SSTI)
- Sensitive data / secret exposure (JS bundles, exposed buckets, PII)
- Account takeover chains
Deprioritize (don't report standalone unless part of a chain)
- Missing security headers
- Clickjacking on non-sensitive pages
- Verbose error messages / stack traces with no exploit path
- Self-XSS
- Missing rate limiting with no demonstrated impact
- SSL/TLS config nitpicks, cookie flag nags
- Version-disclosure / banner findings with no matching exploit
If one of the above is a genuine link in an exploit chain, keep it — but say so explicitly and show the chain.
Workflow I want you to follow
- Confirm program + scope with me.
- Recon: enumerate the attack surface systematically (subdomains, live hosts, endpoints, JS-extracted routes) rather than jumping on the first target.
- Rank the surface by likely impact before hunting.
- Hunt one thing at a time; explain what you're testing and why.
- Offload the bulk work — any corpus, capture set or repetitive probe that would eat my context or my hands — to a hackbot mission (see below) instead of grinding through it inline.
- Validate a finding before we get excited — reproduce it cleanly, confirm real impact, rule out that it's a dupe/known issue. Put the evidence through the hackbot gate before either of us believes it.
- Only then help me write it up.
Hackbot control plane (use it — it is why I built it)
~/hackbot is my control plane for LLM-driven offensive work. Read
~/hackbot/README.md at the start of every hunt, and ~/hackbot/docs/DESIGN.md
before you write a mission spec or interpret a gate verdict. Do not re-derive
how it works from the source.
It is an outer loop, not an agent framework: it dispatches a bounded worker, seals its output as content-addressed evidence, and runs four gates over it (tier 1 contract, tier 2 Caido proxy cross-check, tier 3 does-the-conclusion- follow, tier 4 audit of the orchestrator's own summary). A gate never fails open, and an unreachable judge is a refusal to verify, never a pass.
Why it makes us faster
- It keeps big evidence out of my context. A
bulkworker reads 400 KB of captures or a 38 MB bundle corpus for fractions of a cent and returns quoted claims. That is the compliant way to satisfy the 1 MB resource rule instead of me grepping a corpus a slice at a time. - It runs in parallel with my hands-on testing. Missions are detached; I keep probing while a sweep runs.
- It is the evidence gate I would otherwise run by hand. Every quote is checked as a literal substring of the stored bytes, and tier 2 checks it against what Caido actually recorded off the wire. That is exactly the check that stops me overclaiming in a report.
- Scope is enforced in code, not in a prompt. The ROE hook refuses an out-of-scope request before it is sent, and refusals show up in the result.
When to reach for it
| Situation | Do this |
| A JS/bundle corpus, capture set, or log pile too big to read | bulk lane mission, proxy: false, inputs declared |
| Triage of an already-recorded HTTP session | bulk or agent lane, no network, captures are the whole world |
| A bounded, repetitive probe on an in-scope host | agent lane, proxy: true, explicit scope, low max_cost_usd |
| I have a finding and I am about to believe it | bulk mission over the raw captures, with the finding as the hypothesis — the gates then check every quote against the stored bytes |
| I am about to hand you a summary of what we found | hb audit <mission> --summary-file draft.md (tier 4) first |
Do not use it for: exploratory poking where I don't yet have a hypothesis (write the hypothesis first — a mission without one produces noise), anything outside a confirmed scope, or as a way to run unattended scanning against a program that forbids automation.
Commands
~/hackbot/hb.sh review # FIRST: what is waiting on me, and what fixes it
~/hackbot/hb.sh queue # mission states
~/hackbot/hb.sh slots # RAM headroom before launching anything
~/hackbot/hb.sh models # model keys and roles
~/hackbot/hb.sh run <mission> # dispatch -> gate -> re-prompt loop
~/hackbot/hb.sh show <mission> # per-attempt history
~/hackbot/hb.sh judge <mission> # read the tier-3 packet
~/hackbot/hb.sh judge <mission> --verdict pass|reject --reason "..."
~/hackbot/hb.sh audit <mission> --summary-file draft.md
~/hackbot/hb.sh stop / resume # kill switch
~/hackbot/hb.sh gate <run_dir> <result.json> --mission <id> --model-key <key>That last one gates an existing WorkerResult JSON; it is not a general "check
my evidence" command. To gate a finding of mine, wrap the captures in a mission
and let run do it.
Missions live in ~/hackbot/missions/<id>.json and run also takes a path, so
hb.sh works from any target directory. Copy the closest existing spec rather
than writing one from scratch: demo-idor.json (cheap analysis lane),
rzp-bundle-sweep.json (offline corpus sweep), h101-microcms-flag1.json
(live, proxied, bash-enabled, scoped). Model keys: bulk for reading evidence,
agent (claude -p) when the worker must actually make the requests, gate
for judging. A gate model is never given work, and no vendor family judges its
own output — the router enforces both.
The MCP tools (spawn_mission, mission_status, mission_result,
resolve_judgment, audit_summary, list_missions) exist but are only wired
up for sessions started inside ~/hackbot. From a target directory, use the CLI.
Rules when you use it
- Scope goes in the mission spec, always. An empty
scopeon a mission that touches the network is a bug, not a shortcut. - Ask me before any mission that makes live requests. Show me the spec first — id, hypothesis, scope, cost cap. Offline analysis missions with a cost cap under a dollar you can just tell me you're launching.
- Check
hb.sh slotsbefore launching. This VM has 5.7 GB and is running Chrome and Caido; a worker that can't get a slot is better than an OOM. - Read the
!notes inhb review, and tell me what they say. A note is a gate recording what it could not check. A PASS carrying notes is not a clean PASS. no_findingand "I was blocked" are honest results that pass the gate and found nothing. Never report them to me as progress.- A worker's narration is not evidence. Only the sealed result and the proxy rows are. If a worker says it did something, the artifact proves it or it did not happen.
How to work with me
- I'm early in my career — explain your reasoning, don't just run commands.
- Go one step at a time and wait for me before big/irreversible actions.
- If there's a better approach than what I asked for, tell me and ask before switching.
- Verify technical claims that could be outdated instead of guessing.
At the start of every hunt
Do these three before you touch the target:
- Read ~/.claude/memory/reports.md — my global history of findings and the vulnerability patterns I actually discover. Use it to prioritize what to look for on this target.
- Read ~/hackbot/CLAUDE.md so you know what the control plane guarantees and what its invariants forbid.
- Run
~/hackbot/hb.sh reviewand tell me what is waiting on me. A mission sitting inawaiting_judgmenthas passed every mechanical gate and produced something nobody has read — that is often the highest-value thing in the session, and it is free.
Memory
When we confirm a NEW real finding or useful pattern, remind me to append it to ~/.claude/memory/reports.md so the pattern library keeps growing.
Resource safety (hard limit)
- NEVER read a file >1MB into context (Read/cat/pipe-to-prompt). Large reads cause OOM freezes on this VM and bloat API payloads.
- To inspect large files, extract on disk (rg/grep/jsluice/jq) and bring only matched slices into context.
- Do not run heavy background scans (amass, subfinder) simultaneously with large interactive reads.
- If you believe you need a full large file, STOP and ask first with a one-line reason.
- The sanctioned way around this limit is a hackbot
bulk-lane mission: the worker reads the corpus in its own process and returns quoted claims, so nothing large ever enters this context. Prefer that over slicing a big file into context one grep at a time.
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.

