MuonTrap: Preventing Cross-Domain Spectre-Like Attacks by Capturing Speculative State
Preprint
Abstract
The disclosure of the Spectre speculative-execution attacks in January 2018 has left a severe vulnerability that systems are still struggling with how to patch. The solutions that currently exist tend to have incomplete coverage, perform badly, or have highly undesirable edge cases that cause application domains to break. MuonTrap allows processors to continue to speculate, avoiding significant reductions in performance, without impacting security. We instead prevent the propagation of any state based on speculative execution, by placing the results of speculative cache accesses into a small, fast L0 filter cache, that is non-inclusive, non-exclusive with the rest of the cache hierarchy. This isolates all parts of the system that can't be quickly cleared on any change in threat domain. MuonTrap uses these speculative filter caches, which are cleared on context and protection-domain switches, along with a series of extensions to the cache coherence protocol and prefetcher. This renders systems immune to cross-domain information leakage via Spectre and a host of similar attacks based on speculative execution, with low performance impact and few changes to the CPU design.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- Speculative Taint Tracking (STT): A Comprehensive Protection for Speculatively Accessed DataIEEE Micro, 2020
- Conditional Speculation: An Effective Approach to Safeguard Out-of-Order Execution Against Spectre Attacks2019
- InvisiSpec: Making Speculative Execution Invisible in the Cache Hierarchy2018
- CheckMate: Automated Synthesis of Hardware Exploits and Security Litmus Tests2018
- DAWG: A Defense Against Cache Timing Attacks in Speculative Execution Processors2018
- Random Fill Cache Architecture2014
- Sources of error in full-system simulation2014
- A novel cache architecture with enhanced performance and security2008
- Cache Attacks and Countermeasures: The Case of AES2006
- The filter cache: an energy efficient memory structure2002