AWS describes Project C2, an AI tool that finds rare code bugs

In short

800+ bugs found, AWS says; 22 open source projects scanned; 9 thread-safety bugs in one Rust profiling library; 1 in a million odds of the kind of error C2 hunts

Why rare bugs matter at cloud scale

AWS opens with an argument about odds. In 2015, its engineers saw a one-in-a-million error happen a few times a second on AWS. The odds were not miscalculated: in AWS's words, "even a one-in-a-million occurrence can happen a thousand times if given a billion chances." Roughly ten years on, it says, such errors happen thousands of times a second, and AI agents running more operations will push that higher.

AWS says these bugs are not the security holes attackers use to steal data. They are subtler faults, and they tend to sit in the code that handles errors and failures, which runs rarely but matters most when it does. Left alone, the post says, they can be as minor as losing a few bits of data or as serious as taking a system offline.

Why AI models alone miss them

The post's case is about counting. A distributed system, one that runs on many machines that must agree, can play out in a huge number of orders. AWS says one round of the Paxos agreement protocol between three machines can happen in over 90,000 unique orders, and the number grows exponentially once lost packets, retries and duplicates are allowed. A person cannot check all of them, and AWS says that, in its experience, even frontier models cannot reliably diagnose such bugs.

Existing tools, it says, either match known patterns (static analysis, security scanners) or rely on an AI model's judgment (AI code review, coding agents). Both can miss edge cases when billions of cases need covering.

How does AWS's tool find hidden bugs?

AWS describes a loop in plain steps:

The mathematics comes from tools such as the Lean theorem prover. The point, AWS says, is not to try every ordering but to have a model write a proof of what can happen under every possible ordering, the way a proof of Pythagoras's theorem holds without testing every triangle. AWS says it built on more than ten years of applying automated reasoning at scale, and added retries, guardrails and parallel runs to use compute efficiently.

What it found

AWS gives one count and two worked examples. It says it scanned a performance-profiling library popular with Rust programmers and found nine local thread-safety bugs, including one that could make the reporting thread crash and later data be lost. It also says it found similar bugs in popular open source database and storage engines, sometimes on a single machine and with no failure happening.

AWS adds that it has run C2 on hundreds of codebases and found similar bugs in nearly all of them, and that each report it sent came with a reproduction (often an automated test) and a tested patch.

Who can use AWS's bug-finding tool?

C2 is not open to everyone yet. AWS says it will give a limited number of customers access, with plans to widen it as companies are onboarded, and that it can examine anything from a single library to an entire distributed system without the user needing expertise in AI or automated reasoning. Interested customers sign up through AWS's page. AWS also says it will add more automated reasoning techniques "over the coming months", from bug finding to regression testing. The post gives no price.

What is not shown

AWS's results come from its own scans. The post names no project and no bug report, so outsiders cannot yet check how many of the 800-plus bugs maintainers accepted or fixed. Its claim that frontier models miss these bugs is also AWS's experience, not a published comparison. We have not seen an outside test of C2.

Terms in plain English

Official channels of AWS: Website · LinkedIn · X · YouTube

Sources

Sources

Related stories

More from AI Research Labs

All stories from AI Research Labs