by mentalgear · 3w ago · 0 comments
Proofing and securing those is the way larger attack vector and work to come.
I had assumed them to mean the latter, since I don't think the protocol design specification on its own would shake out into "over six million lines of Lean code." (Though if someone who knows Lean well thinks that's actually a reasonable number, please do correct me.) 6MM lines of proof code sounds more like something you get by "translating" an average-sized self-contained imperative-language library (like the protocol impl library) into a highly-rigorous prover language line-by-line, with a lot of the overhead coming from having to model imperative-language / imperative-CPU-target-abstract-machine semantics in rigorous mathematical form.
Annoyingly, the wording of the article is a bit too ambiguous to say for sure either way. They just say they "generated" the Lean code; they didn't say what it was being generated from.
> To confirm that AlphaProof Code can tell correct code from buggy code, we reintroduced two real, previously fixed bugs into an isolated version of Signal's code. In both cases, the system produced a machine-checked proof that the buggy version was insecure.
Of course, there are several official pieces of software which implement the specified Signal protocol, so it's not guaranteed they verified all of Signal's software which implements it https://github.com/signalapp/libsignal
I'd be surprised if there were no security bugs in any of the code here. It's more likely that they tested the implemented logic for creating/using the cryptographic primitives, than that they actually verified there were no bugs at all in the code
Also, I presume there are some unproved baked in assumptions about cryptographic primitives (e.g, but not necessarily, "sha512 has a uniform distribution")