EXAM: Exploiting Exclusive System-Level Cache in Apple M-Series SoCs for Enhanced Cache Occupancy Attacks
Tianhong Xu, Aidong Adam Ding, Yunsi Fei · 2025
Read EXAM: Exploiting Exclusive System-Level Cache in Apple M-Series SoCs for Enhanced Cache Occupancy Attacks by Tianhong Xu, Aidong Adam Ding, Yunsi Fei (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-13385.txt.
Introduction
Apple's M-series chips share a system cache that one core cluster can watch to spy on another. Tianhong Xu, Aidong Adam Ding, and Yunsi Fei build such spying attacks in a 2025 paper. The cache sits outside the CPU caches, which shapes the attack.
The team first mapped the cache's layout by reverse probing. One attack names websites from graphics memory footprints. A second steals screen pixels by watching how each is drawn. A third grabs screen rows far beyond web pages. Watching total cache use, not set lines, drives all three. The authors urge fixes for mixed-chip designs.
Catalog record
| CREATOR | Tianhong Xu, Aidong Adam Ding, Yunsi Fei |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 78 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2504-13385
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
EXAM: Exploiting Exclusive System-Level Cache in Apple M-Series SoCs for Enhanced Cache Occupancy Attacks Conference: Conference; 2024; Location Thanks: This paper has been accepted to ACM ASIA CCS 2025 and will appear in the proceedings. Tianhong Xu, Aidong Adam Ding, Yunsi Fei Abstract . Cache occupancy attacks exploit the shared nature of cache hierarchies to infer a victim’s activities by monitoring overall cache usage, unlike access-driven cache attacks that focus on specific cache lines or sets. There exists some prior work that target the last-level cache (LLC) of Intel processors, which is inclusive of higher-level caches, and L2 caches of ARM systems. In this paper, we target the System-Level Cache (SLC) of Apple M-series SoCs, which is exclusive to higher-level CPU caches. We address the challenges of the exclusiveness and propose a suite of SLC-cache occupancy attacks, the first of its kind, where an adversary can monitor GPU and other CPU cluster activities from their own CPU cluster. We first discover the structure of SLC in Apple M1 SOC and various policies pertaining to access and sharing through reverse engineering. We propose two attacks against websites. One is a coarse-grained fingerprinting attack, recognizing which website is accessed based on their different GPU memory access patterns monitored through the SLC occupancy channel. The other attack is a fine-grained pixel stealing attack, which precisely monitors the GPU memory usage for rendering different pixels, through the SLC occupancy channel. Third, we introduce a novel screen capturing attack which works beyond webpages, with the monitoring granularity of 57 rows of pixels (there are 1600 rows for the screen). This significantly expands the attack surface, allowing the adversary to retrieve any screen display, posing a substantial new threat to system security. Our findings reveal critical vulnerabilities in Apple’s M-series SoCs and emphasize the urgent need for effective countermeasures against cache occupancy attacks in heterogeneous computing environments. 1. Introduction Cache attacks ( Kayaalp et al. 2016 ; Liu et al. 2015 ; Yarom and Falkner 2014 ; Percival 2005 ; Wang and Lee 2006 ; Yao et al. 2018 ) exploit microarchitectural features of modern processors, such as timing differences between cache hits and misses, to leak sensitive information. Cache occupancy attacks ( Shusterman et al. 2020 ; Shusterman et al. 2021 ; Cronin et al. 2021 ) are a nuanced variant that targets the overall state of cache occupancy to infer sensitive information, breaching privacy and confidentiality. The popular access-driven cache attacks focus on specific cache sets or lines to infer memory address-related secrete. ARM’s big.LITTLE architecture exemplifies heterogeneous computing systems by combining high-performance “big” cores with energy-efficient “LITTLE” cores. ARM introduced the System Level Cache (SLC), an exclusive last-level cache situated between the higher-level caches (L1 and L2) and main memory ( Arm Limited 2022 ; ARM Ltd. 2018 ) . Apple’s M-series System-on-Chips (SoCs) build upon ARM’s heterogeneous designs, featuring multiple CPU clusters with local caches, an integrated GPU, and an SLC shared among clusters and the GPU. While this architecture offers significant performance benefits, it also introduces new security challenges due to the shared SLC between clusters and GPU. Previous studies have explored microarchitectural side-channels in heterogeneous systems. Dutta et al. ( Dutta et al. 2021 ) and Almusaddar et al. ( Almusaddar and Naghibijouybari 2023 ) demonstrated covert channels between CPUs and integrated GPUs in Intel systems by exploiting shared caches. Kou et al. ( Kou et al. 2022 ) revealed side-channel attacks based on snoop filters in ARM processors. Cronin et al. ( Cronin et al. 2021 ) discussed the potential of cache occupancy attacks on ARM’s SLC but did not delve into its structure or the unique challenges it presents. In this paper, we present a novel suite of cache occupancy attacks targeting the SLC of Apple M-series SoCs—the first to exploit an exclusive last-level cache, where an adversary can monitor GPU and other CPU cluster activities from their own CPU cluster. By reverse-engineering the SLC’s sharing mechanism and structure in the Apple M1, we obtain critical insights that enable these attacks. We demonstrate the effectiveness of the SLC occupancy side-channel through three attacks: (1) Website Fingerprinting Attack : We perform a website fingerprinting attack, showing that our method achieves high precision across a wider range of scenarios, including cross-browser setups, where previous cache occupancy channels fail ( Shusterman et al. 2020 ) . (2) Cross-Origin Pixel Stealing Attack : We conduct a finer-grained cross-origin pixel stealing attack by exploiting the SLC occupancy channel. We leverage the data-dependent behavior of GPU rendering and compression, and accurately retrieve the screen display pixel-by-pixel, violating confidentiality and privacy. Unlike previous attacks that relied on measuring the rendering time, our approach uses the SLC occupancy side-channel to extract pixel-level information. It is effective even in the presence of constant rendering-time implementations and Apple’s recent security fixes addressing related vulnerabilities (CVE-2023-38599 ( NIST 2023 ) ). (3) Screen Display Snooping Attack : Notably, we introduce a novel attack that does not rely on website-processing tools. By monitoring the GPU’s rendering processes via the SLC occupancy channel, we can extract any information displayed on the screen. This significantly expands the attack surface beyond web pages, allowing the adversary to compromise any on-screen information, posing a substantial new threat to system security. 2. Background 2.1. Cache and its inclusion policies Caches are critical components in computer architecture for performance. They are typically organized in hierarchical levels based on their proximity to the CPU, size, and speed to balance between access speed and capacity, with L1 being the smallest and fastest. Lower-level caches can be categorized into inclusive, exclusive, non-inclusive, and non-exclusive, each specifying how to store data across adjacent levels. For inclusive caches, the data stored in higher levels (e.g., L1) is also duplicated in lower levels (e.g., L2, L3), ensuring data evicted from one level remains accessible at other levels, simplifying the cache coherency. Exclusive caches prevent data duplication across levels, maximizing the cache space utilization. Other two policies offer middle-grounds with flexibility in cache management. 2.2. Cache side-channel attacks Cache side-channel attacks exploit the sharing nature of cache resources and the timing differences between cache hits and misses to retrieve secret information, such as cryptographic keys and private user information, without direct access to the victim’s memory space, posing serious confidentiality threats in the user space. Access-driven attacks: Traditional cache side-channel attacks, such as Prime+Probe ( Liu et al. 2015 ) and Flush+Reload ( Yarom and Falkner 2014 ) , monitor the state of specific cache sets/lines to determine whether the victim has accessed them or not, to glean memory address information which is secret-dependent. These attacks often rely on high-resolution timers to measure minute differences in access times accurately. Cache occupancy attack: Cache occupancy attack, originally proposed by Oren et al. ( Shusterman et al. 2020 ) , differs significantly from access-driven cache attacks. It focuses on monitoring the victim’s contentions over the entire cache space, while prior access-driven attacks monitor contentions on selected cache sets/lines. Specifically, the spy allocates a buffer (equivalent to the size of the shared cache) and measures the time to access the entire buffer after victim execution. If the victim’s memory accesses cause some portion of the buffer