[Paper Review] Randomized Last-Level Caches Are Still Vulnerable to Cache Side-Channel Attacks! But We Can Fix It
This paper identifies critical vulnerabilities in randomized last-level cache (LLC) defenses like CEASER-S and ScatterCache, showing attackers can exploit cache flush instructions and partial eviction sets to bypass remapping protections. It proposes fixes including eviction-based remap timing, multi-step relocation, and attack detection, demonstrating that randomized set-associative caches can be secured with minimal performance overhead.
Cache randomization has recently been revived as a promising defense against conflict-based cache side-channel attacks. As two of the latest implementations, CEASER-S and ScatterCache both claim to thwart conflict-based cache side-channel attacks using randomized skewed caches. Unfortunately, our experiments show that an attacker can easily find a usable eviction set within the chosen remap period of CEASER-S and increasing the number of partitions without dynamic remapping, such as ScatterCache, cannot eliminate the threat. By quantitatively analyzing the access patterns left by various attacks in the LLC, we have newly discovered several problems with the hypotheses and implementations of randomized caches, which are also overlooked by the research on conflict-based cache side-channel attack. However, cache randomization is not a false hope and it is an effective defense that should be widely adopted in future processors. The newly discovered problems are corresponding to flaws associated with the existing implementation of cache randomization and are fixable. Several new defense techniques are proposed in this paper. our experiments show that all the newly discovered vulnerabilities of existing randomized caches are fixed within the current performance budget. We also argue that randomized set-associative caches can be sufficiently strengthened and possess a better chance to be actually adopted in commercial processors than their skewed counterparts as they introduce less overhaul to the existing cache structure.
Motivation & Objective
- To identify and analyze previously overlooked vulnerabilities in randomized skewed cache defenses against cache side-channel attacks.
- To challenge the assumptions underlying current randomized cache designs, particularly regarding eviction set discovery and remap period estimation.
- To propose practical, low-overhead defense mechanisms that strengthen randomized set-associative caches for real-world deployment.
- To demonstrate that randomized set-associative caches are more viable than skewed caches for future secure processor designs.
Proposed method
- Measure remap periods based on LLC evictions rather than total accesses to reflect actual attack surface.
- Implement ZCache-like multi-step relocation to reduce cache block evictions during remapping.
- Introduce a lightweight hardware-based attack detection mechanism to identify probing patterns during eviction set search.
- Propose to reduce remap periods further to prevent discovery of partially congruent eviction sets.
- Advocate for CEASER-style randomized set-associative caches over skewed caches due to lower hardware overhead and better security potential.
- Use Spike simulation to evaluate performance and security trade-offs under realistic workloads.
Experimental results
Research questions
- RQ1Why are existing randomized skewed caches like CEASER-S and ScatterCache still vulnerable despite dynamic remapping and skewing?
- RQ2How do cache flush instructions and partial congruence affect the feasibility of finding eviction sets in randomized caches?
- RQ3What are the flaws in using LLC access counts to estimate remap periods, and how can this be corrected?
- RQ4Can randomized set-associative caches be secured with acceptable performance overhead compared to skewed caches?
- RQ5What defense techniques can effectively close the newly discovered vulnerabilities without excessive hardware cost?
Key findings
- Attackers can exploit cache flush instructions to repeatedly use partially congruent eviction sets, drastically reducing the time needed to find effective sets.
- The concept of a minimal eviction set no longer applies in randomized skewed caches; any set with a reasonable eviction probability is usable.
- Measuring remap periods by total LLC accesses leads to overly optimistic estimates, as many accesses are filtered by L1/L2 caches.
- The actual number of LLC evictions between remaps is significantly lower than total accesses, invalidating current remap period calculations.
- All discovered vulnerabilities in existing randomized caches can be fixed within current performance budgets using the proposed techniques.
- Randomized set-associative caches (e.g., CEASER) are more suitable for commercial adoption than skewed caches due to lower hardware overhead and better security extensibility.
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.