Abstract
Modern Intel processors utilize a sliced Last-Level Cache (LLC) architecture governed by proprietary, undisclosed hash functions to distribute memory across slices. This design serves as a defense against cache-based side-channel attacks, such as Prime+Probe, which require the construction of "eviction sets"—groups of addresses mapping to the same cache location. This paper introduces a novel technique that leverages a microarchitectural race condition, termed a "comparator weird gate," to generate these eviction sets with unprecedented speed and reliability. By moving from absolute timing to relative differential measurements, the proposed method achieves up to a 10x speedup over state-of-the-art techniques, generating complete eviction sets in under a second even on noisy systems.
Introduction
Cache side-channel attacks have long been a staple of microarchitectural security research. To successfully monitor a victim's memory access patterns, an attacker must first identify which memory addresses conflict in the cache. On Intel CPUs, the LLC is divided into multiple slices, and the mapping from a physical address to a slice is determined by a complex hash function. For unprivileged attackers who only have access to virtual addresses and lack knowledge of the hash function, finding these conflicting addresses—eviction sets—has traditionally been a slow, trial-and-error process prone to failure in real-world, noisy environments.
The Comparator Weird Gate
The primary contribution of this work is the "comparator weird gate." Traditional methods for slice identification rely on absolute timing measurements using instructions like RDTSCP. However, these measurements are highly susceptible to system noise, uncore frequency scaling, and execution jitter.
Instead of measuring the time of a single access, the authors create a microarchitectural race. They speculatively execute two memory accesses: one to an address with an unknown slice mapping and another to a "compare" address. A "signal" instruction is then executed only if one access completes before the other. This differential approach naturally cancels out common-mode noise, as both accesses are subject to the same system-wide timing fluctuations.
This "weird gate" acts as a high-resolution logic gate within the CPU's out-of-order execution engine. By adjusting the delay of one path, the researchers can precisely determine the relative latency of cache accesses, leading to 97% accuracy in slice identification.
Intra-Page Propagation and Non-Linear Hashes
Beyond the timing primitive, the paper introduces efficient algorithms for scaling these measurements. Because Intel's hash functions exhibit specific structural properties, the researchers do not need to test every address. By measuring a small subset of addresses within a memory page, they can use Bayesian inference or decision trees to extrapolate the slice mappings for the entire page.
Furthermore, the authors address the challenge of "non-linear" hash functions. These functions are typically found in CPUs with non-power-of-two slice counts (e.g., 6-core or 10-core processors). Previous research often struggled with these configurations, but this work provides the first efficient method to propagate eviction sets across page offsets for such architectures, significantly broadening the scope of the attack.
Evaluation and Results
The methodology was evaluated across a diverse range of Intel processor generations, from Skylake to the latest Raptor Lake (14th Gen). The results demonstrate a paradigm shift in eviction set generation speed.
As shown in the evaluation, the comparator gate maintains high accuracy (93%) even in "busy" scenarios where traditional timing methods see their accuracy drop to approximately 32%. In terms of raw performance, the system generated entire LLC eviction sets in just 0.7 seconds on an i7-9850H and 1.6 seconds on an i9-10900K. This represents a 9x to 10x improvement over previous state-of-the-art methods like L2CS and Prune+PlumTree.
Discussion and Conclusion
The move from absolute clocks to relative races represents a significant advancement in microarchitectural exploitation. By reducing the time required to generate eviction sets to the "blink of an eye," these attacks transition from theoretical lab exercises to practical threats that can be deployed against short-lived processes in dynamic cloud environments. While the current work is tailored to Intel's architecture, the underlying principle of using "weird gates" to bypass timing noise is likely applicable to other vendors, moving the goalposts for secure cache design.
Summary updated