🇺🇸 English 🇰🇷 한국어 🇯🇵 日本語
Home › Developer Tools
Developer Tools

AI Agents Prove Signal Code at Machine Level

Google DeepMind said Nov. 10 that Gemini-powered agents in its AlphaProof Code framework produced machine-checked Lean proofs that Signal's compiled libsignal code delivers forward secrecy, authentication and other guarantees for one-to-one sessions.

Google DeepMind said Nov. 10 that AI agents built on its Gemini models produced machine-checked proofs that the compiled code of libsignal, the reference implementation of the Signal encryption protocol, delivers key security guarantees. The company called it the first time the implementation of a widely deployed protocol of this kind has been formally verified by any method, with or without AI.

Signal app on an Android phone showing the Verify safety number screen with a QR code and number blocks
File photo: the safety-number verification screen in Signal's Android app. 사진: ShreyasMinocha / 위키미디어 공용(CC0 1.0)

Key takeaways

  • DeepMind's new AlphaProof Code framework generated about 6.5 million lines of Lean proof for Signal's compiled code, according to the technical paper.
  • Humans wrote and approved the specifications; the agents did the proofs, and the verification took four weeks.
  • The proofs cover one-to-one sessions only. Group messaging and the full Signal apps are outside the result.

What AlphaProof Code verified in Signal

The target was libsignal v0.105.4, compiled unmodified with the standard Rust compiler into AArch64 Linux machine code. The proofs cover Signal's post-quantum PQXDH handshake and its Triple Ratchet, establishing forward secrecy, authentication, post-compromise security and handshake secrecy, the technical paper says.

Most earlier work on Signal checked abstract models or rewritten versions of the protocol. DeepMind's researchers said real-world bugs often hide in the gap between design and implementation, which is why they proved properties directly about the binary.

How the AI agents split the work

Researchers first worked with several models to turn Signal's security goals into formal specifications, with human experts reviewing every one, according to DeepMind's blog post. Agents powered by Gemini Carbon then wrote the proofs in Lean, a language whose kernel checks every step.

The paper says a typical proof team had 40 to 80 agents running on a single machine for 24 to 72 hours. A gatekeeper agent accepted a proof only if Lean's kernel checked it against a held-out copy of the human-approved specification. The agents also flagged about 1% of the codebase for a second human look, DeepMind said.

The trusted base that readers must accept is about 26,000 lines: roughly 18,000 lines of specification and about 8,000 lines of AArch64 semantics. The semantics model covers 467 instructions and 31 system calls.

Testing the proofs against real Signal bugs

To check that the specifications catch real mistakes, the team reintroduced two previously fixed libsignal bugs into an isolated build. In both cases the system produced a machine-checked proof that the buggy binary violated the security theorem.

"Using AI agents to translate live code into valid Lean theorems is a major breakthrough," Signal Chief Technology Officer Ehren Kret said in DeepMind's announcement.

Why formal verification has been so costly

Formal verification has long been limited by labor. The paper notes the seL4 microkernel took 20 person-years to verify and the CompCert C compiler took six. Both were written with verification in mind, unlike production code such as libsignal.

The work adds to a run of AI-assisted proof efforts this fall, including Microsoft Research's PDD Kit for agent-written Rust, which AI Newsway covered on Nov. 9.

Limits of the Signal proof

The guarantees rest on the approved specifications, Lean's kernel, the machine-code semantics and assumptions about cryptographic primitives, which are modeled as trusted contracts. The semantics does not model threads, signals or dynamic linking. Unite.AI, reviewing the paper, noted that key generation, side channels and multi-device state also fall outside the scenario.

What's next

DeepMind has open-sourced its specifications and proofs on GitHub so outside experts can recheck them. The researchers list group messaging as future work and say the approach could extend to systems such as medical device firmware and power grid software.

FAQ

Does this mean Signal has no bugs? No. It proves specific security properties of one compiled build under stated assumptions. Parts outside the specification are not covered.

Do Signal users need to do anything? No. The work verifies existing code and does not change the app.

Can others check the proofs? Yes. DeepMind released the Lean development and instructions for rebuilding and checking it.

References

#AlphaProof Code #Google DeepMind #Signal #libsignal #formal verification #Lean #Gemini Carbon #AI agents #PQXDH #Triple Ratchet
S
Seung Jung
AI Newsway · Developer

Editor responsible for AI Newsway. Writes about AI, developer tools, cloud and productivity technology.

More by this reporter ›
Copyright © AI Newsway All rights reserved. Unauthorized reproduction, redistribution, and AI training prohibited.
Share
f X K

Comments 0

Comments are currently disabled.

Be the first to comment.