Hacker News
AlphaProof Code
AIFirst seen 656 points187 comments
Google DeepMind used a team of AI agents to mathematically prove that the real code behind the Signal messaging protocol is secure. This is a big step in checking software security.
What happened
Google DeepMind researchers built a tool called AlphaProof Code. It uses AI agents to check, with math, that the code behind Signal's encryption works correctly. Signal's encryption protects private chats in apps like Signal and Google Messages. The team says this is the first time AI has formally verified a widely used cryptographic protocol at this depth, and the first time such a protocol's code has been formally verified by any method.
Key numbers and facts
- Over 6 million lines of Lean code were generated for the proofs.
- Human reviewers only needed to check about 1% of the codebase, because Lean checks the rest automatically.
- The verification took about 4 weeks. Experts usually need years for a task like this.
- Two real bugs that had already been fixed were added back into a test copy of the code. In both cases, the system proved the buggy version was insecure.
How the system works
Formal verification means using math to prove that code works without flaws. It is the highest standard of security checking, but it is slow and hard. AlphaProof Code splits the job like a research team. Human experts decide what to prove and review the key goals. AI agents write the proofs. Lean, a computer language built for math proofs, checks every step.
Why it matters
Cryptographic protocols protect almost all digital communication, including online banking and web browsing. One flaw can expose millions of people at once. Most earlier checks only looked at the design, but real bugs often hide between the design and the working code. By proving the compiled code itself is secure, this work closes that gap. Signal's CTO said the work gives the company greater confidence in its privacy promises as AI-driven security threats grow.
What to watch
- Whether other teams use AlphaProof Code to check more widely used software.
- How well the approach works on larger and more complex code.
- Whether the research paper's details are reviewed and confirmed by other experts.
Glossary
- AlphaProof Code
- A Google DeepMind tool where AI agents help prove that software code is secure, using math.
- Signal
- A messaging app that uses strong encryption to keep chats private.
- Formal verification
- Using math to prove that code runs correctly without flaws.
- Lean
- A computer language used to write and check mathematical proofs.