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

缓解基于推测的攻击:可配置的硬件/软件协同设计

Mitigating Speculation-based Attacks through Configurable Hardware/Software Co-design

Ali Hajiabadi, Archit Agarwal, Andreas Diavastos, Trevor E. Carlson

AI总结:

本文提出 SpecControl,一种硬件/软件协同设计,通过通信接口告知硬件分支依赖和指令约束,在增强安全性的同时,将两种先进防御的性能开销从 51% 和 43% 降至 23%,并揭示了一种针对 PHT 的新推测取指攻击。

摘要:

影响大量现代系统的新型基于推测的攻击正被定期披露。目前,CPU 厂商通常采用诸如使用屏障或强制执行严格编程指南等重手段缓解措施,这导致显著的性能开销。目前所缺乏的是一种既能实现高效缓解,又能灵活应对当前和未来推测漏洞而无需额外硬件变更的解决方案。在本工作中,我们提出了 SpecControl,一种新颖的硬件/软件协同设计,它在提升安全性的同时,降低了现有先进方法所展现的性能开销。SpecControl 引入了一种通信接口,使编译器和应用程序开发者能够告知硬件真实的分支依赖、机密的控制流指令以及细粒度的指令约束,从而仅在必要时应用限制。我们针对已知的推测执行攻击评估了 SpecControl,并另外提出了一种针对分支预测器中模式历史表(PHT)的新型推测取指攻击变体,该变体表明,类似先前报告的漏洞通过启用非特权攻击(尤其是在使用先进分支预测器的情况下)而更加危险。与现有防御相比,SpecControl 提供了更强的安全保证,同时将两种先进防御的性能开销从 51% 和 43% 降低至仅 23%。

英文摘要:

New speculation-based attacks that affect large numbers of modern systems are disclosed regularly. Currently, CPU vendors regularly fall back to heavy-handed mitigations like using barriers or enforcing strict programming guidelines resulting in significant performance overhead. What is missing is a solution that allows for efficient mitigation and is flexible enough to address both current and future speculation vulnerabilities, without additional hardware changes. In this work, we present SpecControl, a novel hardware/software co-design, that enables new levels of security while reducing the performance overhead that has been demonstrated by state-of-the-art methodologies. SpecControl introduces a communication interface that allows compilers and application developers to inform the hardware about true branch dependencies, confidential control-flow instructions, and fine-grained instruction constraints in order to apply restrictions only when necessary. We evaluate SpecControl against known speculative execution attacks and in addition, present a new speculative fetch attack variant on the Pattern History Table (PHT) in branch predictors that shows how similar previously reported vulnerabilities are more dangerous by enabling unprivileged attacks, especially with the state-of-the-art branch predictors. SpecControl provides stronger security guarantees compared to the existing defenses while reducing the performance overhead of two state-of-the-art defenses from 51% and 43% to just 23%.

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

↑