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

你甚至能提升吗?强化编译器针对Spectre攻击的安全保证

Do You Even Lift? Strengthening Compiler Security Guarantees Against Spectre Attacks

Xaver Fabian, Marco Patrignani, Marco Guarnieri, Michael Backes

AI总结:

本文提出一种新颖的安全编译框架,可将Spectre对策的安全保证从较弱推测语义提升至较强推测语义而无需新证明,并据此对主流编译器中9种针对5类Spectre攻击的对策进行了最全面的安全分析。

摘要:

主流编译器实现了不同的对策来防止特定类别的推测执行攻击。遗憾的是,这些对策要么缺乏形式化保证,要么其证明仅局限于仅捕获现代CPU所支持推测机制子集的推测语义,从而限制了它们的实际适用性。理想情况下,这些安全证明应针对捕获现代CPU中实现的所有推测机制影响的推测语义。然而,这不切实际,且需要新的安全编译证明来支持额外的推测机制。在本文中,我们通过提出一种新颖的安全编译框架来解决这一问题,该框架允许将Spectre对策提供的安全保证从较弱的推测语义(忽略某些推测机制)提升到较强的推测语义(考虑被忽略的机制),而无需新的安全编译证明。使用我们的提升框架,我们对主流编译器中实现的Spectre对策进行了迄今为止最全面的安全分析。我们的分析涵盖针对5类Spectre攻击的9种不同对策,我们证明了这些对策在考虑五种不同推测机制的推测语义下是安全的。

英文摘要:

Mainstream compilers implement different countermeasures to prevent specific classes of speculative execution attacks. Unfortunately, these countermeasures either lack formal guarantees or come with proofs restricted to speculative semantics capturing only a subset of the speculation mechanisms supported by modern CPUs, thereby limiting their practical applicability. Ideally, these security proofs should target a speculative semantics capturing the effects of all speculation mechanisms implemented in modern CPUs. However, this is impractical and requires new secure compilation proofs to support additional speculation mechanisms. In this paper, we address this problem by proposing a novel secure compilation framework that allows lifting the security guarantees provided by Spectre countermeasures from weaker speculative semantics (ignoring some speculation mechanisms) to stronger ones (accounting for the omitted mechanisms) without requiring new secure compilation proofs. Using our lifting framework, we performed the most comprehensive security analysis of Spectre countermeasures implemented in mainstream compilers to date. Our analysis spans 9 different countermeasures against 5 classes of Spectre attacks, which we proved secure against a speculative semantics accounting for five different speculation mechanisms.

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

↑