Skip to content

AWS Project C2 finds 800 bugs by proving code wrong, not guessing

AWS pairs LLMs with automated reasoning to hunt concurrency bugs other AI models miss, turning up over 800 across 22 open-source projects. Early access only, for now.

Source: AWS

AWS unveiled Project C2, short for Project Code Confidence, at re:Invent on 30 November. It pairs large language models with automated reasoning, mathematical proof techniques AWS has used internally for over a decade, to catch concurrency bugs: race conditions and time-of-check-to-time-of-use flaws that slip past both manual review and today’s AI models. The tool reads a project’s code and docs to work out intended behaviour, then tries to prove the code actually does that. When a proof fails, it writes a runnable test reproducing the bug and suggests a fix.

Run against 22 popular open-source projects, AWS says it found over 800 bugs. Examples it names: nine thread-safety bugs in a Rust profiling library, a durability check in an in-memory database that could silently lose data on reboot, and a TOCTOU flaw in a Raft-based key-value store where a leader that had already lost leadership kept handing out leases, a bug that could double-charge a customer in a payment flow. AWS is also running C2 against its own Aurora, DynamoDB and EBS.

Project C2 is gated preview only, covering concurrency bugs for now with more bug types promised later. You request access through AWS’s own page.

Why it matters: concurrency bugs are exactly the class that’s hardest to catch in review or with a model reading code line by line, because the bug only exists across an interleaving of events. If you maintain anything with shared state under load, this is a different kind of static analysis worth watching, not just another AI code reviewer.

The caveat: it’s early access with no committed GA date, and AWS hasn’t said which languages beyond Rust it covers today.

Share

Related reading

More from The Wire

All briefs

node-tar patches a Windows RCE bug triggered by npm install

A newline-injection flaw in node-tar let a crafted archive forge its own file paths and run code during npm install on Windows. The fix landed in a string of releases up to 8.1.0 on 2 December.

via GitHub Security Advisories (isaacs/node-tar)