Trail of Bits forges zk proof that underreports quantum circuit resources via Rust prover bugs
They can produce a zero-knowledge proof that reports lower total operations, qubits, and Toffoli counts than Google’s original proof by exploiting memory-safety and logic bugs in Google’s Rust zkVM prover.
Security & privacy Trail of Bits 17 Apr 2026 Attack Prototype evidence
Published as “We beat Google’s zero-knowledge proof of quantum cryptanalysis”
Why it matters
The work shows that zero-knowledge proof systems can be subverted by low-level software bugs, undermining confidence in claimed quantum-computing breakthroughs.
Summary
Trail of Bits examined Google’s Rust-based SP1 zkVM prover and found unsafe deserialization and missing checks that let an attacker manipulate operation counters. By crafting malformed kickmix circuit inputs they bypassed the Toffoli gate counter and used register aliasing to reset qubits, enabling a forged zero-knowledge proof that reports 0 Toffoli gates, 8,288,880 total operations and 1,164 qubits. The forged proof verifies against Google’s original (unpatched) verifier, and the authors released the exploit code along with a detailed analysis.
What they found 1
- The forged circuit reports 0 Toffoli gates, 8,288,880 operations and 1,164 qubits, improving on Google’s results.
“In total, my elliptic curve point addition circuit uses 8,288,880 operations, 1,164 qubits, 5,980,691 pre-bypass Toffoli gates, and 0 reported Toffoli gates.”
Caveats 4
- Our proof fully verifies when using Google’s unpatched verification code.
- Google has patched their proof, and their scientific claims are unaffected.
- Our proof only verifies with Google’s unpatched verification code.
- We could not reduce qubits enough to beat Google’s low-qubit variant by the remaining 113 qubits without additional vulnerabilities.
What’s new here 4
- Identify two Rust memory-safety/logic bugs in Google’s SP1 zkVM prover that allow manipulation of resource counters.
- Forge a zero-knowledge proof that reports 0 Toffoli gates, 8.3 M total operations and 1,164 qubits, beating Google’s metrics.
- Demonstrate register aliasing to bypass Toffoli counting and reduce qubit usage.
- Release the exploit code and a full write-up of the attack.