# Revealing Semantic Gaps in Zero-Knowledge Virtual Machines via Obligation-Targeted Semantic Fuzzing

DevFeed: [Revealing Semantic Gaps in Zero-Knowledge Virtual Machines via Obligation-Targeted Semantic Fuzzing](<https://devfeed.tech/articles/revealing-semantic-gaps-in-zero-knowledge-virtual-machines-via-obligation-targeted-semantic-fuzzing-152828.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.29260>)

Author: Hongbo Wen, Jingyu Ke, Hanzhi Liu, Yanju Chen, Yu Feng

Published: 2026-11-24T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Zero-knowledge proof](<https://devfeed.tech/topics/zkp.md>), [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>), [RISC-V](<https://devfeed.tech/topics/riscv.md>), [Reinforcement learning](<https://devfeed.tech/topics/reinforcement-learning.md>)

Tags: [bugs](<https://devfeed.tech/tags/bugs.md>), [constraint](<https://devfeed.tech/tags/constraint.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [division-by-zero](<https://devfeed.tech/tags/division-by-zero.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [fuzzing](<https://devfeed.tech/tags/fuzzing.md>), [isa](<https://devfeed.tech/tags/isa.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [risc-v](<https://devfeed.tech/tags/risc-v.md>), [security](<https://devfeed.tech/tags/security.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [specification](<https://devfeed.tech/tags/specification.md>), [virtual-machines](<https://devfeed.tech/tags/virtual-machines.md>), [zero-knowledge](<https://devfeed.tech/tags/zero-knowledge.md>)

## AI overview

Beak targets semantic gaps between a zkVM's RISC-V behavior and its proof constraints, including underconstraint bugs that may permit forged executions and divergence bugs that block or alter legitimate executions. Its obligation-targeted reinforcement-learning fuzzer derives corner-case obligations from the ISA and proof system: obligations guide input generation, reward new combinations, and direct witness tampering. It detects divergence by comparing registers with a reference RISC-V emulator and underconstraint by testing whether constraints accept a tampered witness. Across six production RISC-V zkVMs, it found 25 of 37 known bugs, compared with 5 for the prior state of the art, and reported 14 previously unknown bugs, all disclosed and patched. These figures are those reported in the supplied abstract.

## Source excerpt

arXiv:2611.29260v1 Announce Type: new 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.