arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.11573cs.PL
收藏

(驳斥)证明Spectre安全性的投机传递风格

(Dis)Proving Spectre Security with Speculation-Passing Style

MPI-SP(马克斯·普朗克软件系统研究所);IMDEA Software Institute(IMDEA软件研究所)

Santiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Xingyu Xie, Zhiyuan Zhang

AI总结:

本文提出了一种名为Speculation-Passing Style的程序转换方法,通过将SCT验证转化为CT验证,为Spectre漏洞的安全性分析提供了形式化基础。

摘要:

常量时间(CT)验证工具常用于检测加密库中潜在的侧信道漏洞。最近,一种新的工具类别,称为投机常量时间(SCT)工具,也被用于检测潜在的Spectre漏洞。在许多情况下,这些SCT工具都是CT工具的提升版本。然而,这些提升很少被精确定义,并且几乎从未被正式分析。本文的目标是填补这一空白,通过为这些提升建立形式基础,并证明这些基础可以带来实际效益。具体而言,我们引入了一种程序转换,称为投机传递风格(SPS),用于将SCT验证减少到CT验证。本质上,该转换向程序添加了一个新的输入,对应于攻击者控制的预测,并修改程序以遵循这些预测。这种方法在意义上是正确的且完整的,即一个程序是SCT当且仅当其SPS转换是CT。因此,我们可以利用现有的CT验证工具来证明SCT;我们通过将SPS与三种标准的CT验证方法结合,即将其减少到非干扰、断言安全性和动态污点分析来说明这一点。我们使用现有的三个工具,EasyCrypt、BINSEC和ctgrind实现了这些组合,并在Kocher的Spectre-v1基准上进行了评估。我们的结果集中在标准CT泄漏模型中的Spectre-v1;然而,我们还讨论了我们的方法在其他Spectre变种和其他泄漏模型中的应用。

英文摘要:

Constant-time (CT) verification tools are commonly used for detecting potential side-channel vulnerabilities in cryptographic libraries. Recently, a new class of tools, called speculative constant-time (SCT) tools, has also been used for detecting potential Spectre vulnerabilities. In many cases, these SCT tools have emerged as liftings of CT tools. However, these liftings are seldom defined precisely and are almost never analyzed formally. The goal of this paper is to address this gap, by developing formal foundations for these liftings, and to demonstrate that these foundations can yield practical benefits. Concretely, we introduce a program transformation, coined Speculation-Passing Style (SPS), for reducing SCT verification to CT verification. Essentially, the transformation instruments the program with a new input that corresponds to attacker-controlled predictions and modifies the program to follow them. This approach is sound and complete, in the sense that a program is SCT if and only if its SPS transform is CT. Thus, we can leverage existing CT verification tools to prove SCT; we illustrate this by combining SPS with three standard methodologies for CT verification, namely reducing it to non-interference, assertion safety and dynamic taint analysis. We realize these combinations with three existing tools, EasyCrypt, BINSEC, and ctgrind, and we evaluate them on Kocher's benchmarks for Spectre-v1. Our results focus on Spectre-v1 in the standard CT leakage model; however, we also discuss applications of our method to other variants of Spectre and other leakage models.

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

↑