Introduction
Profiling side-channel attacks (SCA), such as Template Attacks and Deep Learning-based SCA, represent the most potent threat to cryptographic implementations. These attacks rely on a two-phase process: a profiling phase where an attacker characterizes the device's leakage using a controlled clone, followed by an extraction phase on the target device. However, a significant practical bottleneck exists: the requirement for massive amounts of profiling data. In real-world scenarios, constraints on time, resources, or countermeasures like session key rotations often limit the available data, leading to suboptimal attack models.
This research addresses this challenge by introducing a novel data augmentation technique based on Conditional Generative Adversarial Networks (CGANs). By generating high-fidelity synthetic power traces from a limited set of real measurements, the authors demonstrate a significant enhancement in the success rate of profiling attacks under data-scarce conditions.
Methodology: The CGAN Approach
The core of the proposed method is the use of a CGAN to bridge the data gap. Unlike standard GANs that generate samples from a random distribution, a CGAN incorporates a conditional label $y$—in this context, the intermediate value of a cryptographic operation (e.g., an S-box output). This conditioning allows the attacker to generate synthetic traces corresponding to specific sensitive values.
As illustrated in Figure 1, the architecture utilizes fully connected layers for both the Generator and Discriminator. The training process incorporates modern deep learning techniques, including Batch Normalization, LeakyReLU activations, and the Adam optimizer, to ensure stability and convergence. The resulting synthetic traces are then combined with the original small dataset to create an "augmented profiling set" for training various classifiers, such as Multi-Layer Perceptrons (MLP) and Convolutional Neural Networks (CNN).
Experimental Validation
The effectiveness of the CGAN augmentation was evaluated across five diverse scenarios, ranging from simulated traces to real-world datasets like DPAcontest v4, ChipWhisperer (CW), ASCAD, and AES_RD (featuring random delay countermeasures).
A critical aspect of the evaluation was verifying that the generated traces were not merely "plausible noise" but captured the actual physical leakage of the device. The authors employed Correlation Power Analysis (CPA) to compare the leakage characteristics of synthetic traces against real ones.
As shown in Figure 2, the synthetic traces successfully replicate the statistical leakage of the original device, with correlation peaks appearing at the exact same time samples. This confirms that the CGAN effectively learns the underlying physical relationship between power consumption and sensitive data.
Key Results and Insights
The study yielded several significant findings:
- Performance Gains: On the DPAcontest v4 dataset, augmenting 1,000 real traces with 1,000 synthetic ones reduced the Guessing Entropy (the average rank of the correct key) from 550 to 207.
- Enabling Impossible Attacks: In experiments with the ChipWhisperer dataset, an attack that failed completely with only 100 real traces (Guessing Entropy > 2000) became successful after augmentation with 400 CGAN-generated traces, achieving a Guessing Entropy of 853.
- Robustness: The CGAN proved capable of learning higher-order leakages in masked implementations and remained effective even in the presence of desynchronization (jitter), although "leakage noise" increased in the latter case.
- Label Sensitivity: The choice of conditioning label is vital. Using the Least Significant Bit (LSB) was found to be more effective than Hamming Weight (HW), largely due to the data imbalance inherent in HW distributions which can hinder GAN training on small datasets.
Conclusion and Future Work
While CGAN-based augmentation offers a powerful tool for SCA, it is not without limitations. If the initial profiling set is too small (e.g., fewer than 50 traces), the resulting synthetic data may contain excessive noise that degrades model performance. Furthermore, GAN training remains sensitive to hyperparameter selection. Future research will focus on refining GAN architectures for more complex implementations and improving robustness against advanced countermeasures like significant temporal jitter.
Overall, this work demonstrates that CGANs can effectively learn and replicate the physical leakage of cryptographic devices, providing a viable path for conducting successful profiling attacks even when data is severely limited.
Summary updated