Skip to main content
QUICK REVIEW

[论文解读] Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix It

Wei Song, Boya Li|arXiv (Cornell University)|Aug 5, 2020
Security and Verification in ComputingComputer Science参考文献 63被引用 51
一句话总结

本文识别出随机化最后一级缓存(LLC)防御机制(如 CEASER-S 和 ScatterCache)中的关键漏洞,表明攻击者可利用缓存清除指令和部分冲突的驱逐集合来绕过重映射保护。本文提出修复方案,包括基于驱逐的重映射时机、多步重定位以及攻击检测机制,证明通过极低性能开销即可实现安全的随机化集合关联缓存。

ABSTRACT

Cache randomization has recently been revived as a promising defense against conflict-based cache side-channel attacks. As two of the latest implementations, CEASER-S and ScatterCache both claim to thwart conflict-based cache side-channel attacks using randomized skewed caches. Unfortunately, our experiments show that an attacker can easily find a usable eviction set within the chosen remap period of CEASER-S and increasing the number of partitions without dynamic remapping, such as ScatterCache, cannot eliminate the threat. By quantitatively analyzing the access patterns left by various attacks in the LLC, we have newly discovered several problems with the hypotheses and implementations of randomized caches, which are also overlooked by the research on conflict-based cache side-channel attack. However, cache randomization is not a false hope and it is an effective defense that should be widely adopted in future processors. The newly discovered problems are corresponding to flaws associated with the existing implementation of cache randomization and are fixable. Several new defense techniques are proposed in this paper. our experiments show that all the newly discovered vulnerabilities of existing randomized caches are fixed within the current performance budget. We also argue that randomized set-associative caches can be sufficiently strengthened and possess a better chance to be actually adopted in commercial processors than their skewed counterparts as they introduce less overhaul to the existing cache structure.

研究动机与目标

  • 识别并分析现有随机化偏置缓存防御机制中被忽视的关键漏洞,以应对缓存侧信道攻击。
  • 挑战当前随机化缓存设计中的核心假设,特别是关于驱逐集合发现与重映射周期估算的问题。
  • 提出实用且低开销的防御机制,以增强随机化集合关联缓存的实用性,适用于真实世界部署。
  • 证明随机化集合关联缓存相较于偏置缓存更具可行性,是未来安全处理器设计的更优选择。

提出的方法

  • 基于 LLC 驱逐次数而非总访问次数来测量重映射周期,以更准确反映实际攻击面。
  • 实现类似 ZCache 的多步重定位机制,以减少重映射过程中的缓存块驱逐。
  • 引入轻量级硬件级攻击检测机制,用于识别驱逐集合搜索过程中的探测模式。
  • 提出进一步缩短重映射周期,以防止部分同余驱逐集合的发现。
  • 倡导采用 CEASER 风格的随机化集合关联缓存,而非偏置缓存,因其硬件开销更低且具备更强的安全扩展潜力。
  • 使用 Spike 模拟器在真实工作负载下评估性能与安全性的权衡。

实验结果

研究问题

  • RQ1为何现有随机化偏置缓存(如 CEASER-S 和 ScatterCache)尽管具备动态重映射与偏置机制,仍存在漏洞?
  • RQ2缓存清除指令与部分同余性如何影响在随机化缓存中寻找驱逐集合的可行性?
  • RQ3为何使用 LLC 访问次数估算重映射周期存在缺陷?如何修正这一问题?
  • RQ4与偏置缓存相比,能否在可接受的性能开销下对随机化集合关联缓存实现有效防护?
  • RQ5哪些防御技术可有效修补新发现的漏洞,且不会带来过高的硬件成本?

主要发现

  • 攻击者可利用缓存清除指令反复使用部分同余的驱逐集合,显著缩短找到有效集合所需时间。
  • 在随机化偏置缓存中,最小驱逐集合的概念不再适用;任何具备合理驱逐概率的集合均可被利用。
  • 仅依据总 LLC 访问次数来估算重映射周期会导致过度乐观的估计,因为大量访问被 L1/L2 缓存过滤。
  • 实际两次重映射之间的 LLC 驱逐次数远低于总访问次数,导致当前重映射周期计算方法失效。
  • 所有在现有随机化缓存中发现的漏洞均可通过所提技术在现有性能预算内修复。
  • 随机化集合关联缓存(如 CEASER)相较于偏置缓存更适于商业部署,因其硬件开销更低且具备更好的安全可扩展性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。