arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.01179cs.CRcs.PL
收藏

自动检测推测性执行组合

Automatic Detection of Speculative Execution Combinations

Xaver Fabian, Marco Guarnieri, Marco Patrignani

摘要:

现代处理器采用不同的预测机制来推测不同种类的指令。攻击者可以同时利用这些预测机制,以触发有关投机性访问数据的泄漏。因此,对这种投机性泄漏的合理推理需要考虑到所有潜在的投机机制。不幸的是,现有的正式模型只支持推理固定的,硬编码的推测机制,没有简单的支持,以扩展所述推理到新的机制。在本文中,我们开发了一个框架,推理组成的投机语义,捕捉投机由于不同的机制,并实现它的一部分,斯佩克特验证工具。我们实现了新的语义推测存储和返回指令,并结合它们的语义推测分支。我们的框架产生推测语义,用于推测通过构造而安全的那些指令的任何组合,即,我们免费获得这些安全保障。在Spectector中实现我们的新语义,让我们验证现有的代码库容易受到Spectre v1,Spectre v4和Spectre v5漏洞的影响,以及只容易受到其组合的新片段。

英文摘要:

Modern processors employ different prediction mechanisms to speculate over different kinds of instructions. Attackers can exploit these prediction mechanisms simultaneously in order to trigger leaks about speculatively-accessed data. Thus, sound reasoning about such speculative leaks requires accounting for all potential mechanisms of speculation. Unfortunately, existing formal models only support reasoning about fixed, hard-coded mechanisms of speculation, with no simple support to extend said reasoning to new mechanisms. In this paper we develop a framework for reasoning about composed speculative semantics that capture speculation due to different mechanisms and implement it as part of the Spectector verification tool. We implement novel semantics for speculating over store and return instructions and combine them with the semantics for speculating over branches. Our framework yields speculative semantics for speculating over any combination of those instructions that are secure by construction, i.e., we obtain these security guarantees for free. The implementation of our novel semantics in Spectector let us verify existing codebases that are vulnerable to Spectre v1, Spectre v4, and Spectre v5 vulnerabilities as well as new snippets that are only vulnerable to their compositions.

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

↑