Practical Security Analysis of Zero-Knowledge Proof Circuits
Hongbo Wen, Jon Stephens, Yanju Chen, Kostas Ferles, Shankara Pailoor, Kyle Charbonnet, Isil Dillig, Yu Feng
摘要
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 performed an experimental evaluation on over 258 circuits from popular Circom projects on Github. According to our evaluation, these detectors can identify vulnerabilities, including previouslyunknown ones, with high precision and recall.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SoK: What don't we know? Understanding Security Vulnerabilities in SNARKs 引用了 SoK: Computer-Aided Cryptography
- Why Crypto-detectors Fail: A Systematic Evaluation of Cryptographic Misuse Detection Techniques 引用了 CryptoGuard: High Precision Detection of Cryptographic Vulnerabilities in Massive-sized Java Projects
- CRYLOGGER: Detecting Crypto Misuses Dynamically 引用了 CryptoGuard: High Precision Detection of Cryptographic Vulnerabilities in Massive-sized Java Projects
- zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits 引用了 SoK: What don't we know? Understanding Security Vulnerabilities in SNARKs
- zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits 引用了 ConsCS: Effective and Efficient Verification of Circom Circuits
- zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge Circuits 引用了 Certifying Zero-Knowledge Circuits with Refinement Types
- Split Gröbner Bases for Satisfiability Modulo Finite Fields 引用了 SoK: What don't we know? Understanding Security Vulnerabilities in SNARKs
- Split Gröbner Bases for Satisfiability Modulo Finite Fields 引用了 Certifying Zero-Knowledge Circuits with Refinement Types
- ConsCS: Effective and Efficient Verification of Circom Circuits 引用了 SoK: What don't we know? Understanding Security Vulnerabilities in SNARKs
- ConsCS: Effective and Efficient Verification of Circom Circuits 引用了 Certifying Zero-Knowledge Circuits with Refinement Types
引用它的顶会 Paper13
- SoK: What don't we know? Understanding Security Vulnerabilities in SNARKsStefanos Chaliasos, Jens Ernstberger, David Theodore, David Wong 等USENIX Security 2024 · 32 次引用
- Certifying Zero-Knowledge Circuits with Refinement TypesJunrui Liu, Ian Kretz, Hanzhi Liu, Bryan Tan 等S&P 2024 · 30 次引用
- zkFuzz: Foundation and Framework for Effective Fuzzing of Zero-Knowledge CircuitsHideaki Takahashi, Jihwan Kim, Suman Jana, Junfeng YangS&P 2026 · 8 次引用
- Split Gröbner Bases for Satisfiability Modulo Finite FieldsAlex Ozdemir, Shankara Pailoor, Alp Bassa, Kostas Ferles 等CAV 2024 · 4 次引用
- ConsCS: Effective and Efficient Verification of Circom CircuitsJinan Jiang, Xinghao Peng, Jinzhao Chu, Xiapu LuoICSE 2025 · 2 次引用
它引用的 Paper5
- SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet 等S&P 2021 · 169 次引用
- CryptoGuard: High Precision Detection of Cryptographic Vulnerabilities in Massive-sized Java ProjectsSazzadur Rahaman, Ya Xiao, Sharmin Afrose, Fahad Shaon 等CCS 2019 · 159 次引用
- SAILFISH: Vetting Smart Contract State-Inconsistency Bugs in SecondsPriyanka Bose, Dipanjan Das, Yanju Chen, Yu Feng 等S&P 2022 · 142 次引用
- CRYLOGGER: Detecting Crypto Misuses DynamicallyLuca Piccolboni, Giuseppe Di Guglielmo, Luca P. Carloni, Simha SethumadhavanS&P 2021 · 51 次引用
- Why Crypto-detectors Fail: A Systematic Evaluation of Cryptographic Misuse Detection TechniquesAmit Seal Ami, Nathan Cooper, Kaushal Kafle, Kevin Moran 等S&P 2022
相关 Paper
- Language-Agnostic Detection of Computation-Constraint Inconsistencies in ZKP Programs Via Value InferenceArman Kolozyan, Bram Vandenbogaerde, Janwillem Swalens, Lode Hoste 等S&P 2026 · 4 次引用
- Automated Verification of Consistency in Zero-Knowledge Proof CircuitsJon Stephens, Shankara Pailoor, Isil DilligCAV 2025 · 2 次引用
- ScaleCirc: Scaling the Analysis over Circom CircuitsJinan Jiang, Haoran Qin, Xiapu LuoASE 2025
- Automated Detection of Under-Constrained Circuits in Zero-Knowledge ProofsShankara Pailoor, Yanju Chen, Franklyn Wang, Clara Rodríguez-Núñez 等PLDI 2023 · 24 次引用
- Scalable Verification of Zero-Knowledge ProtocolsMiguel Isabel, Clara Rodríguez-Núñez, Albert RubioS&P 2024 · 14 次引用
