Harness skill for vulnerability hunting in your own codebase
# adversarial-code-audit-skill
An agent skill for adversarial, white-box security audits of source code. It turns a coding agent into an auditor that hunts for real trust-boundary failures, tries to disprove its own findings, and reports only what the evidence supports.
A finding here is a demonstrated boundary failure: a lower-trust actor crosses a real trust boundary, along a path traced from entry to sink, past a named control that fails. A missing best practice or a plausible-looking pattern is not a finding.
## What it does
- **Three modes.** *Answer* explains methodology without touching files. *Focused* checks one finding, file, function or diff, including PR regression reviews. *Full* runs the complete audit workflow over a codebase, or over one subsystem or one domain with a restricted scope.
- **A phased workflow** that keeps all state in files, so any agent can stop and resume:
0. Setup → 1. Recon and threat model → 2. Lead generation → 3. Hunt → 4. Coverage critique → 5. Chain → 6. Verify → 7. Report.
- **Independent verification.** The agent that verifies a finding is not the one that found it. Every candidate goes through a disprove pass before it can be `confirmed`.
- **Explicit evidence levels.** E1 (source-traced), E2 (tool-supported) and E3 (reproduced). Memory-safety, race and parser-differential claims need E3. Other source-only confirmations carry a written reproduction waiver. Findings that depend on facts outside the repository stay `needs-validation`, without a severity.
- **Domain and language guidance.** 33 domain files (authz, injection, memory safety, AI/LLM agents, federation, smart contracts and more) and 14 language files (C, C++, Rust, Go, Python, JS/TS, JVM, .NET, PHP, Ruby, Swift/Objective-C, Lua, shell, SQL). Recon selects only the ones the code needs.
- **Capability tiers.** The skill works with read-only access (T0) and gets stronger with a shell (T1), target execution (T2) and sub-agents. The tier changes how evidence is g