TL;DR
This paper introduces a novel way to use Denoising Diffusion Probabilistic Models (DDPMs)—the tech behind image generators like Stable Diffusion—to strip measurement noise from side-channel traces. Crucially, this method works in a fully "non-profiled" setting, meaning an attacker can denoise data without needing a "clean" reference device or prior knowledge of the implementation, significantly lowering the barrier to successful cryptographic attacks.
What Problem Does This Paper Address?
Side-channel analysis (SCA) exploits physical leakages—like power consumption or electromagnetic emanation—to steal secret keys from hardware. However, real-world measurements are messy. They are plagued by measurement noise (environmental interference) and algorithmic noise (parallel operations on the chip).
To combat this, researchers have used deep learning "denoising autoencoders" in the past. The catch? These usually require a "profiled" setting where the attacker has a clone device they can control to generate "clean" traces for training. In many real-world scenarios, an attacker only has the noisy data from the target. This paper fills that gap by providing a way to denoise traces using only the noisy data itself.
Methods
The authors leverage Denoising Diffusion Probabilistic Models (DDPMs). In a typical diffusion setup, you take data and iteratively add Gaussian noise until it's unrecognizable (the forward process), then train a model to reverse that process (the backward process).
What’s New: * Unsupervised Denoising: Instead of needing a "clean" version of a trace, the DDPM learns the underlying structure of the signal from the noisy dataset itself. * U-Net MLP Architecture: While most DDPMs use complex convolutional layers for images, the authors found that for 1D synchronized side-channel traces, a simpler U-Net structure built from Multi-Layer Perceptrons (MLPs) with downsampling and upsampling layers is highly effective. * Implicit Feature Combination: The model doesn't just "blur" or "smooth" the noise; it learns to find correlated points across the trace that leak the same information and combines them to amplify the signal.
Datasets
The study evaluates the method across several prominent SCA benchmarks:
- ASCADv2: A notoriously difficult software implementation of AES featuring affine masking and shuffling.
- ESHARD: An AES implementation with first-order Boolean masking.
- ASCADf: A fixed-key AES dataset with Boolean masking.
- AES_HD & AES_HD_MM: FPGA-based AES implementations (unprotected and masked).
- ASCON: An implementation of the ASCON cipher used in authenticated encryption.
Key Insights and Ideas
- The "Aha" Moment on Correlation: The authors discovered that DDPMs succeed because they learn to differentiate signal from noise by looking for correlated features. If a sensitive value is manipulated multiple times (common in high-sampling-rate captures), the DDPM identifies these related points and merges their information to boost the Signal-to-Noise Ratio (SNR).
- Measurement vs. Algorithmic Noise: The method is specifically powerful against measurement noise (Gaussian). It is less effective against algorithmic noise because that noise is "part of the signal"—it happens every time the code runs, so the model treats it as a feature to be reconstructed rather than noise to be removed.
- Ease of Use: Unlike previous denoising methods that require intense manual tuning and domain expertise, the DDPM approach proved robust across different datasets with relatively standard hyperparameter settings.
Key Results
- SNR Improvements: In the ASCADv2 dataset, the SNR for certain secret shares improved by a factor of 9x to 10x.
- Attack Efficiency: For a collision attack on ASCADv2, the number of traces required to retrieve the secret key was reduced by 40%.
- Deep Learning Synergy: When using the MORE attack (a state-of-the-art non-profiled deep learning attack) on the ESHARD dataset, denoised traces allowed the attack to succeed with 20,000 traces, whereas the original noisy data required 50,000.
- Profiling Simplification: For profiled attacks, using denoised data made it significantly easier to find working neural network architectures, even when the number of available training traces was low.
Limitations and Future Work
- Alignment Dependency: The current work focuses on aligned traces. If the traces are desynchronized (a common countermeasure where operations are randomly delayed), the current MLP-based architecture would likely struggle.
- Computational Overhead: Training a DDPM is more computationally expensive than simple statistical filtering, though the authors argue this is a minor trade-off for the massive gains in attack efficiency.
- Future Directions: The authors suggest investigating more complex architectures (like Transformers) to handle misaligned traces and exploring whether DDPMs can be used to "pre-train" parts of a classification model to further improve attack speeds.
Summary updated