What formal verification is in reality

Bugs that slipped past proofs, errors in the proofs themselves, and the conversations about what “verified” actually means.

Percolator’s “Literally cannot be hacked” bounty

Lean’s standalone checker accepted a bogus proof from compiled modules

Joachim Breitner’s fix

How do you know what it’s proving?

seL4 and the missing CPU state

An independent Lean checker accepted two proofs of falsehood

Nanoda’s maintainer fix for both reports

What a proof about a fuzz harness covers

really cool post. essentially taking existing fuzzing harnesses, and "extending" them via formal verification to cover more inputs nothing more nothing less unsurprisingly, there's lots of trivial bugs that these harnesses miss. so it might be a while until we're "vulnzero"...

Image

Two HashiCorp Raft replicas could disagree on committed data

Certora on the bounty for an input its proof ruled out

Certora’s retrospective

A switch that compiled to the wrong branch

A string bug gave Lean a spurious proof of Fermat’s Last Theorem

Lean’s kernel accepted proofs of False in its August bug hunt

Leonardo de Moura’s postmortem

Three bugs around CompCert’s verified core

Formal verification is seen as the 'gold standard' of security. For years, CompCert was hailed as the undeniable spec-compliant C compiler. We found pretty severe mis-compilation bugs in it. The FV story that you're being sold is a lie.

Two proof checkers accepted an invalid disproof of Collatz

Apple had to repair a third-party proof

Apple Security Research’s account

A Verilog assertion checked the wrong register

Incorrect output in libcrux

HACL* proved its code against an incorrect specification

Maintainer’s account · Specification fix

Balancer’s solvency proofs missed a rounding bug

Certora’s analysis · Original verification report · Balancer’s postmortem

A zero-knowledge proof that could reveal the secret

Who Verifies the Verifiers?

Three errors in a blockchain consensus specification

The IronSpec study · Consensys’s QBFT specification and proofs

SSH could silently lose the first encrypted messages

The Terrapin paper · OpenSSH 9.6 release notes

Silo paid 100,000 USDC for a bug in its verified interest-rate model

Testing the Dafny verifier and its compilers

Testing Dafny

Notional paid $1 million for double-counted collateral

A proof of checked multiplication tested addition

Verifying Verified Code · AWS’s original verification study

A verified file system lost a directory and its contents

The Hydra study, figures 22 and 23 · The original Yxv6 verification paper

MakerDAO paid $90,000 across four prelaunch findings

Maker’s bounty results · Maker’s verification scope

A TLS 1.3 endpoint could authenticate itself as its peer

The Selfie paper · The IETF’s guidance on pre-shared keys

OCB2’s security proof missed a forgery

The researchers’ paper · NEC’s account of the standard change

Two ways FSCQ could lose data after a sync

The CrashMonkey paper · The maintainer’s explanation of the guarantee

WPA2 proved key secrecy and still exposed traffic

The KRACK researchers’ explanation · The earlier handshake proof · A later model that caught KRACK

A verified distributed store lost track of which update came first

The study, including the Chapar example in Figure 5