[Paper Review] MI6: Secure Enclaves in a Speculative Out-of-Order Processor
MI6 presents a secure, speculative out-of-order RISC-V processor that enforces strong isolation for enclaves against untrusted OS and side-channel attacks by spatial and temporal isolation of shared microarchitectural resources. It introduces a novel purge instruction and achieves 16.4% average performance overhead for enclave workloads via FPGA-based evaluation on AWS F1.
Recent attacks have broken process isolation by exploiting microarchitectural side channels that allow indirect access to shared microarchitectural state. Enclaves strengthen the process abstraction to restore isolation guarantees. We propose MI6, an aggressive, speculative out-of-order processor capable of providing secure enclaves under a threat model that includes an untrusted OS and an attacker capable of mounting any software attack currently considered practical, including control flow speculation attacks. MI6 is inspired by Sanctum [16] and extends its isolation guarantee to more realistic memory hierarchies. It also introduces a purge instruction, which is used only when a secure process is scheduled, and implements it for a complex processor microarchitecture. We model the performance impact of enclaves in MI6 through FPGA emulation on AWS F1 FPGAs by running SPEC CINT2006 benchmarks on top of an untrusted Linux OS. Security comes at the cost of approximately 16.4% average slowdown for protected programs.
Motivation & Objective
- To strengthen process isolation in speculative out-of-order processors against microarchitectural side channels, including control flow mis-speculation.
- To extend strong isolation guarantees beyond cache to the full memory hierarchy, including DRAM and memory request queues.
- To design a secure, efficient mechanism for enclave context switching that prevents leakage through shared microarchitectural state.
- To evaluate the performance cost of strong isolation in a realistic, high-performance processor microarchitecture.
Proposed method
- Extends the RiscyOO open-source out-of-order RISC-V processor with hardware support for secure enclaves under a threat model including untrusted OS and practical side-channel attacks.
- Introduces a new purge instruction to flush shared microarchitectural state (e.g., ROB, TLB, MSHRs) on enclave entry/exit, ensuring isolation across context switches.
- Implements spatial and temporal isolation of shared resources—such as L1/L2/L3 caches, memory request queues, and DRAM controllers—using resource partitioning and arbitration controls.
- Uses a trusted security monitor in machine mode to mediate enclave entry/exit and verify resource allocation, protecting itself from OS compromise.
- Employs indistinguishability-based optimizations in the purge instruction to reduce performance impact while maintaining security.
- Evaluates performance via FPGA emulation on AWS F1 using SPEC CINT2006 benchmarks running under an untrusted Linux OS.
Experimental results
Research questions
- RQ1How can strong isolation be enforced in a speculative out-of-order processor with complex memory hierarchies?
- RQ2What is the performance overhead of flushing microarchitectural state on every enclave context switch in a high-performance processor?
- RQ3Can a single, simple purge instruction effectively manage isolation across diverse shared resources like caches, TLBs, and memory request queues?
- RQ4How does the overhead of isolation scale across different workloads and system components such as LLC arbitration and MSHRs?
- RQ5What is the trade-off between security and performance when enforcing isolation in a speculative processor with aggressive optimization features?
Key findings
- The average performance overhead for enclave programs in MI6 is 16.4%, with a maximum of 34.8% on the gcc benchmark.
- The LLC arbiter alone contributes 8.5% average overhead, comparable to traditional LLC set-partitioning.
- Turning off speculation increases execution time by 205% on average, highlighting the performance cost of losing speculation, though this is only incurred at enclave boundaries.
- The area overhead of adding all security mechanisms is only 2%, with no impact on clock frequency.
- The purge instruction effectively isolates shared microarchitectural state across context switches, enabling strong isolation without requiring speculative execution to be disabled.
- The performance overhead is dominated by microarchitectural state flushing and resource partitioning, not by speculation disable or instruction-level overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.