AWS on Monday announced Project C2, a service that uses large language models to write mathematical proofs about code in order to catch the rare bugs that the company says even today’s best frontier models miss.
AWS says it has already used C2 (short for Code Confidence) to find more than 800 bugs across 22 popular open source projects. It’s running the system against its own services like Amazon Aurora, Amazon DynamoDB, and Amazon Elastic Block Store (EBS), too.
For now, though, you likely won’t be able to test your own code with it. Only a limited number of customers will get access at this point.
Proofs instead of tests
In the announcement, AWS Distinguished Engineer Marc Brooker and Principal Applied Scientist Soonho Kong, who worked on the earliest versions of the Lean theorem prover at Microsoft Research, note that a single round of agreement between three machines running the Paxos consensus protocol can play out in more than 90,000 different orders. Add dropped packets and retries, and that number grows exponentially. That’s far more than any developer or model can reason through, they argue.
“Just like we can know that a proof of Pythagoras’s theorem is correct without trying every possible triangle, the proofs this approach writes can generalize to all orderings without trying them all,” they write.
How Project C2 works
C2 starts by reading a project’s code and documentation to figure out what the system is supposed to do. Then, it tries to prove that the code actually does that.
When a proof fails, C2 either refines its understanding of the system or, if there really is a mismatch, flags a bug.
To complete the process, it then also writes a test that triggers the bug, rates its severity, and drafts a fix that it also proves correct.
AWS says it has spent about a decade using automated reasoning on its own infrastructure, and earlier this year, it brought the technique to developers through Kiro’s requirements analysis feature, for example.
Security scanners and simulators
Most of the AI bug hunters that launched over the last year focus on security.
Anthropic’s Claude Security, OpenAI’s Codex Security (formerly Aardvark), and Google DeepMind’s CodeMender all rely mostly on having a model reason about code, mimicking the work a security researcher would do — only faster.
C2 is trying something different, and it’s important to note that it is going after a different class of problem.
AWS explicitly notes that these aren’t the kind of vulnerabilities attackers exploit, but reliability bugs that tend to hide in the error- and failure-handling code that rarely runs.
One tool that may be a better comparison is probably Antithesis, a startup that runs entire distributed systems inside a deterministic hypervisor and injects faults until something breaks. Testing only covers the orderings it explores, though, while a proof covers all of them, AWS argues.
etcd already runs its robustness tests on Antithesis, and one of the bugs AWS highlights, though without naming the project, matches an issue Brooker filed against etcd in early November. A leader that loses its status mid-batch can keep revoking leases that clients already renewed with the new leader.
Another example AWS is highlighting involves an in-memory database that cleared a disk-error flag after a successful retry, even though on Linux, that retry doesn’t guarantee earlier writes made it to disk.
Finding bugs is the easy part
The bigger bottleneck may be on the receiving end. Anthropic says it has disclosed 5,087 vulnerabilities across 680 open source projects, but only 629 of those had been patched as of early November
The post AWS says its new tool finds the bugs the best AI models miss appeared first on The New Stack.