Chameleon Cache:用随机替换近似全关联Cache以防止基于竞争的Cache攻击
Chameleon Cache: Approximating Fully Associative Caches with Random Replacement to Prevent Contention-Based Cache Attacks
摘要:
最近,诸如CEASER-S的随机偏斜缓存(RSC)受到了很多关注,以防御基于竞争的缓存侧通道。通过随机化和有规律地改变地址到高速缓存集的映射,这些技术被设计为混淆存储器访问模式的泄漏。然而,新的攻击技术,例如,Prime+Prune+Probe很快证明了RSC的局限性,因为它们允许攻击者更快地了解哪些地址在缓存中竞争,并使用此信息来规避随机化。为了保持侧信道弹性,RSC必须更频繁地改变随机映射,这对性能和实现复杂性有不利影响。这项工作的目的是使基于随机化的方法更强大,以减少重新键控率,并提出变色龙缓存。Chameleon Cache通过牺牲缓存(VC)扩展了RSC,以将RSC中的争用与用户观察到的回收分离。VC允许Chameleon Cache额外使用RSC提供的多个映射来将地址转换为缓存集索引:当缓存行在其映射之一下从RSC驱逐到VC时,VC通过使用不同的映射自动将此驱逐行重新插入RSC。因此,先前RSC集争用的影响被隐藏,并且Chameleon Cache表现出类似于具有随机替换的完全关联缓存的侧通道阻力和驱逐模式。我们表明,变色龙缓存的性能开销< 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。