Paper 2023/190

Practical Security Analysis of Zero-Knowledge Proof Circuits

Hongbo Wen
Jon Stephens
Yanju Chen
Kostas Ferles
Shankara Pailoor
Kyle Charbonnet
Isil Dillig
Yu Feng
Abstract

As privacy-sensitive applications based on zero-knowledge proofs (ZKPs) gain increasing traction, there is a pressing need to detect vulnerabilities in ZKP circuits. This paper studies common vulnerabilities in Circom (the most popular domain-specific language for ZKP circuits) and describes a static analysis framework for detecting these vulnerabilities. Our technique operates over an abstraction called the circuit dependence graph (CDG) that captures key properties of the circuit and allows expressing semantic vulnerability patterns as queries over the CDG abstraction. We have implemented 9 different detectors using this framework and perform an experimental evaluation on over 258 circuits from popular Circom projects on Github. According to our evaluation, these detectors can identify vulnerabilities, including previously unknown ones, with high precision and recall.

PDF
BibTeX
ePrint ↗
@misc{cryptoeprint:2023/190,
      author = {Hongbo Wen and Jon Stephens and Yanju Chen and Kostas Ferles and Shankara Pailoor and Kyle Charbonnet and Isil Dillig and Yu Feng},
      title = {Practical Security Analysis of Zero-Knowledge Proof Circuits},
      howpublished = {Cryptology {ePrint} Archive, Paper 2023/190},
      year = {2023},
      url = {https://eprint.iacr.org/2023/190}
}
Category
Implementation
License
CC BY
Submitted
Updated
Versions

Report a problem

Comments

Log in or create an account

Privacy