[Paper Review] AutoLock: Why Cache Attacks on ARM Are Harder Than You Think
This paper reveals AutoLock, an undocumented ARM cache optimization that blocks cross-core eviction-based cache attacks like Evict+Reload by preventing eviction of inclusive last-level cache lines when they reside in core-private caches. Despite this obstacle, the authors demonstrate that practical attacks remain feasible using multi-line observation techniques such as majority voting and weighted counting, achieving full key recovery in under 100,000 encryptions on ARM Cortex-A15 with AutoLock.
Attacks on the microarchitecture of modern processors have become a practical threat to security and privacy in desktop and cloud computing. Recently, cache attacks have successfully been demonstrated on ARM based mobile devices, suggesting they are as vulnerable as their desktop or server counterparts. In this work, we show that previous literature might have left an overly pessimistic conclusion of ARM's security as we unveil AutoLock: an internal performance enhancement found in inclusive cache levels of ARM processors that adversely affects Evict+Time, Prime+Probe, and Evict+Reload attacks. AutoLock's presence on system-on-chips (SoCs) is not publicly documented, yet knowing that it is implemented is vital to correctly assess the risk of cache attacks. We therefore provide a detailed description of the feature and propose three ways to detect its presence on actual SoCs. We illustrate how AutoLock impedes cross-core cache evictions, but show that its effect can also be compensated in a practical attack. Our findings highlight the intricacies of cache attacks on ARM and suggest that a fair and comprehensive vulnerability assessment requires an in-depth understanding of ARM's cache architectures and rigorous testing across a broad range of ARM based devices.
Motivation & Objective
- To investigate why eviction-based cache attacks on ARM processors often fail despite theoretical feasibility.
- To reverse-engineer and document AutoLock, an undocumented performance feature in inclusive ARM last-level caches that blocks cross-core evictions.
- To develop and evaluate practical countermeasures that bypass AutoLock’s restrictions in real-world attack scenarios.
- To provide detection methods for AutoLock on real system-on-chips (SoCs) to enable accurate vulnerability assessment.
- To advocate for a comprehensive, hardware-aware evaluation of ARM cache security across diverse devices.
Proposed method
- Reverse-engineered AutoLock by analyzing cache behavior on an ARM Cortex-A15 with inclusive LLC and userspace cache attacks.
- Proposed three mitigation techniques: majority vote, probability filter, and weighted counting to compensate for AutoLock’s interference.
- Used sliding window eviction with parameters 36-6-2 to systematically evict cache lines and measure reload times.
- Calculated no-access probability $\tilde{P}_{na}^{l}$ for each cache line and applied a weighted scoring function $S_{l} = 1 - \frac{d_{l}}{1 - P_{na}}$ to prioritize reliable lines.
- Conducted five attack variants: original same-core and cross-core, plus three improved versions, each repeated 100 times with random keys.
- Evaluated success rates by measuring average number of correctly recovered key bytes over increasing encryption counts.
Experimental results
Research questions
- RQ1Why do eviction-based cache attacks on ARM processors frequently fail despite the presence of inclusive last-level caches?
- RQ2What is the role of AutoLock in blocking cross-core cache evictions and how does it affect the practicality of cache attacks?
- RQ3Can multi-line observation techniques overcome the limitations imposed by AutoLock in real-world ARM systems?
- RQ4How can AutoLock be detected on actual ARM system-on-chips to inform security assessments?
- RQ5To what extent do AutoLock and non-inclusive cache hierarchies collectively limit the feasibility of cache attacks on ARM?
Key findings
- AutoLock prevents cross-core eviction of cache lines in inclusive last-level caches when the lines are present in any core-private cache, severely impairing Evict+Reload, Prime+Probe, and Evict+Time attacks.
- The original cross-core Evict+Reload attack on a Cortex-A15 with AutoLock failed to recover more than 5 key bytes after 400,000 encryptions due to AutoLock’s interference.
- The same-core attack, unaffected by AutoLock, achieved full key recovery, demonstrating that AutoLock specifically targets cross-core interactions.
- The majority vote and weighted counting techniques enabled full key recovery in under 100,000 encryptions on the same cross-core setup, proving AutoLock’s limitations can be overcome.
- The probability filter method also achieved full key recovery within 100,000 encryptions when combined with a brute-force search of complexity less than $2^{32}$.
- The proposed improvements are effective not only on AutoLock-enabled processors but also on systems with non-inclusive caches or no AutoLock, enhancing general attack robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.