替换策略对随机化缓存架构安全性的影响
On The Effect of Replacement Policies on The Security of Randomized Cache Architectures
AI总结:
本文研究随机化缓存中替换策略对安全、性能与硬件开销的影响,提出两种新策略并通过模拟器与 RISC-V 硬件评估五种策略。
摘要:
将地址到缓存条目的映射随机化,已被证明是一种强化缓存以抵御 Prime+Probe 等基于争用攻击的有效技术。尽管攻击与防御仍在不断演进,但显然随机化缓存显著提升了对此类攻击的安全性。然而,在大多数随机化缓存架构分析中缺失的一个方面是替换策略的选择。通常,研究只考察随机替换和 LRU 替换策略。但是,LRU 因巨大的硬件开销而不适用于随机化缓存,而随机替换策略从性能和安全性角度看也并不理想。在本文中,我们探索随机化缓存的替换策略。我们开发了两种新的替换策略,并针对其抵御 Prime+Prune+Probe 攻击者的安全性,对总共五种替换策略进行评估。此外,我们分析替换策略对系统性能的影响,并量化所引入的硬件开销。我们使用定制缓存模拟器、gem5 和 CV32E40P RISC-V 内核,在软件和硬件中实现了具有可配置替换策略的随机化缓存。除其他结果外,我们表明,使用我们的新策略 VARP-64 构造驱逐集所需的缓存访问次数是使用随机替换策略的 25 倍以上,同时还提升了整体性能。
英文摘要:
Randomizing the mapping of addresses to cache entries has proven to be an effective technique for hardening caches against contention-based attacks like Prime+Prome. While attacks and defenses are still evolving, it is clear that randomized caches significantly increase the security against such attacks. However, one aspect that is missing from most analyses of randomized cache architectures is the choice of the replacement policy. Often, only the random- and LRU replacement policies are investigated. However, LRU is not applicable to randomized caches due to its immense hardware overhead, while the random replacement policy is not ideal from a performance and security perspective. In this paper, we explore replacement policies for randomized caches. We develop two new replacement policies and evaluate a total of five replacement policies regarding their security against Prime+Prune+Probe attackers. Moreover, we analyze the effect of the replacement policy on the system's performance and quantify the introduced hardware overhead. We implement randomized caches with configurable replacement policies in software and hardware using a custom cache simulator, gem5, and the CV32E40P RISC-V core. Among others, we show that the construction of eviction sets with our new policy, VARP-64, requires over 25-times more cache accesses than with the random replacement policy while also enhancing overall performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。