Profiling Side-channel Analysis in the Restricted Attacker Framework

Stjepan Picek, Annelie Heuser, Sylvain Guilley

Abstract

Traditional side-channel analysis (SCA) often assumes an "unbounded" attacker with infinite resources. This paper introduces the Efficient Attacker Framework (EAF) to shift the focus toward the minimum effort required for a successful attack. By leveraging the Universal Approximation Theorem, the authors demonstrate that sophisticated deep learning models can potentially break cryptographic implementations with a single measurement. The framework provides a standardized way to measure security by accounting for the number of profiling traces and hyperparameter tuning experiments.

Introduction: The Need for a Realistic Attacker Model

Side-channel analysis (SCA) exploits physical leakages—such as power consumption or electromagnetic emissions—to recover secret keys from cryptographic devices. Standard research practices typically evaluate security under worst-case scenarios, assuming the attacker has unlimited profiling traces and computational power.

Standard profiling side-channel analysis workflow involving a profiling device and an attacking device.

However, this "unbounded" model is often unrealistic. In practice, attackers face constraints in time, data, and expertise. Furthermore, collecting excessive profiling data can lead to overfitting, where a model learns the specific noise of the profiling device rather than the generalizable leakage characteristics, ultimately degrading performance on the target device.

The Efficient Attacker Framework (EAF)

The EAF proposes a more objective metric for comparing attacks by measuring the minimum resources needed to reach a security threshold. Specifically, it tracks the number of profiling traces ($N$) and the number of hyperparameter tuning experiments ($h$).

The success criterion is typically defined as reaching a Guessing Entropy (GE) of less than 20, meaning the correct key is among the top 20 candidates. This approach treats tuning as a finite resource, acknowledging the real-world costs of an attack.

Theoretical Foundations: UAT and Single-Trace Attacks

The authors bridge deep learning theory and SCA using the Universal Approximation Theorem (UAT). Since physical leakage is a measurable physical quantity, a sufficiently complex neural network can, in theory, model it perfectly. This leads to the conclusion that a profiling attack can succeed using only a single measurement in the attack phase, provided the model is trained with sufficient and high-quality data.

Experimental Evaluation

The framework was tested on two benchmarks: DPAv4 (a masked AES software implementation) and ASCAD (a masked AES implementation where masks are known during profiling).

Key Results

The study revealed several critical insights into model efficiency and the impact of data volume:

  • Single-Trace Success: Using the "Identity" leakage model, both MLPs and CNNs reached the GE < 20 threshold with just one attack trace after training on 15,000 to 20,000 profiling traces.
  • The Overfitting Paradox: Counter-intuitively, more data is not always better. As shown in the experimental results, a model trained on a smaller, more representative set of traces can outperform one trained on a much larger set when applied to a different target device, highlighting the risks of learning device-specific noise.
Guessing entropy as a function of the number of attack traces for different profiling set sizes (10,000 vs 40,000 traces).
  • Model Comparison: MLPs were generally more efficient in terms of the number of profiling traces required, while CNNs offered better robustness against trace misalignment. The "Identity" leakage model proved more efficient for the attack phase than the "Hamming Weight" model.

Conclusion

The Restricted Attacker Framework provides a rigorous methodology for evaluating SCA by focusing on efficiency rather than just peak performance. By quantifying the cost of profiling and tuning, it offers a more realistic assessment of cryptographic security in the face of modern deep learning-based attacks.

Summary updated

BibTeX
@article{picek2019profiling,
  author = {Stjepan Picek and Annelie Heuser and Sylvain Guilley},
  title = {{Profiling Side-channel Analysis in the Restricted Attacker Framework}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2019},
  url = {https://openreview.net/forum?id=LTyxTFLzJ-b},
}
Figure