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

超越过度防护:一种针对Spectre缓解与性能优化的定向方法

Beyond Over-Protection: A Targeted Approach to Spectre Mitigation and Performance Optimization

Tiziano Marinaro, Pablo Buiras, Andreas Lindner, Roberto Guanciale, Hamed Nemati

AI总结:

本研究扩展侧信道模型验证框架Scam-V,用于检测程序的Spectre-PHT漏洞并定向优化LLVM中slh防护措施,结合目标平台微架构特性减少过度防护带来的性能开销。

摘要:

自Spectre攻击出现以来,研究人员与从业者已开发出一系列硬件与软件措施,以抵御瞬态执行攻击。这类缓解措施的典型代表是LLVM中的推测加载强化(speculative load hardening,slh),它通过跟踪推测状态并在推测错误时掩码数值,来防范信息泄露。LLVM依赖静态分析使用slh对程序进行强化,这往往导致过度防护,进而产生性能开销。我们扩展了现有的侧信道模型验证框架Scam-V,用于检查程序受Spectre-PHT攻击的脆弱性,并采用slh方法优化程序防护。我们通过首先证明Scam-V能自动识别真实程序(如密码库片段)中的Spectre漏洞,来验证其有效性。随后我们开发了一种优化机制,可针对目标平台验证slh强化的必要性。我们的实验表明,当考虑底层微架构特性时,LLVM引入的强化措施在大多数情况下可得到显著优化。

英文摘要:

Since the advent of Spectre attacks, researchers and practitioners have developed a range of hardware and software measures to counter transient execution attacks. A prime example of such mitigation is speculative load hardening in LLVM, which protects against leaks by tracking the speculation state and masking values during misspeculation. LLVM relies on static analysis to harden programs using slh that often results in over-protection, which incurs performance overhead. We extended an existing side-channel model validation framework, Scam-V, to check the vulnerability of programs to Spectre-PHT attacks and optimize the protection of programs using the slh approach. We illustrate the efficacy of Scam-V by first demonstrating that it can automatically identify Spectre vulnerabilities in real programs, e.g., fragments of crypto-libraries. We then develop an optimization mechanism that validates the necessity of slh hardening w.r.t. the target platform. Our experiments showed that hardening introduced by LLVM in most cases could be significantly improved when the underlying microarchitecture properties are considered.

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

↑