raptor-loop-hunt
An autonomous, looping, multi-altitude security vulnerability hunt for a codebase, packaged as a
Claude Code skill. It replaces the model's default "single pass, summarize, stop" behaviour with an
explicit search procedure: traverse every altitude, generate candidates, adversarially verify them
from raw source, run isolated parallel reasoners, and keep a persistent ledger so each loop is
net-new coverage instead of rediscovery. In practice it finds far more real bugs than a one-shot scan —
the "Karpathy auto-research" methodology.
It triggers whenever you point Claude at source code and want vulnerabilities found — "audit this",
"find every bug", "security-review it", "find anything exploitable".
Install
As a plugin — no clone needed. Add the marketplace and install; Claude Code fetches it for you:
/plugin marketplace add dinosn/raptor-loop-hunt
/plugin install raptor-loop-hunt@raptor
Then /reload-plugins (or restart). The skill auto-triggers on audit requests, or invoke it directly.
Or drop it in as a personal skill — clone into your Claude Code skills directory and it is
discovered automatically on the next session:
git clone https://github.com/dinosn/raptor-loop-hunt ~/.claude/skills/raptor-loop-hunt
Use
Invoke it explicitly:
/raptor-loop-hunt
…or just describe an audit task ("audit ./src for security", "find every exploitable bug in this
service") and the skill triggers on its own. Point it at a repo, a service, a module, or a directory.
What it does
- Multi-altitude generate → judge → verify loop. Candidates are generated at every altitude
(whole-system down to a single function), then adversarially judged and verified from raw source —
never from the generator's own summary.
- Isolated parallel reasoners so independent findings don't contaminate one another.
- Monotonic-scrutiny knowledge base (
raptor-loop-kb) that can only ever raise scrutiny across
runs, never lower it — each loop is net-new coverage rather than rediscovery.
- Disposition ledger (
raptor-loop-ledger) — an engagement-scoped state machine that certifies
every disposition transition (confirm / reject / downgrade / sweep) against an evidence receipt, so a
real bug can't be quietly rejected and a severe finding can't be laundered down to Low.
- Fresh-operator handoff gate — records tacit workarounds and their resolutions, then independently
replays an immutable PoC/lab package without author coaching. Technical validity and owner-delivery
readiness remain separate outcomes.
- Execution-auth broker (
raptor-loop-exec) — a live-PoC command runs only under a typed,
least-privilege capability grant.
- Eval trap battery (
eval/) — 12 deterministic and orchestrator-driven axes (recall,
FP-resistance, false-rejection, counterfeit-evidence, coverage-honesty, severity-downgrade
integrity, …).
The prompt is the program. In an agentic system the model's "algorithm" is whatever you tell it to
be; this skill specifies that algorithm. The quality comes from the structure, not from any single
clever instruction.
Layout
| Path | Purpose |
|---|
SKILL.md | The skill itself — methodology, altitudes, generate→judge→verify loop, severity rubric. |
references/vuln-class-discovery.md | Leaf-level per-class search procedure (source → sink → oracle → variants). |
references/kb-schema.md | Schema + storage for the monotonic-scrutiny cross-run knowledge base. |
references/ledger-schema.md | Schema + the disposition-time transition gate (candidate ledger + evidence receipts). |
references/handoff-reproducibility.md | Fresh-operator replay, intervention receipts, and owner-delivery readiness. |
scripts/raptor-loop-kb | Deterministic cross-run KB helper (can only ever raise hunt scrutiny). |
scripts/raptor-loop-ledger | Candidate state machine — certifies each disposition against an evidence receipt. |
scripts/raptor-loop-exec | Execution-auth broker — least-privilege sandbox plan for live PoCs. |
scripts/test-* | Self-contained tests (no network, no external imports). |
eval/ | The 12-axis trap battery. |
The scripts are pure-stdlib Python and self-contained; the execution broker will optionally use a host
RAPTOR checkout's sandbox when one is present (RAPTOR_DIR), and refuses to run live commands
otherwise.
Track record
So far: 200+ verified vulnerabilities across 40+ real-world codebases (Dec 2025 – Jul 2026).