When software breaks an implicit rule about how it is supposed to behave — an invariant, in programmer's terms — the result is a "logic bug." These are notoriously hard to find automatically: unlike memory-safety errors, they do not crash a program or trigger a sanitizer, so the usual bug-detection tools have nothing to grab onto. Anthropic's Frontier Red Team set out to test whether large language models can fill that gap, and found that the simplest method worked best.
In research published on December 2, the team built a benchmark of 21 historical logic bugs collected from the change history of open-source projects: nine in SQLite, three in zstd, one in brotli and eight in image-png, disclosed between 2016 and 2026. Each technique was given only the unpatched source code and asked to submit an input that would trigger the bug, with no access to the patch and no feedback on whether an attempt succeeded until the run ended.
The headline result is that "simplicity wins." Running Claude inside a standard agentic harness — Claude Code — with the ability to read source and run test inputs rediscovered 11 of the 21 bugs blind, with no hints or information about the bug. More elaborate techniques, including LLM-generated assertions for fuzzing and LLM-driven symbolic execution, rediscovered none in the same blind setting. When researchers supplied the violated invariant explicitly, symbolic execution found 13 bugs and a fuzzing variant found 15 — but the team notes those discoveries came from the LLM spotting the bug during source review and feeding it to the tool, not from the fuzzer or solver doing genuine work.
The study also measured how the ability has improved across model generations. In the blind setting, older and smaller models rediscovered far fewer bugs: Claude Sonnet 4.5 found one and Opus 4.5 found five, while newer Opus models found nine to 13 and Claude Mythos models 11 to 15. The team checked for memorisation and found that Claude 4.5 models remembered none of the bugs and Sonnet 5 remembered about as many real ones as invented ones, while Opus 5 and later models remembered eight to ten older bugs — but remembering a bug was neither necessary nor sufficient to rediscover it.
Beyond the benchmark, the researchers report discovering previously unknown logic bugs in four real targets: Caliptra, an open-source silicon root-of-trust design, as well as macOS, eBPF and the Rust compiler. The paper is authored by Marius Fleischer, Alex Matrosov, Nicholas Carlini and Milad Nasr. Anthropic has recently drawn attention for a separate project, Glasswing, in which it says an unreleased model called Claude Mythos Preview has found thousands of high-severity vulnerabilities — a reminder that the company views offensive and defensive cyber capability as a frontier issue.
The practical recommendation is deliberately unglamorous: defenders should start with a simple agentic code review over their own codebase before investing in specialised tooling. The finding matters because logic bugs are exactly the class of flaw that automated testing has historically missed, and because multi-agent and model-routing systems are becoming common — a bug that survives in one handoff can propagate through the rest. The counterweight is that these are Anthropic's own evaluations on its own models, and the benchmark is small; the result is a strong signal about where the field is heading, not a settled measure of how safe any given codebase has become.
Comments (0)
Log in to join the discussion
Log InNo comments yet