Hunt bugs with Claude Code, scope enforced in code
Claude-BugHunter is a Claude Code skill bundle for authorized bug hunting; you install the plugin, check scope with /scope, map the surface, then gate findings with the 7-Question Gate before reporting.
TL;DR
Claude-BugHunter (MIT) is a Claude Code skill bundle for bug hunting and external red-team work: 85 skills, 16 slash commands and a deterministic engagement engine. Install it as a plugin, describe your authorized target in plain English, and the right skills load by topic. Use it only on assets you own or have written authorization to assess.
Why this repo matters
The README says most bug-hunting Claude setups are either one big generic "security" prompt or 30 bookmarked reports you re-read every engagement. This bundle splits the work into four layers: think (bb-methodology, redteam-mindset), hunt web apps (58 hunt-* skills curated from 681 disclosed-report patterns), hit the perimeter (enterprise platform chains) and ship it (triage-validation, reporting, evidence-hygiene). Scope is checked by code in engine/scope.py rather than by LLM judgment.
Best practices
- Work only on assets you own or are authorized to assess. The README's Authorization section says the same, and
/hunttreats invoking it as asserting written authorization. - Check scope first.
/scope <asset>runsengine/scope.py, which is deny-wins and default-deny, and exits non-zero for an out-of-scope asset. - Let the skills auto-load. The README says no invocation by name is needed; describe what you are testing in plain English.
- Run the 7-Question Gate before any report. The
triage-validationskill says one wrong answer kills that finding (not the engagement). - Keep the engine read-only. The engine README says hunt agents are read-only by default and
--allow-intrusiveis off by default. - If a refusal appears on authorized work, the README points to Anthropic's Cyber Verification Program instead of rewording the request.
How-to
Where do I start?
1. How do I install it?
In Claude Code, run the two plugin commands from the README. This loads all 85 skills and 16 commands under the claude-bughunter: namespace.
/plugin marketplace add elementalsouls/Claude-BugHunter
/plugin install claude-bughunter@elementalsouls
The install asks for an optional HackerOne API username and token; the README says to leave both blank if you do not need private-program access. Option B is a clone plus bash scripts/install.sh, which copies skills into ~/.claude/ and also gives you the hunt scaffolder. The python3 engine/... examples below assume a clone, so git clone https://github.com/elementalsouls/Claude-BugHunter and cd into it first; with plugin-only install, use the namespaced slash commands (for example /claude-bughunter:scope).
Next: How do I keep it in scope?
Try it
Create a scope.md for a practice target the README names, such as OWASP Juice Shop running locally, with one in-scope host and one out-of-scope host. Run python3 engine/scope.py against both and confirm the second prints OUT-OF-SCOPE.
Pitfalls
- Plugin install does not include the
cbhCLI or thehuntscaffolder:cbhcomes frompipx install claude-bughunter, andhuntonly from a clone. - The README warns Anthropic's cyber safeguards can block authorized offensive work, and on Opus 5 some higher-risk requests fall back to Opus 4.8.
- Internal Active Directory attacks, C2, post-exploitation, evasion and iOS pentesting are out of scope by design.