Anthropic: plain Claude Code review beat fuzzing at finding logic bugs
On 21 known bugs, the agent found 11 with no hints while LLM-guided fuzzing found none. The same methods found new macOS, eBPF and Rust flaws.
By VibeLeaderboard
Dec 2, 2026, 9:19 PM UTC
Anthropic researchers tested several ways to use AI models to find logic bugs, and the simplest one won. Claude, running in Anthropic's Claude Code agent with access to the source and the ability to run test inputs, rediscovered 11 of 21 known logic bugs without any hint about what to look for. Two more elaborate setups, one that had the model write checks for a fuzzer and one that paired it with a symbolic execution engine, rediscovered none under the same conditions.
A logic bug is a flaw where software keeps running but breaks an unstated rule about how it should behave, such as installing firmware other than the image it verified. Memory errors are easier to catch automatically because tools called sanitizers flag any invalid memory access in any program. Logic bugs depend on each program's own rules, which are usually implicit, so finding them has mostly fallen to human code review, which does not scale to large codebases.
The benchmark used 21 bugs that have since been patched: nine in the SQLite database, three in the zstd compressor, one in brotli and eight in the image-png decoder. The model saw only the unpatched code and had to prove each find by submitting an input that made the old and patched versions behave differently. It could submit up to 1,000 inputs per run, got no feedback during the run, and each technique ran three times.
The results point to where the difficulty lies. When told which rule each bug violated, agents found 20 or 21 of the 21, so testing a hypothesis was not the hard part. Forming one from the code alone was. In that blind setting, Claude Sonnet 4.5 found one bug, Opus 4.5 five, newer Opus models 9 to 13 and Anthropic's Claude Mythos models 11 to 15. Newer models remembered most of the older bugs from training, but the trend held on the nine bugs no model remembered: Claude 4.5 models and Sonnet 5 found zero or one of them, while Opus 5 and later found two to five.
The fuzzing and symbolic execution setups did find bugs once they were told the invariant, but the researchers trace those finds to the model reading the source and steering the tool to an answer it had already spotted. The added machinery mostly forced the model to route its findings through a fixed pathway.
The same methods found new problems in real software. Claude found a flaw in Caliptra, an open-source hardware root of trust, where firmware was read once to verify it and again to install it, leaving a window to swap in unverified code; it was assigned CVE-2026-11835 and patched. In macOS, it found CVE-2026-43783 in a root helper used by Finder, which let any local user take ownership of system files outside System Integrity Protection and open a root shell; it is now patched. A second technique, in which the model writes an informal proof that the code is correct and tests every step it cannot justify, surfaced over a hundred soundness bugs in the Linux eBPF verifier, including CVE-2026-98041, a local privilege escalation, and several dozen type-safety issues in the Rust compiler. Separately, the benchmark runs turned up 316 unique bugs in outdated versions of the test programs; 189 were already fixed or known, and Anthropic says it is reporting the other 127.
Anthropic's advice to security teams is to start with plain agentic code review and informal correctness proofs on their own code before buying or building specialized tooling. The evidence has limits: the benchmark is 21 bugs from four projects, it was run by the company that makes the models, and its grader assumed that triggering the patched behavior meant the model had understood the broken rule without checking that assumption. The new CVEs are the stronger evidence, since maintainers confirmed and fixed them.