[Paper Review] ARMageddon: Cache Attacks on Mobile Devices
This paper demonstrates the first practical cross-core and cross-CPU cache attacks—Prime+Probe, Flush+Reload, Evict+Reload, and Flush+Flush—on unmodified, non-rooted Android smartphones using ARM processors. By overcoming challenges like non-inclusive last-level caches, lack of flush instructions, and pseudo-random replacement policies, the authors achieve high-precision timing attacks that can monitor keystrokes, touch events, and even extract cryptographic keys from Java-based AES implementations in the Android TrustZone.
In the last 10 years, cache attacks on Intel x86 CPUs have gained increasing attention among the scientific community and powerful techniques to exploit cache side channels have been developed. However, modern smartphones use one or more multi-core ARM CPUs that have a different cache organization and instruction set than Intel x86 CPUs. So far, no cross-core cache attacks have been demonstrated on non-rooted Android smartphones. In this work, we demonstrate how to solve key challenges to perform the most powerful cross-core cache attacks Prime+Probe, Flush+Reload, Evict+Reload, and Flush+Flush on non-rooted ARM-based devices without any privileges. Based on our techniques, we demonstrate covert channels that outperform state-of-the-art covert channels on Android by several orders of magnitude. Moreover, we present attacks to monitor tap and swipe events as well as keystrokes, and even derive the lengths of words entered on the touchscreen. Eventually, we are the first to attack cryptographic primitives implemented in Java. Our attacks work across CPUs and can even monitor cache activity in the ARM TrustZone from the normal world. The techniques we present can be used to attack hundreds of millions of Android devices.
Motivation & Objective
- To demonstrate that powerful cross-core cache attacks, previously limited to x86 systems, are feasible on ARM-based mobile devices.
- To overcome hardware-specific challenges in ARM mobile architectures, such as non-inclusive last-level caches and absence of a flush instruction.
- To enable high-precision cache side-channel attacks on unmodified, off-the-shelf Android smartphones without any privileges.
- To show that sensitive user activities—like typing and swiping—can be inferred via cache timing, and that cryptographic implementations in Java are vulnerable.
- To demonstrate monitoring of cache activity within the ARM TrustZone from the normal world, expanding the attack surface beyond user-space applications.
Proposed method
- Developed a technique leveraging cache coherence protocols and L1-to-L2 cache line transfers to enable cross-core attacks on non-inclusive last-level caches.
- Utilized fast eviction strategies based on Rowhammer-style techniques to bypass the lack of a flush instruction on non-ARMv8-A processors.
- Designed re-access loops that interlock with cache eviction strategies to mitigate noise from pseudo-random replacement policies in ARM caches.
- Evaluated and selected high-precision timing sources on Android, proving that cycle-accurate measurements are possible without root access.
- Combined Prime+Probe with parallel monitoring to detect cache activity in the ARM TrustZone from the normal world, despite isolation mechanisms.
- Applied known cache attack primitives (Flush+Reload, Evict+Reload, Flush+Flush) to Android’s default AES T-table implementation in Java, demonstrating key recovery.
Experimental results
Research questions
- RQ1Can cross-core cache attacks like Flush+Reload and Prime+Probe be successfully mounted on non-rooted, unmodified ARM-based Android smartphones?
- RQ2How can cache attacks be adapted to work on ARM processors that lack a flush instruction and use non-inclusive last-level caches?
- RQ3To what extent can cache side-channel attacks be used to infer fine-grained user input events such as keystrokes and swipes on mobile touchscreens?
- RQ4Is it possible to monitor cache activity within the ARM TrustZone from the normal world using only user-space access?
- RQ5Can existing cache attack techniques be applied to cryptographic implementations in high-level languages like Java on mobile platforms?
Key findings
- The authors successfully demonstrated Flush+Reload, Prime+Probe, Evict+Reload, and Flush+Flush attacks on non-rooted Android smartphones using only standard Android permissions.
- The attacks achieved sub-microsecond resolution, enabling detection of individual keystrokes and inter-keystroke timing patterns.
- The team measured cache access patterns during cryptographic operations in Java’s Bouncy Castle provider, demonstrating full key recovery from AES T-tables.
- Cache activity in the ARM TrustZone could be monitored from the normal world using Prime+Probe, even when the TrustZone flushed the cache on entry/exit.
- The attacks were effective across different CPU cores and even across different CPUs in multi-core mobile devices, due to cache coherence protocols.
- The study revealed that Android’s /proc/pid/pagemap and /proc/pid/maps remain accessible to unprivileged apps, enabling address translation and attack vector discovery.
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.