Summary
- Google DeepMind used AlphaProof Code to verify selected security properties of the Signal protocol's reference implementation at machine-code level.
- AI agents produced approximately 6.5 million lines of Lean proofs over four weeks, checked against human-approved specifications.
- The work covers defined one-to-one cryptographic operations and assumptions, not the entire Signal application or every possible security threat.
Google DeepMind has used AI agents to produce mathematical proofs of important security properties in the compiled code underpinning the Signal messaging protocol, demonstrating how automated verification could make rigorous software assurance more accessible to organisations developing security-critical systems.
The research, published on 10 November, introduces AlphaProof Code, a framework that combines human-approved technical specifications with agents capable of constructing formal proofs. Its first major application examined libsignal, the reference implementation of the cryptographic protocol used in secure messaging.
Over four weeks, the researchers generated approximately 6.5 million lines of proof code in Lean, a formal language whose checking system determines whether mathematical arguments follow from their stated assumptions. The work connects security guarantees to compiled machine code rather than examining only the abstract design of the protocol.
DeepMind describes the result as the first formal verification at this depth of an existing, widely deployed cryptographic protocol implementation. The achievement does not mean that every part of Signal has been proved secure, because the research concerns specific operations, properties, and assumptions within a defined implementation.
Moving beyond testing for known weaknesses
Software security assurance usually combines code review, automated testing, vulnerability research, and attempts to identify failures under unexpected conditions. These methods can reveal important defects, but testing a system against a collection of scenarios cannot establish that it will behave correctly under every possible condition.
Formal verification takes a different approach by expressing required properties mathematically and proving that a system satisfies them within a particular model. In security-sensitive software, those properties might establish that a protocol protects information, authenticates a participant, or limits what an attacker can learn after obtaining secret material.
Constructing such proofs has traditionally required specialist expertise and extensive manual work. Complex programs contain enormous numbers of possible execution paths, while the proof must account for how software handles data, changes internal state, and interacts with other components.
Cryptographic protocols are particularly demanding because their security depends on both mathematical design and the software implementing it. A protocol may be secure in an abstract model while its deployed code contains an error that creates a route around the intended protections.
DeepMind’s researchers attempted to narrow that gap by proving properties of an executable built from the existing libsignal code. Their approach connects the formal security model with the behaviour of the compiled instructions, making the proof more closely related to the implementation that software developers actually use.
AI constructs proofs that software can check
AlphaProof Code divides the verification process between people, AI agents, and a formal checking system. Human researchers determine which security properties should be examined and review the specifications that express those requirements.
AI agents then develop proofs connecting the specified behaviour to the implementation. The resulting arguments are checked by Lean’s kernel, which does not simply accept an agent’s assertion that a proof is correct.
This separation is important because a language model can produce convincing explanations that contain mistakes. A machine-checked proof must satisfy the formal rules of the verification system, providing a different basis for assessing correctness.
The research used agents powered by Gemini Carbon, with people overseeing specification development, proof campaigns, and areas requiring additional investigation. DeepMind says its process directed human attention towards approximately 1% of the codebase requiring closer review.
Although the agents generated millions of lines of proof, the resulting assurance still depends on the trusted definitions and assumptions underpinning those proofs. The researchers identify approximately 26,000 lines of trusted specifications and processor semantics, forming part of the material that must be understood and assessed by specialists.
The distinction matters because a mathematical proof can establish that software meets a particular specification without establishing that the specification covers every security requirement. Errors in the assumptions or the definition of the intended behaviour can limit what a formally correct proof demonstrates.
Signal provides a demanding test
The researchers examined the post-quantum PQXDH handshake and Triple Ratchet mechanisms used to establish and maintain secure messaging sessions. These components help participants establish encryption keys, authenticate communications, and limit the consequences of key compromise.
One important property is forward secrecy, which is intended to protect previously encrypted messages if certain secret information is exposed later. Post-compromise security addresses circumstances in which a messaging session can recover protection following particular forms of compromise.
The proofs also cover authentication and confidentiality under defined attacker models. Some symbolic results address the secrecy of the handshake against a future attacker capable of defeating conventional Diffie–Hellman key exchange, while the separate computational proof does not provide a general security guarantee against quantum attackers.
That distinction prevents the results from being interpreted as a comprehensive demonstration of post-quantum security across all messaging operations.
The verification applies to one-to-one messaging sessions using a particular version of libsignal compiled for the AArch64 architecture. Group conversations, aspects of multi-device operation, and several additional behaviours fall outside the verified scope.
The researchers also used a controlled executable environment and assumptions about underlying cryptographic functions. Their analysis is therefore a substantial examination of an implementation, but not a proof that every Signal application will behave securely on every device and operating system.
Known bugs provide a further test
To assess whether the verification framework could distinguish secure code from defective implementations, the researchers reintroduced two previously corrected bugs into isolated versions of libsignal.
In both cases, AlphaProof Code generated machine-checked evidence that the modified implementation violated the relevant security model. The exercise provided a practical test of the framework’s ability to identify security-relevant differences between versions of the software.
That result should not be confused with an unrestricted vulnerability discovery capability. The researchers selected known defects and examined them against defined properties, rather than demonstrating that the system could independently discover every possible weakness in a complex application.
Nevertheless, the ability to connect a security property to the behaviour of compiled code is significant. Many software weaknesses arise not because a protocol’s mathematical design is unsound, but because implementation details differ from the assumptions made during design.
Cryptographic software also changes over time, introducing new features, optimisations, and compatibility requirements. Verification capable of examining actual implementations could potentially become useful when developers need to establish that changes have preserved specified security properties.
Enterprise adoption still requires substantial work
Outside messaging, similar techniques could eventually support software used in financial services, industrial systems, medical devices, and other environments where failures carry considerable operational consequences.
Organisations might use formal verification to examine selected security-sensitive components rather than attempt to prove every characteristic of an entire application. That could be particularly valuable where a relatively small amount of code controls authentication, cryptographic operations, or access to critical functions.
Scaling the approach will require progress in specification development, computational efficiency, integration with software engineering tools, and methods for maintaining proofs as code changes. Applications also rely on libraries, operating systems, and infrastructure that may introduce risks outside the scope of an individual verification exercise.
The work remains a research demonstration rather than a generally available enterprise verification service. Its four-week timetable reflects a specialist project involving several researchers working intensively with AI agents, not a guaranteed duration for verifying unrelated software.
DeepMind has published the technical paper and verification artefacts for further examination. Independent researchers can evaluate the stated assumptions, review the formal specifications, and investigate how the techniques might apply to other software systems.
The result establishes that AI agents can undertake a substantial share of the proof construction required to verify defined properties of real cryptographic code. The next test is whether that capability can be maintained economically and reliably as software changes and more varied systems are brought within scope.












