Google DeepMind Uses AI to Verify Signal Encryption: How AlphaProof Code Could Change Software Security

Published by Editorial Desk • In Science & Tech

 


Google DeepMind Uses AI to Verify Signal Encryption: How AlphaProof Code Could Change Software Security

Published: November 10, 2026

Artificial intelligence is increasingly being used to write software, identify bugs and improve cybersecurity. But Google DeepMind has demonstrated another potentially important use: helping researchers mathematically verify whether critical software actually delivers the security protections it is designed to provide.

On November 10, 2026, Google DeepMind introduced AlphaProof Code, an AI-assisted framework that researchers used to formally verify key security properties of the code underlying the Signal messaging protocol.

The project focused on libsignal, the reference implementation of the Signal protocol. The protocol is used by the Signal messaging app and has also been adopted, with platform-specific implementations, by other messaging services.

Google DeepMind says its researchers completed the verification work in approximately four weeks. AI agents generated around 6.5 million lines of machine-checked Lean proof code, while human experts guided the process and reviewed the important specifications.

This is a significant development because formal software verification has traditionally required extensive specialist knowledge and substantial engineering time.

However, the announcement does not mean that the entire Signal application, WhatsApp or Google Messages has been proven completely secure. The research verified specific cryptographic properties of a particular implementation under defined mathematical assumptions.

What Is AlphaProof Code?

AlphaProof Code is a multi-agent AI framework developed by Google DeepMind for formal software specification and verification.

Instead of simply asking an AI model to inspect code and report possible bugs, the framework helps researchers express security requirements as precise mathematical statements. AI agents then work to prove that the software implementation satisfies those requirements.

The generated proofs are checked by Lean, a proof assistant that verifies whether a mathematical proof follows from its approved definitions and assumptions.

This distinction is important. A normal AI-generated explanation may sound convincing while still containing mistakes. In a formally verified workflow, the proof must pass the trusted checking process before it is accepted.

AlphaProof Code combines human expertise with AI agents. People help define what the software must guarantee, while the agents perform much of the complex proof-generation work.

How Did Google DeepMind Verify Signal's Security?

The researchers examined the cryptographic implementation behind Signal's messaging protocol. Their goal was to connect the security properties described at the protocol level to the actual compiled code running on a device.

This is a difficult problem because software can contain mistakes even when its underlying design is mathematically sound.

A protocol may be designed to protect private messages, but implementation errors, incorrect assumptions or programming mistakes can create weaknesses. Formal verification attempts to reduce this gap by proving that specific properties hold in the implementation itself.

Google DeepMind's work involved three major stages:

1. Defining the Security Requirements

Researchers worked with AI systems to translate Signal's security goals into formal mathematical specifications written for Lean.

Human experts reviewed these specifications. This step is essential because a proof is only meaningful if the property being proved accurately represents the security requirement.

2. Analysing the Actual Machine Code

The team developed a formal model of AArch64 machine-code execution and connected it to the compiled implementation being examined.

This allowed the researchers to reason about the actual compiled instructions rather than relying only on a high-level description of how the protocol was supposed to work.

3. Generating and Checking Mathematical Proofs

AI agents generated large amounts of Lean proof code. Lean's trusted kernel then checked whether the proofs followed from the approved specifications and formal model.

The important point is that the agents did not simply declare the software secure. Their proof work had to pass an independent mathematical checking process.

Research Stage What Happened Why It Matters
Specification Researchers and AI systems translated security goals into formal statements. Defines exactly what must be proved.
Code modelling The team modelled the relevant compiled machine-code behaviour. Connects security claims to implementation.
Proof generation AI agents generated Lean proof code. Automates a large amount of mathematical work.
Proof checking Lean checked the generated proofs. Prevents an unverified AI answer from being treated as a valid proof.
Human review Experts reviewed specifications and areas flagged for attention. Preserves human responsibility for important assumptions.

More Than Six Million Lines of Mathematical Proof

One of the most striking details of the research is the amount of proof code generated by the AI agents.

According to Google DeepMind's technical paper, the project produced approximately 6.5 million lines of Lean proof code. The verified implementation contained roughly 140,000 AArch64 instructions.

These numbers should not be confused with the size of the Signal application itself. The millions of lines refer to the mathematical verification work, not millions of new lines added to the messaging app.

The proof system was supported by formal specifications and machine-code semantics. Lean checked the generated proof against the approved mathematical framework.

Research Detail Reported Result
Framework AlphaProof Code
Verified implementation libsignal reference implementation
Proof language Lean
Generated proof code Approximately 6.5 million lines
Compiled instructions examined Approximately 140,000 AArch64 instructions
Research duration Approximately four weeks
Research team Five researchers

Which Security Properties Were Verified?

The research focused on important cryptographic protections used by the Signal protocol.

Two major components were examined: the PQXDH handshake and the Triple Ratchet.

Forward Secrecy

Forward secrecy is a security property designed to protect previously exchanged messages even if certain secret keys are compromised later.

In practical terms, compromising a current key should not automatically reveal the entire history of earlier conversations.

Authentication

Authentication helps participants establish that they are communicating with the intended party rather than an attacker pretending to be someone else.

Post-Compromise Security

Post-compromise security is designed to help a conversation recover its confidentiality after a temporary compromise of certain secret material, provided the protocol's required recovery conditions are met.

Handshake Secrecy

The handshake establishes the cryptographic relationship between communicating participants. Protecting its secrets is essential for establishing secure communication.

Google DeepMind reports proofs covering these properties in the specified models. The exact scope and assumptions differ between the symbolic and computational proofs, so the results should not be interpreted as a universal proof against every possible attack.

Security Property What It Is Designed to Protect
Forward secrecy Previously exchanged message secrets after certain later key compromises.
Authentication Confidence about the identity of communicating participants.
Post-compromise security Recovery of security after certain temporary compromises.
Handshake secrecy Confidentiality of secrets established during session setup.

Did AlphaProof Code Discover New Security Vulnerabilities?

Google DeepMind reported that its verification work did not identify new vulnerabilities in the portions of the Signal implementation it examined.

However, the researchers also tested whether their system could recognise real software mistakes.

They reintroduced two previously fixed bugs into an isolated version of the Signal implementation. AlphaProof Code then produced machine-checked proofs showing that the modified, buggy versions failed to satisfy the specified security properties.

This is an important part of the research because it demonstrates that the framework was not simply producing successful proofs for every version of the code.

It could also identify situations where the required security guarantee no longer held.

The result is not evidence that the current Signal implementation contains those two bugs. They were deliberately reintroduced for testing and had already been fixed.

Does This Mean Signal, WhatsApp and Google Messages Are Now Completely Secure?

No. This is one of the most important distinctions readers should understand.

The Signal protocol is used in multiple messaging environments, but each application has its own implementation, features, integrations and surrounding software.

Google DeepMind examined key security properties of the libsignal reference implementation. It did not formally verify every part of the Signal mobile application, WhatsApp, Google Messages, their servers, operating systems or devices.

Formal verification also depends on the correctness of the specifications and assumptions used in the proof.

For example, a mathematical proof about encryption does not automatically protect a phone from malware, prevent someone from reading an unlocked device or stop a user from being tricked into sharing a private message.

Claim What the Research Actually Shows
Signal's entire application is proven secure. No. The research examined selected properties of its protocol implementation.
WhatsApp has been fully verified. No. The research does not establish a formal verification of the entire WhatsApp application.
Google Messages has been fully verified. No. Protocol adoption does not mean every application component was verified.
No new vulnerabilities were found. DeepMind reported no new vulnerabilities in the portions examined.
Old known bugs were detected in testing. Yes. Two previously fixed bugs were deliberately reintroduced and identified by the verification process.

Why Is Formal Verification Different From Ordinary AI Security Testing?

Most conventional security testing tries to find evidence that a system is vulnerable. Researchers run tests, inspect code, simulate attacks and investigate suspicious behaviour.

These methods are valuable, but they cannot necessarily prove that a particular class of failure is impossible under all executions covered by a formal model.

Formal verification takes a different approach. It defines a property mathematically and attempts to prove that the implementation satisfies it under specified assumptions.

That does not make formal verification a replacement for every security test. It provides a different kind of assurance that can complement code review, penetration testing, monitoring and vulnerability research.

Method Main Approach Typical Strength
Penetration testing Simulates attacks against a system. Finds practical weaknesses and security gaps.
Automated vulnerability scanning Searches for known patterns and suspicious code. Can examine large systems quickly.
Code review Human experts inspect implementation and design. Can identify logic errors and architectural problems.
Formal verification Uses mathematical specifications and machine-checked proofs. Can establish defined properties under explicit assumptions.

Why Did the Project Take Only Four Weeks?

Formal verification of complex software has historically required years of specialist effort.

Google DeepMind says its Signal project was completed in approximately four weeks by a team of five researchers working with AI agents.

The researchers benefited from earlier formal verification work on Signal. This means the project did not begin without any existing specifications or research foundation.

AI agents helped generate and repair large proof developments, reducing the amount of manual proof-writing required.

However, the project still required human experts to define the properties, review the specifications, guide the work and decide what the results actually established.

The four-week result should therefore be understood as a research milestone, not a guarantee that any complex software system can now be fully verified in four weeks.

Could This Technology Make Banking and Medical Software Safer?

Potentially, yes. The broader value of AI-assisted formal verification extends well beyond messaging applications.

Many industries depend on software where small implementation errors can have serious consequences.

  • Banking: Verification could help establish that critical transaction logic follows defined security rules.
  • Healthcare: Researchers could investigate whether medical-device software satisfies important safety properties.
  • Cloud computing: Verification could help protect authentication, access control and infrastructure software.
  • Telecommunications: Critical network components could benefit from stronger mathematical assurance.
  • Industrial systems: Software used in factories and essential infrastructure could be examined for defined safety guarantees.

These are potential applications, not confirmed deployments of AlphaProof Code across these industries.

What Are the Limitations of AlphaProof Code?

Despite the impressive results, several challenges remain before AI-assisted formal verification can become routine across the software industry.

1. Writing the Correct Specification

A proof can be mathematically correct while proving the wrong requirement. Human experts must ensure that the specification captures the security property that actually matters.

2. Complexity of Real-World Software

Large applications contain many interacting components, external services, operating-system dependencies and hardware assumptions. Verifying one important library does not automatically verify the entire system.

3. Proof Maintenance

Software changes frequently. When developers update code, the existing proofs may need to be updated and checked again.

4. Cost and Scalability

Generating millions of lines of proof code requires significant computing resources and engineering effort. Google DeepMind has not published a general commercial cost model for applying the framework to arbitrary software systems.

5. Human Review Remains Necessary

AI agents can help with proof generation, but people still need to decide which properties should be proved and whether the assumptions are appropriate.

What Happens Next?

Google DeepMind says it is making the research specifications and proof artifacts available for the wider community.

This could allow other researchers to inspect the work, build on the methodology and explore how the framework can be applied to additional software systems.

The longer-term ambition is to connect AI-assisted code generation with formal verification. In such a workflow, software could be checked against its approved specifications as it is developed and updated.

If this approach becomes practical at scale, developers may eventually be able to attach machine-checked security guarantees to more of the software used in everyday life.

That future is not here yet. But the Signal project offers an important example of how AI can help move formal verification from a specialised research activity towards a more practical software engineering tool.

Frequently Asked Questions (FAQs)

1. What is Google DeepMind's AlphaProof Code?

AlphaProof Code is a multi-agent AI framework designed to help researchers formally specify and mathematically verify software properties using the Lean proof assistant.

2. What did AlphaProof Code verify?

Google DeepMind used it to verify selected security properties of libsignal, the reference implementation of the Signal messaging protocol, at the compiled machine-code level.

3. How long did the Signal verification project take?

Google DeepMind reported that the project took approximately four weeks and involved a team of five researchers working with AI agents.

4. How many lines of proof code did the AI generate?

The technical paper reports approximately 6.5 million lines of Lean proof code. These are verification artifacts, not new lines of code added to the Signal application.

5. Does this mean Signal is completely unhackable?

No. The research proves specific security properties under defined assumptions. It does not establish that the entire Signal application, devices or surrounding infrastructure are immune to every possible attack.

6. Did the researchers find new Signal vulnerabilities?

Google DeepMind reported no new vulnerabilities in the portions examined. The researchers did successfully identify two previously fixed bugs after deliberately reintroducing them into test versions.

7. Does the research also prove WhatsApp is secure?

No. Although the Signal protocol has been adopted by other messaging platforms, this research did not formally verify every part of WhatsApp or its application-specific implementation.

8. What is Lean in formal verification?

Lean is a proof assistant used to express mathematical statements and check proofs. Its trusted kernel verifies whether a submitted proof follows from the accepted definitions and assumptions.

9. Can AI formally verify all software in the future?

That is a possible long-term direction, but it remains a major challenge. Large systems, changing requirements, specification quality and computing costs still need to be addressed.

Final Verdict: AI Could Change How the World Proves Software Is Secure

Google DeepMind's AlphaProof Code research is important because it demonstrates a different way of using artificial intelligence in cybersecurity.

Instead of focusing only on finding bugs, the framework helps researchers construct machine-checked mathematical proofs that specific security properties hold in real software implementations.

The Signal project shows that AI agents can contribute to a difficult verification task that traditionally demanded extensive specialist work. Its results are encouraging, especially for systems where software security is critical.

However, the research is not proof that Signal, WhatsApp or every application using similar encryption is completely secure. Its conclusions apply to defined properties of a particular implementation under explicit assumptions.

The real opportunity is broader: if AI-assisted formal verification becomes affordable and scalable, software developers may eventually be able to prove more of their security guarantees instead of relying only on testing and bug discovery.

Sources and Further Reading