[Paper Review] Leaking Information Through Cache LRU States
This paper introduces novel timing-based side and covert channels that exploit Least-Recently-Used (LRU) cache replacement states to leak information between processes. Unlike prior cache channels requiring cache misses, these LRU-based channels work with only cache hits, enabling faster, more stealthy data exfiltration—achieving up to 600 Kbps transmission rates in hyper-threaded settings and bypassing defenses that monitor cache miss patterns.
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.
Motivation & Objective
- To demonstrate that LRU cache states can be exploited as a covert channel for information leakage.
- To design and evaluate LRU-based timing channels that function with only cache hits, not requiring cache misses.
- To show the impact of these channels on existing secure cache designs, such as Partition-Locked (PL) cache.
- To evaluate the feasibility and performance of LRU channels on real Intel and AMD processors in both shared-memory and non-shared-memory scenarios.
- To propose and evaluate defenses, including alternative replacement policies like Random and FIFO, to mitigate LRU-based side channels.
Proposed method
- The authors design two LRU timing-based channel protocols: one for shared memory and one for separate processes without shared memory.
- They use fine-grained timing measurements via pointer chasing and dedicated data structures to detect cache access latencies with high precision.
- The sender manipulates LRU states through cache hits, altering the order of cache line evictions.
- The receiver observes timing differences in cache access to infer the LRU state changes and decode transmitted data.
- The approach is evaluated on real processors (Intel and AMD) and in the gem5 simulator, including in transient execution attacks like Spectre.
- Defenses are proposed, including replacing LRU with Random or FIFO replacement policies, and modifying secure cache designs like PL cache to resist LRU-based exfiltration.
Experimental results
Research questions
- RQ1Can LRU cache states be used as a covert channel for information leakage without requiring cache misses?
- RQ2How does the performance of LRU-based channels compare to existing cache-based side channels in terms of encoding time and miss rate?
- RQ3To what extent do LRU channels bypass existing defenses that monitor cache miss patterns?
- RQ4Can LRU channels be exploited in transient execution attacks such as Spectre?
- RQ5Are existing secure cache designs, such as Partition-Locked (PL) cache, vulnerable to LRU state-based side channels?
Key findings
- The LRU timing-based channel achieves transmission rates of up to 600 Kbps per cache set in hyper-threaded settings, significantly faster than miss-dependent channels.
- The channel operates with only cache hits, reducing the sender’s cache miss rate and enabling shorter speculation windows in transient execution attacks like Spectre.
- The LRU channel bypasses defenses that monitor cache miss patterns, as it does not require the sender to trigger cache misses.
- The secure PL cache, a well-known defense against cache side channels, is vulnerable to the LRU-based channel, demonstrating that LRU state leakage undermines existing secure cache designs.
- Replacing LRU with Random or FIFO replacement policies reduces the LRU channel’s effectiveness, with only a <2% performance degradation in CPI on SPEC 2006 benchmarks, making it a viable mitigation.
- The LRU channel was successfully demonstrated on both Intel and AMD processors across different microarchitectures and sharing models, including time-sliced and hyper-threaded execution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.