Weakly Profiling Side-channel Analysis

Lichao Wu, Guilherme Perin, Stjepan PicekIACR 2024

Abstract

Profiling side-channel analysis (SCA), recognized for its robust attack performance in worst-case scenarios, necessitates adversaries to have a cloned device for profiling measurements and secret information for data labeling. On the other hand, non-profiling attacks eschew these requirements by trying all key guesses. Although more suitable for real-world attack scenarios, they may suffer from mediocre attack performance due to the lack of leakage insight. This paper introduces a novel weakly profiling side-channel analysis method that bridges classical profiling and non-profiling analyses. Our method operates within a profiling framework yet discards the necessity for a cloned device, relying on the fact that there is commonly a bijective relationship between known information, such as plaintext and ciphertext, and secret information. This relationship allows an adversary to label leakage measurements using known information and then profile leakages directly on the attacked device. Empirical results show that the proposed approach achieves at least three times better attack performance with negligible computational effort than existing non-profiling methods, even rivaling state-of-the-art profiling attacks.

Introduction

In the high-stakes world of hardware security, Side-channel Analysis (SCA) is a critical tool for evaluating cryptographic implementations. By measuring physical leakages like power consumption or electromagnetic emissions, attackers can infer secret keys. Traditionally, SCA is divided into two paradigms:

  1. Profiling Attacks: The "worst-case" scenario where an attacker possesses a programmable clone of the target device to build a detailed leakage model (e.g., using deep learning). While highly efficient, the requirement for a cloned device is often unrealistic.
  2. Non-profiling Attacks: More realistic scenarios where the attacker only has access to the target device and uses statistical methods (like Correlation Power Analysis) to test key guesses. These often require significantly more traces to succeed due to a lack of prior leakage insight.

This research introduces "Weakly Profiling SCA," a hybrid approach that offers the efficiency of profiling without the need for a cloned device.

The Weakly Profiling Methodology

The fundamental insight of this work is the bijective relationship (a one-to-one mapping) between public information (plaintext/ciphertext) and secret intermediate states. In standard cryptographic algorithms like AES, if the key is fixed, every unique plaintext corresponds to a unique secret intermediate state (e.g., the output of an S-box).

Conceptual framework of Weakly Profiling SCA showing the bijective mapping between intermediate data and plaintext models.

Workflow

  1. Labeling with Public Data: Instead of labeling traces with unknown secret data, the attacker labels leakage traces with known plaintext bytes.
  2. On-Device Training: A Convolutional Neural Network (CNN) is trained directly on the target device's traces. The model learns to identify physical leakage features associated with different plaintexts, which implicitly captures features of the secret state due to the bijective mapping.
  3. Spearman Correlation Analysis: Post-training, the model outputs a probability vector. The attacker uses Spearman correlation to compare this output against a plaintext distribution calculated for every possible key guess. The guess with the highest correlation identifies the secret key.
  4. Resilience via Data Augmentation: To prevent overfitting and handle desynchronization (jitter), the authors employ data augmentation techniques like random time-shifting, forcing the model to learn global leakage features.

Experimental Evaluation

The method was validated against five challenging benchmarks, including masked software implementations (ASCAD, CHES_CTF) and hardware implementations protected by random delays (AES_RD) or electromagnetic leakage (AES_HD).

Key Results

The "Weakly Profiling" approach demonstrated remarkable efficiency:

  • 3x Performance Gain: Across most datasets, it required significantly fewer traces than state-of-the-art non-profiling methods like Deep Differential Leakage Analysis (DDLA).
  • Rivaling Profiling Attacks: In several cases, the performance matched or exceeded traditional profiling attacks that benefited from a cloned device.
  • The "One-Trace" Success: On the AES_RD dataset, the method could reveal the key with just a single attack trace after training, whereas existing non-profiling methods required over 2,500 traces.

Discussion and Limitations

While powerful, the method faces specific challenges. If a device leaks plaintext directly before encryption begins, the model might learn these non-secret features, requiring careful preprocessing. Additionally, extremely complex higher-order masking protections remain difficult for this approach to penetrate without further refinement. Finally, the attack still depends on choosing an appropriate leakage model (e.g., Hamming Weight).

Conclusion

Weakly Profiling SCA effectively moves the goalposts for realistic hardware threats. It proves that an attacker with only a target device can leverage the power of deep learning to achieve "worst-case" attack performance, significantly lowering the barrier for sophisticated side-channel exploitation.

Summary updated

BibTeX
@inproceedings{wu2024weakly,
  author = {Lichao Wu and Guilherme Perin and Stjepan Picek},
  title = {{Weakly Profiling Side-channel Analysis}},
  booktitle = {IACR},
  year = {2024},
  doi = {10.46586/tches.v2024.i3.707-730},
}
Figure