Interpreting Emergent Features in Deep Learning-based Side-channel Analysis
Sengim Karayalçin, Marina Krček, Stjepan Picek
TL;DR
This work tackles the interpretability gap in deep learning-based side-channel analysis (DLSCA) by applying mechanistic interpretability (MI) to reveal how neural networks exploit leakage. It constructs a pipeline using logit and activation analyses, PCA, and activation patching to connect model behavior to physical leakage and recover secret shares $s_i$, even without access to masking randomness. Across CHES_CTF, ESHARD, and ASCAD datasets, the authors observe discrete phase-transition structures in the learned representations, provide evidence of weak universality in the underlying leakage circuits, and demonstrate partial to full mask recovery in realistic settings. The study offers a practical path for security evaluators to move from black-box to white-box assessments, aiding countermeasure design, with open-source code to enable reproducibility.
Abstract
Side-channel analysis (SCA) poses a real-world threat by exploiting unintentional physical signals to extract secret information from secure devices. Evaluation labs also use the same techniques to certify device security. In recent years, deep learning has emerged as a prominent method for SCA, achieving state-of-the-art attack performance at the cost of interpretability. Understanding how neural networks extract secrets is crucial for security evaluators aiming to defend against such attacks, as only by understanding the attack can one propose better countermeasures. In this work, we apply mechanistic interpretability to neural networks trained for SCA, revealing \textit{how} models exploit \textit{what} leakage in side-channel traces. We focus on sudden jumps in performance to reverse engineer learned representations, ultimately recovering secret masks and moving the evaluation process from black-box to white-box. Our results show that mechanistic interpretability can scale to realistic SCA settings, even when relevant inputs are sparse, model accuracies are low, and side-channel protections prevent standard input interventions.
