Skip to content
IFAI

Research

DeepMind's AI proved Signal's code is mathematically secure

Published Reach 71

Google DeepMind just introduced AlphaProof Code, an agentic framework that formally verified Signal's live cryptographic code in four weeks. Powered by Gemini, the agents generated over six million lines of Lean proofs and flagged just 1% for human review. Why it matters: it automates what once took elite security teams years, proving real-world software flaw-free at mathematical depth.

DeepMind's AI proved Signal's code is mathematically secure
Image: wired.com

Every time you send an encrypted text, you're trusting that the underlying code hasn't butchered the math. History shows that even when a cryptographic design is theoretically bulletproof, a single human typo in the actual software can leave millions exposed.

The ultimate shield against this is formal verification—using pure mathematics to prove code is 100% flaw-free. The catch? It is so brutally labor-intensive that almost no one can afford to do it on real-world production code.

Google DeepMind just changed the game with AlphaProof Code. It is a new multi-agent framework that formally verified the core implementation behind the Signal protocol—the exact technology protecting billions of conversations across Signal and Google Messages.

Gemini wrote six million lines of Lean

Most security verification never makes it past high-level blueprints. Proving compiled, device-level code is exponentially harder, which is why bridging that gap usually takes elite human researchers years.

AlphaProof Code did it in just four weeks.

The system works like a synchronized research lab. Human researchers first paired with multiple models to turn Signal's security goals into rigorous mathematical specifications, with humans reviewing every rule.

Then, agents powered by Gemini Carbon took over the heavy lifting. They generated over six million lines of Lean—a specialized language used for automated theorem proving. Lean's engine checked nearly everything automatically, while the agents flagged just 1% of the code for human experts to review.

To make sure the AI wasn't just rubber-stamping the code, researchers reintroduced two real, previously patched bugs into a sandbox. In both instances, AlphaProof Code caught the flaws and generated machine-checked proofs confirming the code was insecure.

DeepMind is now open-sourcing its verification artifacts for the community.

Why it matters

AlphaProof Code marks a massive shift in how we defend critical infrastructure.

Formal verification has long been an academic luxury, reserved for rare aerospace chips or military-grade hardware. Proving that an agentic workflow can verify massive cryptographic codebases in four weeks opens the door to securing everything from medical device firmware to local power grids against automated cyber threats.

What makes DeepMind's approach clever is the guardrail setup. They didn't rely on LLMs to hallucinate whether code is secure. Instead, they forced the AI to output machine-checkable proofs in Lean, letting deterministic mathematical checkers act as the final judge. The human review burden dropped to a tiny 1%.

That said, formal verification only proves that code strictly follows the human-defined specification. If researchers miss an edge case in the initial security goals, blind spots can still slip through. But in an era where AI-driven exploits are speeding up, mathematically locking down the cryptographic foundation of global messaging is a massive win for defense.

Sources (4)

  1. [1]
  2. [2]
  3. [3]
  4. [4]

Best of AI, daily