Lune

USENIX Security2021顶会

MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design

Gururaj Saileshwar, Moinuddin K. Qureshi

摘要

Shared caches in modern processors are vulnerable to conflict-based attacks, whereby an attacker monitors the access pattern of a victim by engineering cache-set conflicts. Recent mitigations propose a randomized mapping of addresses to cache locations to obfuscate addresses that can conflict with a target address. Unfortunately, such designs continue to select eviction candidates from a small subset of the resident cache lines, which makes such designs vulnerable to algorithms that can quickly identify the conflicting addresses. This paper presents Mirage, a practical design for a fully associative cache, wherein eviction candidates are selected randomly from among all the lines resident in the cache, to be immune to set-conflicts. A key challenge in naively adopting such designs for large shared caches (containing tens of thousands of lines) is the complexity of cache-lookup, as that can require searching through all the lines resident in the cache in such designs. Mirage practically enables a fully-associative design, while maintaining the access latency similar to a traditional set-associative cache using: (1) Pointer-based indirection from the tag-store to the data-store, which allows a newly installed address to evict data of any resident line, (2) Skewed-associative tag-store with extra invalid tags, wherein incoming addresses can be installed without set-conflicts, and (3) Load-aware placement that maximizes the availability of sets with invalid tags, to eliminate set-conflicts. Our analysis shows Mirage provides the global-eviction property of a fully-associative cache throughout the system lifetime (violations of full-associativity, i.e set-conflicts, occur less than once in 10^4 to 10^17 years), offering a principled defense against set-conflict based attacks. Mirage incurs negligible slowdown (0.3%) and 12-15% extra storage compared to the recently proposed Scatter-Cache.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 30 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Robust Website Fingerprinting Through the Cache Occupancy Channel 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh 引用了 Prime+Abort: A Timer-Free High-Precision L3 Cache Attack using Intel TSX
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh 引用了 ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh 引用了 Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory
  • MeshUp: Stateless Cache Side-channel Attack on CPU Mesh 引用了 Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks
  • Scalable and Secure Row-Swap: Efficient and Safe Row Hammer Mitigation in Memory Systems 引用了 AQUA: Scalable Rowhammer Mitigation by Quarantining Aggressor Rows at Runtime
  • Scalable and Secure Row-Swap: Efficient and Safe Row Hammer Mitigation in Memory Systems 引用了 MOESI-prime: preventing coherence-induced hammering in commodity workloads
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks 引用了 Prime+Abort: A Timer-Free High-Precision L3 Cache Attack using Intel TSX
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks 引用了 ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks 引用了 Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory
  • Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks 引用了 Robust Website Fingerprinting Through the Cache Occupancy Channel
  • AQUA: Scalable Rowhammer Mitigation by Quarantining Aggressor Rows at Runtime 引用了 MOESI-prime: preventing coherence-induced hammering in commodity workloads
  • MOESI-prime: preventing coherence-induced hammering in commodity workloads 引用了 ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper30

  1. AQUA: Scalable Rowhammer Mitigation by Quarantining Aggressor Rows at RuntimeAnish Saxena, Gururaj Saileshwar, Prashant J. Nair, Moinuddin K. QureshiMICRO 2022 · 57 次引用
  2. Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention AttacksAntoon Purnal, Furkan Turan, Ingrid VerbauwhedeCCS 2021 · 55 次引用
  3. Scalable and Secure Row-Swap: Efficient and Safe Row Hammer Mitigation in Memory SystemsJeonghyun Woo, Gururaj Saileshwar, Prashant J. NairHPCA 2023 · 45 次引用
  4. MeshUp: Stateless Cache Side-channel Attack on CPU MeshJunpeng Wan, Yanxiang Bi, Zhe Zhou, Zhou LiS&P 2022 · 42 次引用
  5. MOESI-prime: preventing coherence-induced hammering in commodity workloadsKevin Loughlin, Stefan Saroiu, Alec Wolman, Yatin A. Manerkar 等ISCA 2022 · 34 次引用

它引用的 Paper12

  1. Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp 等CCS 2016 · 278 次引用
  2. Strong and Efficient Cache Side-Channel Protection using Hardware Transactional MemoryDaniel Gruss, Julian Lettner, Felix Schuster, Olga Ohrimenko 等USENIX Security 2017 · 254 次引用
  3. ScatterCache: Thwarting Cache Attacks via Cache Set RandomizationMario Werner, Thomas Unterluggauer, Lukas Giner, Michael Schwarz 等USENIX Security 2019 · 221 次引用
  4. Prime+Abort: A Timer-Free High-Precision L3 Cache Attack using Intel TSXCraig Disselkoen, David Kohlbrenner, Leo Porter, Dean M. TullsenUSENIX Security 2017 · 186 次引用
  5. Robust Website Fingerprinting Through the Cache Occupancy ChannelAnatoly Shusterman, Lachlan Kang, Yarden Haskal, Yosef Meltser 等USENIX Security 2019 · 159 次引用

相关 Paper

  1. Are Randomized Caches Truly Random? Formal Analysis of Randomized-Partitioned CachesAnirban Chakraborty, Sarani Bhattacharya, Sayandeep Saha, Debdeep MukhopadhyayHPCA 2023 · 5 次引用
  2. The Maya Cache: A Storage-efficient and Secure Fully-associative Last-level CacheAnubhav Bhatla, Navneet, Biswabandan PandaISCA 2024 · 12 次引用
  3. 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 等S&P 2026
  4. Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix ItWei Song, Boya Li, Zihan Xue, Zhenzhen Li 等S&P 2021 · 67 次引用
  5. SoK: So, You Think You Know All About Secure Randomized Caches?Anubhav Bhatla, Hari Rohit Bhavsar, Sayandeep Saha, Biswabandan PandaUSENIX Security 2025
黄昏的海面,两侧是细线勾勒的悬崖