Lune

NDSS2020Top-tier venue

PhantomCache: Obfuscating Cache Conflicts with Localized Randomization

Qinhan Tan, Zhihua Zeng, Kai Bu, Kui Ren

Abstract

—Cache conflicts due to deterministic memory-to-cache mapping have long been exploited to leak sensitive information such as secret keys. While randomized mapping is fully investigated for L1 caches, it still remains unresolved about how to secure a much larger last-level cache (LLC). Recent solutions periodically change the mapping strategy to disrupt the crafting of conflicted addresses, which is a critical attack procedure to exploit cache conflicts. Remapping, however, increases both miss rate and access latency. We present PhantomCache for securing an LLC with remapping-free randomized mapping. We propose a localized randomization technique to bound randomized mapping of a memory address within only a limited number of cache sets. The small randomization space offers fast set search over an LLC in a memory access. The intrinsic randomness still suffices to obfuscate conflicts and disrupt efficient exploitation of con-flicted addresses. We evaluate PhantomCache against an attacker exploring the state-of-the-art attack with linear-complexity. To secure an 8-bank 16 MB 16-way LLC, PhantomCache confines randomization space of an address within 8 sets and brings only 1.20% performance degradation on individual benchmarks, 0.50% performance degradation on mixed workloads, and 0.50% storage overhead per cache line, which are 2x and 9x more effi-cient than the state-of-the-art solutions. Moreover, PhantomCache is solely an architectural solution and requires no software change.

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.

20 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

  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud cites Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix It
  • 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
  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud cites Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks
  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud cites MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design
  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud cites ARMageddon: Cache Attacks on Mobile Devices
  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud cites Systematic Analysis of Randomization-based Protected Cache Architectures
  • Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix It cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix It cites Theory and Practice of Finding Eviction Sets
  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization cites Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization cites ARMageddon: Cache Attacks on Mobile Devices
  • Theory and Practice of Finding Eviction Sets cites Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • Theory and Practice of Finding Eviction Sets cites ARMageddon: Cache Attacks on Mobile Devices
  • Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory cites Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites Theory and Practice of Finding Eviction Sets
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites ARMageddon: Cache Attacks on Mobile Devices
  • MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design cites Theory and Practice of Finding Eviction Sets
  • MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design cites Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory
  • MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design cites Systematic Analysis of Randomization-based Protected Cache Architectures
  • Systematic Analysis of Randomization-based Protected Cache Architectures cites Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • Systematic Analysis of Randomization-based Protected Cache Architectures cites ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • Systematic Analysis of Randomization-based Protected Cache Architectures cites Theory and Practice of Finding Eviction Sets
  • Systematic Analysis of Randomization-based Protected Cache Architectures cites ARMageddon: Cache Attacks on Mobile Devices
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative DesignGururaj Saileshwar, Moinuddin K. QureshiUSENIX Security 2021 · 105 citations
  2. Systematic Analysis of Randomization-based Protected Cache ArchitecturesAntoon Purnal, Lukas Giner, Daniel Gruss, Ingrid VerbauwhedeS&P 2021 · 93 citations
  3. Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix ItWei Song, Boya Li, Zihan Xue, Zhenzhen Li et al.S&P 2021 · 67 citations
  4. Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention AttacksAntoon Purnal, Furkan Turan, Ingrid VerbauwhedeCCS 2021 · 55 citations
  5. 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

Builds on5

  1. ARMageddon: Cache Attacks on Mobile DevicesMoritz Lipp, Daniel Gruss, Raphael Spreitzer, Clémentine Maurice et al.USENIX Security 2016 · 451 citations
  2. Strong and Efficient Cache Side-Channel Protection using Hardware Transactional MemoryDaniel Gruss, Julian Lettner, Felix Schuster, Olga Ohrimenko et al.USENIX Security 2017 · 254 citations
  3. ScatterCache: Thwarting Cache Attacks via Cache Set RandomizationMario Werner, Thomas Unterluggauer, Lukas Giner, Michael Schwarz et al.USENIX Security 2019 · 221 citations
  4. Hello from the Other Side: SSH over Robust Cache Covert Channels in the CloudClémentine Maurice, Manuel Weber, Michael Schwarz, Lukas Giner et al.NDSS 2017 · 174 citations
  5. Theory and Practice of Finding Eviction SetsPepe Vila, Boris Köpf, José F. MoralesS&P 2019 · 145 citations

Related papers

  1. SoK: So, You Think You Know All About Secure Randomized Caches?Anubhav Bhatla, Hari Rohit Bhavsar, Sayandeep Saha, Biswabandan PandaUSENIX Security 2025
  2. Are Randomized Caches Truly Random? Formal Analysis of Randomized-Partitioned CachesAnirban Chakraborty, Sarani Bhattacharya, Sayandeep Saha, Debdeep MukhopadhyayHPCA 2023 · 5 citations
  3. SCARF - A Low-Latency Block Cipher for Secure Cache-RandomizationFederico Canale, Tim Güneysu, Gregor Leander, Jan Philipp Thoma et al.USENIX Security 2023
  4. Scatter and Split Securely: Defeating Cache Contention and Occupancy AttacksLukas Giner, Stefan Steinegger, Antoon Purnal, Maria Eichlseder et al.S&P 2023
  5. SeqAss: Using SeqUential Associative Caches to Mitigate Conflict-Based Cache Attacks with Reduced Cache Misses and Performance OverheadWei Song, Zhidong Wang, Jinchi Han, Da Xie et al.S&P 2026
Dusk over the sea between two cliffs drawn in fine vertical lines