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

随机缓存的新攻击与防御

New Attacks and Defenses for Randomized Caches

Kartik Ramkrishnan, Antonia Zhai, Stephen McCamant, Pen Chung Yew

摘要:

最后一级缓存易受基于定时的侧信道攻击的攻击,因为它由攻击者和受害者进程共享,即使它们位于不同的核心上。这些定时攻击使用小冲突组(SCG)驱逐受害者高速缓存行,并且监视高速缓存以观察受害者何时再次使用这些高速缓存行。冲突组是将驱逐目标高速缓存行的高速缓存行的集合。随机化经常被防御用来防止创建SCG。我们引入新的攻击,以证明目前的随机化方案需要一个非常高的刷新率是安全的,平均15%的性能开销,并在最坏的情况下高达50%。接下来,我们提出了一个新的随机化策略,使用间接表,这缓解了这个问题。对高速缓存行的100%进行加密,并用于查找间接表条目。每个间接表条目存储到随机选择的高速缓存集的映射。高速缓存行被放置到这个随机选择的集合中。通过使用驱逐来触发重新随机化,加密密钥的变化速度比CEASER的默认速度快50倍。代替移动高速缓存行,每当对应于iTable条目的高速缓存行被自然逐出时,该机制每次重新随机化一个iTable条目。因此,未命中率并不比基线差多少。我们定量地表明,我们的计划几乎以及一个完全关联的缓存来抵御这些攻击。我们还展示了新的攻击,目标iTable的超额订阅其条目,并定量地表明,我们的计划是弹性的新的攻击数万亿年。我们估计低面积(< 7\%)和功率开销相比,基线包容性的最后一级缓存。最后,我们使用SPECrate 2017和PARSEC 3.0基准测试评估了低性能开销(<4%)。

英文摘要:

The last level cache is vulnerable to timing based side channel attacks because it is shared by the attacker and the victim processes even if they are located on different cores. These timing attacks evict the victim cache lines using small conflict groups(SCG), and monitor the cache to observe when the victim uses these cache lines again. A conflict group is a collection of cache lines which will evict the target cache line. Randomization is often used by defenses to prevent creation of SCGs. We introduce new attacks to demonstrate that the current randomization schemes require an extremely high refresh rate to be secure, on average a 15\% performance overhead, and upto 50\% in the worst case. Next, we propose a new randomization strategy using an indirection table, which mitigates this issue. Addresses of cache lines are encrypted and used to lookup the indirection table entry. Each indirection table entry stores a mapping to a randomly chosen cache set. The cache line is placed into this randomly chosen set. The encryption key changes upto 50x faster than CEASER's default rate, by using evictions to trigger the re-randomization. Instead of moving cache lines, this mechanism re-randomizes one iTable entry at a time, whenever the cache lines corresponding to the iTable entry are naturally evicted. Thus, the miss rate is not much worse than the baseline. We quantitatively show that our scheme does almost as well as a fully associative cache to defend against these attacks. We also demonstrate new attacks that target the iTable by oversubscribing its entries, and quantitatively show that our scheme is resilient against new attacks for trillions of years. We estimate low area ( < 7\%) and power overhead compared to a baseline inclusive last-level cache. Lastly, we evaluate a low performance overhead (<4%) using the SPECrate 2017 and PARSEC 3.0 benchmarks.

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

↑