Google DeepMind Uses AI to Formally Verify Signal’s Real-World Code in Four Weeks

Google DeepMind Uses AI to Formally Verify Signal’s Real-World Code in Four Weeks

N
News Editor
2026-11-12 11:50:51
Google DeepMind says its AlphaProof Code system has formally verified the code that runs Signal’s encryption protocol on devices, rather than stopping at the protocol’s design level. The work took four weeks, while DeepMind said a conventional effort would typically require an expert team for several years. Signal’s protocol is also used by communication software such as Google Messages and protects billions of private conversations. The system produced more than 6 million lines of Lean proof code, with human experts required to review only 1% of it after an AI-led audit flagged the sections needing additional judgment. Researchers also reintroduced two real vulnerabilities that had previously existed in Signal code and had since been fixed. In both tests, AlphaProof Code generated machine-checked proofs identifying the vulnerable versions as unsafe. Signal Chief Technology Officer Ehren Kret called the automated conversion of production code into valid Lean theorems a major breakthrough and said the verification gives Signal greater confidence in its privacy guarantees. DeepMind has open-sourced the verification results and the accompanying technical paper. It said the approach could also be used for medical-device firmware and power-grid software, although more research is needed to scale it. Anthropic and Theorem recently used Claude to verify 123 open-source libraries, while Ethereum co-founder Vitalik Buterin has argued for verifiable systems in areas including chips, communications and AI.

AI reaches the code running on Signal devices

Google DeepMind said on Nov. 10 that its AlphaProof Code system had formally verified the code that actually runs Signal’s encryption protocol on devices. The announcement appeared on DeepMind’s official blog. A group of AI agents used mathematical proofs to show that the implementation met the core security properties set by experts.

Signal’s protocol is used by Signal itself and by other communication software, including Google Messages. It protects billions of private conversations. DeepMind described the work as the first time AI has formally verified a widely used cryptographic protocol at this depth. It also said that, regardless of whether AI is involved, this is the first complete formal verification of the implementation of such a protocol.

The verification took four weeks. DeepMind said the traditional approach would generally require an expert team to spend several years on the same type of work.

From a protocol design to compiled code

Formal verification uses mathematical proofs to establish that software behaves according to its specifications and contains no vulnerabilities. It is regarded as the highest level of security assurance, but it has historically required heavy manual effort.

DeepMind said most protocol verification stops at the design layer. That can show that a design is secure, but vulnerabilities in real systems often arise in the gap between the design and its implementation. AlphaProof Code followed the proof all the way to the compiled code running on a device.

The verified properties included cases in which messages remain protected before and after a device is temporarily compromised. These properties were checked at the level of the code actually executed on the device, which made the proof substantially more difficult than verifying a design alone.

More than 6 million lines of Lean proofs

AlphaProof Code divided the work between human experts and AI agents. People and AI models first decided what needed to be proved. A group of agents then worked through the proofs.

In the first stage, researchers worked with multiple models to translate Signal’s security goals into formal mathematical specifications. Human experts reviewed every specification. Agents powered by Gemini 4 Carbon then produced more than 6 million lines of Lean code.

Lean is a programming language used to write mathematical proofs. A computer can check each step automatically. After producing the proofs, the agents audited their own work and marked the sections that required another human review. Those sections represented 1% of the full codebase. Lean checked the rest automatically, allowing experts to focus on the parts that required human judgment.

The system detected two reintroduced vulnerabilities

To test whether AlphaProof Code could distinguish correct code from flawed code, researchers placed two real vulnerabilities that had previously existed in Signal and had since been fixed back into the code inside an isolated environment.

In both cases, the system generated machine-checked proofs showing that the vulnerable versions were unsafe.

Ehren Kret, Signal’s chief technology officer, wrote in a blog post that earlier formal-verification efforts could cover only a smaller portion of the system. Confirming that production code strictly matches the cryptographic design required substantial human work, he said. Having AI agents automatically translate online code into valid Lean theorems was, in his words, a major breakthrough.

Kret also said AI-driven cybersecurity threats are increasing. With its core protocol subjected to rigorous verification, Signal has greater confidence in the privacy guarantees provided by its own code.

Open-sourced results and possible use in critical systems

DeepMind has open-sourced the formal-verification results and released a technical paper with them. The company said the same method could be applied to medical-device firmware and power-grid software. Scaling the approach to those systems, however, will require more research.

DeepMind is not the only company working on AI-assisted formal verification. In October, Anthropic partnered with Theorem to use Claude to formally verify 123 open-source libraries. The process uncovered hundreds of errors.

Vitalik Buterin, co-founder of Ethereum, also argued during the opening speech of Devcon 8 that open and verifiable systems should replace reliance on trust alone. He specifically identified chips, communications and AI as fields that need systems capable of being verified.

This article was originally published by Bit.Fan. For more cryptocurrency news and market insights, visit www.bit.fan.
100

Disclaimer:

The market information, project data, and third-party content displayed on this platform are for industry information sharing only and do not constitute any form of investment advice or return commitment.

Cryptocurrency trading carries high risks. Users should fully assess their risk tolerance and make independent decisions. All profits, losses, and legal responsibilities are borne by the users themselves.

Google DeepMind Uses AI to Formally Verify Signal’s Real-World Code in Four Weeks | Bit.Fan