论文标题

变色龙缓存:通过随机替换近似完全关联的缓存,以防止基于争论的缓存攻击

Chameleon Cache: Approximating Fully Associative Caches with Random Replacement to Prevent Contention-Based Cache Attacks

论文作者

Unterluggauer, Thomas, Harris, Austin, Constable, Scott, Liu, Fangfei, Rozas, Carlos

论文摘要

诸如Ceaser-S之类的随机,偏斜的缓存(RSC)最近受到了极大的关注,以防御基于竞争的高速缓存侧通道。通过随机和定期将地址的映射更改为缓存集,这些技术旨在混淆内存访问模式的泄漏。但是,新的攻击技术,例如Prime+Prune+探测器,很快就证明了RSC的限制,因为它们允许攻击者更快地了解缓存中的哪些地址并使用此信息来绕过随机化。为了维持侧道恢复能力,RSC必须更频繁地更改随机映射,并对性能和实现复杂性产生不利影响。这项工作旨在使基于随机化的方法更加强大,以降低重键率并呈现变色龙缓存。 Chameleon Cache通过受害者缓存(VC)扩展了RSC,从用户观察到的驱逐中将RSC中的争论解除。 VC允许Chameleon缓存额外使用多个映射RSC提供的RSC提供将地址转换为缓存集索引:当在其一个映射下从RSC驱逐到VC时,VC自动通过使用不同的映射将此驱逐的线重新插入RSC。结果,先前的RSC集合的效果是隐藏的,变色龙缓存表现出侧向通道电阻和驱逐模式,类似于随机替换的完全关联缓存。我们表明,变色龙高速缓存的性能开销<1%,并且强调VC对增加随机缓存的侧向通道电阻和重新接合间隔更为有用。

Randomized, skewed caches (RSCs) such as CEASER-S have recently received much attention to defend against contention-based cache side channels. By randomizing and regularly changing the mapping(s) of addresses to cache sets, these techniques are designed to obfuscate the leakage of memory access patterns. However, new attack techniques, e.g., Prime+Prune+Probe, soon demonstrated the limits of RSCs as they allow attackers to more quickly learn which addresses contend in the cache and use this information to circumvent the randomization. To yet maintain side-channel resilience, RSCs must change the random mapping(s) more frequently with adverse effects on performance and implementation complexity. This work aims to make randomization-based approaches more robust to allow for reduced re-keying rates and presents Chameleon Cache. Chameleon Cache extends RSCs with a victim cache (VC) to decouple contention in the RSC from evictions observed by the user. The VC allows Chameleon Cache to make additional use of the multiple mappings RSCs provide to translate addresses to cache set indices: when a cache line is evicted from the RSC to the VC under one of its mappings, the VC automatically reinserts this evicted line back into the RSC by using a different mapping. As a result, the effects of previous RSC set contention are hidden and Chameleon Cache exhibits side-channel resistance and eviction patterns similar to fully associative caches with random replacement. We show that Chameleon Cache has performance overheads of < 1% and stress that VCs are more generically helpful to increase side-channel resistance and re-keying intervals of randomized caches.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源