TL;DR
This paper introduces Plaintext Labeling Deep Learning (PLDL), a breakthrough non-profiling side-channel attack that trains deep learning models using publicly available data (plaintext/ciphertext) instead of secret keys. It achieves at least 3x better performance than existing non-profiling methods and, surprisingly, rivals or even outperforms state-of-the-art profiling attacks without requiring a "clone" device.
What Problem Does This Paper Address?
Side-channel analysis (SCA) aims to extract secret keys from cryptographic devices by measuring physical leakages like power consumption or electromagnetic emissions. Traditionally, these attacks fall into two camps:
- Profiling Attacks (DLSCA): Extremely powerful but require an identical "clone" device where the attacker has full control over the keys to train a model.
- Non-profiling Attacks (CPA, DDLA): More realistic because they don't require a clone device, but they are often computationally expensive (e.g., training 256 separate neural networks for one key byte) or struggle against modern countermeasures like "masking" (hiding secrets in random noise).
The authors address this gap by asking: Can we achieve the power of profiling attacks without the unrealistic requirement of a clone device?
Methods
The core innovation is Plaintext Labeling Deep Learning (PLDL).
Standard deep learning attacks try to map leakage traces to secret intermediate values (like the output of an AES S-box). Since a non-profiling attacker doesn't know the key, they can't calculate these secret values to label their training data.
The PLDL Twist: The authors realized that if the secret key is fixed, there is a bijective (one-to-one) relationship between the public plaintext/ciphertext and the secret intermediate values.
- Training: Instead of guessing keys, the attacker trains a single neural network to map leakage traces directly to the known plaintext/ciphertext bytes.
- Key Recovery: The attacker calculates a "Plaintext Distribution" (PD) for every possible key guess. They then use Spearman correlation to see which key guess's distribution best matches the probabilities output by their trained model.
- Data Augmentation: The authors highlight that random shifting of traces (data augmentation) is critical to prevent the model from overfitting on noise and help it focus on the actual cryptographic operations.
Datasets
The researchers evaluated PLDL against five widely recognized benchmarks, covering both software and hardware implementations with various countermeasures:
- ASCAD_F & ASCAD_R: Masked AES-128 on an 8-bit AVR microcontroller (standard benchmarks for deep learning SCA).
- AES_RD: An implementation featuring random delay countermeasures (hiding the signal in time).
- CHES_CTF: Masked AES-128 on a 32-bit STM32 microcontroller.
- AES_HD: An unprotected hardware implementation (FPGA) that leaks information based on Hamming Distance.
Key Insights and Ideas
- The "Bijectivity" Insight: The secret is "hiding in plain sight." Because the relationship between plaintext and the internal state is fixed once the key is set, the model can learn the physical "footprint" of the data processing using only the public labels.
- Efficiency Gains: Unlike the previous state-of-the-art non-profiling attack (DDLA), which requires training 256 models, PLDL only requires one. This reduces computational effort from hours to minutes.
- Spearman over Pearson: The use of Spearman correlation provides better numerical stability, especially when the relationship between the labels and the physical leakage isn't perfectly linear.
- Portability: The paper demonstrates "portability non-profiling," where a model trained on one set of traces can be used to attack a different set of traces from the same device, further increasing the attacker's flexibility.
Key Results
The results were startling, often showing that a non-profiling attacker can be just as dangerous as one with a clone device:
- Superior Performance: PLDL reached a "key rank of zero" (successfully finding the key) at least 3x faster than other non-profiling methods like MOR or DDLA.
- Beating the "Gold Standard": In several cases, PLDL outperformed profiling attacks (DLSCA). For example, on the ASCAD_F dataset, PLDL required only 8 traces to break the key, while the profiling DLSCA required 464.
- Robustness: The method remained effective even when the traces were desynchronized (simulating clock jitter or noise), outperforming competitors in 9 out of 10 noise scenarios.
Limitations and Future Work
While powerful, the authors note a few areas for improvement:
- Leakage Model Dependency: PLDL relies on "Identity" (ID) leakages. It is slightly less efficient on hardware datasets (like AES_HD) that primarily leak "Hamming Weight" information, as the mapping becomes less direct.
- Gaussian Assumption: The current mathematical model for the plaintext distribution assumes a Gaussian noise profile, which may not always be perfectly accurate in the field.
- Future Directions: The authors suggest exploring Ensemble Learning (combining multiple neural networks) to further boost the attack's reliability and investigating ways to adapt the method for devices that only exhibit Hamming Weight leakages.
Summary updated