AWS launched Project C2 to generate mathematical proofs that verify code behavior across all possible execution paths. The tool reads project code and documentation, attempts proofs, and flags mismatches as bugs. When a proof fails it either refines its model or reports the issue, then produces a triggering test, severity rating, and verified fix.
AWS reports it has already applied C2 to 22 popular open source projects and its own services including Amazon Aurora, DynamoDB, and EBS. The approach targets reliability bugs in rarely executed error paths rather than security vulnerabilities that attackers exploit. Access remains restricted to a limited number of customers.
C2 differs from recent AI security scanners from Anthropic, OpenAI, and Google DeepMind. Those tools rely on model reasoning that mimics human security review. C2 instead uses formal proofs that generalize without enumerating every ordering, as illustrated by the Paxos consensus example with over 90,000 possible sequences.
AWS has used automated reasoning internally for about a decade and previously exposed related techniques through Kiro. The new service completes the workflow by also writing and proving a corrective patch after identifying each bug.