← Lab /Software

Adversarial witness injection uncovers 13 bugs in ZK DSL toolchains, 7 affect soundness

Liezz can expose soundness bugs in ZK DSL compilers that valid-execution testing misses

Software arXiv 31 Aug 2026 Measurement Prototype evidence

Published as “Lie to Me: Finding Bugs in ZK DSL Toolchains with Adversarial Witness Injection”

Why it matters

The discovered soundness bugs could let malicious provers generate proofs for invalid computations, undermining the security guarantees of ZK-based authorization, asset transfer, and identity checks.

Summary

LIEZZ uncovered 13 bugs across four ZK DSL toolchains, seven of which affect soundness, by injecting adversarial witnesses that combine inputs from one execution with outputs from another. These injected, deliberately invalid witnesses are rejected by correct toolchains, so any acceptance reveals missing constraints. Under the same testing budget, a valid-execution baseline (CIRCUZZ) exposed none of these soundness failures, showing that adversarial witness injection finds bugs that traditional metamorphic testing misses. The paper reports that some bugs (e.g., bug 12) were not rediscovered within a seven-day timeout, and bug 1 was not found by the full configuration, indicating limits to coverage.

Caveats 6

  • LIEZZ failed to rediscover bug 12 within the seven-day timeout.
  • The full LIEZZ configuration did not rediscover bug 1, which required an ablated configuration to be found once.
  • Our results depend on the ZK toolchains under test, their versions and configurations, and the LIEZZ configuration.
  • The adversarial-witness oracle assumes deterministic source semantics and that the generated program is intended to constrain its public input-output relation.
  • False negatives remain possible.
  • Bugs that require rare program shapes, specific constants, standard-library routines that LIEZZ cannot yet generate, or combinations of intermediate values not produced by the supported witness-splicing strategies may not be exposed within the campaign timeout.

What’s new here 4

  • Introduces adversarial witness injection that constructs invalid witnesses from two valid executions.
  • Implements multiple witness-splicing strategies and controlled divergence to preserve witness structure while violating input-output relations.
  • Extends program generation with parameterized standard-library calls, enabling bugs in library routines to be reached.
  • Evaluates the approach across four different ZK DSL toolchains, showing bugs missed by existing metamorphic-testing tools.