Abusing Cache Line Dirty States to Leak Information in Commercial Processors
Abstract
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.
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.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Port Contention for Fun and Profit cites Spectre Attacks: Exploiting Speculative Execution
- Port Contention for Fun and Profit cites Meltdown: Reading Kernel Memory from User Space
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit cites Port Contention for Fun and Profit
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit cites Spectre Attacks: Exploiting Speculative Execution
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit cites Meltdown: Reading Kernel Memory from User Space
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and Profit cites 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 cites Port Contention for Fun and Profit
- Practice Makes (Im)Perfect: A Look Back at Benchmarking Practices for Microarchitectural Side-Channel Attacks cites Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites Port Contention for Fun and Profit
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites Spectre Attacks: Exploiting Speculative Execution
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites Meltdown: Reading Kernel Memory from User Space
- Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
- Meltdown: Reading Kernel Memory from User Space cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing Attacks cites Spectre Attacks: Exploiting Speculative Execution
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing Attacks cites Meltdown: Reading Kernel Memory from User Space
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity cites Spectre Attacks: Exploiting Speculative Execution
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set Associativity cites Meltdown: Reading Kernel Memory from User Space
- Ceviche: Capability-Enhanced Secure Virtualization of Caches cites Port Contention for Fun and Profit
- Ceviche: Capability-Enhanced Secure Virtualization of Caches cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Ceviche: Capability-Enhanced Secure Virtualization of Caches cites Meltdown: Reading Kernel Memory from User Space
Cited by top-tier papers5
- Leaky Way: A Conflict-Based Cache Covert Channel Bypassing Set AssociativityYanan Guo, Xin Xin, Youtao Zhang, Jun YangMICRO 2022 · 19 citations
- Uncovering and Exploiting AMD Speculative Memory Access Predictors for Fun and ProfitChang Liu, Dongsheng Wang, Yongqiang Lyu, Pengfei Qiu et al.HPCA 2024 · 9 citations
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing AttacksMulong Luo, Wenjie Xiong, Geunbae Lee, Yueying Li et al.HPCA 2023 · 3 citations
- 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
Builds on9
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
- Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp et al.CCS 2016 · 278 citations
- SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti et al.CCS 2019 · 267 citations
- Port Contention for Fun and ProfitAlejandro Cabrera Aldaya, Billy Bob Brumley, Sohaib ul Hassan, Cesar Pereida García et al.S&P 2019 · 240 citations
Related papers
- Leaking Information Through Cache LRU StatesWenjie Xiong, Jakub SzeferHPCA 2020 · 54 citations
- Adversarial Prefetch: New Cross-Core Cache Side Channel AttacksYanan Guo, Andrew Zigerelli, Youtao Zhang, Jun YangS&P 2022 · 43 citations
- Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention AttacksAntoon Purnal, Furkan Turan, Ingrid VerbauwhedeCCS 2021 · 55 citations
- Exploitation of Security Vulnerability on RetirementKe Xu, Ming Tang, Quancheng Wang, Han WangHPCA 2024 · 3 citations
- Don't Mesh Around: Side-Channel Attacks and Mitigations on Mesh InterconnectsMiles Dai, Riccardo Paccagnella, Miguel Gomez-Garcia, John D. McCalpin et al.USENIX Security 2022
