SPECWANDS:一种针对推测竞争攻击的高效基于优先级的调度器
SPECWANDS: An Efficient Priority-based Scheduler Against Speculation Contention Attacks
AI总结:
本文提出SPECWANDS调度方案,通过三种基于优先级的调度策略防御易失型瞬态执行攻击中的竞争隐蔽信道,在保留推测执行和资源共享性能优势的同时,显著优于现有方案。
摘要:
瞬态执行攻击(TEAs)已逐渐成为现代高性能处理器面临的主要安全威胁。它们利用推测执行的漏洞非法访问私有数据,并通过基于时序的隐蔽信道传输这些数据。虽然新的漏洞不断被发现,但隐蔽信道可分为两类:1)持久型,其中隐蔽信道基于缓冲布局的变化,例如通过缓存或TLB;2)易失型,其中隐蔽信道基于共享资源的竞争,例如通过执行单元或发射端口。针对持久型隐蔽信道的防御已经得到较好的解决,而针对易失型隐蔽信道的防御仍然相当不足。现有的易失型缓解方案,如推测压缩和时分复用,由于需要暂停流水线或禁止资源共享,会引入显著的开销。在本文中,我们以新的视角研究此类攻击与防御,并提出了一种基于调度的缓解方案,称为SPECWANDS。它由三种基于优先级的调度策略组成,以防止攻击者在不同的竞争情况下传输秘密。SPECWANDS不仅能够防御基于线程间和线程内的攻击,还能保留推测执行和资源共享带来的大部分性能收益。我们在SPEC 2017基准测试和实际程序上评估了其运行时开销。实验结果表明,SPECWANDS相比其他两种代表性方案具有显著的性能优势。
英文摘要:
Transient Execution Attacks (TEAs) have gradually become a major security threat to modern high-performance processors. They exploit the vulnerability of speculative execution to illegally access private data, and transmit them through timing-based covert channels. While new vulnerabilities are discovered continuously, the covert channels can be categorised to two types: 1) Persistent Type, in which covert channels are based on the layout changes of buffering, e.g. through caches or TLBs; 2) Volatile Type, in which covert channels are based on the contention of sharing resources, e.g. through execution units or issuing ports. The defenses against the persistent-type covert channels have been well addressed, while those for the volatile-type are still rather inadequate. Existing mitigation schemes for the volatile type such as Speculative Compression and Time-Division-Multiplexing will introduce significant overhead due to the need to stall the pipeline or to disallow resource sharing. In this paper, we look into such attacks and defenses with a new perspective, and propose a scheduling-based mitigation scheme, called SPECWANDS. It consists of three priority-based scheduling policies to prevent an attacker from transmitting the secret in different contention situations. SPECWANDS not only can defend against both inter-thread and intra-thread based attacks, but also can keep most of the performance benefit from speculative execution and resource-sharing. We evaluate its runtime overhead on SPEC 2017 benchmarks and realistic programs. The experimental results show that SPECWANDS has a significant performance advantage over the other two representative schemes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。