Skip to main content
Code VerificationSignal Protocol· 6 min read· in Technology

Google DeepMind AI Agents Formally Verify Signal's End-to-End Encryption Code

Alphabet's AI research lab has used a new framework called AlphaProof Code to mathematically prove the security guarantees of the Signal Protocol. The milestone demonstrates how artificial intelligence can automate the notoriously complex process of formal software verification.

By Naina Verma

Share this story

Listen

Google DeepMind has mathematically proven that the core cryptographic engine powering Signal, WhatsApp, and Google Messages functions exactly as intended. Using a new artificial intelligence framework called AlphaProof Code, researchers verified the Signal Protocol's security guarantees at the machine-code level.[1][2]

The milestone, announced on November 10, marks a significant shift in how the software industry audits critical infrastructure. Formal verification—the process of proving a program's correctness through mathematical logic—has historically been too labor-intensive for widespread commercial use.[1][3]

DeepMind’s system changes that equation by deploying AI agents to generate the complex mathematical proofs required. The Alphabet subsidiary aims to use the technology to automate the most tedious aspects of rigorous software auditing.[1]

The Signal Protocol, originally developed in 2013, secures the private communications of more than two billion people worldwide. It relies on a complex mechanism known as the Double Ratchet Algorithm, which constantly rotates encryption keys to protect ongoing conversations.[5][6]

The protocol utilizes a combination of advanced cryptographic primitives, including Curve25519 for elliptic curve cryptography and AES-GCM for symmetric encryption. These mathematical building blocks must interact flawlessly to ensure that messages remain confidential and authenticated across unpredictable network conditions.[2]

While cryptographers have long trusted the protocol's theoretical design, translating that mathematics into flawless production code is notoriously difficult. A single memory-management error or logic flaw in the implementation can unravel the entire encryption scheme.[3]

Moving beyond standard testing

Historically, the protocol has undergone numerous manual security audits by independent cryptography firms. While these reviews consistently praised the protocol's design, human auditors can only review a fraction of the possible states a complex software system might enter during live operation.[3]

Unlike standard testing, formal verification treats software code as a mathematical theorem to be proven.

Traditional software auditing relies heavily on unit tests and fuzzing, which throw massive volumes of random data at a program to see if it crashes. These methods catch common vulnerabilities but cannot guarantee the absence of edge-case flaws that sophisticated hackers might exploit.[1][2]

Formal verification, by contrast, treats the software code as a mathematical theorem to be proven. "This is about moving from 'we haven't found a bug yet' to 'a bug of this class mathematically cannot exist in this code,'" notes the DeepMind research team in their technical release.[1]

AlphaProof Code achieved this by translating the implementation into a formal logic environment. The system then utilized a combination of reinforcement learning and large language models to search for the mathematical proofs that confirm the code's correctness.[1][7]

The AI agents worked alongside human cryptographers to construct proofs for the protocol's most critical security properties. These include perfect forward secrecy, which ensures that a compromised key today cannot decrypt past messages.[1][3]

The system also verified the protocol's post-compromise security guarantees. This property allows a compromised session to heal itself over time without requiring user intervention, ensuring that a temporary breach does not result in permanent surveillance.[2][6]

The limits of the mathematical proof

Despite the technical breakthrough, security researchers caution against marketing narratives—such as descriptions of a path to "unhackable" software—that overstate the achievement. The formal verification applies strictly to the cryptographic protocol's core implementation.[4]

It does not cover the entirety of the Signal or WhatsApp applications. An application can feature mathematically perfect encryption and still fall victim to user interface bugs, operating system exploits, or compromised device hardware.[2][6]

Illustration: The AI agents worked alongside human cryptographers to define the rigorous specifications required for the mathematical proofs.

If a malicious actor compromises a user's smartphone operating system using commercial spyware, they can read messages directly from the screen before the encryption protocol ever engages. The mathematical proof offers no protection against endpoint compromise.[3]

Furthermore, the verification process itself relies entirely on human-defined specifications. The AI agents prove that the code matches the exact specification provided by the engineers. If that initial specification contains a logical blind spot, the resulting mathematical proof will simply verify a flawed premise.[1][7]

Defining these specifications requires translating abstract security concepts into rigid mathematical formulas. If an engineer fails to specify that a particular variable must be cleared from memory after use, the AI will not attempt to prove that the memory was safely erased.[3]

The hybrid nature of the project also highlights the current limitations of autonomous AI in cybersecurity. AlphaProof Code did not operate entirely on its own; it required significant guidance from human experts to navigate the most complex cryptographic proofs and define the verification boundaries.[3]

Scaling formal verification

The successful audit of the Signal Protocol serves as a high-profile proof of concept for DeepMind’s broader ambitions. The Alphabet subsidiary aims to scale this technology to verify other critical software infrastructure, from financial trading platforms to aviation control systems.[1]

Historically, formal verification has been restricted to aerospace, nuclear engineering, and specialized military applications due to its prohibitive cost. A standard rule of thumb in the software industry is that formally verifying a single line of code can take an experienced engineer an entire 8-hour workday.[2]

By automating the most tedious aspects of proof generation, AlphaProof Code dramatically reduces that overhead. The framework leverages large language models trained specifically on formal mathematics and programming semantics, allowing it to navigate the massive state space of modern software far faster than human operators.[1]

The framework verified critical security properties including perfect forward secrecy and post-compromise security.

The open-source community stands to benefit immediately from the development. DeepMind has published the verification framework and the associated proofs on GitHub, allowing independent security researchers to audit the AI's mathematical work and apply the tools to other open-source projects.[7]

The transparency of this open-source release is crucial for establishing trust in AI-assisted security tools. Cryptographers generally reject security claims that cannot be independently verified, making the public availability of the AlphaProof Code repositories a necessary step for broader industry acceptance.[3]

Navigating emerging security regulations

The integration of AI into formal verification arrives as the software industry faces mounting pressure to improve baseline security. With cyberattacks targeting critical infrastructure escalating, governments are increasingly demanding that technology companies adopt secure-by-design principles from the outset.[3]

In the European Union, the impending Cyber Resilience Act, set to take full effect in 2027, will impose strict liability on software vendors for security vulnerabilities. Tools like AlphaProof Code could provide companies with a verifiable mechanism to demonstrate compliance with these emerging regulatory standards.[3]

The development also signals a maturation in how technology giants deploy artificial intelligence. Rather than focusing solely on generative capabilities that produce text or images, companies are increasingly directing AI research toward rigorous, high-stakes engineering challenges that require absolute precision.[2][4]

For the billions of users relying on the Signal Protocol daily, the immediate practical impact is minimal, as their messages were already secure. The true value lies in the unprecedented level of cryptographic assurance the project provides to the underlying infrastructure.[5][6]

For the billions of users relying on the Signal Protocol daily, the immediate practical impact is minimal, as their messages were already secure.

The next frontier for DeepMind involves expanding AlphaProof Code to handle more complex, concurrent software systems. As the framework evolves, the software industry may finally possess a scalable tool to mathematically eliminate entire categories of security vulnerabilities before code ever reaches production.[1]

Key points

  • Google DeepMind used a new AI framework called AlphaProof Code to mathematically verify the Signal Protocol's core encryption.
  • The system automates formal verification, a highly rigorous security auditing process that is typically too expensive for standard software.
  • The proof guarantees the cryptographic engine functions as intended, but does not protect against endpoint compromises or user interface bugs.
  • DeepMind has open-sourced the verification framework, allowing independent researchers to audit the proofs and apply the tool to other projects.

What we don’t know

  • It remains unclear how effectively AlphaProof Code can scale to verify massive, highly concurrent codebases outside of isolated cryptographic protocols.
  • DeepMind has not detailed the exact computational cost required to generate these specific proofs compared to traditional human engineering hours.

How we got here

  1. 2013

    The Signal Protocol is developed, introducing the Double Ratchet Algorithm for secure messaging.

  2. 2016

    WhatsApp integrates the Signal Protocol, bringing end-to-end encryption to over a billion users.

  3. Nov 10, 2026

    Google DeepMind announces AlphaProof Code and publishes its formal verification of the Signal Protocol.

AI Research Labs 40%Security Practitioners 40%Consumer Privacy Advocates 20%
AI Research Labs
Focus on the breakthrough capability of AI to solve complex mathematical and engineering problems beyond generative text.
Security Practitioners
Value the cryptographic assurance but caution that formal verification does not eliminate the risk of endpoint compromise or implementation bugs outside the core protocol.
Consumer Privacy Advocates
Emphasize the validation of tools that protect the private communications of billions of everyday users.

Perspectives this story doesn't cover

  • Independent cryptographers who have not yet audited DeepMind's published proofs
  • Signal Foundation engineers

Sources

Source coverage

7 outlets

3 viewpoints surfaced

AI Research Labs 40%Security Practitioners 40%Consumer Privacy Advocates 20%
  1. [1]Google DeepMindAI Research Labs

    Introducing AlphaProof Code: a breakthrough in verifying complex software at depth

    Read on Google DeepMind →
  2. [2]WiredSecurity Practitioners

    A New AI Tool From Google DeepMind Formally Verified the Signal Protocol

    Read on Wired →
  3. [3]The RegisterSecurity Practitioners

    Google DeepMind melds humans and AI agents to vet Signal's secure messaging techniques

    Read on The Register →
  4. [4]AxiosAI Research Labs

    Google touts AI breakthrough, path to "unhackable" software

    Read on Axios →
  5. [5]9to5MacConsumer Privacy Advocates

    Google DeepMind analysis proves Signal and WhatsApp encryption is secure

    Read on 9to5Mac →
  6. [6]ZDNETSecurity Practitioners

    Google's new AI tool just proved Signal encryption really works - here's how

    Read on ZDNET →
  7. [7]GitHub

    AlphaProof Code: Verifying Signal's Security at the Machine-Code Level

    Read on GitHub →
Listen

Comments

Stay informed

Every angle. Every day.

Get Technology stories with full source coverage and perspective breakdowns, free every day.