Anthropic says plain Claude Code review finds 11 of 21 logic bugs
In short
- Anthropic's Frontier Red Team says that for finding logic bugs (flaws where a program runs fine but does the wrong thing), the simplest set-up worked best: pointing Claude Code, its coding agent, at the source and asking it to review. With Claude Mythos 5 it rediscovered 11 of 21 since-patched bugs with no hints.
- LLM-driven fuzzing and LLM-driven symbolic execution, the more elaborate pipelines, found none of the 21 in the same blind setting.
- The company also reports new bugs found this way in Caliptra (an open-source security chip design), macOS, the Linux eBPF verifier and the Rust compiler. The post is dated 2 December 2026.
- The catch: Anthropic tested its own models on a 21-bug benchmark it built itself, and the numbers have not been independently checked.
11 of 21 bugs rediscovered blind by agentic code review (Claude Mythos 5); 0 of 21 blind, for LLM-driven fuzzing and symbolic execution; 1 to 15 blind rediscoveries, from Claude Sonnet 4.5 (1) to the Claude Mythos models (11 to 15); 316 unique bugs found across all runs, in outdated copies of the targets
What is a logic bug, and why do tools miss it?
The post draws the line this way. A memory bug, such as reading memory that should not be read, is wrong in any program, so general tools can spot it. Sanitizers, for example, watch a running program and flag invalid memory access. Anthropic calls such automatic checks "bug oracles": something that can say "this behaviour is wrong" without knowing what the program is for.
A logic bug breaks an unwritten rule of the specific program, which the post calls an invariant. Because the rule is specific and usually implicit, no general oracle exists. The post says finding these bugs mostly relies on human code review, which does not scale to large codebases. Its argument is that a language model can read the code, infer the intent and test its own guesses.
The test
The team collected 21 logic bugs from the change history of four open-source projects, all since patched: SQLite (9), zstd (3), brotli (1) and image-png (8), disclosed between 2016 and 2026.
The post notes that the grader does not check that the model understood the bug, only that its input reached the patched code path. It says the other results suggest that assumption generally holds.
Four techniques, one result
All four ran with Claude Mythos 5 (the model for the first experiment):
- LLM oracles for fuzzing: fuzzing feeds a program mutated inputs and watches for failures. Here an LLM agent writes the assert statements (checks in the code) that tell the fuzzer what counts as wrong. Eight hours in total.
- LLM-driven symbolic execution: a tool explores code paths using symbolic inputs and a solver; the LLM writes the harness with the invariants it inferred. Same time budget.
- Agentic code review: the agent reads the source, runs test inputs against the compiled program and submits the interesting ones.
- Informal correctness proofs: the agent writes a natural-language, maths-style proof that the program keeps its invariants; each claim it cannot back up from the code becomes a test input. The proof is not formally checked and need not be correct, the post says; it is a tool for surfacing bugs.
In the blind setting, agentic code review rediscovered 11 of 21. Fuzzing and symbolic execution scored zero unless told what to find. Given the invariant, the post says agentic code review and the proof method each found 20 to 21 of 21, and symbolic execution found 13. A variant of fuzzing that was also given control over seeds and harnesses rediscovered 15.
Anthropic adds a caveat on those informed results: the symbolic execution engine confirmed only two bugs and added nothing beyond what the LLM had already found while reading the source. The same held for the fuzzing variant: all 15 came from the LLM spotting the bug and forcing the fuzzer to it. The post blames the pipelines' rigid structure and the limits of the underlying tools: fuzzers can only reach what the harness exposes, and symbolic execution is limited by fixed strategies and solver heuristics.
Newer models do better
For agentic review in the blind setting, the post reports a steady rise across model generations:
Outside the 21 benchmark bugs, the post says Mythos models found 54 to 241 verified bugs, against 17 to 18 for the Claude 4.5 generation. Claude Mythos 5.2 found 216 logic bugs out of 241; Claude Mythos Preview found 95 out of 118. All generations found a similar number of "specification conformance" bugs, so the gain is in logic bugs. Anthropic reads this as better hypothesis-forming: in the informed setting the testing step was easy (20 to 21 of 21), so the hard part is guessing the rule from the code alone.
Across every technique and model the runs found 316 unique bugs in the outdated copies of the targets. Anthropic says 189 are already fixed or known, and it is reporting the other 127 to maintainers.
Did the models just remember the bugs? Anthropic checked by asking each model about the bugs without showing code. Claude 4.5 models remembered none. Claude Opus 5 and later remembered 8 to 10 of the 10 bugs made public between 2016 and 2024, and at most one of the 11 newer ones. On the nine bugs no model remembers, Claude 4.5 models and Sonnet 5 rediscovered zero to one, and Opus 5 and later two to five. The post adds that remembering a bug is neither necessary nor sufficient: Opus 4.5 rediscovered 4 of the 10 older bugs without remembering any. The post says the first experiment is less exposed to memorisation, since all four techniques use the same model.
New bugs in real software
The post describes four findings that were not public when found.
- Caliptra: in this open-source silicon root of trust (a chip's first, most trusted layer), the post says Claude found a time-of-check-to-time-of-use bug in the ROM's firmware-update flow. The ROM verifies a new firmware image at a staging address, then reads the same address again to load it. In between, a compromised component on the same chip could overwrite it, so the root of trust would run firmware it never verified. Reported, assigned CVE-2026-11835 and patched, per the post.
- macOS: Claude independently found CVE-2026-43783 (now patched) in DesktopServicesHelper, a root helper used by Finder. The post says any local user could take ownership of files not protected by System Integrity Protection, which can lead to a root shell.
- Rust compiler: using the proof technique, Claude found several dozen type-safety issues; the post shows a short program the compiler accepts although it uses freed memory. Reported; a patch is being worked on for that one.
- eBPF: the proof technique found over a hundred soundness bugs in the Linux eBPF verifier, which checks code before it runs in the kernel. One, CVE-2026-98041, applied a rule for 64-bit pointer checks to 32-bit comparisons. It allows local privilege escalation.
What Anthropic recommends
Defenders should first try agentic code review and informal correctness proofs on their own code before investing in specialised tooling. The post expects the share of logic bugs found without human help to keep growing, while saying even recent models are limited in producing useful invariants and benefit from human assistance.
Reading the result
- Anthropic ran the test on its own models and wrote the benchmark; no outside group reproduced it in this post.
- The benchmark has 21 bugs in four projects, and the results are totals over three runs per bug.
- The fuzzing and symbolic execution set-ups are Anthropic's own LLM-driven designs. The post does not claim classic tools run by human experts do worse.
Terms in plain English
- Logic bug: the program runs without crashing but breaks a rule it is supposed to follow. (Our wording.)
- Invariant: a rule that must always hold, such as "the firmware that runs is the firmware that was checked". (Our wording.)
- Bug oracle: an automatic check that recognises wrong behaviour, such as a crash.
- Fuzzing: testing by feeding a program huge numbers of mutated inputs. (Our wording.)
- Symbolic execution: running code on symbols instead of values, with a solver finding inputs that reach a chosen state. (Our wording.)
- Blind / informed: the model is told nothing about the bug, or is given the rule it breaks.
- Time-of-check-to-time-of-use: data is verified, then changed before it is used.
Where things stand
Anthropic is reporting the remaining 127 non-benchmark bugs to maintainers, and says the eBPF bugs are being patched. It says the trend suggests future models will find logic bugs fully autonomously. We did not read the chart data behind the figures or have access to the benchmark.
Official channels of Anthropic: Website · LinkedIn · X · YouTube
Sources
- Finding logic bugs without general-purpose bug oracles, Anthropic Frontier Red Team (Fleischer, Matrosov, Carlini, Nasr), 2 December 2026
Sources
Related stories
- LLM-tuned fluid solver cuts cylinder-wake error from 0.38 to 0.04
- AI agent turns fixed Linux bugs into Android attacks, authors say
- ForceHarness lets API-only AI models use touch on a robot arm
- Chrome AI bug finder and fuzzer near tie: 45 vs 37, 25% shared
- Waddle Labs says AI agents write robot code in about 20 minutes
- depthfirst's AI agent finds 21 new FFmpeg bugs for about $1k
More from AI and Security
- AI tool that turns patches into exploits unaided, Google says
- AI pentest tool traffic up 30x since October, Cloudflare says
- Two PHP engine flaws allow remote code execution; fixed 21 Oct
- Anthropic says NIST curve seeds came from a clock-seeded RNG
- One extension hijacked five browsers' AI assistants, firm says