Abstract
Side-channel analysis (SCA) often relies on predefined leakage models like Hamming Weight (HW) or Identity (ID), which may not accurately reflect complex physical leakages. This paper introduces a multi-bit leakage model for deep learning-based SCA (DLSCA) that independently classifies each bit of a target intermediate value. By leveraging multi-task learning (MTL), the proposed Multi-byte Multi-bit (MMB) framework can simultaneously recover all 16 AES subkey bytes in a single training session. Experimental results across five datasets, including protected software and hardware implementations, demonstrate that MMB matches or exceeds the performance of traditional models while offering greater flexibility and efficiency.
Introduction
In hardware security, Side-Channel Analysis (SCA) involves deducing secret cryptographic keys by measuring physical observables like power consumption or electromagnetic emissions. Traditional profiling SCA requires an adversary to use a "clone" device to train a model based on a specific leakage model. Common models include the Hamming Weight (HW) model, which assumes all bits contribute equally to power consumption, and the Identity (ID) model, which treats each byte value as a distinct class.
However, these rigid assumptions often fail when dealing with complex countermeasures or non-standard hardware behaviors. Attackers frequently must resort to trial-and-error to find an effective model. Furthermore, standard DLSCA attacks typically target one subkey byte at a time, necessitating 16 separate training and attack phases for a full AES-128 key recovery.
Methods: The Multi-bit and Multi-byte Approach
The authors propose a fundamental shift in DLSCA architecture through two primary innovations:
1. The Multi-bit Model
Instead of treating a byte as a single entity (ID) or a sum (HW), the network is designed to predict each of the 8 bits of a byte independently. This "disassembled" approach allows the neural network to learn the specific leakage characteristics of individual bits. During training, the model effectively "evolves" into an optimal leakage model for the target device, assigning appropriate weights to different bits based on their physical signals.
2. Multi-byte Multi-bit DLSCA (MMB)
Extending this concept using Multi-task Learning (MTL), the authors developed the MMB framework to target the entire key simultaneously. The architecture utilizes a "tree structure": a shared main branch extracts general features from power traces, which then feeds into 16 separate sub-branches (one per AES subkey byte). Each sub-branch independently predicts its 8 constituent bits. This structure acts as a regularizer, forcing the model to find features useful across the entire cryptographic operation and preventing overfitting to noise in a single byte's data. Additionally, the study emphasizes that data augmentation, specifically random shifting, is a crucial element for these flexible models to succeed, particularly when dealing with misaligned traces common in real-world scenarios.
Experimental Validation
The MMB approach was validated on five distinct datasets:
- ASCAD_F & ASCAD_R: Fixed and random-key traces from an 8-bit AVR microcontroller.
- CHES_CTF: Traces from a 32-bit STM32 microcontroller.
- eShard: EM leakage traces from a Cortex-M4 (STM32F446).
- SMAesH: A high-end hardware AES implementation on an Artix-7 FPGA with advanced masking and glitches.
Key Results
The MMB method consistently outperformed or matched state-of-the-art models:
- Efficiency: MMB is the first method to demonstrate recovering all 16 subkey bytes at once, reducing total training time from hours to approximately 30 minutes.
- Robustness: On the eShard dataset, where traditional HW, ID, and MSB models failed for several bytes, MMB successfully recovered all of them.
- Performance: On ASCAD_F, MMB reached a guessing entropy of zero ($T_{GE0}$) for the difficult $k_{12}$ byte in 219 traces, while traditional models failed within a 5,000-trace limit.
- Hardware Challenge: In the SMAesH case study, MMB achieved a full 128-bit key rank of $2^{66.9}$, surpassing the previous best-reported attack of $2^{68}$.
Conclusion
By moving away from rigid leakage models and adopting a multi-task, bit-level classification strategy, this research provides a more flexible and efficient framework for side-channel analysis. The multi-bit model not only improves attack success rates but also serves as a diagnostic tool, revealing which specific bits contribute most to physical leakage. Future work will explore the use of residual connections and inter-bit dependencies to further enhance the model's ability to capture complex non-linear leakages.
Summary updated