Breaking Free: Leakage Model-free Deep Learning-based Side-channel Analysis

Lichao Wu, Amir Alipour, Azade Rezaeezade, Guilherme Perin, Stjepan PicekIACR ePrint 2023

Abstract

Side-channel Analysis (SCA) is a critical technique for evaluating the security of cryptographic implementations against physical attacks. Traditional profiling attacks require an accurate leakage model, such as Hamming Weight or Identity, to map physical signals to sensitive data. However, selecting the correct model often requires significant engineering effort and prior knowledge. This paper presents a novel "leakage model-free" deep learning approach that treats each bit of a secret key as an independent classification task. By leveraging multi-task learning, the proposed "multibyte multibit" model can efficiently crack all 16 bytes of an AES-128 key simultaneously, outperforming traditional models on several challenging datasets.

Introduction

In hardware security, Side-channel Analysis (SCA) exploits physical leakages—such as power consumption or electromagnetic emissions—to extract secret keys from cryptographic devices. Profiling attacks, particularly those based on deep learning, have become the state-of-the-art in this field. These attacks typically involve a training phase where the attacker builds a model of the device's leakage and an attack phase where the model is used to recover the key from a target device.

A significant hurdle in traditional SCA is the reliance on a "leakage model." This model is a hypothesis about how the internal data relates to the observed physical signal. Common choices include the Hamming Weight (HW) model, which assumes power usage is proportional to the number of set bits, and the Identity (ID) model, which treats every possible byte value as a unique class. If the chosen model does not match the actual hardware implementation, the attack's effectiveness is severely diminished.

Moving from Byte to Bit

To overcome the limitations of pre-defined leakage models, this research proposes a shift from byte-level to bit-level classification. Instead of attempting to classify a full byte (256 classes) or its Hamming weight (9 classes), the model predicts the state of each bit independently.

Comparison of traditional leakage models (HW, ID) versus the proposed Bit model approach.

By treating each bit as a separate classification task, the neural network can learn the specific leakage characteristics of each bit without any prior assumptions. This "multibit" approach is inherently more flexible, as it can adapt to various leakage patterns, whether they follow a standard model or a complex, non-linear relationship.

Multibyte Multibit Architecture

The authors extend the multibit concept using Multi-Task Learning (MTL) to create a "multibyte multibit" Deep Learning SCA (DLSCA) framework. The architecture consists of:

  1. Main Branch: A shared feature extraction network that processes raw signal traces to identify relevant patterns.
  2. Subbranches: Sixteen independent subbranches, one for each byte of the AES-128 key.
  3. Bit-level Outputs: Each subbranch further splits into eight outputs, each predicting a single bit of the corresponding subkey byte.

This design allows the model to attack all 16 bytes of the key simultaneously. The shared "Main Branch" benefits from the collective information across all tasks, leading to more robust feature representations and better generalization.

Experimental Evaluation

The proposed method was evaluated on four diverse datasets featuring AES-128 with Boolean masking countermeasures:

  • ASCAD_F & ASCAD_R: Based on an 8-bit AVR microcontroller.
  • CHES_CTF: A highly noisy dataset from a 32-bit STM microcontroller.
  • eShard: EM leakage from a software implementation on a Cortex-M4.

The primary metric for success was $T_{GE0}$, the number of traces required for the "Guessing Entropy" to reach zero, indicating the correct key is the most likely candidate.

Key Results

The multibit model demonstrated exceptional performance across all targets. On the ASCAD_F dataset, it recovered the most difficult byte ($k_{12}$) in just 58 traces, while traditional models (HW, ID, LSB, MSB) failed to recover it within the test limits. Furthermore, the multibyte approach proved highly efficient; training the model to attack all 16 bytes took approximately 30 minutes, averaging less than two minutes per byte.

Discussion and Insights

Several factors contributed to the success of this model-free approach:

  • Adaptability: The model successfully cracked the CHES_CTF dataset, which was previously thought to be vulnerable only to specific Hamming Weight models.
  • Data Augmentation: Shifting traces during training was identified as a critical factor for overcoming noise and misalignment, particularly in the eShard and CHES_CTF datasets.
  • Generalization: Multi-task learning helped prevent overfitting by forcing the main branch to learn features that are useful across multiple bytes.

Conclusion

This work demonstrates that deep learning can effectively eliminate the need for manual leakage modeling in Side-channel Analysis. The multibyte multibit approach offers a flexible, efficient, and powerful alternative to traditional profiling attacks. Future research will explore the use of Residual Networks (ResNets) to improve feature flow and investigate inter-bit dependencies to further enhance attack performance on wider bus architectures.

Summary updated

BibTeX
@article{wu2023breaking,
  author = {Lichao Wu and Amir Alipour and Azade Rezaeezade and Guilherme Perin and Stjepan Picek},
  title = {{Breaking Free: Leakage Model-free Deep Learning-based Side-channel Analysis}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2023},
}
Figure