
Anthropic published new research on December 2 showing that Claude logic bugs detection now works with surprisingly simple setups. In tests on real, previously fixed bugs, Claude running inside a plain agentic code review found far more problems than fancy fuzzing or symbolic execution pipelines. The team also used the method to uncover fresh flaws in macOS, the Linux eBPF verifier, the Rust compiler and an open-source chip security project.
Why Logic Bugs Are So Hard to Catch
Most automated bug hunting looks for crashes or bad memory access. Tools called sanitizers can flag those mistakes in almost any program, because an invalid memory read is wrong everywhere.
Logic bugs are different. They happen when software breaks the unwritten rules of how it should behave, like installing firmware that was never checked or letting a normal user take over a system file. Nothing crashes, so classic tools often miss them, and teams have relied on slow human code reviews to find them.
Anthropic’s researchers, including Nicholas Carlini and Milad Nasr, argue that large language models can fill that gap. A model can read code, guess what the developer intended, and then test whether the code really follows that intent.
How Anthropic Tested Claude on Logic Bugs
The team built a benchmark of 21 historical logic bugs taken from the change history of open-source projects. Every bug had already been patched, so the researchers could check whether an input triggered the old, broken behavior.
They compared four approaches, each run three times per bug:
- Fuzzing, with an AI agent writing the checks that a human would normally add
- Symbolic execution, with an agent writing the test harness for the solver
- Agentic code review, which simply points Claude Code at the source with the ability to run test inputs
- Informal correctness proofs, where the agent writes a proof-style document and turns every shaky claim into a test
Each method ran in a “blind” setting with no hints, and an “informed” setting where the broken rule was described up front.
Simple Setups Won
In the blind setting, agentic code review rediscovered 11 of the 21 bugs, while the fuzzing and symbolic execution setups found none. When the broken rule was given, the best approaches found 20 to 21 bugs, and Anthropic says even the complex pipelines’ successes mostly came from Claude spotting the bug while reading the code.
| Approach | Blind setting (no hints) | Informed setting |
|---|---|---|
| Agentic code review | 11 of 21 bugs | 20 to 21 of 21 |
| Informal correctness proofs | Similar to code review | 20 to 21 of 21 |
| LLM-driven symbolic execution | 0 bugs | 13 of 21 |
| LLM oracles for fuzzing | 0 bugs | Up to 15 of 21 (variant) |
Newer Claude Models Find Far More
The study also tracked how results changed across model generations. Claude Sonnet 4.5 rediscovered just one bug in the blind setting and Opus 4.5 found five, while newer Opus models found 9 to 13 and Claude Mythos models found 11 to 15.
Anthropic checked for memorization by asking each model about the bugs without showing any code. Newer models did remember several older bugs, so the team also reported results on nine bugs no model remembered, and the upward trend held there too.
Across all experiments, the runs turned up 316 unique bugs beyond the intended set. Anthropic says 189 were already fixed or known, and it is reporting the other 127 to maintainers. Claude Mythos 5.2 alone found 241 bugs, and 216 of them were logic bugs.
Real Flaws in macOS, Rust and Linux
To prove the point on live code, the researchers went looking for brand-new bugs. They highlighted four findings:
- Caliptra: a time-of-check-to-time-of-use flaw in this open-source silicon root of trust could let a compromised chip component run firmware that was never verified. It was assigned CVE-2026-11835 and has been patched.
- macOS: a bug in DesktopServicesHelper, a root helper used by Finder, let any local user take ownership of most system files and open a root shell without a password. Apple has patched it as CVE-2026-43783.
- Rust compiler: using the proof technique, Claude found several dozen type safety issues, including a program the compiler accepts even though it touches freed memory. Maintainers are working on a fix.
- eBPF verifier: Claude found over a hundred soundness bugs in the Linux kernel’s eBPF verifier, including CVE-2026-98041, which allowed local privilege escalation.
This builds on earlier security work, such as when Claude found firmware flaws hidden for years. Amazon’s Project C2 effort points the same way.
What This Means for You
If you write or maintain software, the message is practical: start simple before buying specialized tools. Anthropic recommends that defenders first try agentic code review and informal correctness proofs on their own code.
- Point an agent like Claude at a repository and ask it to find places where the code breaks its own rules.
- Let the agent run test inputs so it can confirm a suspected bug instead of just guessing.
- Give it the key invariants when you know them, since hints pushed results close to perfect.
- Pair the results with tools like Claude Code Review and a human check before shipping fixes.
The flip side matters too. If AI can find logic bugs this well, attackers can try the same thing, so patching quickly becomes even more important. You can follow more stories like this on our AI news page.
Sources
Primary source: Anthropic’s research post on finding logic bugs with LLMs.
Conclusion
Anthropic’s study suggests that the best way to use AI for finding logic bugs is also the easiest: give a capable model the code and room to test its ideas. Claude beat complex pipelines on a historical benchmark and found real, now-patched flaws in macOS, Linux and a chip security project. Newer models did much better than older ones, and the researchers expect fully autonomous logic bug discovery to keep improving. For developers and security teams, the smart first step is to try agentic code review on your own codebase.


