ZKCache: Cache Side-Channel Attacks on Zero-Knowledge Machine Learning Systems
Abstract
Zero-knowledge machine learning (ZKML) lets a prover convince a verifier that a neural network was evaluated correctly while keeping the model, the input, or both private. A growing use case is protecting a proprietary model inside a hosted proving service, where the architecture itself is the confidential asset. Zero knowledge, however, protects only the proof transcript. Proof generation is ordinary software, and its memory-access behavior during proving depends on the model it is meant to hide. An unprivileged process that shares a CPU with the prover, with no shared memory and no privileged performance counters, can recover the proprietary architecture purely from cache contention during proof generation. Our attack, ZKCache, pairs cache-contention measurements with a source-level model of how a network's shape drives the prover's work. It combines learned trace evidence with exact structural constraints to recover operator types, their hyperparameters, and the network's computation graph. We evaluate two open-source Halo2-based ZKML systems, EZKL and TeleSparse, on VGG16 and ResNet-18. ZKCache recovers operator types with 98.6% accuracy and hyperparameters with 93.2% accuracy. For ResNet-18, it recovers the exact topology, meaning the complete operator-type sequence together with all residual connections, in 83.3% of trials. We further show that the leak is mitigable. A compiler defense that groups shape-compatible layers under a developer-specified budget hides per-layer parameters for 53% end-to-end overhead. ZKCache demonstrates that transcript-level zero knowledge does not, by itself, keep a model's architecture secret.
Create a lesson
Related papers
BrainPhone: A Passive Side-Channel Attack for Speech and Identity Inference Using Consumer BCI Headsets
Shared title terminologycs.CRAnuradha Mandal, Cagri Arisoy, Sonjoy Kumar Paul et al.
zk-Sable: Per-Client Zero-Knowledge Proofs of Batched, Bit-Exact LLM Inference with Open Weights
Shared title terminologycs.CRTomer Solberg
Private, Outsourced Client Input Validation for Web Services Using Zero-Knowledge Proofs
Shared title terminologycs.CRSabrina Tabassum, Hassan Jameel Asghar
SPAR: Sparse-space Poisoning Attack on Retrieval-Augmented Generation Systems
Shared title terminologycs.CRQingyuan Zheng, Min Ren, Saihui Hou et al.
Assessing the Robustness of Defense Frameworks Against Data Attacks on AI Systems
Shared title terminologycs.CRVishnu Kurnala, Nelly Elsayed
Intelligent Event-Safe Cyber-Physical Attack Detection and Localization in Critical Water Infrastructure: A Cross-Dataset Study of SWaT and WADI
Shared title terminologycs.CRVictor Kebande