CacheQuery: learning replacement policies from hardware caches
Pepe Vila, Pierre Ganty, Marco Guarnieri, Boris Köpf
Abstract
We show how to infer deterministic cache replacement policies using off-the-shelf automata learning and program synthesis techniques. For this, we construct and chain two abstractions that expose the cache replacement policy of any set in the cache hierarchy as a membership oracle to the learning algorithm, based on timing measurements on a silicon CPU. Our experiments demonstrate an advantage in scope and scalability over prior art and uncover two previously undocumented cache replacement policies.
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.
15 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
- SMASH: Synchronized Many-sided Rowhammer Attacks from JavaScript cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Osiris: Automated Discovery of Microarchitectural Side Channels cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Osiris: Automated Discovery of Microarchitectural Side Channels cites Theory and Practice of Finding Eviction Sets
- Spook.js: Attacking Chrome Strict Site Isolation via Speculative Execution cites SMASH: Synchronized Many-sided Rowhammer Attacks from JavaScript
- Spook.js: Attacking Chrome Strict Site Isolation via Speculative Execution cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites SMASH: Synchronized Many-sided Rowhammer Attacks from JavaScript
- Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites Theory and Practice of Finding Eviction Sets
- Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention Attacks cites Leaking Information Through Cache LRU States
- Speculative interference attacks: breaking invisible speculation schemes cites Leaking Information Through Cache LRU States
Cited by top-tier papers15
- SMASH: Synchronized Many-sided Rowhammer Attacks from JavaScriptFinn de Ridder, Pietro Frigo, Emanuele Vannacci, Herbert Bos et al.USENIX Security 2021 · 124 citations
- Osiris: Automated Discovery of Microarchitectural Side ChannelsDaniel Weber, Ahmad Ibrahim, Hamed Nemati, Michael Schwarz et al.USENIX Security 2021 · 75 citations
- Speculative interference attacks: breaking invisible speculation schemesMohammad Behnia, Prateek Sahu, Riccardo Paccagnella, Jiyong Yu et al.ASPLOS 2021 · 69 citations
- Prime+Scope: Overcoming the Observer Effect for High-Precision Cache Contention AttacksAntoon Purnal, Furkan Turan, Ingrid VerbauwhedeCCS 2021 · 55 citations
- Spook.js: Attacking Chrome Strict Site Isolation via Speculative ExecutionAyush Agarwal, Sioli O'Connell, Jason Kim, Shaked Yehezkel et al.S&P 2022 · 32 citations
Builds on6
- DRAMA: Exploiting DRAM Addressing for Cross-CPU AttacksPeter Pessl, Daniel Gruss, Clémentine Maurice, Michael Schwarz et al.USENIX Security 2016 · 500 citations
- Theory and Practice of Finding Eviction SetsPepe Vila, Boris Köpf, José F. MoralesS&P 2019 · 145 citations
- CaSym: Cache Aware Symbolic Execution for Side Channel Detection and MitigationRobert Brotzman, Shen Liu, Danfeng Zhang, Gang Tan et al.S&P 2019 · 77 citations
- Leaking Information Through Cache LRU StatesWenjie Xiong, Jakub SzeferHPCA 2020 · 54 citations
- Reverse Engineering x86 Processor MicrocodePhilipp Koppe, Benjamin Kollenda, Marc Fyrbiak, Christian Kison et al.USENIX Security 2017 · 31 citations
Related papers
- An Imitation Learning Approach for Cache ReplacementEvan Zheran Liu, Milad Hashemi, Kevin Swersky, Parthasarathy Ranganathan et al.ICML 2020 · 108 citations
- Designing a Cost-Effective Cache Replacement Policy using Machine LearningSubhash Sethumurugan, Jieming Yin, John SartoriHPCA 2021 · 81 citations
- CacheMind: From Miss Rates to Why - Natural-Language, Trace-Grounded Reasoning for Cache ReplacementKaushal Mhapsekar, Azam Ghanbari, Bita Aslrousta, Samira Mirbagher AjorpazASPLOS 2026
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing AttacksMulong Luo, Wenjie Xiong, Geunbae Lee, Yueying Li et al.HPCA 2023 · 3 citations
- SpecuSym: speculative symbolic execution for cache timing leak detectionShengjian Guo, Yueqi Chen, Peng Li, Yueqiang Cheng et al.ICSE 2020 · 34 citations
