Anthropic's open-source framework for AI-powered vulnerability discovery
TL;DR Highlight
Anthropic open-sources a Claude pipeline that finds, verifies and patches vulnerabilities
Who Should Read
A security or backend developer who wants to build an LLM-agent pipeline that automatically scans their own codebase for vulnerabilities
Core Mechanics
- Find-to-patch in one kit
- It ships Claude Code skills: /quickstart, /threat-model, /vuln-scan, /triage, /patch and /customize.
- The autonomous harness runs recon → find → verify → report → patch.
- Default setup targets C/C++ memory bugs
- It builds in Docker and uses ASAN (a C/C++ memory error detector) to confirm crashes.
- It won't work on every codebase out of the box, so use /customize to change language, detector or vuln class.
- Finder and verifier are separate agents
- A find agent must make an input crash 3 out of 3 times.
- A separate grader agent reproduces it in a fresh container, receiving only the PoC (proof-of-concept input).
- Threat model comes before scanning
- The docs say a threat model cuts false positives.
- Static scans only read source without building or running it, so expect more false positives on non-canary targets.
- Autonomous agents run only inside a gVisor sandbox
- Pipelines that execute target code refuse to run outside gVisor (a container isolation runtime) by default.
- Agent egress is restricted to the Claude API.
- Triage and patching are still unsolved
- Severity and prioritization depend on your environment, so they can't be fully automated.
- Many partners called these two steps their bottleneck, and the docs say to budget real engineering time.
- Patching surfaces deeper bugs
- Fixed bugs can't be re-found, so new and typically deeper issues surface.
- As you run more waves, findings will likely go down while complexity goes up.
Community Reactions
- Treat it like a shop jig and build your own
- One commenter said to use this for ideas, then build a harness fitted to your own workflow.
- Cost questions and the repo's guideline
- A commenter quoted the repo's guideline of roughly 10K uncached input and 2K output tokens per minute per agent.
- They guessed hundreds of dollars with Opus and thousands with Mythos.
- You need both a good harness and good triage
- An auditor said that without a good harness you get little out of codex or Claude.
- They warned weak triage becomes 'vibe auditing' whose false positives exhaust developers.
- False positives were painful in practice
- One commenter built a similar tool using Claude + MCP and struggled with false positives, then got better results from nvidia-hosted models.
How to Apply
- Build a threat model first
- Clone the repo, run claude, and start with /quickstart.
- Then run /threat-model bootstrap on your service path to produce THREAT_MODEL.md.
- Run one static scan and triage pass
- Run /vuln-scan on your own code.
- Feed VULN-FINDINGS.json into /triage to remove duplicates and false positives.
- Port it to your stack with /customize
- Answer three questions: what signals a finding, what a PoC looks like, and how the target is built and run.
- Pass those answers and THREAT_MODEL.md to /customize, then validate with a --runs 1 smoke run.
- Record unfixed findings in known_bugs
- Write findings you can't patch right away into the target's known_bugs.
- This steers later scans toward newer bugs.
Try It
# Run in Claude Code after opening the repo (the README's Day 1 steps, not a paper method)
# Install
git clone https://github.com/anthropics/defending-code-reference-harness
cd defending-code-reference-harness
export CLAUDE_CODE_SUBAGENT_MODEL={{model-id}}
claude
# Type the following inside the claude prompt
> /quickstart
> /threat-model bootstrap {{path to your code}}
> /vuln-scan {{path to your code}}
> /triage {{path to your code}}/VULN-FINDINGS.json --repo {{path to your code}}
> /patch ./TRIAGE.json --repo {{path to your code}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques