Osegi
Security·2 min read

Google DeepMind's AlphaProof Code Formally Verifies Signal's libsignal

Teams of up to 80 AI agents spent four weeks proving that libsignal, the code behind Signal's encryption, keeps its core security promises. The scope remains limited.

Abstract illustration of a padlock made of code lines, symbolizing formally verified encryption in the Signal messaging library.
Image: Numerama

Google DeepMind has used AI agents to produce formal mathematical proofs that libsignal, the library behind Signal's end-to-end encryption, upholds its main security guarantees. The company unveiled the result on 10 November 2026. The system, called AlphaProof Code, ran teams of up to 80 agents around the clock for four weeks on the machines of five DeepMind researchers.

Libsignal implements the Signal protocol, variants of which also protect WhatsApp, Messenger and Google Messages.

Proof instead of testing

Testing and audits can show that no flaw was found, but not that none exists. Formal verification instead proves, as with a theorem, that code cannot violate certain properties. The method is notoriously expensive: verifying the seL4 operating system kernel, completed in 2009, took the equivalent of twenty person-years.

Here, human experts defined what to prove, drawing on academic work about Signal, and the agents, running on Gemini 4 Carbon, wrote about 6.5 million lines of proof in the Lean language, whose checker validates every step automatically. According to the researchers, none of them wrote a line of proof themselves.

The proofs target the "ratchet", the mechanism that constantly renews encryption keys. They establish that an attacker who steals the keys stored on a phone cannot read earlier messages, since each key is derived from the previous one and then erased. They also show that a conversation becomes secure again once both parties exchange new messages, and that nobody can impersonate either participant. To check the method, the team reintroduced two old, since-fixed libsignal bugs, and the system showed those versions no longer met the guarantees.

Clear limits

Signal's chief technology officer Ehren Kret called it "a major advance". Google nonetheless lists caveats: the proof covers only two-person conversations, assumes the underlying cryptographic building blocks work perfectly without verifying them, and applies to a test version running on Linux, not the mobile apps.

The authors draw a broader lesson: now that proofs are getting cheap, the hard question becomes what to prove.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:google deepmindsignalalphaproof codeformal verificationencryptionlibsignal

More from this day

See all →

More in: Security

See all →