Skip to main content
QUICK REVIEW

[论文解读] Leaking Information Through Cache LRU States

Wenjie Xiong, Jakub Szefer|arXiv (Cornell University)|May 20, 2019
Security and Verification in ComputingComputer Science参考文献 50被引用 3
一句话总结

本文提出了一种新颖的基于时间的侧信道和隐蔽信道,利用最近最少使用(LRU)缓存替换状态在进程间泄露信息。与以往需要缓存未命中才能工作的缓存信道不同,这些基于LRU的信道仅通过缓存命中即可工作,从而实现更快、更隐蔽的数据外泄——在超线程环境下传输速率最高可达600 Kbps,并可绕过监控缓存未命中模式的防御机制。

ABSTRACT

The Least-Recently Used cache replacement policy and its variants are widely deployed in modern processors. This paper shows for the first time in detail that the LRU states of caches can be used to leak information: any access to a cache by a sender will modify the LRU state, and the receiver is able to observe this through a timing measurement. This paper presents LRU timing-based channels both when the sender and the receiver have shared memory, e.g., shared library data pages, and when they are separate processes without shared memory. In addition, the new LRU timing-based channels are demonstrated on both Intel and AMD processors in scenarios where the sender and the receiver are sharing the cache in both hyper-threaded setting and time-sliced setting. The transmission rate of the LRU channels can be up to 600Kbps per cache set in the hyper-threaded setting. Different from the majority of existing cache channels which require the sender to trigger cache misses, the new LRU channels work with the sender only having cache hits, making the channel faster and more stealthy. This paper also demonstrates that the new LRU channels can be used in transient execution attacks, e.g., Spectre. Further, this paper shows that the LRU channels pose threats to existing secure cache designs, and this work demonstrates the LRU channels affect the secure PL cache. The paper finishes by discussing and evaluating possible defenses.

研究动机与目标

  • 证明LRU缓存状态可被利用为信息泄露的隐蔽信道。
  • 设计并评估仅依赖缓存命中(无需缓存未命中)的基于LRU的定时信道。
  • 展示此类信道对现有安全缓存设计(如分区锁定(PL)缓存)的影响。
  • 评估基于LRU的信道在真实Intel和AMD处理器上的可行性与性能,涵盖共享内存与非共享内存场景。
  • 提出并评估防御措施,包括使用随机(Random)或先进先出(FIFO)等替代替换策略,以缓解基于LRU的侧信道攻击。

提出的方法

  • 作者设计了两种基于LRU的定时信道协议:一种用于共享内存环境,另一种用于无共享内存的独立进程。
  • 通过指针追踪和专用数据结构,采用细粒度的时间测量技术,以高精度检测缓存访问延迟。
  • 发送方通过缓存命中操纵LRU状态,从而改变缓存行的淘汰顺序。
  • 接收方通过观察缓存访问时间差异,推断LRU状态的变化并解码传输的数据。
  • 该方法在真实处理器(Intel和AMD)以及gem5模拟器上进行了评估,包括在Spectre等瞬态执行攻击中的应用。
  • 提出了防御方案,包括将LRU替换为随机(Random)或先进先出(FIFO)替换策略,并对安全缓存设计(如PL缓存)进行修改以抵御基于LRU的外泄攻击。

实验结果

研究问题

  • RQ1LRU缓存状态是否可在无需缓存未命中情况下作为隐蔽信道用于信息泄露?
  • RQ2与现有基于缓存的侧信道相比,基于LRU的信道在编码时间和未命中率方面的性能如何?
  • RQ3基于LRU的信道在多大程度上可绕过监控缓存未命中模式的现有防御机制?
  • RQ4基于LRU的信道是否可在瞬态执行攻击(如Spectre)中被利用?
  • RQ5现有安全缓存设计(如分区锁定(PL)缓存)是否易受基于LRU状态的侧信道攻击?

主要发现

  • 在超线程环境下,基于LRU的定时信道每缓存组最高可实现600 Kbps的传输速率,远超依赖未命中的信道。
  • 该信道仅依赖缓存命中运行,显著降低发送方的缓存未命中率,从而在Spectre等瞬态执行攻击中支持更短的推测窗口。
  • 由于无需触发缓存未命中,该LRU信道可绕过监控缓存未命中模式的防御机制。
  • 知名的防御机制——分区锁定(PL)缓存——对基于LRU的信道仍存在漏洞,表明LRU状态泄露会破坏现有安全缓存设计的有效性。
  • 将LRU替换为随机(Random)或先进先出(FIFO)替换策略可显著降低LRU信道的攻击效果,且在SPEC 2006基准测试中仅造成小于2%的CPI性能下降,因此是一种切实可行的缓解方案。
  • 该LRU信道已在Intel和AMD处理器上成功演示,涵盖多种微架构和共享模型,包括时间片轮转和超线程执行模式。

阅读本论文

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

在 Nubint 中阅读本论文

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