[Paper Review] MIRAGE: Mitigating Conflict-Based Cache Attacks with a Practical Fully-Associative Design
MIRAGE proposes a practical fully-associative cache design that eliminates conflict-based side-channel attacks by enabling global evictions—where any cache line can be randomly evicted—through decoupled placement and replacement using pointer-based indirection and a skewed-associative tag-store with extra invalid tags. It achieves full-associativity security with only 2% performance overhead and 17–20% area cost, ensuring set-conflicts occur less than once in 10^4 to 10^17 years.
Shared processor caches are vulnerable to conflict-based side-channel attacks, where an attacker can monitor access patterns of a victim by evicting victim cache lines using cache-set conflicts. Recent mitigations propose randomized mapping of addresses to cache lines to obfuscate the locations of set-conflicts. However, these are vulnerable to new attacks that discover conflicting sets of addresses despite such mitigations, because these designs select eviction-candidates from a small set of conflicting lines. This paper presents Mirage, a practical design for a fully associative cache, wherein eviction candidates are selected randomly from all lines resident in the cache, to be immune to set-conflicts. A key challenge for enabling such designs in large shared caches (containing tens of thousands of cache lines) is the complexity of cache-lookup, as a naive design can require searching through all the resident lines. Mirage achieves full-associativity while retaining practical set-associative lookups by decoupling placement and replacement, using pointer-based indirection from tag-store to data-store to allow a newly installed address to globally evict the data of any random resident line. To eliminate set-conflicts, Mirage provisions extra invalid tags in a skewed-associative tag-store design where lines can be installed without set-conflict, along with a load-aware skew-selection policy that guarantees the availability of sets with invalid tags. Our analysis shows Mirage provides the global eviction property of a fully-associative cache throughout system lifetime (violations of full-associativity, i.e. set-conflicts, occur less than once in 10^4 to 10^17 years), thus offering a principled defense against any eviction-set discovery and any potential conflict based attacks. Mirage incurs limited slowdown (2%) and 17-20% extra storage compared to a non-secure cache.
Motivation & Objective
- To address the vulnerability of shared last-level caches (LLCs) to conflict-based side-channel attacks that exploit set-associative mappings.
- To eliminate set-conflicts entirely, preventing adversaries from discovering eviction sets even with advanced algorithms.
- To achieve the security properties of a fully-associative cache (global evictions) while maintaining the performance of set-associative lookups.
- To provide a practical, scalable, and low-overhead solution that does not require OS intervention or cache partitioning.
- To ensure long-term security by guaranteeing that set-conflicts are statistically impossible over system lifetime.
Proposed method
- Decouples tag placement from data replacement using pointer-based indirection between tag-store and data-store, enabling global victim selection.
- Employs a skewed-associative tag-store with extra invalid tags to eliminate set-conflicts during cache insertion.
- Uses a load-aware skew-selection policy to dynamically balance load and guarantee availability of sets with invalid tags.
- Maintains constant hit latency by avoiding variable-latency structures like hash tables with chaining.
- Leverages power-of-2 choices in load balancing to ensure high probability of conflict-free insertion across all cache lines.
- Retains efficient lookup by accessing only 24–28 locations per cache access, unlike naive fully-associative designs.
Experimental results
Research questions
- RQ1Can a practical, secure cache design eliminate all set-conflicts in shared last-level caches?
- RQ2Is it possible to achieve the security of a fully-associative cache with the performance of a set-associative design?
- RQ3Can global evictions be implemented efficiently without incurring high area or latency overhead?
- RQ4Can a design remain secure against advanced eviction-set discovery algorithms that exploit limited eviction candidate sets?
- RQ5What level of storage overhead is required to ensure conflict-free operation over the lifetime of a modern processor?
Key findings
- MIRAGE eliminates set-conflicts entirely, with violations of full-associativity (i.e., set-conflicts) occurring less than once in 10^4 to 10^17 years.
- The design incurs only a 2% performance slowdown compared to a non-secure set-associative LLC.
- It requires 17–20% more storage than a standard set-associative cache, primarily due to extra invalid tags in the tag-store.
- The system maintains constant hit latency by accessing only 24–28 locations per lookup, avoiding variable-latency structures.
- The load-aware skew-selection policy ensures that sets with invalid tags remain available, enabling conflict-free insertion.
- MIRAGE is robust against all known eviction-set discovery attacks, including those targeting randomized mapping schemes.
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.