Abusing Cache Line Dirty States to Leak Information in Commercial Processors
摘要
Caches have been used to construct various types of covert and side channels to leak information. Most existing cache channels exploit the timing difference between cache hits and cache misses. However, we introduce a new and broader classification of cache covert channel attacks: Hit+Miss, Hit+Hit, and Miss+Miss. We highlight that cache misses (or cache hits) for cache lines in different states may have more significant time differences, and these can be used as timing channels. Based on this classification, we propose a new stable and stealthy Miss+Miss cache channel. Write-back caches are widely deployed in modern processors. This paper presents in detail a way in which replacement latency differences can be used to construct timing-based channels (called WB channels) to leak information in a write-back cache. Any modification to a cache line by a sender will set it to the dirty state, and the receiver can observe this through measuring the latency of replacing this cache set. We also demonstrate how senders could exploit a different number of dirty cache lines in a cache set to improve transmission bandwidth with symbols encoding multiple bits. The peak transmission bandwidths of the WB channels in commercial systems can vary between 1300 and 4400 kbps per cache set in a hyper-threaded setting without shared memory between the sender and the receiver. In contrast to most existing cache channels, which always target specific memory addresses, the new WB channels focus on the cache set and cache line states, making it difficult for the channel to be disturbed by other processes on the core, and they can still work in a cache using a random replacement policy. We also analyzed the stealthiness of WB channels from the perspective of the number of cache loads and cache miss rates. We discuss and evaluate possible defenses. The paper finishes by discussing various forms of side-channel attack.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Port Contention for Fun and Profit 引用了 Spectre Attacks: Exploiting Speculative Execution
- Port Contention for Fun and Profit 引用了 Meltdown: Reading Kernel Memory from User Space
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit 引用了 Port Contention for Fun and Profit
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit 引用了 Spectre Attacks: Exploiting Speculative Execution
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit 引用了 Meltdown: Reading Kernel Memory from User Space
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit 引用了 AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing Attacks
- Practice Makes (Im)Perfect: A Look Back at Benchmarking Practices for Microarchitectural Side-Channel Attacks 引用了 Port Contention for Fun and Profit
- Practice Makes (Im)Perfect: A Look Back at Benchmarking Practices for Microarchitectural Side-Channel Attacks 引用了 Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 Port Contention for Fun and Profit
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 Spectre Attacks: Exploiting Speculative Execution
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 Meltdown: Reading Kernel Memory from User Space
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- Meltdown: Reading Kernel Memory from User Space 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing Attacks 引用了 Spectre Attacks: Exploiting Speculative Execution
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing Attacks 引用了 Meltdown: Reading Kernel Memory from User Space
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity 引用了 Spectre Attacks: Exploiting Speculative Execution
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity 引用了 Meltdown: Reading Kernel Memory from User Space
- Ceviche: Capability-Enhanced Secure Virtualization of Caches 引用了 Port Contention for Fun and Profit
- Ceviche: Capability-Enhanced Secure Virtualization of Caches 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Ceviche: Capability-Enhanced Secure Virtualization of Caches 引用了 Meltdown: Reading Kernel Memory from User Space
引用它的顶会 Paper5
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set AssociativityYanan Guo, Xin Xin, Youtao Zhang, Jun YangMICRO 2022 · 19 次引用
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and ProfitChang Liu, Dongsheng Wang, Yongqiang Lyu, Pengfei Qiu 等HPCA 2024 · 9 次引用
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing AttacksMulong Luo, Wenjie Xiong, Geunbae Lee, Yueying Li 等HPCA 2023 · 3 次引用
- Practice Makes (Im)Perfect: A Look Back at Benchmarking Practices for Microarchitectural Side-Channel AttacksIliana Fayolle, Antoine Geimer, Daniel De Almeida Braga, Clémentine MauriceCCS 2026
- Ceviche: Capability-Enhanced Secure Virtualization of CachesArnabjyoti Kalita, Yilong Yang, Alenkruth Krishnan Murali, Ashish VenkatS&P 2025
它引用的 Paper9
- 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 次引用
- Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp 等CCS 2016 · 278 次引用
- SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti 等CCS 2019 · 267 次引用
- Port Contention for Fun and ProfitAlejandro Cabrera Aldaya, Billy Bob Brumley, Sohaib ul Hassan, Cesar Pereida García 等S&P 2019 · 240 次引用
相关 Paper
- Leaking Information Through Cache LRU StatesWenjie Xiong, Jakub SzeferHPCA 2020 · 54 次引用
- Adversarial Prefetch: New Cross-Core Cache Side Channel AttacksYanan Guo, Andrew Zigerelli, Youtao Zhang, Jun YangS&P 2022 · 43 次引用
- Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention AttacksAntoon Purnal, Furkan Turan, Ingrid VerbauwhedeCCS 2021 · 55 次引用
- Exploitation of Security Vulnerability on RetirementKe Xu, Ming Tang, Quancheng Wang, Han WangHPCA 2024 · 3 次引用
- Don't Mesh Around: Side-Channel Attacks and Mitigations on Mesh InterconnectsMiles Dai, Riccardo Paccagnella, Miguel Gomez-Garcia, John D. McCalpin 等USENIX Security 2022
