BunnyHop: Exploiting the Instruction Prefetcher
Zhiyuan Zhang, Mingtian Tao, Sioli O'Connell, Chitchanok Chuengsatiansup, Daniel Genkin, Yuval Yarom
摘要
The instruction prefetcher is a microarchitectural component whose task is to bring program code into the instruction cache. To predict which code is likely to be executed, the instruction prefetcher relies on the branch predictor. In this paper we investigate the instruction prefetcher in modern Intel processors. We first propose BunnyHop, a technique that uses the instruction prefetcher to encode branch prediction information as a cache state. We show how to use BunnyHop to perform low-noise attacks on the branch predictor. Specifically, we show how to implement attacks similar to Flush+Reload and Prime+Probe on the branch predictor instead of on the data caches. We then show that BunnyHop allows using the instruction prefetcher as a confused deputy to force cache eviction within a victim. We use this to demonstrate an attack on an implementation of AES protected with both cache coloring and data prefetch.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 Spectre Attacks: Exploiting Speculative Execution
- LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection 引用了 Meltdown: Reading Kernel Memory from User Space
- Spectre Attacks: Exploiting Speculative Execution 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- ShadowLoad: Injecting State into Hardware Prefetchers 引用了 LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection
- ShadowLoad: Injecting State into Hardware Prefetchers 引用了 Spectre Attacks: Exploiting Speculative Execution
- ShadowLoad: Injecting State into Hardware Prefetchers 引用了 Meltdown: Reading Kernel Memory from User Space
- ShadowLoad: Injecting State into Hardware Prefetchers 引用了 FetchBench: Systematic Identification and Characterization of Proprietary Prefetchers
- Conjuring: Leaking Control Flow via Speculative Fetch Attacks 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- Conjuring: Leaking Control Flow via Speculative Fetch Attacks 引用了 Spectre Attacks: Exploiting Speculative Execution
- Conjuring: Leaking Control Flow via Speculative Fetch Attacks 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
- Controlled Preemption: Amplifying Side-Channel Attacks from Userspace 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- Controlled Preemption: Amplifying Side-Channel Attacks from Userspace 引用了 LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection
- Controlled Preemption: Amplifying Side-Channel Attacks from Userspace 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
- Controlled Preemption: Amplifying Side-Channel Attacks from Userspace 引用了 FetchBench: Systematic Identification and Characterization of Proprietary Prefetchers
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction 引用了 Spectre Attacks: Exploiting Speculative Execution
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction 引用了 Meltdown: Reading Kernel Memory from User Space
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update Instruction 引用了 Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
- Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- FetchBench: Systematic Identification and Characterization of Proprietary Prefetchers 引用了 Spectre Attacks: Exploiting Speculative Execution
- FetchBench: Systematic Identification and Characterization of Proprietary Prefetchers 引用了 Meltdown: Reading Kernel Memory from User Space
引用它的顶会 Paper15
- FetchBench: Systematic Identification and Characterization of Proprietary PrefetchersTill Schlüter, Amit Choudhari, Lorenz Hetterich, Leon Trampert 等CCS 2023 · 11 次引用
- ShadowLoad: Injecting State into Hardware PrefetchersLorenz Hetterich, Fabian Thomas, Lukas Gerlach, Ruiyi Zhang 等ASPLOS 2025 · 9 次引用
- Conjuring: Leaking Control Flow via Speculative Fetch AttacksAli Hajiabadi, Trevor E. CarlsonDAC 2024 · 5 次引用
- Controlled Preemption: Amplifying Side-Channel Attacks from UserspaceYongye Zhu, Boru Chen, Zirui Neil Zhao, Christopher W. FletcherASPLOS 2025 · 5 次引用
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update InstructionDebpratim Adak, Huiyang Zhou, Eric Rotenberg, Amro AwadHPCA 2025 · 3 次引用
它引用的 Paper33
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
- Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch ShadowingSangho Lee, Ming-Wei Shih, Prasun Gera, Taesoo Kim 等USENIX Security 2017 · 536 次引用
- Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB AttacksBen Gras, Kaveh Razavi, Herbert Bos, Cristiano GiuffridaUSENIX Security 2018 · 357 次引用
- LVI: Hijacking Transient Execution through Microarchitectural Load Value InjectionJo Van Bulck, Daniel Moghimi, Michael Schwarz, Moritz Lipp 等S&P 2020 · 275 次引用
相关 Paper
- Unveiling Hardware-based Data Prefetcher, a Hidden Source of Information LeakageYoung-joo Shin, Hyung Chan Kim, Dokeun Kwon, Ji-Hoon Jeong 等CCS 2018 · 73 次引用
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set AssociativityYanan Guo, Xin Xin, Youtao Zhang, Jun YangMICRO 2022 · 19 次引用
- Malicious Management Unit: Why Stopping Cache Attacks in Software is Harder Than You ThinkStephan van Schaik, Cristiano Giuffrida, Herbert Bos, Kaveh RazaviUSENIX Security 2018 · 64 次引用
- PREFETCHX: Cross-Core Cache-Agnostic Prefetcher-based Side-Channel AttacksYun Chen, Ali Hajiabadi, Lingfeng Pei, Trevor E. CarlsonHPCA 2024 · 15 次引用
- 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 次引用
