AI-built tooling uncovers forgeable Falcon signature bug in Miden zkVM
AI-generated tooling enabled the discovery of a high-severity vulnerability that allows a malicious prover to forge Falcon signatures in the Miden zero-knowledge VM.
Security & privacy Trail of Bits 18 Sep 2026 Disclosure Real-world evidence
Published as “Auditing in the age of (good enough) AI”
Why it matters
The work demonstrates that AI-augmented tooling can materially improve the depth and assurance of security audits for low-level cryptographic VMs.
Summary
Trail of Bits used LLM agents over six months to build an LSP server, a decompiler, a static analysis engine, and a Lean formal model for the Miden VM's custom assembly language. The static analysis identified over 400 type-validation issues and a high-severity bug where an under-validated advice value lets a prover forge Falcon signatures and steal funds. The Lean effort produced 95 machine-checked correctness proofs covering the core library's binary arithmetic, uncovering two additional subtle bugs. The evidence comes from a real audit of the Miden codebase, with concrete bug reports and formal proofs.
What they found 2
- A malicious prover could exploit an under-validated advice value to forge Falcon signatures and drain Miden accounts.
“A malicious prover could exploit this to forge Falcon signatures and drain any Miden account controlled by a Falcon key pair.”
- Agent-driven formal modeling produced 95 correctness proofs covering all binary arithmetic components of the core library.
“Our agent-driven formal modeling efforts resulted in 95 correctness proofs that covered all of the binary arithmetic components of the core library.”
Caveats 2
- We could not expect to be able to decompile all MASM procedures if we also wanted the decompiled output to be correct.
- The tools we developed ... are all side projects that we wouldn’t have been able to dedicate time or resources to just one or two years ago.
What’s new here 4
- AI agents built a full MASM language server and decompiler from scratch.
- An abstract-interpretation static analysis engine found >400 type-validation issues and a critical signature-forgery bug.
- Lean formalization yielded 95 correctness proofs and exposed two hidden bugs.
- The tooling suite is now used by the Miden team for ongoing security reviews.