Google DeepMind has detailed how a new agentic framework called AlphaProof Code was used to mathematically prove key security properties of the code that runs the Signal protocol, the encryption layer that protects private conversations in apps such as Signal and Google Messages. The company describes the result as the first time AI has been used to formally verify a widely deployed cryptographic protocol at this depth, and the first time the implementation of such a protocol has been formally verified by any method, with or without AI.

The announcement, published on the DeepMind blog by research leads Pushmeet Kohli and Swarat Chaudhuri, has drawn a wave of coverage this week from outlets including Tom's Hardware, WIRED and ZDNET. Signal's chief technology officer said the work gives the nonprofit "even greater confidence" in the privacy guarantees of its code. For more context on this story, see our ongoing AI news.

Why formal verification matters

Formal verification is the practice of mathematically proving that code behaves correctly, without flaws. It is widely regarded as the highest standard of security assurance, but it is difficult and labor-intensive, which is why most cryptographic protocols are analyzed at the design level rather than in the compiled code that actually ships to devices. DeepMind notes that real-world vulnerabilities often hide in the gap between a design and its implementation, and that bridging that gap makes proofs vastly more complex.

Cryptographic protocols underpin nearly all digital communication, from online banking to web browsing, and a single flaw can expose millions of people at once. The Signal protocol in particular protects billions of private conversations, which is why experts have spent decades formally analyzing it.

How the human-AI team split the work

AlphaProof Code is a multi-LLM agentic framework that divides the work of formal verification the way a research team would: human experts work with AI to decide what to prove, and a group of AI agents carries out the proofs. According to DeepMind, the process unfolded in stages:

  • Specification. DeepMind researchers collaborated with a mix of models to translate Signal's security goals into formal mathematical specifications. Human experts reviewed every one of these specifications.
  • Proof. Agents powered by Gemini Carbon, the frontier model DeepMind introduced in October, then did the proofs, generating more than six million lines of Lean, a programming language in which proofs are checked mechanically.
  • Targeted audit. The agents audited their own proofs and flagged roughly one percent of the codebase as needing a second look by a human. Because Lean automatically checks the remainder, experts could concentrate on the areas where human judgment matters most.

The agents went beyond design-level analysis. They proved that the compiled code fulfills key security properties down to the exact code running on devices, including guarantees that messages remain protected before and after a device is temporarily compromised.

Four weeks instead of years

DeepMind says the entire verification process took just four weeks, a task that it says has historically taken expert teams years. To confirm that AlphaProof Code can tell correct code from buggy code, the researchers reintroduced two real, previously fixed bugs into an isolated version of Signal's code. In both cases, the system produced a machine-checked proof that the buggy version was insecure.

"Traditionally, verifying that production code strictly matches its cryptographic design required extensive manual effort, making the use of AI agents to automatically translate live code into valid Lean theorems a great breakthrough," Signal CTO Ehren Kret said in the DeepMind post. "As AI-driven security threats grow, having the core Signal protocol rigorously verified with automated theorem proving gives us even greater confidence that our code delivers on its privacy guarantees."

From messaging apps to critical infrastructure

DeepMind frames the Signal result as groundwork for securing other vital systems, naming medical device firmware and power grid software as candidates. The company also positions the framework alongside CodeMender, its AI agent for code security, as a pairing that can counter the speed and scale of modern cyber threats with software that carries mathematical proof its protections work.

The technical lineage traces back to DeepMind's earlier work on mathematical reasoning, including the AlphaProof system that reached silver-medal standard on International Mathematical Olympiad problems in 2024. The Signal project was developed by a team including Swarat Chaudhuri, Andrew Ferraiuolo, Anton Kovsharov, Tej Chajed, Sam Schlesinger, Karn Seth, Jonathan Katz, Charles Sutton and Pushmeet Kohli, with feedback from Signal's Rolfe Schmidt, Michael Rosenberg and Ehren Kret.

Open artifacts and limits

DeepMind says it is open-sourcing its formal verification artifacts for community use alongside a technical paper. The company is careful to note that scaling these techniques will require continued research, and that the result covers the key security properties its experts specified rather than every conceivable property of the codebase.

For the security community, the significance lies less in any single proof than in the demonstration that AI agents can operate at the depth and scale that production formal verification demands. If the approach generalizes, it could shift formal verification from a niche reserved for the most critical systems toward a routine step in securing software that billions of people rely on every day.

---

Stay Ahead of AI

Get the latest AI news, analysis, and breakthroughs — all in one place.

Read more AI news →