Abstract
This paper presents the first comprehensive statistical model designed to predict the success rates of access-driven cache attacks, such as Prime+Probe, against the Advanced Encryption Standard (AES). By explicitly incorporating "confusion errors"—the misidentification of cache states—into a mathematical framework, the authors provide a robust tool for evaluating how cache architectures and system noise influence an adversary's ability to extract secret keys. The model bridges the gap between empirical observation and theoretical prediction, offering a precise method to quantify the security of various cache designs.
Introduction
Cache-based side-channel attacks represent a significant security risk in multi-tenant environments, such as cloud computing, where virtual machines share physical hardware. In an access-driven attack, an adversary monitors the cache lines utilized by a victim process to infer sensitive cryptographic information. While these attacks are well-documented, real-world execution is often hindered by system noise, background processes, and hardware features like prefetching or cache randomization.
Previous research often relied on models assuming "perfect leakage" or failed to distinguish between specific types of measurement errors. This paper addresses these shortcomings by introducing a statistical model that accounts for imperfect observations, allowing researchers to predict the number of traces required for a successful attack and to evaluate the efficacy of secure cache architectures.
Statistical Modeling of Confusion Errors
The core of the proposed framework is the categorization of measurement noise into two distinct "confusion errors":
- Type I Error: An actual cache access by the victim is incorrectly observed as a non-access by the attacker.
- Type II Error: A non-access by the victim is incorrectly observed as an access (often due to background noise or prefetching).
By treating the attack as a statistical "distinguisher" problem, the authors apply the Central Limit Theorem to derive explicit success rate formulas for both first-round and last-round AES attacks. This approach allows for the calculation of the probability that the correct key candidate will emerge as the statistically most likely choice among all possible candidates.
Evaluating Cache Architectures
The model is applied to five distinct cache designs to assess their resilience against side-channel leakage:
- Conventional Cache: The standard baseline for most processors.
- Partition-locked and Random-eviction (RE): Designs intended to mitigate interference.
- Random-permutation (RP) and Newcache: Advanced architectures that use randomization to obscure access patterns.
One significant finding is the identification of the "Reversed Attack." In highly randomized architectures, the correct key might consistently appear less likely than a random guess. In such cases, the model demonstrates that an attacker can simply reverse their selection logic to successfully recover the key, provided the leakage remains statistically significant.
Experimental Methodology
The authors validated their theoretical model using two primary data sources:
- Synthetic Simulations: Large-scale simulations were conducted to verify the mathematical accuracy of the success rate formulas across a wide range of error rates ($p_0$).
- Physical Measurements: Real-world traces were collected from an Intel Core i5 (Ivy Bridge) processor. The target was an OpenSSL 1.0.1f implementation of AES utilizing T-tables. The experimental setup involved an adversary and victim located on different cores sharing the same Last-Level Cache (L3).
Key Results and Insights
Model Accuracy and Predictive Power
The theoretical success rate curves generated by the model closely aligned with empirical results from both simulations and physical hardware. The model successfully predicts the specific number of traces required to reach a desired success threshold (e.g., 80%) based on the observed noise profile of the system.
Impact of Noise and Architecture
In a conventional cache environment with minimal noise, AES can be compromised with approximately 100 traces. However, as the confusion error rate ($p_0$) approaches the level of random chance ($1/N_L$), the required traces increase exponentially into the millions or billions.
Among the secure designs, Newcache proved most effective by pushing the leakage probability to exactly $1/N_L$, effectively leaking zero information. Conversely, while Random-Eviction caches significantly increased the difficulty of the attack, they did not eliminate the underlying threat.
Marginal Value of Monitoring
The analysis reveals that while monitoring additional cache lines generally improves success rates, the marginal benefit of each additional line decreases. This insight allows attackers to optimize their resource allocation during an attack.
Conclusion and Future Work
This research transitions the study of cache attacks from empirical trial-and-error to a predictive science. By quantifying the relationship between system noise and attack success, the authors provide a framework for both attackers to optimize their methods and defenders to evaluate hardware mitigations.
While the study focuses on T-table-based AES—which is less common in modern systems using AES-NI or bitsliced implementations—the underlying statistical principles are broadly applicable. Future work may extend this framework to other attack vectors, such as Flush+Reload, CacheBleed, and time-driven side channels, to further secure modern computing infrastructure.
Summary updated