Lune

USENIX Security2022顶会

TLB;DR: Enhancing TLB-based Attacks with TLB Desynchronized Reverse Engineering

Andrei Tatar, Daniël Trujillo, Cristiano Giuffrida, Herbert Bos

摘要

Translation Lookaside Buffers, or TLBs, play a vital role in recent microarchitectural attacks. However, unlike CPU caches, we know very little about the exact operation of these essential microarchitectural components. In this paper, we introduce TLB desynchronization as a novel technique for reverse engineering TLB behavior from software. Unlike previous efforts that rely on timing or performance counters, our technique relies on fundamental properties of TLBs, enabling precise and fine-grained experiments. We use desynchronization to shed new light on TLB behavior, examining previously undocumented features such as replacement policies and handling of PCIDs on commodity Intel processors. We also show that such knowledge allows for more and better attacks. Our results reveal a novel replacement policy on the L2 TLB of modern Intel CPUs as well as behavior indicative of a PCID cache. We use our new insights to design adversarial access patterns that massage the TLB state into evicting a target entry in the minimum number of steps, then examine their impact on several classes of prior TLB-based attacks. Our findings enable practical side channels à la TLBleed over L2, with much finer spatial discrimination and at a sampling rate comparable to L1, as well as an even finer-grained variant that targets both levels. We also show substantial speed gains for other classes of attacks that rely on TLB eviction.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud 引用了 Everywhere All at Once: Co-Location Attacks on Public Cloud FaaS
  • Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public Cloud 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • Spectre Attacks: Exploiting Speculative Execution 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
  • Everywhere All at Once: Co-Location Attacks on Public Cloud FaaS 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • TunneLs for Bootlegging: Fully Reverse-Engineering GPU TLBs for Challenging Isolation Guarantees of NVIDIA MIG 引用了 Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • TunneLs for Bootlegging: Fully Reverse-Engineering GPU TLBs for Challenging Isolation Guarantees of NVIDIA MIG 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
  • TunneLs for Bootlegging: Fully Reverse-Engineering GPU TLBs for Challenging Isolation Guarantees of NVIDIA MIG 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • GoFetch: Breaking Constant-Time Cryptographic Implementations Using Data Memory-Dependent Prefetchers 引用了 Spectre Attacks: Exploiting Speculative Execution
  • GoFetch: Breaking Constant-Time Cryptographic Implementations Using Data Memory-Dependent Prefetchers 引用了 Meltdown: Reading Kernel Memory from User Space
  • GoFetch: Breaking Constant-Time Cryptographic Implementations Using Data Memory-Dependent Prefetchers 引用了 Augury: Using Data Memory-Dependent Prefetchers to Leak Data at Rest
  • GoFetch: Breaking Constant-Time Cryptographic Implementations Using Data Memory-Dependent Prefetchers 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
  • GoFetch: Breaking Constant-Time Cryptographic Implementations Using Data Memory-Dependent Prefetchers 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Meltdown: Reading Kernel Memory from User Space 引用了 Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • Meltdown: Reading Kernel Memory from User Space 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
  • Augury: Using Data Memory-Dependent Prefetchers to Leak Data at Rest 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Augury: Using Data Memory-Dependent Prefetchers to Leak Data at Rest 引用了 Meltdown: Reading Kernel Memory from User Space
  • Augury: Using Data Memory-Dependent Prefetchers to Leak Data at Rest 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks 引用了 Hello from the Other Side: SSH over Robust Cache Covert Channels in the Cloud
  • Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks 引用了 ASLR on the Line: Practical Cache Attacks on the MMU
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper21

  1. Augury: Using Data Memory-Dependent Prefetchers to Leak Data at RestJose Rodrigo Sanchez Vicarte, Michael Flanders, Riccardo Paccagnella, Grant Garrett-Grossman 等S&P 2022 · 66 次引用
  2. GoFetch: Breaking Constant-Time Cryptographic Implementations Using Data Memory-Dependent PrefetchersBoru Chen, Yingchen Wang, Pradyumna Shome, Christopher W. Fletcher 等USENIX Security 2024 · 52 次引用
  3. Last-Level Cache Side-Channel Attacks Are Feasible in the Modern Public CloudZirui Neil Zhao, Adam Morrison, Christopher W. Fletcher, Josep TorrellasASPLOS 2024 · 20 次引用
  4. TunneLs for Bootlegging: Fully Reverse-Engineering GPU TLBs for Challenging Isolation Guarantees of NVIDIA MIGZhenkai Zhang, Tyler N. Allen, Fan Yao, Xing Gao 等CCS 2023 · 18 次引用
  5. Everywhere All at Once: Co-Location Attacks on Public Cloud FaaSZirui Neil Zhao, Adam Morrison, Christopher W. Fletcher, Josep TorrellasASPLOS 2024 · 16 次引用

它引用的 Paper10

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
  3. Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB AttacksBen Gras, Kaveh Razavi, Herbert Bos, Cristiano GiuffridaUSENIX Security 2018 · 357 次引用
  4. ASLR on the Line: Practical Cache Attacks on the MMUBen Gras, Kaveh Razavi, Erik Bosman, Herbert Bos 等NDSS 2017 · 276 次引用
  5. Hello from the Other Side: SSH over Robust Cache Covert Channels in the CloudClémentine Maurice, Manuel Weber, Michael Schwarz, Lukas Giner 等NDSS 2017 · 174 次引用

相关 Paper

  1. DevIOus: Device-Driven Side-Channel Attacks on the IOMMUTaehun Kim, Hyeongjin Park, Seokmin Lee, Seunghee Shin 等S&P 2023
  2. RELOAD+REFRESH: Abusing Cache Replacement Policies to Perform Stealthy Cache AttacksSamira Briongos, Pedro Malagón, José Manuel Moya, Thomas EisenbarthUSENIX Security 2020
  3. OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction GranularityKaiyuan Rong, Junqi Fang, Haixia Wang, Dapeng Ju 等NDSS 2026
  4. Page Cache AttacksDaniel Gruss, Erik Kraft, Trishita Tiwari, Michael Schwarz 等CCS 2019 · 55 次引用
  5. All Your PC Are Belong to Us: Exploiting Non-control-Transfer Instruction BTB Updates for Dynamic PC ExtractionJiyong Yu, Trent Jaeger, Christopher Wardlaw FletcherISCA 2023 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖