Make Some Noise: Unleashing the Power of Convolutional Neural Networks for Profiled Side-channel Analysis

Jaehun Kim, Stjepan Picek, Annelie Heuser, Shivam Bhasin, Alan Hanjalic

Abstract

Profiled side-channel analysis (SCA) has become a cornerstone of cryptographic security evaluation. However, deep learning models often struggle with overfitting to device-specific noise or failing against countermeasures like random delays. This paper introduces the RD network, a high-performance Convolutional Neural Network (CNN) architecture optimized for SCA. By employing small filters in a deep stack and utilizing artificial Gaussian noise as a regularization tool, the proposed method significantly improves generalization. Notably, the RD network can break implementations protected by random delays using as few as two traces, outperforming existing state-of-the-art models.

Introduction

Side-channel analysis exploits physical leakages, such as power consumption or electromagnetic emissions, to extract secret keys from cryptographic devices. To counter these threats, engineers implement countermeasures such as masking (splitting secrets into random shares) or random delays (inserting dummy operations to desynchronize the signal). While CNNs are theoretically capable of overcoming these countermeasures, they face two primary hurdles: overfitting to training-device noise and the lack of robust, standardized architectures.

Methods

The authors propose a specialized architecture and a novel training strategy to address these challenges.

The RD Network Architecture

Inspired by "sample-level" CNNs used in audio processing, the RD network utilizes very small filters (size 3) across multiple stacked layers. This design allows the network to learn complex hierarchical features from 1D time-series data without the excessive parameter count that often leads to memorization.

Architecture of the RD network, featuring stacked convolutional layers with small filters, batch normalization, and dropout.

As shown in the figure, the architecture incorporates Batch Normalization (BN) for training stability and Dropout layers to prevent the fully connected layers from over-relying on specific neurons. The network transitions from 8 filters in the initial layer to 256 in the final convolutional stages before flattening into a 512-neuron dense layer.

Artificial Noise Injection

A key innovation is the intentional addition of Gaussian noise to input traces during the training phase. Mathematically equivalent to adding a Tikhonov regularization term to the loss function, this "blurring" of high-frequency artifacts forces the network to focus on robust, lower-frequency patterns representing actual cryptographic operations rather than transient noise.

Experimental Setup

The RD network was evaluated across four distinct datasets to ensure broad applicability:

  1. DPAcontest v4: A masked software AES implementation.
  2. AES_HD (Hardware): An unprotected hardware AES on an FPGA with extremely low Signal-to-Noise Ratio (SNR ≈ 0.0096).
  3. AES_RD (Random Delay): A software implementation with significant temporal misalignment.
  4. ASCAD: The industry-standard benchmark for masked AES implementations.

Key Results

The RD network demonstrates superior performance across all benchmarks, particularly in challenging desynchronized environments.

  • Breaking Random Delays: On the AES_RD dataset, the RD network (trained with noise) reached a Guessing Entropy of 1—meaning the secret key was successfully revealed—using only 2 traces. For comparison, the standard ASCAD model required roughly 300 traces on the same dataset.
  • Universal Regularization: Adding artificial noise improved the performance of every model tested. Even the baseline ASCAD model saw its performance on its own benchmark dataset improve significantly when trained with noise.
  • Low-SNR Robustness: On the extremely noisy AES_HD dataset, the CNNs were able to extract the key where traditional Template Attacks (TA) struggled, proving that deep learning is particularly potent in low-SNR environments.

Discussion and Conclusion

The study reveals that noise, often viewed as an adversary in signal processing, can serve as a powerful teacher in deep learning for SCA. By forcing the model to ignore fine-grained noise patterns, it learns more generalizable features of the cryptographic leakage.

However, the authors note that there is "no free lunch": a network optimized for masking may not be ideal for random delays, and performance can vary depending on training data folds. Practical attacks may require a suite of specialized models rather than a single "master" algorithm. Future work will explore adversarial noise patterns and ensemble methods to further enhance the robustness of profiled attacks.

Summary updated

BibTeX
@article{kim2019make,
  author = {Jaehun Kim and Stjepan Picek and Annelie Heuser and Shivam Bhasin and Alan Hanjalic},
  title = {{Make Some Noise: Unleashing the Power of Convolutional Neural Networks for Profiled Side-channel Analysis}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2019},
  doi = {10.13154/tches.v2019.i3.148-179},
}
Figure