Anthropic researchers have demonstrated that large language models (LLMs) can autonomously identify complex logic bugs in critical software, uncovering previously undisclosed vulnerabilities in macOS, the Linux kernel, and the Rust compiler. By utilizing advanced reasoning techniques, the team successfully identified flaws that had remained undetected by traditional security analysis methods.
The research focused on four distinct methodologies for detecting logic bugs, which occur when software violates implicit functional invariants. The most effective approach, termed agentic code review, allowed the model to analyze source code independently to form and test hypotheses about potential vulnerabilities. A second successful method involved informal correctness proofs, where the model was tasked with verifying the logical consistency of the code.
To validate these techniques, the team conducted a benchmark test using 21 known logic bugs from projects including SQLite, image-png, zstd, and Brotli. When provided with the unpatched source code, the Claude Mythos 5 model successfully rediscovered 11 of these bugs using agentic code review. When the researchers provided the specific invariants—the rules the code was expected to follow—the success rate for informal correctness proofs reached 100 percent, identifying all 21 benchmark bugs.
Beyond the benchmark, the testing process surfaced 316 additional, previously unknown bugs in older versions of various projects. After filtering for duplicates and known issues, Anthropic reported 127 previously undisclosed vulnerabilities to the respective maintainers. Among these were significant flaws in Caliptra firmware, macOS, and the Linux eBPF verifier.
The identified macOS vulnerability could allow a local user to bypass System Integrity Protection, potentially granting them unauthorized file ownership and root-level access. In the Caliptra project, researchers found a flaw in the firmware update mechanism that could permit the execution of unverified code on the chip’s root of trust. Both of these issues were confirmed as patched by the time the findings were released.
The research also highlighted critical issues in core infrastructure components. Informal correctness proofs identified over 100 bugs within the Linux eBPF verifier, which is responsible for ensuring that programs running in the kernel do not compromise system stability. Maintainers have since addressed the specific eBPF bug highlighted by the researchers.
In the Rust compiler, the team uncovered several dozen type-safety issues. One notable finding revealed that the compiler could accept code written in safe Rust that subsequently accessed freed memory, a significant violation of the language's safety guarantees. At the time of the report, Rust maintainers were actively developing a patch to resolve this vulnerability.
To ensure the results were not simply a matter of the models recalling information from their training data, the team conducted recall tests. They asked the models about the 21 benchmark bugs without providing the source code. The results showed that while newer models could recall some older bugs, they struggled significantly with vulnerabilities disclosed after 2024, confirming that the models were actively reasoning through the code rather than relying on memorization.
The performance of the models scaled with their complexity. While earlier iterations like Claude Sonnet 4.5 struggled to find bugs in the benchmark, Claude Mythos 5.2 demonstrated a high degree of efficacy. The researchers concluded that current LLMs are capable of identifying logic bugs without the need for human guidance or specialized, project-specific tooling.
Despite these successes, the researchers noted that the ability for a model to form an accurate hypothesis based solely on raw source code remains a primary challenge. Nevertheless, the study indicates a shift in how automated security testing can be conducted, moving from traditional fuzzing and symbolic execution toward agentic, reasoning-based approaches that can interpret the intent behind complex codebases.



