Anthropic’s Claude AI identified several dozen type-safety bugs in the Rust compiler while attempting to prove that the language is type-safe. The model produced a few lines of standard Rust code that the compiler accepted despite the program reading invalid memory, a vulnerability that has persisted in the compiler since 2019. Several of the bugs have been fixed, and a patch for the remaining invalid memory issue is in progress.
Applying the same approach to other systems, Claude discovered a privilege-escalation bug in macOS and more than 100 soundness bugs in the Linux eBPF verifier. In a test using 21 previously patched bugs, Claude’s plain code-review method identified 11 of them, while symbolic-execution and fuzzing setups found none.
