Revealing Semantic Gaps in Zero-Knowledge Virtual Machines via Obligation-Targeted Semantic Fuzzing
Abstract
Zero-knowledge virtual machines (zkVMs) prove correct execution of programs and underpin systems securing billions of dollars in digital assets. Their security depends on alignment between the instruction set architecture (ISA) that programs target, such as RISC-V, and the constraint system, polynomial equations that check the prover's record of every intermediate value (the witness). Mismatches, or semantic gaps, come in two kinds: underconstraint bugs let a malicious prover forge a proof of an execution the ISA forbids (a soundness violation), and divergence bugs make the zkVM itself deviate from the ISA or crash, so an honest prover cannot prove a legitimate execution (a completeness violation). Both cluster at corner cases such as division by zero that conventional fuzzing almost never reaches, and underconstraint bugs leave program output unchanged. Our key insight is that these corner cases correspond to constraint obligations derived from the ISA specification and the proof system's algebraic structure. We build Beak, a reinforcement-learning fuzzer in which obligations replace three random decisions: they supply inputs that trigger each obligation, reward executions that trigger new combinations of obligations, and direct witness tampering to the step where an obligation is triggered. Beak flags divergence bugs by comparing registers against a reference RISC-V emulator, and underconstraint bugs by checking whether the constraints accept a tampered witness. On six leading production RISC-V zkVMs, Beak detects 25 of 37 known bugs (67.6%) versus 5 (13.5%) for the prior state of the art, and discovers 14 previously unknown bugs, all responsibly disclosed and patched.
Create a lesson
Related papers
Targeted In-Context Poisoning of Tabular Foundation Models: An Empirical Study
Shared title terminology · Adem Alparslan
Enabling Verifiable Output Lineage for Virtualized ML Workload Execution
Shared title terminology · Prach Chantasantitam, Adam Caulfield, Sujaya Maiyya et al.
Poisoning Attacks and Collaborative Defense Framework for LightRAG-Based Construction Regulation Knowledge
Shared title terminology · Yingyan He
Detecting Word-Substitution Poisoning of a RAG Knowledge Base with Relative Entropy and Runtime Verification
Shared title terminology · Ali Yousefi, Nikos Komninos, Hafizul Asad
On the Reliability of CyberGym Evaluation: Task Material Consistency and Reference-Target Identity
Shared title terminology · Yule Ding, Hongzhen Wu
GPU-Accelerated Secure Inference for Drug--Target Interaction Prediction
Shared title terminology · Sikha Pentyala, Steven Golob, Daniil Filienko et al.