Lune

S&P2021Top-tier venue

Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix It

Wei Song, Boya Li, Zihan Xue, Zhenzhen Li, Wenhao Wang, Peng Liu

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 attacks.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 ideas are proposed in this paper. Our experiments show that all the newly discovered problems 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 because they introduce less overhaul to the existing cache structure.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

16 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Abusing Cache Line Dirty States to Leak Information in Commercial Processors cites Spectre Attacks: Exploiting Speculative Execution
  • Abusing Cache Line Dirty States to Leak Information in Commercial Processors cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Abusing Cache Line Dirty States to Leak Information in Commercial Processors cites Meltdown: Reading Kernel Memory from User Space
  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud cites Theory and Practice of Finding Eviction Sets
  • The Maya Cache: A Storage-efficient and Secure Fully-associative Last-level Cache cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • The Maya Cache: A Storage-efficient and Secure Fully-associative Last-level Cache cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization cites Spectre Attacks: Exploiting Speculative Execution
  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization cites Meltdown: Reading Kernel Memory from User Space
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • Meltdown: Reading Kernel Memory from User Space cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Theory and Practice of Finding Eviction Sets cites Spectre Attacks: Exploiting Speculative Execution
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh cites Spectre Attacks: Exploiting Speculative Execution
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh cites Meltdown: Reading Kernel Memory from User Space
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh cites Theory and Practice of Finding Eviction Sets
  • Cache Refinement Type for Side-Channel Detection of Cryptographic Software cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. MeshUp: Stateless Cache Side-channel Attack on CPU MeshJunpeng Wan, Yanxiang Bi, Zhe Zhou, Zhou LiS&P 2022 · 42 citations
  2. Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public CloudZirui Neil Zhao, Adam Morrison, Christopher W. Fletcher, Josep TorrellasASPLOS 2024 · 20 citations
  3. The Maya Cache: A Storage-efficient and Secure Fully-associative Last-level CacheAnubhav Bhatla, Navneet, Biswabandan PandaISCA 2024 · 12 citations
  4. Abusing Cache Line Dirty States to Leak Information in Commercial ProcessorsYujie Cui, Chun Yang, Xu ChengHPCA 2022 · 10 citations
  5. Cache Refinement Type for Side-Channel Detection of Cryptographic SoftwareKe Jiang, Yuyan Bao, Shuai Wang, Zhibo Liu et al.CCS 2022 · 7 citations

Builds on7

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
  3. Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp et al.CCS 2016 · 278 citations
  4. ScatterCache: Thwarting Cache Attacks via Cache Set RandomizationMario Werner, Thomas Unterluggauer, Lukas Giner, Michael Schwarz et al.USENIX Security 2019 · 221 citations
  5. Theory and Practice of Finding Eviction SetsPepe Vila, Boris Köpf, José F. MoralesS&P 2019 · 145 citations

Related papers

  1. Are Randomized Caches Truly Random? Formal Analysis of Randomized-Partitioned CachesAnirban Chakraborty, Sarani Bhattacharya, Sayandeep Saha, Debdeep MukhopadhyayHPCA 2023 · 5 citations
  2. Systematic Analysis of Randomization-based Protected Cache ArchitecturesAntoon Purnal, Lukas Giner, Daniel Gruss, Ingrid VerbauwhedeS&P 2021 · 93 citations
  3. Systematic Evaluation of Randomized Cache Designs against Cache OccupancyAnirban Chakraborty, Nimish Mishra, Sayandeep Saha, Sarani Bhattacharya et al.USENIX Security 2025
  4. SoK: So, You Think You Know All About Secure Randomized Caches?Anubhav Bhatla, Hari Rohit Bhavsar, Sayandeep Saha, Biswabandan PandaUSENIX Security 2025
  5. MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative DesignGururaj Saileshwar, Moinuddin K. QureshiUSENIX Security 2021 · 105 citations
Dusk over the sea between two cliffs drawn in fine vertical lines