Exploring Feature Selection Scenarios for Deep Learning-based Side-channel Analysis

Guilherme Perin, Lichao Wu, Stjepan Picek · DOI

Introduction

Side-channel Analysis (SCA) poses a significant threat to cryptographic implementations by exploiting physical leakages such as power consumption and electromagnetic emissions. Traditionally, SCA required extensive domain expertise to identify "points of interest" (POIs) within trace data where secret information is most likely to leak. The advent of Deep Learning (DL) promised to revolutionize this field by offering automatic feature extraction, potentially eliminating the need for manual feature engineering.

However, a discrepancy remains in current research: many practitioners still pre-select small data intervals where leakage is known to be strongest. This paper investigates whether this manual "trimming" of traces is truly necessary or if modern neural networks can effectively process raw, un-optimized data.

Experimental Scenarios

To evaluate the necessity of feature selection, the authors established three distinct scenarios representing varying levels of attacker knowledge and data preparation effort. These scenarios range from idealized "worst-case" security assumptions to realistic black-box attacks.

Definitions of the three feature selection scenarios: RPOI, OPOI, and NOPOI.
  1. Refined Points of Interest (RPOI): This scenario assumes the attacker has full knowledge of secret masks and can isolate the most informative individual samples. It serves as a performance baseline.
  2. Optimized Points of Interest (OPOI): A middle-ground approach where the attacker selects a continuous interval surrounding known leakage peaks, reducing noise while maintaining a sequence of data.
  3. Non-optimized Points of Interest (NOPOI): The most realistic scenario, where the attacker uses the entire raw trace interval without prior knowledge of specific leakage locations.

Datasets and Data Preparation

The study utilized four benchmark datasets to test these scenarios: ASCADf (fixed key), ASCADr (random keys), DPAv4.2 (Rotate S-box Masking), and CHES_CTF 2018 (portability testing).

Trace intervals and sample counts for each dataset across the three scenarios.

As shown in the table above, the NOPOI scenario involves processing significantly larger data volumes—up to 400,000 samples in the case of DPAv4.2. To manage this complexity without requiring massive computational resources, the authors employed window resampling. This technique averages blocks of samples, effectively compressing the data while preserving the underlying signal, allowing even small neural networks to process long traces efficiently.

Key Insights and Results

The research yielded several surprising insights that challenge conventional wisdom in the SCA community:

  • Simplicity is Sufficient: Contrary to the trend of using increasingly complex models, the authors found that small neural networks with only 1 to 8 hidden layers were capable of breaking all tested datasets, even in the NOPOI scenario.
  • The Efficiency of Raw Data: While RPOI models were the most efficient, the performance of NOPOI models was remarkably close. This suggests that the "black-box" threat is more potent than previously estimated, as attackers do not need precise leakage knowledge to succeed.
  • Single-Trace Recovery: In multiple instances, the trained models were so effective that they could recover the secret key using only a single attack trace. Across all datasets, the key was successfully recovered in fewer than 10 traces in at least one scenario.
  • Robustness of Hyperparameters: In the RPOI scenario, nearly 100% of the models generated during a random hyperparameter search were successful. This indicates that when high-quality features are present, the specific architecture of the network becomes less critical.

Conclusion

This study demonstrates that manual feature selection is largely unnecessary for attacking first-order masked AES implementations using Deep Learning. Neural networks are inherently capable of ignoring noise and identifying relevant features within raw traces, especially when aided by simple pre-processing like window resampling. While higher-order masking remains a challenge for future research, these findings highlight the significant risk posed by black-box deep learning attacks on cryptographic hardware.

Summary updated

BibTeX
@article{perin2022exploring,
  author = {Guilherme Perin and Lichao Wu and Stjepan Picek},
  title = {{Exploring Feature Selection Scenarios for Deep Learning-based Side-channel Analysis}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2022},
  doi = {10.46586/tches.v2022.i4.828-861},
}
Figure