Plaintext-based Side-channel Collision Attack

Lichao Wu, Sébastien Tiran, Guilherme Perin, Stjepan PicekIACR Commun. Cryptol 2024

Abstract

Side-channel collision attacks (SCCA) are a potent class of cryptographic attacks that exploit physical leakages without requiring a specific power model. However, their practical application is often limited by the "curse of trace segmentation"—the requirement for precise alignment and extraction of relevant trace segments. This paper presents PSCCA (Plaintext-based Side-channel Collision Attack), a novel framework that leverages deep learning to perform collision attacks on raw, unsegmented traces. By using plaintext bytes as labels and employing multi-task learning alongside an LDPC-inspired error correction scheme, PSCCA achieves a 100% success rate on masked AES datasets while reducing training time from hours to minutes.

Introduction

Side-channel analysis (SCA) involves monitoring physical emissions, such as power consumption or electromagnetic radiation, to extract secret keys from cryptographic devices. Among SCA techniques, collision attacks are particularly elegant because they identify instances where a device performs identical operations on identical data, thereby leaking information about the internal state without needing a detailed leakage model.

Despite their theoretical appeal, traditional SCCAs face significant practical hurdles. Most notably, they require extremely precise "trace segmentation." An attacker must know exactly when a specific operation (e.g., an AES S-box substitution) occurs. In real-world scenarios, noise, clock jitter, and countermeasures like masking or desynchronization make this segmentation difficult and error-prone. If the timing is off by even a small margin, the attack typically fails.

The PSCCA Framework

The authors address these challenges by introducing PSCCA, which bypasses the need for manual segmentation. The core innovation lies in Plaintext-based Profiling. Since there is a bijective (one-to-one) mapping between a plaintext byte and the intermediate state of a cipher when the key is fixed, the plaintext itself can serve as a label for training deep learning models.

Methodology and Architecture

The PSCCA workflow involves several key components designed to maximize efficiency and robustness:

  1. Multi-task Learning (MTL): Rather than training 16 individual models for each byte of an AES key, the authors utilize a single Convolutional Neural Network (CNN) with a shared feature extraction backbone and 16 task-specific heads. This allows the model to learn general leakage features from the entire trace simultaneously, significantly speeding up the profiling phase.
  2. Spearman Correlation: Once trained, the model generates probability vectors for each byte. Instead of using standard Pearson correlation, the authors employ Spearman correlation. This rank-based approach is more resilient to non-linear relationships between physical leakage and data values, providing a more stable metric for identifying collisions.
  3. LDPC-inspired Error Correction: Collision attacks typically recover the difference ($\Delta$) between key bytes rather than the keys themselves. The authors observed that these differences must be mathematically consistent across the key (e.g., $\Delta_{1,2} \oplus \Delta_{2,3} = \Delta_{1,3}$). They implemented an error-correction scheme inspired by Low-Density Parity-Check (LDPC) codes to resolve inconsistencies and correct erroneous guesses by leveraging the consensus of multiple byte pairs.
Workflow of the PSCCA attack showing profiling and attacking phases.

Experimental Evaluation

The effectiveness of PSCCA was evaluated using three prominent side-channel benchmarks, all featuring masked AES implementations:

  • ASCAD_F (Fixed Key): A standard profiling dataset.
  • ASCAD_R (Random Key): A more rigorous test of the model's generalization capabilities.
  • CHES_CTF: A high-noise dataset from a cryptographic competition, representing a challenging real-world scenario.

Key Insights

  • Automated Feature Selection: By training on unsegmented traces, the CNN naturally identifies the most relevant leakage points. The model "zooms in" on the S-box operations because they are the only segments that consistently correlate with the plaintext labels.
  • Robustness to Noise: The use of data augmentation—specifically adding random temporal shifts during training—forces the model to ignore timing jitters and focus on global leakage patterns, making the attack more robust.
  • Information in Errors: Interestingly, the model does not need to achieve high classification accuracy to be effective. Even "incorrect" predictions contain structural information about the physical leakage that can be exploited to find collisions.

Results and Discussion

The results demonstrate a significant leap over previous state-of-the-art methods like DL-SCCA.

  • Efficiency: Training time was reduced from over three hours to just five minutes.
  • Success Rate: PSCCA achieved a 100% Overall Success Rate (OSR) on the ASCAD datasets under "black box" conditions, where the attacker has no knowledge of the device's internal timing. In contrast, previous methods often failed or saw performance drops to 76%.
  • Trace Requirements: On the ASCAD_F dataset, the attack successfully recovered all key bytes using fewer than 500 traces, highlighting its practicality for real-world scenarios.

Conclusion and Future Work

PSCCA effectively breaks the "curse of segmentation," making collision attacks more accessible and powerful. While the current implementation relies on the bijectivity of the plaintext-to-intermediate-state mapping—which may not hold for all ciphers like DES—it sets a new benchmark for deep learning-based SCA. Future research may explore more advanced correlation metrics and architectures to further reduce trace requirements and extend the attack's applicability to a wider range of cryptographic algorithms.

Summary updated

BibTeX
@article{wu2024plaintext,
  author = {Lichao Wu and Sébastien Tiran and Guilherme Perin and Stjepan Picek},
  title = {{Plaintext-based Side-channel Collision Attack}},
  journal = {IACR Commun. Cryptol.},
  year = {2024},
  doi = {10.62056/a36cy7qiu},
}
Figure