Skip to content

Vulnerabilities & Patches

Anthropic’s AI code review finds undisclosed flaws in macOS, Linux, Rust, and Caliptra

Help Net Security reported the research covering 21 bugs disclosed from 2016 through 2026.

https://breach-signal.com/vulnerabilities/anthropic-ai-review-linux-rust-caliptra-macos-flaws/

Share

Key facts

  • Anthropic tested four LLM-based methods for software logic bugs and found undisclosed flaws in Caliptra, macOS, the Linux eBPF verifier, and the Rust compiler.
  • A macOS flaw found by agentic code review could let a local user access files outside System Integrity Protection and obtain root access.
  • A Caliptra firmware update flaw found by agentic code review could let the chip root of trust run unverified firmware.
  • Patches for both the Caliptra and macOS flaws existed before Anthropic published its report.

Anthropic’s researchers tested four LLM-based methods against 21 bugs disclosed from 2016 through 2026, and the testing uncovered previously undisclosed logic flaws in macOS, the Linux eBPF verifier, the Rust compiler, and Caliptra firmware. Help Net Security reported the research.

The macOS flaw found by agentic code review could let a local user access files outside System Integrity Protection and obtain root access. The Caliptra firmware update flaw found by agentic code review could let the chip root of trust run unverified firmware.

One Rust finding showed the compiler accepted code written in safe Rust that used freed memory. Anthropic said Rust maintainers were developing a patch for that issue when the report came out.

Informal correctness proofs found more than 100 bugs in the Linux eBPF verifier, which decides whether kernel programs run safely. Maintainers fixed the eBPF flaw described in Anthropic’s report. Informal correctness proofs also revealed several dozen type-safety problems in the Rust compiler.

In blind trials, agentic code review rediscovered 11 of 21 bugs while informal correctness proofs found eight. With invariants supplied, informal correctness proofs found every benchmark bug while agentic code review found 20.

Anthropic tested agentic code review in blind mode across nine models. During blind testing, Claude Sonnet 4.5 found one benchmark bug, Claude Opus 4.5 found five benchmark bugs, and Claude Mythos 5.2 found 15 benchmark bugs. On the Claude Mythos 5 benchmark, the agentic review method and the informal proof method worked better than the other two techniques.

The benchmark runs turned up 316 distinct bugs beyond the original set, all in older project versions. Anthropic said 189 of those bugs were either fixed already or known to maintainers, and Anthropic reported the other 127 bugs itself.

SQLite supplied nine of the 21 benchmark bugs, image-png supplied eight, zstd supplied three and Brotli supplied one. Logic bugs happen when software breaks a rule it should follow, known as invariants that are often implicit in code.

Researchers gave the model unpatched source code while withholding the patch. A rediscovered bug meant a submitted input produced output different between patched and unpatched versions, and the grader treated that output difference as proof the input triggered the bug. Researchers assumed a successful input showed correct reasoning about the violated invariant.

Each method ran three times per bug, and the team counted every rediscovery a single time. The model sent up to 1,000 inputs per run, and scoring happened after the run ended.

In blind trials, the model inferred the invariant from the source code alone, and agentic code review performed best using source code alone. When researchers supplied invariants, they provided them together with the code.

Neither LLM-assisted fuzzing nor LLM-driven symbolic execution found bugs in blind trials. In the symbolic execution trial, the model identified 13 bugs and the engine confirmed two of them. Fuzzing rediscovered one bug when invariants were supplied.

Without source code, Claude Sonnet 4.5 and Claude Opus 4.5 recalled no benchmark bugs. Claude Sonnet 5 recalled three bugs without source code, matching how often it claimed to remember made-up bugs. Opus 5 and later models recalled eight to 10 of 10 bugs disclosed through 2024 and at most one of 11 disclosed after that. Every model failed to recognize nine benchmark bugs in the recall test.

During code review on those nine bugs, Sonnet 4.5 found none. Opus 4.5 found one. Claude Mythos 5.2 found five.

An LLM judge checked the findings and removed duplicate reports. Anthropic’s researchers said results indicate recent models can detect logic flaws without human oversight or dedicated tooling.

The researchers said forming a hypothesis from source code alone remains a continuing challenge. They described their approach as “capable of identifying logic bugs without human guidance or specialized tooling.”

Patches for both the Caliptra and macOS flaws existed before Anthropic published its report.

Was this helpful?

Join the discussion

Please read our Comment Policy before commenting. First-time comments are held for moderation. By posting a comment you agree to our Terms of Use and Privacy Policy, which explain how your name, email address and comment are used.

Your email address will not be published. Required fields are marked *