Randomized Caches in Hardware: Challenges and Trade-offs
Xinrui Wang, Pascal Kosak, Christof Paar, Daniel Genkin, Yuval Yarom, Anirban Chakraborty
Key points
From the paper's conclusion- We evaluate complete FPGA implementations by running SPEC CPU 2017 rate and GAPBS workloads to completion, providing, to our knowledge, the first comparative evaluation of these designs on a common full-system hardware platform.
Abstract
Randomized caches protect against side-channel attacks by obfuscating the mapping of memory addresses to cache locations. Existing proposals typically describe architectural behavior, leaving practical hardware implementation challenges largely unexplored. We implement four prominent designs, CEASER-S, ScatterCache, SassCache, and MIRAGE, and integrate them as the last-level cache (LLC) of a multi-core out-of-order RISC-V system-on-chip (SoC). We identify common and design-specific implementation challenges and develop practical solutions. We evaluate complete FPGA implementations by running SPEC CPU 2017 rate and GAPBS workloads to completion, providing, to our knowledge, the first comparative evaluation of these designs on a common full-system hardware platform. Pipelining the index derivation function (IDF) alone is insufficient: in three of the four variants, other components become the frequency bottleneck, reducing frequency by up to 35% relative to the baseline set-associative cache. Redesigning the critical paths while preserving mappings, rekeying, and victim-selection policies brings the three affected variants to no more than 10% below the baseline frequency, at the cost of added latency or reduced concurrency. Increased LLC access latency, rather than additional misses, dominates IPC degradation, reducing instructions per cycle by up to 5% for SPEC and 11% for GAPBS. Hardware overhead depends on the design and implementation technology: FPGA lookup-table usage increases by 10-35%, while ASIC area increases by 1-14%.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Power Side-Channel Evaluation using Multi-FPGA SystemsarXiv · 2026
- Performance Analysis of the Randomized SIEVE/CLOCK Cache Replacement AlgorithmProceedings of the ACM on Measurement and Analysis of Computing Systems · 2026
- Rigorous Evaluation of Microarchitectural Side-Channels with Statistical Model CheckingACM Transactions on Architecture and Code Optimization · 2026
- SR-Gadgets: Make Scan-Resistant Caching PracticalarXiv · 2026
- Enhanced Power SCA Resistance of AES Engines with Multiple All-Digital CountermeasuresElectronics · 2026
- CACHEFORGE: LLM-Guided End-to-End Generative Cache Replacement Policy for Performance and Hardware EfficiencyarXiv · 2026