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 · DOI

Abstract

Side-channel analysis (SCA) extracts cryptographic keys from physical leakages, but countermeasures like masking and random delays often hinder these attacks. While Convolutional Neural Networks (CNNs) show promise, they frequently suffer from overfitting on small, specific datasets. This paper introduces the RD Network, a VGG-inspired architecture, and a novel regularization technique: artificial noise injection. By adding Gaussian noise during training, the models become more robust and generalize better. Experimental results demonstrate that this approach can break random-delay protected implementations with as few as three traces, significantly outperforming previous benchmarks.

Introduction

Side-channel analysis (SCA) is the art of extracting secret cryptographic keys by observing physical "leakage" from a device, such as power consumption or electromagnetic emissions. To stop this, engineers use countermeasures like masking (hiding data in random shares) or random delays (inserting "jitter" to misalign signals).

While Deep Learning—specifically Convolutional Neural Networks (CNNs)—has shown great promise in breaking these protections, it faces a major hurdle: overfitting. Because cryptographic datasets are often small or highly specific, a neural network might "memorize" the noise in the training data rather than learning the underlying mathematical leakage. This makes the model perform poorly when it encounters a real device in the "attack" phase. The authors set out to find a more robust CNN architecture and a way to ensure it generalizes across different types of hardware and countermeasures.

Methodology

The authors introduce two main contributions to the SCA toolkit: the RD Network architecture and artificial noise injection.

The RD Network

The RD Network is a new CNN architecture inspired by the famous VGG network from the computer vision and audio domains. It uses a "sample-level" design with very small filters (size 3) and many stacked layers. This allows the network to build complex abstractions of the 1D power signal.

Architecture of the RD Network, featuring stacked convolutional layers with Batch Normalization and Dropout.

As shown in Figure 1, the architecture incorporates Batch Normalization (BN) and Dropout to improve stability and prevent overfitting. The network transitions from 1D convolutional layers to a flattened representation, followed by a dense layer and a final classification output.

Artificial Noise Injection

During the training phase, the authors inject Gaussian noise directly into the input traces. Mathematically, this acts as a form of regularization. It "blurs" irrelevant high-frequency patterns, forcing the CNN to focus on the more stable, low-frequency features that actually correlate with the secret key. The training process uses the ADAM optimizer and minimizes cross-entropy loss, with a specific focus on using validation accuracy to prevent the model from training too long on a single dataset.

Datasets

The study evaluates the approach across four distinct scenarios to prove its versatility:

  • DPAcontest v4: A software implementation of masked AES.
  • AES_HD: An unprotected hardware implementation on an FPGA with high environmental noise.
  • AES_RD (Random Delay): A software implementation protected by random delays, causing signal misalignment.
  • ASCAD: A widely used, first-order masked AES dataset on an AVR microcontroller.

Experimental Results

The quantitative improvements were dramatic, particularly for protected implementations:

  • Random Delay Breakthrough: Using their noise-regularized RD network, the authors revealed the secret key of the AES_RD dataset using only 3 traces. This is orders of magnitude better than many previous techniques.
  • DPAcontest v4: With noise addition, the network reached a Guessing Entropy (GE) of less than 20 with just 1 trace when the profiling set was small (1,024 samples). Without noise, it required 40 traces.
  • Generalization: The noise technique even boosted the performance of the "ASCAD network" (a baseline model from previous literature), proving that the benefit of noise injection is not limited to their specific RD architecture.

Discussion and Conclusion

In most engineering contexts, noise is the enemy. Here, artificial noise is a teacher. By making the training data "harder," the model becomes more robust. The authors found that adding noise was beneficial across almost all training set sizes and durations. Furthermore, the paper demonstrates that design principles from audio processing translate remarkably well to power traces; you don't necessarily need a custom "SCA-only" architecture, but rather a well-regularized version of proven deep-learning structures.

While noise addition is powerful, the optimal level of noise ($\alpha$) still requires some tuning. Future research may explore adversarial learning to create even more robust models or design better countermeasures. The authors highlight the need for a "suite" of high-performing CNN instances rather than searching for one universal network.

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