Speculative Data-Oblivious Execution: Mobilizing Safe Prediction For Safe and Efficient Speculative Execution
Jiyong Yu, Namrata Mantri, Josep Torrellas, Adam Morrison, Christopher W. Fletcher
Abstract
Speculative execution attacks are an enormous security threat. In these attacks, malicious speculative execution reads and exfiltrates potentially arbitrary program data through microarchitectural covert channels. Correspondingly, prior work has shown how to comprehensively block such attacks by delaying the execution of covert channel-creating instructions until their operands are a function of non-speculative data. This paper's premise is that it is safe to execute these potentially dangerous instructions early, improving performance, as long as their execution does not require operand-dependent hardware resource usage, i.e., is data oblivious. While secure, this idea can easily reduce, not improve, performance. Intuitively, data obliviousness implies doing the worst case work all the time. Our key idea to get net speedup is that it is safe to predict what will be, and to subsequently perform, the work needed to satisfy the common case, as long as the prediction itself does not leak privacy. We call the complete scheme-predicting the form of data-oblivious execution-Speculative Data-Oblivious Execution (SDO). We build SDO on top of a recent comprehensive and state-of-the-art protection called STT. Extending security arguments from STT, we show how the predictions do not reveal private information, enabling safe and efficient speculative execution. We evaluate the combined scheme, STT + SDO, on a set of SPEC17 workloads and find that it improves the performance of stand-alone STT by an average 36.3% to 55.1%, depending on the microarchitecture and attack model-and without changing STT's security guarantees.
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.
28 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
- GhostMinion: A Strictness-Ordered Cache System for Spectre Mitigation cites Spectre Attacks: Exploiting Speculative Execution
- GhostMinion: A Strictness-Ordered Cache System for Spectre Mitigation cites DOLMA: Securing Speculation with the Principle of Transient Non-Observability
- ret2spec: Speculative Execution Using Return Stack Buffers cites Spectre Attacks: Exploiting Speculative Execution
- INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities cites Spectre Attacks: Exploiting Speculative Execution
- INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities cites ret2spec: Speculative Execution Using Return Stack Buffers
- INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities cites DOLMA: Securing Speculation with the Principle of Transient Non-Observability
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising Privacy cites Oblivious Multi-Party Machine Learning on Trusted Processors
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising Privacy cites Spectre Attacks: Exploiting Speculative Execution
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising Privacy cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising Privacy cites ret2spec: Speculative Execution Using Return Stack Buffers
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising Privacy cites Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising Privacy cites DOLMA: Securing Speculation with the Principle of Transient Non-Observability
- Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
- DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites Spectre Attacks: Exploiting Speculative Execution
- DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites ret2spec: Speculative Execution Using Return Stack Buffers
- DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
- Pensieve: Microarchitectural Modeling for Security Evaluation cites Spectre Attacks: Exploiting Speculative Execution
- Pensieve: Microarchitectural Modeling for Security Evaluation cites GhostMinion: A Strictness-Ordered Cache System for Spectre Mitigation
- Pensieve: Microarchitectural Modeling for Security Evaluation cites ret2spec: Speculative Execution Using Return Stack Buffers
- Pensieve: Microarchitectural Modeling for Security Evaluation cites INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities
- Pensieve: Microarchitectural Modeling for Security Evaluation cites Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
- Pensieve: Microarchitectural Modeling for Security Evaluation cites DOLMA: Securing Speculation with the Principle of Transient Non-Observability
Cited by top-tier papers28
- DOLMA: Securing Speculation with the Principle of Transient Non-ObservabilityKevin Loughlin, Ian Neal, Jiacheng Ma, Elisa Tsai et al.USENIX Security 2021 · 94 citations
- GhostMinion: A Strictness-Ordered Cache System for Spectre MitigationSam AinsworthMICRO 2021 · 36 citations
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising PrivacyRutvik Choudhary, Jiyong Yu, Christopher W. Fletcher, Adam MorrisonMICRO 2021 · 33 citations
- INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution VulnerabilitiesMoein Ghaniyoun, Kristin Barber, Yinqian Zhang, Radu TeodorescuISCA 2021 · 23 citations
- Pensieve: Microarchitectural Modeling for Security EvaluationYuheng Yang, Thomas Bourgeat, Stella Lau, Mengjia YanISCA 2023 · 23 citations
Builds on12
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- Oblivious Multi-Party Machine Learning on Trusted ProcessorsOlga Ohrimenko, Felix Schuster, Cédric Fournet, Aastha Mehta et al.USENIX Security 2016 · 594 citations
- DRAMA: Exploiting DRAM Addressing for Cross-CPU AttacksPeter Pessl, Daniel Gruss, Clémentine Maurice, Michael Schwarz et al.USENIX Security 2016 · 500 citations
- Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB AttacksBen Gras, Kaveh Razavi, Herbert Bos, Cristiano GiuffridaUSENIX Security 2018 · 357 citations
- ret2spec: Speculative Execution Using Return Stack BuffersGiorgi Maisuradze, Christian RossowCCS 2018 · 282 citations
Related papers
- Doppelganger Loads: A Safe, Complexity-Effective Optimization for Secure Speculation SchemesAmund Bergland Kvalsvik, Pavlos Aimoniotis, Stefanos Kaxiras, Magnus SjälanderISCA 2023 · 9 citations
- Speculation Invariance (InvarSpec): Faster Safe Execution Through Program AnalysisZirui Neil Zhao, Houxiang Ji, Mengjia Yan, Jiyong Yu et al.MICRO 2020 · 25 citations
- SPECRUN: The Danger of Speculative Runahead Execution in ProcessorsChaoqun Shen, Gang Qu, Jiliang ZhangDAC 2024 · 1 citation
- dfence: Fine-Grained Speculation Barriers for Efficient and Effective Hardware-Software Protection in the Spectre EraDavide Davoli, Marton Bognar, Lesly-Ann Daniel, Benjamin Gregoire et al.CCS 2026 · 1 citation
- ReCon: Efficient Detection, Management, and Use of Non-Speculative Information LeakagePavlos Aimoniotis, Amund Bergland Kvalsvik, Xiaoyue Chen, Magnus Själander et al.MICRO 2023 · 6 citations
