arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2304.02102cs.CR
收藏

面向恒定时间密码学代码中单条迹侧信道漏洞的自动化检测

Towards Automated Detection of Single-Trace Side-Channel Vulnerabilities in Constant-Time Cryptographic Code

Ferhat Erata, Ruzica Piskac, Victor Mateu, Jakub Szefer

AI总结:

本文提出工具Pascal,通过新颖的符号寄存器分析技术对恒定时间密码学代码进行二进制分析,自动化高精度检测单条迹功耗侧信道漏洞,并在多个后量子密码算法实现中发现数十个已知漏洞。

摘要:

尽管密码学算法在数学上可能是安全的,但从算法的实现中泄露秘密信息的情况却常常发生。时序和功耗侧信道漏洞是密码学算法实现所面临的最广泛考虑的威胁之一。时序漏洞可能更容易被检测和利用,如今所有高质量的密码学代码都应当以恒定时间风格编写。然而,这并不能阻止功耗侧信道的存在。对于恒定时间代码,潜在攻击者可以借助功耗侧信道攻击来尝试泄露秘密。检测潜在的功耗侧信道漏洞是一项繁琐的任务,因为它需要在汇编层面分析代码,并且需要根据指令的操作数及其值来推理哪些指令可能泄露信息。为了帮助密码学家更轻松地检测潜在的功耗侧信道漏洞,本文提出了Pascal:功耗分析侧信道攻击定位器,该工具引入了新颖的符号寄存器分析技术,用于对恒定时间密码学算法进行二进制分析,并以高精度验证潜在功耗侧信道漏洞的位置。Pascal在多个后量子密码学算法实现上进行了评估,能够以全自动方式在这些算法中发现数十个此前已报告的单条迹功耗侧信道漏洞。

英文摘要:

Although cryptographic algorithms may be mathematically secure, it is often possible to leak secret information from the implementation of the algorithms. Timing and power side-channel vulnerabilities are some of the most widely considered threats to cryptographic algorithm implementations. Timing vulnerabilities may be easier to detect and exploit, and all high-quality cryptographic code today should be written in constant-time style. However, this does not prevent power side-channels from existing. With constant time code, potential attackers can resort to power side-channel attacks to try leaking secrets. Detecting potential power side-channel vulnerabilities is a tedious task, as it requires analyzing code at the assembly level and needs reasoning about which instructions could be leaking information based on their operands and their values. To help make the process of detecting potential power side-channel vulnerabilities easier for cryptographers, this work presents Pascal: Power Analysis Side Channel Attack Locator, a tool that introduces novel symbolic register analysis techniques for binary analysis of constant-time cryptographic algorithms, and verifies locations of potential power side-channel vulnerabilities with high precision. Pascal is evaluated on a number of implementations of post-quantum cryptographic algorithms, and it is able to find dozens of previously reported single-trace power side-channel vulnerabilities in these algorithms, all in an automated manner.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑