arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1807.05843cs.CR
收藏

oo7:基于程序分析的低开销Spectre攻击防御

oo7: Low-overhead Defense against Spectre Attacks via Program Analysis

Guanhua Wang, Sudipta Chattopadhyay, Ivan Gotovchits, Tulika Mitra, Abhik Roychoudhury

摘要:

现代处理器中的Spectre漏洞已被广泛报道。此漏洞的关键在于,处理器中的推测性执行可能被滥用来访问机密。随后,即使推测性地执行的指令被压扁,秘密也可以在诸如高速缓存的微架构状态中逗留,并且可以潜在地由攻击者经由侧通道访问。在本文中,我们提出了oo7,一个静态分析的方法,可以通过检测程序二进制文件中的潜在脆弱的代码片段,并保护他们免受攻击,修补他们,以减轻Spectre攻击。我们的主要贡献是平衡的有效性,分析时间和运行时开销的关注。我们采用控制流提取,污点分析,和地址分析,检测污染的条件分支和投机性内存访问。oo7可以检测到所有15个专用的Spectre漏洞代码模式,而带有Spectre缓解选项的Microsoft编译器只能检测到其中的两个。我们还报告了一个大规模的研究应用oo7超过500程序二进制文件(平均二进制大小261 KB)从不同的现实世界的项目的结果。我们保护程序免受Spectre攻击,有选择地只在脆弱的条件分支插入栅栏,以防止投机执行。实验观察到我们的方法在SPECint基准测试中产生约5.9%的性能开销。

英文摘要:

The Spectre vulnerability in modern processors has been widely reported. The key insight in this vulnerability is that speculative execution in processors can be misused to access the secrets. Subsequently, even though the speculatively executed instructions are squashed, the secret may linger in micro-architectural states such as cache, and can potentially be accessed by an attacker via side channels. In this paper, we propose oo7, a static analysis approach that can mitigate Spectre attacks by detecting potentially vulnerable code snippets in program binaries and protecting them against the attack by patching them. Our key contribution is to balance the concerns of effectiveness, analysis time and run-time overheads. We employ control flow extraction, taint analysis, and address analysis to detect tainted conditional branches and speculative memory accesses. oo7 can detect all fifteen purpose-built Spectre-vulnerable code patterns, whereas Microsoft compiler with Spectre mitigation option can only detect two of them. We also report the results of a large-scale study on applying oo7 to over 500 program binaries (average binary size 261 KB) from different real-world projects. We protect programs against Spectre attack by selectively inserting fences only at vulnerable conditional branches to prevent speculative execution. Our approach is experimentally observed to incur around 5.9% performance overheads on SPECint benchmarks.

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

↑