Harvesting Apple's Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem

summary

The gist

Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS.<ref:2611.31688#pg1…

In short

Researchers systematically analyzed over 1,100 machine learning models embedded in Apple devices like iOS and macOS using CoreML. The analysis revealed critical security flaws, including plaintext exposure of learned model parameters and leaks of internal build tokens. Furthermore, the models showed poor adversarial robustness against simple text manipulations like zero-width spaces.

Key concepts

CoreML Artifacts
These are the specific files and bundles that contain Apple's task-specific machine learning models running on devices. The researchers harvested 1,137 such artifacts from various iOS and macOS versions to examine their structure and security vulnerabilities.
Adversarial Robustness
This refers to how well a model resists malicious inputs designed to trick it. The study found that simple attacks, such as inserting zero-width spaces into SMS messages, could cause the model's prediction (e.g., promotional vs. transactional) to flip with high frequency.
Weight Exposure
This means the learned parameters or 'weights' of a machine learning model are exposed in plaintext without any encryption or integrity checks. The analysis uncovered 368 artifacts where these sensitive parameters were readable, posing a risk for reverse engineering.

Terminology used across episodes

This episode discusses

The paper

Harvesting Apple's Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem · Read on arXiv

VIA Cybersecurity Lab · Kwame Nkrumah University of Science and Technology

Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS. We present, to our knowledge, the first systematic security analysis of this on-device surface. We harvested 1,137 CoreML artifacts from six platform images and two device harvests, and a conversion pipeline recovered 155 previously opaque bundles as loadable mlpackage archives. Eight findings. (1) 368 of 1,137 artifacts expose plaintext learned parameters (281 blobs, 369.61 MiB) and 166 of 166 MIL bundles leak internal model-database tokens. (2) Specification versions 1-9 coexist and locale variants diverge architecturally. (3) Across 82,092 adversarial evaluations (221 model paths), worst-case flip rates reach 100%; zero-width spaces flip 65% of the Indian-English and 70% of the US-English SMS filter. (4) A 16-byte weight edit flips 7 of 8 probe inputs of a system model, with no runtime integrity check observed. (5) Loading Apple's own hand-gesture model crashes libBNNS through the public CoreML API (4/4 on production M2, also macOS 27.0); Apple ruled it a self-crash outside the security boundary. (6) Eleven bundles ship isUpdatable=1 hooks. (7) SMS text-classifier latency is 13.1-52.0 ms, 92.4% in the CPU-side NLP core, not the ANE. (8) The classifiers label 8-9 of 10 phishing messages Transactional. We filed three reports with Apple Product; all were declined as not crossing a security boundary, and we report the findings as robustness results.

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "Harvesting Apple's Orchard".

Paper summary: Tom: So, we're wrapping up this deep dive into that paper about harvesting Apple's CoreML models across their entire ecosystem.

Nadia: It’s called "Harvesting Apple's Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem," and the authors are trying to map out every single machine learning model sitting inside iOS, iPadOS, macOS, and tvOS.

Elias: What this paper really does is take a massive inventory of these models—over a thousand artifacts—and systematically analyze what they actually contain without ever seeing the source code >.

Priya: They found that many of those learned parameters are exposed in plaintext because there's no encryption on them in any container our analyzer could see Nadia.

Nadia: And they also uncovered sixteen hundred machine learning bundles that leak Apple’s internal build tokens, which is a big concern for the security of those models >.

Elias: But it’s not just about what's exposed; they also found these major gaps in defense, like no runtime integrity checking on the model data itself Priya.

Priya: That means if you bypass the volume seal, you can actually edit those weights because there's no check running while the app is open >.

Nadia: They also pointed out that there’s a lack of input normalization at the model boundary, meaning these models accept characters like zero width spaces that a human wouldn't even notice Elias.

Elias: And they found no validation of the model files when they are compiled, so the analysis runs past certain data file boundaries without checking for limits Priya.

Priya: So what does this mean for us is that the defense against these on-device models is mostly relying on a single volume seal, which they say is only one boot operation deep >.

Nadia: They’re saying the deterministic crash they found and the internal build token leakage were filed with Apple Product Security tracking ID OE1104416693631 for the crash Elias.

Elias: The authors are being careful not to say these findings cross a security boundary, but the structural issues they identified in how these models are stored across platforms are pretty significant Priya.

Nadia: So we’ve seen the inventory and the specific vulnerabilities; next time we're going to look at how an attacker could actually use those plaintext weights to run their own malicious inference.

Conclusion: Nadia: So, we’ve been looking at all these CoreML models across iOS, iPadOS, macOS, and tvOS now that we’ve seen what they contain and where the security holes are Elias.

Elias: Yeah, so we're talking about this paper called "Harvesting Apple's Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem," by those researchers.

Priya: The whole idea is that they systematically cataloged every single machine learning model running on these devices and showed us exactly what was inside.

Nadia: It’s pretty clear that a lot of the learned parameters are just sitting there in plaintext, unencrypted, which is worrying when you think about data privacy >.

Elias: And they found that sixteen hundred machine learning bundles leaked internal build tokens from Apple's own models, which is a serious security leak about how those models are built >.

Priya: Beyond the data exposure, they mapped out three big defense gaps: no runtime integrity for the weights, no input normalization at the model boundary, and no compile-time validation of the model files themselves >.

Nadia: It basically boils down to this: these models are deeply embedded in our systems, and if you can get past that initial volume seal on your device, those internal workings are pretty exposed Elias.

Elias: They also pointed out that performance varies a lot between devices, showing some structural differences in how the SMS text classifiers run compared to raw network variants >.

Priya: It suggests that the security and performance of these models depend heavily on where you are geographically or what language you't using >.

Nadia: So this paper gives us a clear map of the on-device CoreML surface, showing exactly where the risks are hiding in plain sight across the whole ecosystem Elias.

Elias: It makes you realize that because these models are so integrated into the operating system, they become a massive target for anyone trying to probe those systems >.

Priya: And it really drives home how critical input normalization is; if you don't normalize characters at the model boundary, the model can be manipulated easily >.

Nadia: The next step in this research is showing how these specific vulnerabilities can actually be exploited cheaply and how defenders can build defenses against them >.

More episodes

← Home