Introduction
Side-Channel Analysis (SCA) is a powerful class of cryptographic attacks that exploit physical leakages—such as power consumption or electromagnetic emissions—to recover secret keys. In recent years, Deep Neural Networks (DNNs) have emerged as the state-of-the-art tool for SCA due to their ability to automatically extract features and bypass common countermeasures like "masking" (where secret values are split into multiple shares).
However, DNNs are notoriously "black boxes." While they can successfully recover keys from complex, noisy data, it is often unclear exactly which parts of the physical signal the model is utilizing. Existing explainability techniques, such as Saliency Maps or Layer-wise Relevance Propagation (LRP), identify important regions but fail to pinpoint the minimal set of points required for a successful attack. This paper introduces Key Guessing Occlusion (KGO), a novel algorithm designed to identify these critical "OccPoIs" (Occlusion-based Points of Interest).
The Key Guessing Occlusion (KGO) Framework
The core contribution of this work is the KGO algorithm, a model-agnostic approach that systematically simplifies the input space to find the smallest possible subset of sample points a DNN needs to maintain its performance.
The Iterative Process
KGO operates through a greedy, iterative search:
- Occlusion: The algorithm takes a trained DNN and a set of traces, then replaces specific sample points with a baseline value (typically zero).
- Guessing Entropy (GE) Evaluation: After a point is occluded, the algorithm performs the attack phase. If the DNN can still recover the key (indicated by a low Guessing Entropy), the occluded point is deemed redundant and remains hidden.
- Restoration: If the GE spikes—meaning the DNN can no longer recover the key—the point is identified as essential and is restored.
- Refinement: This process is repeated across the trace, often with shuffled orders, until a stable, minimal set of OccPoIs is established.
The authors also propose 1-KGO, a variation that ranks the individual contribution of each OccPoI, providing a granular view of leakage significance.
Experimental Setup and Robustness
The researchers evaluated KGO across several benchmark datasets representing various levels of difficulty and countermeasures:
- ChipWhisperer (CW): An unprotected AES-128 implementation.
- ASCAD (ASCADf and ASCADr): A first-order masked AES implementation, considered a standard challenge for SCA.
- AES_HD: An FPGA-based implementation characterized by high noise and Hamming Distance leakage.
- Desynchronized ASCADf: Traces modified with artificial temporal "jitter" to test the algorithm's resilience against synchronization countermeasures.
Key Insights
Extreme Minimalism in Deep Learning
The study reveals that DNNs are remarkably efficient. For unprotected implementations (CW and AES_HD), the models often require only one single sample point to successfully recover the secret key. Even for masked implementations like ASCAD, which are designed to hide information across multiple shares, the DNNs required as few as 5 or 6 points.
Beyond Human Intuition and Classical Statistics
KGO identifies leakage points that classical methods, such as first-order Correlation Power Analysis (CPA), often miss entirely. This suggests that DNNs are exploiting complex, non-linear relationships within the data. Furthermore, KGO functions as a "blind" feature selection tool; unlike CPA, it does not require knowledge of internal mask values to identify leakage in protected implementations.
Resilience to Jitter
One of the most significant advantages of KGO is its robustness. In desynchronized datasets, traditional attribution methods like Saliency Maps often produce "blurry" results that are difficult to interpret. KGO, by focusing on the functional outcome (key recovery), maintains precision even when the traces are shifted in time.
Performance Results
To validate the utility of the identified OccPoIs, the authors used them as input features for a classical Template Attack (TA). The results were striking:
- Efficiency: On the masked ASCADf dataset, a Template Attack using KGO-selected features recovered the key in just 313 traces.
- Comparison: Other explainability methods, including Saliency Maps and standard 1-Occlusion, failed to converge on the same dataset, with Guessing Entropy remaining high even after 10,000 traces.
- Model Agnosticism: The stability of the OccPoIs across different DNN architectures confirms that KGO identifies fundamental leakages of the hardware rather than artifacts of a specific model.
Limitations and Conclusion
While powerful, KGO is computationally intensive. Because it is a greedy algorithm requiring a full inference pass and GE calculation for every sample point, processing long traces can take hundreds of hours (e.g., 227 hours for the ASCADr dataset). Additionally, the algorithm determines the number of features automatically, which may not suit all evaluation scenarios.
In conclusion, OccPoIs provide a bridge between the high performance of deep learning and the need for interpretable side-channel evaluations. By identifying the absolute minimal leakage points, KGO allows evaluators to understand exactly where their hardware is vulnerable, even in the presence of sophisticated countermeasures.
Summary updated