Evaluation of Cache Attacks on Arm Processors and Secure Caches

Shuwen Deng, Nikolay Matyunin, Wenjie Xiong, Stefan Katzenbeisser, Jakub Szefer

Abstract

While cache timing attacks have been extensively studied on x86 architectures, Arm-based processors—which power the vast majority of mobile devices and an increasing share of servers—remain under-scrutinized. This paper presents the first systematic, large-scale security analysis of Arm processors, revealing how architectural features like big.LITTLE and pseudo-random replacement policies influence cache timing vulnerabilities. By evaluating 34 physical devices through a novel cloud-based framework, we demonstrate that Arm's unique microarchitecture does not inherently provide security and exposes new leaks in supposedly "secure" cache designs.

Introduction

For decades, cache timing attacks such as Spectre and Meltdown have been a primary concern for computer security. However, research has disproportionately focused on x86. Arm processors differ significantly: they utilize heterogeneous big.LITTLE architectures, employ pseudo-random cache replacement policies rather than Least Recently Used (LRU), and often lack high-precision timing instructions like rdtscp at the user level. This study fills this critical research gap by providing a systematic evaluation of Arm's vulnerability to cache-based side and covert channels.

Methodology: The Three-Step Model and Cloud Testing

The researchers developed a systematic framework based on a Three-Step Model for cache attacks. This model breaks down every vulnerability into a sequence of Setup, Modify, and Observe phases.

Figure 1: Systematic hierarchy of the 88 vulnerability types and the three-step model used for benchmarking.

To overcome the logistical challenge of testing dozens of physical devices, the study utilized a cloud-based testing platform. By leveraging Android device farms like AWS Device Farm and Firebase Test Lab, the researchers executed 1,094 benchmark programs across 34 distinct physical device models.

Figure 5: The cloud-based testing workflow, from configuration gathering on a local computer to benchmark execution on remote device farms and final analysis.

To address the lack of high-resolution timers, the framework employs the clock_gettime() system call paired with Welch’s t-test statistical analysis to distinguish timing distributions between cache hits and misses.

Key Insights

The big.LITTLE Attack Surface

Heterogeneous architectures (big.LITTLE) were found to actually increase the attack surface. Cross-core and cross-CPU vulnerabilities are more prevalent because coherence timing across different quad-core clusters is often higher and more susceptible to leakage.

Randomness and Obscurity

While pseudo-random replacement policies are often touted as a defense against the predictable eviction sets used in x86 attacks, the authors demonstrated that attackers can still effectively "thrash" the cache using slightly smaller eviction sets and repeated operations. Furthermore, "sensitivity tests" revealed that attackers do not need precise knowledge of cache size or associativity to succeed; many attack types are robust against hardware configuration uncertainty.

The Write Buffer Loophole

A significant discovery was a write-based attack on Partition-Locked (PL) caches. Even when a cache line is "locked" for security, a write operation can push data into a microarchitectural Store Buffer (STB). This bypasses the locking mechanism, creating a measurable timing leak that undermines the "secure" cache design.

Results and Vulnerability Analysis

The evaluation covered 88 vulnerability types categorized by their interaction with the memory hierarchy: Address-Only (AO), Set-Only (SO), and Set-or-Address (SA).

  • Ubiquitous Vulnerability: Every one of the 34 tested devices was vulnerable to a significant portion of the 88 attack types. The Kryo 585 (Snapdragon 865) was vulnerable to all 88, while the Kryo 260 was the least vulnerable, yet still susceptible to 76.
  • AO-Type Robustness: Address-only attacks proved most dangerous due to the massive timing delta between L1 hits and DRAM access, making them highly resilient to system noise.
  • Secure Cache Evaluation: Simulation results showed that while PL caches mitigate read-based attacks, they fail against write-based leaks. Random Fill (RF) caches only provide security if their "neighborhood window" is sufficiently large; small windows still permit probabilistic leaks.

Conclusion

This research demonstrates that Arm processors are not inherently more secure against cache attacks than x86. The interplay between complex features like big.LITTLE and microarchitectural buffers creates unique vulnerabilities. Future secure cache designs must move beyond simple locking or randomization and explicitly account for the interaction between the cache and other components like the write buffer.

Summary updated

BibTeX
@article{deng2022evaluation,
  author = {Shuwen Deng and Nikolay Matyunin and Wenjie Xiong and Stefan Katzenbeisser and Jakub Szefer},
  title = {{Evaluation of Cache Attacks on Arm Processors and Secure Caches}},
  journal = {IEEE Trans. Computers},
  year = {2022},
  doi = {10.1109/tc.2021.3126150},
}
Figure