Abstract
Remapped Cache Layout (RCL) is a hardware-level defense mechanism designed to mitigate cache-based side-channel attacks by randomizing the mapping between memory addresses and cache sets. By breaking the deterministic nature of cache indexing, RCL prevents attackers from constructing the "eviction sets" necessary for conflict-based side-channel attacks. Evaluation on a RISC-V superscalar processor demonstrates that RCL effectively thwarts advanced automated attacks with a negligible performance overhead of 2.3% and minimal hardware area increase.
Introduction
Modern processors rely on shared caches, particularly the Last-Level Cache (LLC), to bridge the performance gap between the CPU and main memory. However, because these caches are shared resources, they are vulnerable to conflict-based side-channel attacks. In these attacks, an adversary monitors the timing of their own memory accesses to infer the access patterns of a victim process. By identifying which cache sets the victim uses, attackers can leak sensitive information, such as cryptographic keys. While software-level defenses exist for private L1 caches, the shared LLC remains a significant vulnerability in modern multi-core systems.
Remapped Cache Layout Architecture
The core innovation of RCL is the obfuscation of the cache index. In standard cache architectures, the index is derived directly from specific bits of the memory address. RCL disrupts this predictability by introducing a hardware-managed Random Table (RT).
As shown in the architecture diagram, RCL uses bits from the Physical Address (PA) to look up a value in the Random Table. This value is then XORed with the original index bits to produce a randomized cache index. To mitigate the latency introduced by this lookup, the authors implemented a speculative version (RCL-S). This variant uses a small prediction table to guess the randomized index based on the Virtual Address (VA), allowing cache access to begin before the Translation Lookaside Buffer (TLB) completes the address translation. If the prediction is incorrect, the operation is replayed with the correct index.
Security Analysis: Breaking Eviction Sets
The primary strength of RCL lies in its ability to break the spatial correlation between memory addresses. In a conventional cache, contiguous memory blocks map to predictable, sequential cache sets. This predictability allows attackers to create "eviction sets"—groups of addresses that are guaranteed to conflict with a victim's data.
By scattering these mappings across the cache, RCL makes it mathematically difficult for an attacker to identify which sets correspond to a victim's activity. As illustrated in the comparison above, while an attacker can easily target specific sets in a normal cache, the RCL-enabled LLC scatters the attacker's data, preventing the systematic eviction of victim lines. This effectively thwarts both automated eviction set creation and attacks designed to bypass user-level Address Space Layout Randomization (ASLR).
Performance and Hardware Evaluation
The authors evaluated RCL using the SPEC 2006 benchmark suite on a BOOM (Berkeley Out-of-Order Machine) RISC-V processor synthesized on a Xilinx ZC706 FPGA. The results indicate that the speculative RCL-S implementation incurs an average performance overhead of only 2.3%. Even in worst-case scenarios, the overhead remained below 4.2%.
From a hardware perspective, the area overhead is minimal, typically less than 5% for L1 caches and approximately 3.4% for a 512KB L2 cache. Crucially, the speculative design allows the processor to maintain the same maximum clock frequency as the baseline architecture, ensuring that the defense does not compromise general system throughput.
Conclusion
RCL provides a robust, low-overhead hardware defense against cross-core cache attacks without requiring modifications to the operating system or application software. By randomizing the LLC indexing logic, it addresses a critical gap in modern hardware security. Future research may explore dynamic re-initialization of the Random Table to further harden the system against long-term, persistent observation by sophisticated adversaries.
Summary updated