Lune

CCS2026Top-tier venue

Efficient Branch-and-Bound Testing and Verification of zkVMs

Hideaki Takahashi, Suman Jana, Junfeng Yang

Abstract

Zero-knowledge virtual machines (zkVMs) enable verifiable execution of general-purpose programs by translating virtual machine semantics into algebraic constraints over execution traces. The correctness of these constraints is critical: a single missing or incorrect constraint can admit forged proofs (under-constrained) or reject valid executions (over-constrained). Existing approaches do not provide meaningful guarantees at production scale: fuzzers and unit tests often miss bugs, SMT solvers struggle with the size and nonlinearity of constraints, and theorem provers require substantial manual effort.

We present ZEBRA, a fully automated verification and bugdetection framework grounded in a precise correctness criterion: for a given program and input, the constraint system must admit exactly one valid execution trace-no more (soundness) and no fewer (completeness). This reduces zkVM verification to a solution-set cardinality problem over a canonical trace space, where redundancies such as null-row padding and non-deterministic permutations are eliminated prior to counting.

To compute cardinality tractably, ZEBRA lifts analysis from finite-field witnesses to an integer interval lattice, exploiting a structural sparsity property of zkVM constraints: across 5 realworld zkVMs, constraints utilize only 14.0% of their theoretical connectivity capacity on average. This sparsity enables tight interval propagation with limited over-approximation error. ZEBRA performs a parallel branch-and-bound search that, unlike fuzzing, either produces a concrete counterexample or certifies the absence of violations within a bounded input region.

We evaluate ZEBRA on five real-world zkVMs. ZEBRA discovers 11 previously unknown vulnerabilities, including critical flaws enabling control-flow hijacking and proof forgery-none detected by a state-of-the-art fuzzer; 6 have already been independently confirmed and 3 have been fixed by developers. Compared to SMTbased verification, ZEBRA is 51.5× faster, verifies 16.5 percentage point more instances, and its range verification provides up to 63× efficiency gain over repeated single-input verification.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits cites Practical Security Analysis of Zero-Knowledge Proof Circuits
  • zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits cites Automated Detection of Under-Constrained Circuits in Zero-Knowledge Proofs
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on4

  1. Practical Security Analysis of Zero-Knowledge Proof CircuitsHongbo Wen, Jon Stephens, Yanju Chen, Kostas Ferles et al.USENIX Security 2024 · 31 citations
  2. Automated Detection of Under-Constrained Circuits in Zero-Knowledge ProofsShankara Pailoor, Yanju Chen, Franklyn Wang, Clara Rodríguez-Núñez et al.PLDI 2023 · 24 citations
  3. zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge CircuitsHideaki Takahashi, Jihwan Kim, Suman Jana, Junfeng YangS&P 2026 · 8 citations
  4. Arguzz: Testing zkVMs for Soundness and Completeness BugsChristoph Hochrainer, Valentin Wüstholz, Maria ChristakisUSENIX Security 2026 · 2 citations

Related papers

  1. ZKSMT: A VM for Proving SMT Theorems in Zero KnowledgeDaniel Luick, John C. Kolesar, Timos Antonopoulos, William R. Harris et al.USENIX Security 2024
  2. Language-Agnostic Detection of Computation-Constraint Inconsistencies in ZKP Programs Via Value InferenceArman Kolozyan, Bram Vandenbogaerde, Janwillem Swalens, Lode Hoste et al.S&P 2026 · 4 citations
  3. Evaluating Compiler Optimization Impacts on zkVM PerformanceThomas Gassmann, Stefanos Chaliasos, Thodoris Sotiropoulos, Zhendong SuASPLOS 2026 · 2 citations
  4. ZEE200: Zero Knowledge for Everything and Everyone @ 200 KHzSunghyeon Jo, Vladimir Kolesnikov, Yibin YangCCS 2026
  5. Formal Verification of Circuit-Soundness in zkWasm, a General Purpose zkVMVilhelm Sjöberg, Roger Bai, Hao Chen, Xifeng Jin et al.CCS 2026
Dusk over the sea between two cliffs drawn in fine vertical lines