Anthropic: Claude Code found 11 of 21 logic bugs blind

Anthropic: Claude Code found 11 of 21 logic bugs blind

Claude Code found 11 of 21 logic bugs in an Anthropic test without clues about the errors or specialized tools. Model-guided fuzzing and symbolic execution detected none in the same scenario; the simpler agentic review achieved the best result.

The result points to an important difference between detecting an anomaly and inferring a rule. A logic bug can leave a program running normally while causing it to violate a condition implicit in its design. Without a generic signal—such as an invalid memory access—automated tools need to know what specific behavior they should consider incorrect.

A benchmark of bugs that have already been fixed

Anthropic assembled 21 historical bugs drawn from SQLite, zstd, brotli, and image-png. The errors were disclosed between 2016 and 2026. For each test, the model received the unpatched code and had to provide an input that would trigger the bug. It did not have access to the change that fixed it.

The evaluation compared the behavior of the patched and unpatched versions. If an input produced a difference in the return value or output, it was considered to have reached the error. Each technique was run three times per bug; in each run, it could submit up to 1,000 inputs without receiving feedback on whether any of them had triggered the problem.

The metric itself comes with a caveat: the evaluator did not directly check whether the model had reasoned about the correct invariant. Anthropic considers producing a valid input to usually imply that reasoning, and says the results generally support that assumption. Even so, the score measures an observable difference between versions, not a formal explanation of the error.

The team divided the test into two conditions. In the “blind” mode, the model saw only the code and had to infer which rule was being violated. In the “informed” mode, it was also given the affected invariant, as would happen if a researcher told it which property to check.

Direct review outperformed specialized pipelines

Anthropic compared four methods using Claude Mythos 5. In agentic review, the model inspected the code, could run inputs against the compiled program, and presented test cases as evidence of its finding. In another method, it wrote informal proofs of correctness and turned claims it could not justify from the code into test inputs.

MethodWithout cluesWith the invariant
Agentic review11 of 2120 of 21
Informal proofs8 of 2121 of 21
LLM-guided symbolic execution0 of 2113 of 21
LLM oracles for fuzzing0 of 211 of 21

The difference does not mean that fuzzing or symbolic execution are generally useless. In this experiment, their model-guided versions required the agent to express what it had discovered through a harness, assertions, and strategies defined in advance. Direct review let the agent choose how to investigate each behavior, rather than channeling its hypotheses through a single mechanism.

The symbolic execution result in the informed mode illustrates the nuance. It found 13 bugs, but Anthropic says the model had already detected them by reading the code, and the solver confirmed only two. A fuzzing variant that gave the agent control over seeds and harnesses reached 15, but those findings also came from the LLM locating the errors and directing the search toward them.

Technical limitations also played a role: fuzzing only explores functions accessible from its harness and observes what the instrumentation allows; symbolic execution depends on the engine’s strategies and the solver’s heuristics. By contrast, an agent reviewing code can form hypotheses about the specific program and test them with inputs, without relying on a generic oracle that already knows the answer.

Anthropic: Claude Code halló 11 de 21 fallos lógicos a ciegas
© Anthropic

Inferring the invariant is the hard part

When Anthropic provided the invariant, agentic review found 20 of the 21 bugs, and informal proofs found all 21. The contrast with the blind mode suggests that testing a hypothesis is easier than deducing which property the code was supposed to uphold. For companies, that difference separates a tool that runs well-defined checks from one asked to discover on its own what is worth checking.

Results also varied by model. In the blind test, Sonnet 4.5 rediscovered one of the 21 errors and Opus 4.5 found five; the more recent Opus models reached between nine and 13, and Claude Mythos models between 11 and 15. Anthropic also examined the nine bugs that no model claimed to remember: Claude 4.5 and Sonnet 5 found between zero and one, compared with between two and five for Opus 5 and later models.

The possibility that a model remembered published errors matters because the benchmark uses historical bugs. Anthropic asked its models about them in a conversation without code: Claude 4.5 versions remembered none; Sonnet 5 remembered three, and Opus 5 and later models remembered between eight and ten of the ten errors published between 2016 and 2024. The company says the trend holds when looking at the subset that is not remembered, although those counts are small.

Beyond the benchmark, Anthropic verified additional findings in the four targets studied: Caliptra, macOS, eBPF, and the Rust compiler. ExplainX, in its summary of Anthropic’s publication, reports 316 unique errors in older versions; 189 had already been fixed or were known when reproduced in current versions, and Anthropic was reporting the remaining 127 to their maintainers.

Four cases, four kinds of behavior

In Caliptra, an agentic review detected a problem in the ROM firmware update flow. According to ExplainX, the ROM verified an image in a temporary area and then reread it to load it; a compromised component could change its contents between the two operations. The maintainers assigned the identifier CVE-2026-11835 and fixed the bug.

ExplainX also describes a finding in macOS DesktopServicesHelper, identified as CVE-2026-43783. The helper process accepted requests from any process in a sandboxed environment and changed file ownership for the requester without checking the path. The bug was fixed. This is an example of why protecting a program against memory corruption is not enough to detect errors in authorization and access rules.

In the Rust compiler, informal proofs uncovered several dozen type-safety issues. One allowed the compiler to accept a program that uses freed memory because it failed to detect the relationship between a move of ownership inside an index expression and a borrow of the same array. The authors describe them as bugs, not security vulnerabilities; the maintainers were working on a patch.

In the Linux eBPF verifier, the same method revealed more than a hundred soundness issues, all of which were reported. One, CVE-2026-98041, relates to a 2020 rule that treated a 32-bit comparison of a map pointer as if it were a 64-bit null check. According to ExplainX, this made it possible to skip an executable path and could facilitate local privilege escalation.

What changes for software teams

Anthropic’s practical recommendation is to start with simple methods before investing in specialized tools. For a team, that means an agent with access to the code and the ability to compile and run tests can serve as an additional layer of review, particularly when system rules are not expressed in assertions or automated checks.

But the study does not show that it is enough to leave an agent unsupervised in production. The test was conducted on 21 historical bugs and four open-source targets; Anthropic also acknowledges that even recent models struggle to generate useful invariants and may benefit from human assistance. The results describe a research capability, not a guaranteed detection rate for every product.

For companies, the trade-off is between reducing the initial analysis effort and managing the consequences of findings. An agent can produce reproducible inputs rather than merely flag suspicious lines, but every report still needs review: teams must confirm that it violates expected behavior, assess its scope, and coordinate a fix. The 127 reports Anthropic was still communicating show that triage also consumes capacity.

The test leaves a concrete priority for anyone evaluating these systems: measure not only how many cases they report, but also whether their inputs reproduce the problem and whether their hypotheses about expected behavior are correct. In Anthropic’s experiments, providing the invariant markedly changed the results; therefore, real autonomy depends on whether the agent can infer rules that the team may never have written down.

Sources: Anthropic, ExplainX, Neue Alchemy