ML Models Are Not Ciphers: Power Analysis for Weight Extraction Is Harder Than You Think
Mohammed Qaiss, Peter Horvath, Michal Shagam, Lejla Batina, Zhuoran Liu, Eyal Ronen, Mahmood Sharif, Yuval Yarom
Abstract
Can power-analysis techniques reveal secret weights of machine-learning models? Multiple recent works demonstrate proof-of-concept attacks that can partially recover such weights. To that end, these works build on techniques from cryptographic engineering, treating the model as a ``cipher'' and its secret weights as keys. We question the basic assumption behind such straightforward adaptations of cryptographic attacks and highlight the challenges arising when applying past techniques to fully recover all layers of deep neural networks. Unlike past works, which extract only a few weights, typically from shallow layers, we investigate the recovery of complete networks. Moreover, we target fully trained and functional models, rather than untrained, randomly initialized networks. To focus on fundamental challenges, we assume an unrealistically strong side-channel adversary that can directly observe the output of the leakage model without any added noise. With this adversary, we show that machine-learning models differ significantly from cryptographic implementations, giving rise to unique challenges that have not been observed in the prior art. We observe two main differences between machine-learning models and ciphers. First, in contrast to the high-diffusion nonlinear integer arithmetic prevalent in cryptographic schemes, machine-learning models tend to use limited-precision floating-point arithmetic and low-diffusion linear operations. We show that these operations introduce difficulties in weight recovery, often requiring an unexpectedly large number of traces, even under ideal channel conditions. Second, we observe that, unlike ciphers, which aim to increase the data entropy, machine-learning models aim to reduce it. This reduces data variability as the algorithm progresses, hampering weight recovery in deep layers of the model. (details can be found in the paper)
Create a lesson
Related papers
Weight-Space Backdoors in Open-Weight LLMs: Cross-Architecture Attacks and Blind Model Forensics
Shared title terminologycs.CRMohammed Tanveer
Cleave: Severing Guardrails and Auditing Spectral Coupling in Open-Weight LLMs
Shared title terminologycs.CRFeng Huang, Qiang Huang, Yue Gao et al.
TrojanMaxxing: One-shotting VLM Backdoors with Weight-Space Programming
Shared title terminologycs.CRAhaan Dabholkar, Harshvardhan Patel, Michalis Polychronakis et al.
Extracting Next Generation Access Control Policies from Natural Language Using LLMs: An Intermediate-Representation Approach with Back-Translation Verification
Shared title terminologycs.CRAyesha Habib, Huixiang Zhang, Waiz Haider
Can LLMs Write Backdoors? An Empirical Security Study of Weight-Space Programming
Shared title terminologycs.CRZhaojia Wang, Jiucui Lu, Zheng Li
DUFT: Device-Unique Feedback Traversal for Entropy-Estimated Response Extraction and Mutual Authentication using SRAM PUFs
Shared title terminologycs.CRSyed Talha Imam, Amna Zafar, Arslan Munir