学习定位加密敏感变量的泄漏
Learning to Localize Leakage of Cryptographic Sensitive Variables
AI总结:
本文提出一种深度学习框架,通过分析不同时间点的测量数据,定位加密泄漏源,以指导防御措施。
摘要:
尽管加密算法如广泛使用的高级加密标准(AES)本身是安全的,但其在硬件中的物理实现不可避免地会泄露敏感数据,如加密密钥。硬件消耗电力并发射辐射,其统计特性与处理的数据和执行的指令相关联。监督深度学习已成为执行侧信道攻击的最先进工具,通过学习将电力/辐射测量映射到敏感数据。本文开发了一种原理性的深度学习框架,以确定不同时间点测量的相对泄漏,以指导防御。此信息对加密硬件设计者理解其硬件为何泄露以及如何缓解至关重要。我们的框架基于分类器估计敏感数据条件分布与噪声分布之间的对抗游戏,后者通过概率擦除个别测量来最大化分类器的损失。我们通过广泛实验比较六个公开的电力/电磁追踪数据集,展示了方法的有效性及克服先前工作局限的能力。我们的PyTorch代码可在https://github.com/jimgammell/learning_to_localize_leakage获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。