AWS Project C2: how to test code with automated reasoning
Key takeaways
- Project C2 reads code and documentation, checks implementation against intent, then writes a reproducing test, rates severity and proves a patch
- It targets concurrency bugs, where too many execution orders exist for models to try one by one
- Access is limited for now, so teams should prepare codebases and documentation before it widens
- A mismatch can mean a bug or a wrong statement of intent, so human review of the intent stays essential
After reading this, you will know how to prepare a codebase and a team for AWS's Project C2, and how its find, reproduce and prove workflow differs from asking a language model to review your code.
AWS detailed Project Code Confidence, or Project C2, at its re:Invent conference in Las Vegas this week. The system uses automated reasoning, which applies mathematical formulas to prove accuracy, alongside large language models (LLMs). AWS says it will "find bugs that even the most advanced AI models aren't finding." That claim is AWS's own and untested by outsiders, but the design is worth understanding because it answers a problem defenders now face.
The problem is volume. AI agents have already surfaced serious flaws: independent researchers found a critical vulnerability in PHP in October, and the following month found vulnerabilities in Java. Cyber-capable models such as Anthropic's Mythos family find problems in a shorter span of time, which has prompted fears of a "vulncolypse" overwhelming defenders. Our reporting on PHP2Shell and Java4Shell shows how quickly that pressure arrives.
What you need before starting
Project C2 is not generally available. AWS says it is offered to a limited number of customers and will be expanded soon, and that it will mainly be skills users deploy into their own codebases.
- An AWS relationship. Ask your account team about access and the expansion timeline.
- A place to review generated tests and patches. C2 generates tests and patches, and those need somewhere to run and be reviewed.
- A named reviewer. Someone who understands the intended behaviour must judge the output.
Step-by-step process
Step 1: Get the documentation into shape (two to five days)
Cami Novelli-Killen, director of product in AWS's automated reasoning group, told reporters that C2 builds its understanding from the code plus supporting documentation. Gather design documents, API specifications and comments that state what each component promises. Where the only record of intent is in someone's head, write it down. This is the input the tool treats as truth.
Step 2: Rank your concurrency-heavy code (one day)
AWS says C2 is optimised for concurrency issues, which "run deep in the code and often in paths that require multiple steps." List the components where threads, queues, locks, retries or shared state interact: payment flows, schedulers, caches, message handling. Start there rather than with the whole estate.
Step 3: Understand what C2 does with your code
The sequence matters for planning review. C2 reads the code and documentation, builds a picture of intended behaviour, then uses automated reasoning to try to prove the implementation does what it should. If it finds a mismatch, Novelli-Killen said one of two things is true: the stated intent is mistaken and the AI loops around again, or C2 has found a bug.
For a real bug, C2 generates a test that reproduces it, rates the severity, then develops and tests a patch. AWS says it also proves the fix is correct.
Step 4: Decide how outputs will be reviewed (half a day)
Agree in advance who approves a patch, where reproducing tests live, and how severity ratings feed your existing triage. Treat the reproducing test as the first artefact to inspect: a failing test you can run yourself is easier to trust than a prose finding.
Step 5: Pilot on one service (one to two weeks once access arrives)
Run C2 on a single concurrency-heavy service. Compare its findings against what your current static analysis, fuzzing and any LLM-based review already catch. Record bugs only C2 found, and any it flagged that turned out to be wrong statements of intent.
Common mistakes to avoid
- Expecting exhaustive coverage of everything. The tool is described as optimised for concurrency; do not assume it replaces other testing.
- Merging patches because they are "proved". C2 checks code against the intent it builds from your code and documentation, and that intent can be mistaken.
- Waiting for general availability to start. Documentation and test hygiene take weeks and are useful regardless.
Tips that make a difference
AWS explains why the approach scales: it creates "a model-written proof of what can happen under every possible order." The company's analogy is that you can know a proof of Pythagoras's theorem is correct without trying every possible triangle.
For agent controls, see our 10 point AI agent security check.
UK position
On governance, the NCSC's guidelines for secure AI system development and the ICO's guidance on AI and data protection are the starting references.
Next steps
Build a habit of writing specifications, not just code. Follow how rivals respond: our coverage of GPT-6 Cyber shows the model-provider approach to the same problem. Track AWS's expansion announcements and request access early.
C2 combines LLMs with mathematical proof rather than relying on model judgement alone. It outputs a reproducing test, a severity rating and a proven patch. It is aimed at concurrency bugs and is limited-access today.
Summary
You now have a plan: document intent, rank concurrency-heavy code, define review ownership and pilot on one service, so that when AWS widens Project C2 access your team can test its claim against your own codebase.
Frequently asked questions
What is AWS Project C2?
Project Code Confidence, or Project C2, is an AWS system that combines large language models with automated reasoning to find code vulnerabilities, write a test that reproduces each bug, then develop and prove a fix.
What kind of bugs does Project C2 target?
AWS says it is optimised for concurrency issues, which run deep in code and often sit in paths needing multiple steps. Consequences range from losing a few bits of data to taking a system offline.
Is Project C2 available to everyone?
No. AWS says it is available to a limited number of customers but will be expanded soon, and will mainly be skills that users deploy into their own codebases.
What is automated reasoning?
Automated reasoning uses mathematical formulas to prove accuracy. It is closely related to neuro-symbolic AI, and AWS has used it in many offerings for years, including its Greenlight service.