hackbot
CLAUDE.md0 starsChanged 3 months agoMITView on GitHub
A control plane for LLM-driven offensive security work, with a human in the loop. It is not an agent framework: the inner loop already exists (claude -p, or one HTTP call). What lives here is the outer loop -- which missions exist, who runs them, under what budget, producing what evidence, verified by whom, escalated to a person when. README.md is the short version; read docs/DESIGN.md before changing anything, because it says why each part is shaped the way it…
In this repository15 other files it gives its agents.
- templates/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
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 65
Every test of a judge needs both halves: a lie it must catch and a truth it must let through.
≈ “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
hackbot
A control plane for LLM-driven offensive security work, with a human in the
loop. It is not an agent framework: the inner loop already exists (claude -p,
or one HTTP call). What lives here is the outer loop -- which missions exist,
who runs them, under what budget, producing what evidence, verified by whom,
escalated to a person when. README.md is the short version; read
docs/DESIGN.md before changing anything, because it says why each part is
shaped the way it is.
The user's global ~/.claude/CLAUDE.md applies here too, and its resource rule
is not advisory: this VM has 5.7 GB and runs Chrome and Caido alongside.
The invariants
These are the rules the design rests on. Code that breaks one is wrong even if it passes its tests, and each exists because it already failed once.
- A gate never fails open. Anything a gate cannot verify becomes a failure or is checked another way. It is never skipped. Tier 2 once passed a verdict while silently skipping nine artifacts, including the one holding the claimed flag, because they could not be bound to a proxy row.
- An unreachable judge is not approval. A provider error, timeout or 429 in
tiers 3-4 must surface as a refusal to verify --
judge_unavailable, an escalation, a raisedProviderError. Never a pass, never a default verdict. - Blocked is not passed, and neither is
no_finding. The gate judges whether a report is honest; the runner judges whether the mission succeeded. An honest "I was blocked" passes the gate and completed nothing. - A quote is a literal substring. Claim verification is
instr/mmap.findover the stored bytes. Never normalise whitespace, strip punctuation, or match a pattern to make a worker pass. When a model paraphrases, fix the contract or improve the gate's feedback -- never the check. - Allow is silent in
hb/roe.py. The hook emits onlydeny. An explicitallowwould override the permission allowlist and turn a scope check into blanket approval. - Structure is enforced in code, not in prompts. Role separation (a gate
model is never dispatched work), family independence (no vendor audits its own
output), scope, and cost caps live in
router,slots,roeandmission-- where a model cannot talk its way around them. Do not restate them as prompt text and delete the check. - Evidence is immutable and content-addressed. Gates run on a
SealedResult, never on a worker's raw output. Per-attempt snapshots are never overwritten, and an aborted or halted run must not mutate an earlier result's state. - Bounded memory everywhere. Artifacts are hashed, searched and tailed --
mmap, SQLinstr(), cappedread(n). Neverread_bytes()a file you are about to truncate, and never pull a response body into the process to test it. - The Caido database is read-only. Open with
mode=ro. Its value is that the worker cannot write to it; neither may we. - Gemini gates, never works. The user set this rule;
router.completeenforces it by role, not by convention.
Working in this repo
- Dependencies are pydantic and httpx. The MCP server and the JSON-RPC it speaks are hand-written for that reason. Prefer 150 lines you can read to a package you cannot vet.
- Scope semantics live in
hb/scope.py, shared by the ROE hook and tier 2's SQL. If the two ever disagree, a worker can obey the rules and still produce evidence the gate calls out of scope. stdoutis the wire inhb/mcp_server.py. Nothing may print. Diagnostics go to stderr.- Tests are plain executable scripts -- no pytest. They print
[PASS]/[FAIL], return a non-zero exit on failure, take a model key asargv[1], and skip rather than fail when a provider or the proxy is unreachable. Every test of a judge needs both halves: a lie it must catch and a truth it must let through. The calibration case is how a judge that flags everything gets found. - Comments explain why, and name the failure. The codebase's comments carry the incident that motivated the code, because that is the thing a reader cannot reconstruct. Match that. No emoji.
- Claims must match measured output. README and DESIGN numbers, commit messages and status lines state what was actually run and observed. If a result is from a test fixture and not from the committed example, say so.
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.

