AI & Models
Google DeepMind uses AI to formally verify Signal's code
Google DeepMind said AI agents helped mathematically prove Signal's cryptographic protocol is secure down to its actual running code, in about four weeks.
Google DeepMind said Tuesday that it used AI agents to formally verify core security properties of the actual code behind the Signal protocol — the cryptographic system that protects messages in apps including Signal and Google Messages — a result the company calls the first time AI has helped verify a widely used cryptographic protocol’s real implementation at this depth.
The verification ran on a new system called AlphaProof Code, which Google DeepMind describes as a framework that divides formal verification work much as a human research team would: humans and AI jointly decide what needs proving, then a group of AI agents carries out the proofs. Researchers first worked with a mix of models to translate Signal’s security goals into formal mathematical specifications, with a human expert reviewing each one; agents powered by Google DeepMind’s Gemini Carbon model then generated the proofs themselves — in this case, more than six million lines of code in Lean, a language that mathematically checks whether code behaves as specified. The agents audit their own proofs and flag only the portions, about 1% of the codebase, that need a second look from a human.
Unlike most protocol verification, which stops at the design level, Google DeepMind says its agents proved that Signal’s compiled code — not just its blueprint — meets the security properties the company’s experts specified, including protections that hold even after a device has been briefly compromised. The whole process took about four weeks, versus years for equivalent work done by hand, according to the company. To check whether AlphaProof Code can tell secure code from buggy code, researchers put two real bugs that had been fixed earlier back into an isolated copy of Signal’s code; the system produced a proof in both cases showing the altered code was insecure.
“While prior formal verification focused on smaller portions of the code, Google DeepMind’s approach enables significant expansion,” said Ehren Kret, Signal’s chief technology officer. “Using AI agents to translate live code into valid Lean theorems is a major breakthrough.”
Google DeepMind says the same approach could extend to other critical systems, from the firmware in medical devices to the software running power grids, and it is open-sourcing its formal-verification artifacts for other researchers to use.
Why it matters
If agentic AI can compress years of formal verification into about four weeks, that changes the calculus for which critical software — payment rails, medical devices, power-grid code — is worth proving mathematically secure rather than just testing and hoping.