Diffuse Some Noise: Diffusion Models for Measurement Noise Removal in Side-channel Analysis

Sengim Karayalcin, Guilherme Perin, Stjepan Picek

Introduction

Side-channel analysis (SCA) exploits physical leakages—such as power consumption or electromagnetic emanation—to extract secret keys from hardware implementations of cryptographic algorithms. A primary obstacle in real-world SCA is noise, which can be categorized into measurement noise (environmental interference) and algorithmic noise (parallel operations). While deep learning-based denoising autoencoders have shown promise, they typically require a "profiled" setting where an attacker has access to a clone device to generate clean training data. This paper addresses the challenge of denoising in a "non-profiled" setting, where only noisy target data is available.

Methodology: Denoising Diffusion Probabilistic Models

The authors propose the use of Denoising Diffusion Probabilistic Models (DDPMs) to strip noise from side-channel traces. The core mechanism involves a two-stage process: a forward diffusion process that incrementally adds Gaussian noise to the data until it becomes pure noise, and a learned backward process that reverses this transformation to reconstruct the original signal.

The forward and backward diffusion process used to iteratively denoise side-channel traces.

Unlike standard DDPMs used for image generation, which rely on complex convolutional layers, the authors developed a specialized U-Net architecture using Multi-Layer Perceptrons (MLPs). This architecture is optimized for 1D synchronized side-channel traces, incorporating downsampling and upsampling layers to capture multi-scale features. Crucially, this approach is unsupervised; the model learns the signal's structure directly from the noisy dataset without requiring a "clean" reference.

Key Insights: Learning Correlation

A significant finding of this work is that DDPMs succeed by identifying and combining correlated features across a trace. In high-sampling-rate captures, sensitive values are often manipulated multiple times. The diffusion model learns to find these related points and merges their information, effectively amplifying the signal while suppressing uncorrelated Gaussian noise. However, the method is less effective against algorithmic noise, as such noise is often deterministic and treated as part of the signal by the model.

Key Results and Evaluation

The method was evaluated on several prominent SCA benchmarks, including ASCADv2, ESHARD, and various FPGA-based AES implementations. The results demonstrate substantial improvements in data quality and attack efficiency.

Comparison of Signal-to-Noise Ratio (SNR) between original (a) and diffused (b) traces.

As shown in the SNR analysis, the diffusion process can boost the SNR of secret shares by a factor of 9x to 10x in challenging datasets like ASCADv2. This improvement translates directly into more efficient attacks. For instance, a collision attack on ASCADv2 required 40% fewer traces to retrieve the secret key after denoising. Furthermore, when paired with state-of-the-art non-profiled deep learning attacks (like MORE), the denoised traces allowed for successful key recovery with 20,000 traces, compared to the 50,000 required for the original noisy data.

Discussion and Limitations

While highly effective, the current DDPM approach has limitations. It primarily targets aligned traces; the MLP-based architecture may struggle with desynchronized data caused by random delay countermeasures. Additionally, training diffusion models involves higher computational overhead compared to traditional statistical filters. Future research directions include exploring Transformer-based architectures to handle misaligned traces and using DDPMs for pre-training classification models to further enhance attack performance.

Conclusion

This work demonstrates that diffusion models are a powerful tool for non-profiled denoising in side-channel analysis. By significantly lowering the data requirements for successful attacks without needing a profiled device, this method represents a notable advancement in the field of hardware security evaluation.

Summary updated

BibTeX
@inproceedings{karayalcin2025diffuse,
  author = {Sengim Karayalcin and Guilherme Perin and Stjepan Picek},
  title = {{Diffuse Some Noise: Diffusion Models for Measurement Noise Removal in Side-channel Analysis}},
  booktitle = {SAC},
  year = {2025},
  doi = {10.1007/978-3-032-10536-3\_27},
}
Figure