Learning to Localize Leakage of Cryptographic Sensitive Variables

Jimmy Gammell, Anand Raghunathan, Abolfazl Hashemi, Kaushik Roy
3/10/2025
cs.LGcs.CR

No official code found. Best implementation: jimgammell/learning_to_localize_leakage (4 stars, MIT, last commit 2026-04-16).

Abstract

While cryptographic algorithms such as the ubiquitous Advanced Encryption Standard (AES) are secure, *physical implementations* of these algorithms in hardware inevitably 'leak' sensitive data such as cryptographic keys. A particularly insidious form of leakage arises from the fact that hardware consumes power and emits radiation in a manner that is statistically associated with the data it processes and the instructions it executes. Supervised deep learning has emerged as a state-of-the-art tool for carrying out *side-channel attacks*, which exploit this leakage by learning to map power/radiation measurements throughout encryption to the sensitive data operated on during that encryption. In this work we develop a principled deep learning framework for determining the relative leakage due to measurements recorded at different points in time, in order to inform *defense* against such attacks. This information is invaluable to cryptographic hardware designers for understanding *why* their hardware leaks and how they can mitigate it (e.g. by indicating the particular sections of code or electronic components which are responsible). Our framework is based on an adversarial game between a family of classifiers trained to estimate the conditional distributions of sensitive data given subsets of measurements, and a budget-constrained noise distribution which probabilistically erases individual measurements to maximize the loss of these classifiers. We demonstrate our method's efficacy and ability to overcome limitations of prior work through extensive experimental comparison with 8 baseline methods using 3 evaluation metrics and 6 publicly-available power/EM trace datasets from AES, ECC and RSA implementations. We provide an open-source PyTorch implementation of these experiments.

View on arXivView PDF

Code Implementations(1)

MIT
40Shell, PythonOct 9, 20246 months agoMIT

Similar Papers

Cite this paper

@article{gammell2025learning,
  title  = {Learning to Localize Leakage of Cryptographic Sensitive Variables},
  author = {Jimmy Gammell and Anand Raghunathan and Abolfazl Hashemi and Kaushik Roy},
  year   = {2025},
  eprint = {2503.07464},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.07464v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.07464.svg)](https://codeofpaper.com/paper/2503.07464)

Discussion