arXiv:2503.07464cs.LGcs.CR2025-03中稿 · TMLR被引 1

用深度学习定位硬件加密泄漏点,帮设计师找出漏洞环节。

Learning to Localize Leakage of Cryptographic Sensitive Variables

  • 构建对抗性框架,通过噪声干扰判断各时间点泄漏程度
  • 在6个公开数据集上验证,精准识别关键泄漏时刻
  • 适合密码硬件安全设计与攻防研究者参考

尽管高级加密标准(AES)等密码算法本身安全,但其硬件实现会因功耗和电磁辐射泄露敏感数据。一种隐蔽的泄露形式是:硬件在处理数据和执行指令时,功耗与电磁信号呈现统计相关性。监督式深度学习已成为主流侧信道攻击工具,通过学习加密过程中功耗/电磁测量值与敏感数据的映射关系实施攻击。本文提出一种原理性深度学习框架,用于量化不同时间点测量值对泄漏的相对贡献,从而指导防御策略。该信息对密码硬件设计者理解泄漏成因及优化防护(如定位代码段或电路模块问题)至关重要。框架基于分类器与预算受限的噪声分布之间的对抗博弈:分类器试图从部分测量值中估计敏感数据的条件分布,而噪声分布则通过概率性擦除单个测量值以最大化分类损失。我们在6个公开的功率/电磁信号数据集(来自AES、ECC和RSA实现)上进行了广泛实验,证明了方法的有效性,并克服了以往工作的局限性。代码已开源于https://github.com/jimgammell/learning_to_localize_leakage。

原文摘要 · Abstract (English)

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 classifier 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 this classifier. We demonstrate our method's efficacy and ability to overcome limitations of prior work through extensive experimental comparison on 6 publicly-available power/EM trace datasets from AES, ECC and RSA implementations. Our PyTorch code is available at https://github.com/jimgammell/learning_to_localize_leakage.

侧信道攻击硬件安全深度学习泄漏定位

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。