Label Correlation in Deep Learning-Based Side-Channel Analysis

Lichao Wu, Léo Weissbart, Marina Krček, Huimin Li, Guilherme Perin, Lejla Batina, Stjepan Picek

TL;DR

This paper introduces a way to break cryptographic implementations using up to 10x fewer power/electromagnetic traces by training deep learning models on "distributed labels" rather than standard one-hot encodings. It also proposes Label Correlation (LC), a new evaluation metric that more accurately tracks an attack's success and prevents overfitting compared to traditional metrics like accuracy or cross-entropy loss.

What Problem Does This Paper Address?

Side-channel analysis (SCA) involves stealing secret keys from hardware by measuring physical leakages like power consumption. While Deep Learning (DL) has revolutionized this field, it is notoriously "data-hungry." In real-world scenarios, an attacker might only have access to a few hundred or thousand traces due to time constraints, security countermeasures, or hardware "life-cycle" counters that limit the number of operations a device can perform.

Furthermore, standard machine learning metrics (like accuracy) are often poor indicators of SCA success. A model might have low classification accuracy but still be excellent at "ranking" the correct key at the top. Conversely, a model might look like it's performing well on loss functions while actually overfitting and failing the final attack.

Methods

The authors propose two major innovations:

  1. Label Distribution Learning (LDL): Instead of telling a model that a trace belongs to exactly one class (one-hot encoding), they use a Gaussian distribution centered on the true label. This "softens" the labels, acknowledging that traces with similar intermediate values (e.g., similar Hamming Weights) should look similar to the model. This helps the model learn the underlying mathematical relationship between labels faster, especially when data is scarce.
  2. Label Correlation (LC) Metric: They define a theoretical "Key Distribution" (KD) based on the geometric distance between key candidates in a specific leakage model. LC is the Spearman correlation between this theoretical distribution and the model's actual predicted probabilities. Unlike Guessing Entropy (the gold standard for SCA), LC is computationally cheap to calculate during training and provides a much clearer signal of when a model is starting to overfit.

Datasets

The researchers validated their approach on three industry-standard benchmarks:

  • ASCAD_f (Fixed Key): 50,000 profiling traces, 700 features.
  • ASCAD_r (Random Key): A more difficult version with 200,000 traces and 1,400 features.
  • CHES_CTF: A dataset from the 2018 CHES competition featuring masked AES on a 32-bit microcontroller.

Key Insights and Ideas

  • Labels aren't independent: In most ML tasks (like cat vs. dog), classes are distinct. In SCA, labels represent mathematical values (like Hamming Weight). A trace for "Weight 4" is physically more similar to "Weight 5" than to "Weight 0." LDL exploits this "neighborhood" information.
  • The "Overfitting Alarm": The authors found that LC is incredibly sensitive to the "disorder" of key candidates. Even if the model still correctly identifies the top key, a drop in LC indicates that the relative ranking of the wrong keys is becoming chaotic—a precursor to total model failure (overfitting).
  • Efficiency over Volume: By using LDL, the authors achieved a "Guessing Entropy" of zero (successful attack) using only 3,000–6,000 traces on datasets where previous state-of-the-art methods required 50,000 or more.

Key Results

  • Data Reduction: On the ASCAD_f dataset, LDL allowed successful key recovery with 10x fewer traces than conventional one-hot training.
  • Metric Superiority: In Network Architecture Search (NAS) and early stopping tests, the LC metric consistently identified the optimal model size and training epoch, whereas standard validation loss and Mutual Information (MI) were often misleading or lagged behind.
  • Robustness: The approach worked across different neural network architectures (MLPs and CNNs) and different leakage models (Hamming Weight and Identity).

Limitations and Future Work

The primary limitation is that LDL requires prior knowledge of the leakage model (e.g., knowing if the device leaks Hamming Weight or Identity) to construct the distribution. If the leakage model is unknown or highly non-linear, the performance boost may diminish.

Future Work: * Extending the method to high-order masked implementations, which are significantly harder to break. * Adapting the LC metric for black-box scenarios where the leakage model isn't known beforehand. * Applying these insights to non-profiling SCA, where the attacker doesn't have a clone device to train on.

Summary updated

BibTeX
@article{wu2023label,
  author = {Lichao Wu and Léo Weissbart and Marina Krček and Huimin Li and Guilherme Perin and Lejla Batina and Stjepan Picek},
  title = {{Label Correlation in Deep Learning-Based Side-Channel Analysis}},
  journal = {IEEE Transactions on Information Forensics and Security},
  year = {2023},
  url = {https://openreview.net/forum?id=Af1jX08l42},
}
Figure