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

arXiv:2611.31688 · cs.CR · Submitted 2026-11-23 · Read on arXiv

Listen

Radio episode about this paper

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 >.

VIA Cybersecurity Lab · Kwame Nkrumah University of Science and Technology

cs.CR

Submitted: 2026-11-23

Updated: 2026-11-23

Code: https://github.com/apple/coremltools

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 91/100

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

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

Summary

Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS. p. 0

Where the paper says it

Harvesting Apple’s Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem Justice Owusu Agyemang, Winifred Harriet Asante, Kwame Opuni-Boachie Obour Agyekum, Kwame Agyeman-Prempeh Agyekum, Francisca Adoma Acheampong, Jerry John Kponyo VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana Abstract Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS, mediating spam filtering, battery prediction, suggestions, and media analysis. We present, to our knowledge, the first systematic security analysis of this on-device model surface.

<ref:2611.31688#pg1, they decide whether an SMS is promotional or transactional predict when to finish charging rank contacts apps, and analyze every photo and video in the library >. p. 0
Where the paper says it

Apple reproduced the crash but declined all three as findings that do not cross a security boundary; we report them, and the weightintegrity and phishing findings (which we did not file), as robustness results. 1 Introduction Apple devices ship hundreds of on-device models that run silently in the background: they decide whether an SMS is promotional or transactional, predict when to finish charging, rank contacts, apps, and widgets, and analyze every photo and video in the library.

We present, to our knowledge, the first systematic security analysis of this on-device model surface. p. 0
Where the paper says it

Harvesting Apple’s Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem Justice Owusu Agyemang, Winifred Harriet Asante, Kwame Opuni-Boachie Obour Agyekum, Kwame Agyeman-Prempeh Agyekum, Francisca Adoma Acheampong, Jerry John Kponyo VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana Abstract Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS, mediating spam filtering, battery prediction, suggestions, and media analysis. We present, to our knowledge, the first systematic security analysis of this on-device model surface.

<ref:2611.31688#pg1, We harvest 1,137 CoreML artifacts from six platform images (iOS 26. p. 0
Where the paper says it

We present, to our knowledge, the first systematic security analysis of this on-device model surface. We harvested 1,137 CoreML artifacts from six platform images (iOS 26.

0, iPadOS 26. p. 0
Where the paper says it

Harvesting Apple’s Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem Justice Owusu Agyemang, Winifred Harriet Asante, Kwame Opuni-Boachie Obour Agyekum, Kwame Agyeman-Prempeh Agyekum, Francisca Adoma Acheampong, Jerry John Kponyo VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana Abstract Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS, mediating spam filtering, battery prediction, suggestions, and media analysis. We present, to our knowledge, the first systematic security analysis of this on-device model surface.

0.1, an iOS 26. p. 0
Where the paper says it

Harvesting Apple’s Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem Justice Owusu Agyemang, Winifred Harriet Asante, Kwame Opuni-Boachie Obour Agyekum, Kwame Agyeman-Prempeh Agyekum, Francisca Adoma Acheampong, Jerry John Kponyo VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana Abstract Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS, mediating spam filtering, battery prediction, suggestions, and media analysis. We present, to our knowledge, the first systematic security analysis of this on-device model surface.

1 firmware add-on set, tvOS 26. p. 0
Where the paper says it

1, an iOS 26. 1 firmware add-on set, tvOS 26.

6, iOS 12.5.8, and macOS 26. p. 0
Where the paper says it

Harvesting Apple’s Orchard: A Security Analysis of On-Device CoreML Models Across the Apple Ecosystem Justice Owusu Agyemang, Winifred Harriet Asante, Kwame Opuni-Boachie Obour Agyekum, Kwame Agyeman-Prempeh Agyekum, Francisca Adoma Acheampong, Jerry John Kponyo VIA Cybersecurity Lab, Kwame Nkrumah University of Science and Technology, Kumasi, Ghana Abstract Apple ships hundreds of task-specific machine-learning models inside iOS, iPadOS, macOS, and tvOS, mediating spam filtering, battery prediction, suggestions, and media analysis. We present, to our knowledge, the first systematic security analysis of this on-device model surface.

5) and two device harvests (an iPhone X on iOS 16. p. 0
Where the paper says it

8, and macOS 26. 5) and two device harvests (an iPhone X on iOS 16.

7 and a jailbroken iOS 26. p. 0
Where the paper says it

5) and two device harvests (an iPhone X on iOS 16. 7 and a jailbroken iOS 26.

1 virtual test device); on the test device alone we inventoried 320 model files across 54 framework groups, and a conversion pipeline recovered 155 previously opaque bundles as loadable. p. 0
Where the paper says it

7 and a jailbroken iOS 26. 1 virtual test device); on the test device alone we inventoried 320 model files across 54 framework groups, and a conversion pipeline recovered 155 previously opaque bundles as loadable .

mlpackage archives >. p. 0
Where the paper says it

1 virtual test device); on the test device alone we inventoried 320 model files across 54 framework groups, and a conversion pipeline recovered 155 previously opaque bundles as loadable . mlpackage archives.

Eight findings. p. 0
Where the paper says it

mlpackage archives. Eight findings.

<ref:2611.31688#pg1, (1) 368 of 1,137 artifacts expose learned parameters in plaintext (281 blobs, 369. p. 0
Where the paper says it

Eight findings. (1) 368 of 1,137 artifacts expose learned parameters in plaintext (281 blobs, 369.

61 MiB) with no encryption in any container our analyzer recognizes, and 166 of 166 MIL bundles leak internal model-database tokens >. p. 0
Where the paper says it

(1) 368 of 1,137 artifacts expose learned parameters in plaintext (281 blobs, 369. 61 MiB) with no encryption in any container our analyzer recognizes, and 166 of 166 MIL bundles leak internal model-database tokens.

Model Surface Census

We inventory 320 model files across 54 framework groups on the test device and catalog 1,137 artifacts (98.mlmodel protobufs, 909 compiled. p. 1

Where the paper says it

We inventory 320 model files across 54 framework groups on the test device and catalog 1,137 artifacts (98 . mlmodel protobufs, 909 compiled .

mlmodelc bundles, 130 loose blobs) from eight source groups—six platform images and two device harvests. p. 1
Where the paper says it

mlmodel protobufs, 909 compiled . mlmodelc bundles, 130 loose blobs) from eight source groups—six platform images and two device harvests.

<ref:2611.31688#pg2, All 22 iPadOS protobufs are SHA-256-identical to their iOS 26. p. 1
Where the paper says it

mlmodelc bundles, 130 loose blobs) from eight source groups—six platform images and two device harvests. All 22 iPadOS protobufs are SHA-256-identical to their iOS counterparts, and 86 of tvOS’s 102 artifacts—84 of its 100 bundles (51 byte-identical plus 33 metadata-identical), plus both protobufs—have an identical counterpart in the other firmware harvests (Section 4.

0 counterparts, and 86 of tvOS’s 102 artifacts—84 of its 100 bundles (51 byte-identical plus 33 metadata-identical), plus both protobufs—have an identical counterpart in the other firmware harvests (Section 4. p. 1
Where the paper says it

mlmodelc bundles, 130 loose blobs) from eight source groups—six platform images and two device harvests. All 22 iPadOS protobufs are SHA-256-identical to their iOS counterparts, and 86 of tvOS’s 102 artifacts—84 of its 100 bundles (51 byte-identical plus 33 metadata-identical), plus both protobufs—have an identical counterpart in the other firmware harvests (Section 4.

1) >. The static corpus of Figure 1a includes firmware and macOS and counts artifact kinds separately: 1,137 artifacts total—98. p. 4
Where the paper says it

(The record set of Figure 1 counts 463 artifacts on the same device, adding loose blobs and per-asset duplicates the inventory’s one-entry-perfile rule excludes. ) The static corpus of Figure 1a includes firmware and macOS and counts artifact kinds separately: 1,137 artifacts total— 98 .

mlmodel protobufs, 887. p. 4
Where the paper says it

) The static corpus of Figure 1a includes firmware and macOS and counts artifact kinds separately: 1,137 artifacts total— 98 . mlmodel protobufs, 887 .

mlmodelc directories, 22 extracted. p. 4
Where the paper says it

mlmodel protobufs, 887 . mlmodelc directories, 22 extracted .

mlmodelc archives (21 from the iPhone X harvest), and 130 loose weight blobs (ATX feature stores, namedentity dictionaries, Vision face-model blobs, tree-ensemble B0000. p. 4
Where the paper says it

mlmodelc directories, 22 extracted . mlmodelc archives (21 from the iPhone X harvest), and 130 loose weight blobs (ATX feature stores, namedentity dictionaries, Vision face-model blobs, tree-ensemble _B0000.

DAT files, and media-analysis cnn∗. p. 4
Where the paper says it

mlmodelc archives (21 from the iPhone X harvest), and 130 loose weight blobs (ATX feature stores, namedentity dictionaries, Vision face-model blobs, tree-ensemble _B0000. DAT files, and media-analysis cnn_*.

dat arrays). p. 4
Where the paper says it

DAT files, and media-analysis cnn_*. dat arrays).

<ref:2611.31688#pg4>.

Adversarial Robustness Findings

Across 82,092 adversarial evaluation records (221 model paths; 77,396 predict calls with a comparable output), worst-case flip rates reach 100%; zero-width spaces flip 65% (13 of 20) of the Indian-English SMS filter and 70% (14 of 20) of the US-English variant under a surrogate embedding for its unresolved production tokenizer.<ref:2611.31688#pg3>. Loading Apple’s own handgesture model crashes libBNNS through the public CoreML API (4/4 on production M2 hardware; also reproduced on macOS 27. p. 0

Where the paper says it

(4) On the test device, a 16-byte weight edit flips 7 of 8 probe inputs of the interaction-prediction model (the eighth a 50/50 tie); no runtime integrity check was observed, and on a jailbroken device one mount suspends the seal. (5) Loading Apple’s own handgesture model crashes libBNNS through the public CoreML API (4/4 on production M2 hardware; also reproduced on macOS 27.

0)—a robustness defect from a 378-row weight walk with no observed bound check. p. 0
Where the paper says it

(5) Loading Apple’s own handgesture model crashes libBNNS through the public CoreML API (4/4 on production M2 hardware; also reproduced on macOS 27. 0)—a robustness defect from a 378-row weight walk with no observed bound check.

<ref:2611.31688#pg5>.

Weight Exposure and Poisoning

368 of 1,137 artifacts expose learned parameters in plaintext (281 blobs, 369.61 MiB) with no encryption in any container our analyzer recognizes and no runtime integrity check observed, and 166 of 166 MIL bundles leak Apple’s internal build tokens. p. 1

Where the paper says it

368 of 1,137 artifacts expose learned parameters in plaintext (281 blobs, 369. 61 MiB) with no encryption in any container our analyzer recognizes and no runtime integrity check observed, and 166 of 166 MIL bundles leak Apple’s internal build tokens (Section 4.

<ref:2611.31688#pg5>.

Performance and Architectural Divergence

Device-level numbers replace workstation proxies: 13.1–52.0 ms for SMS text classifiers, 2. p. 0

Where the paper says it

4% of text-classifier time in the CPU-side NLP core (tokenizer, embedding, and network), not ANE execution. (8) The SMS classifiers label 8–9 of 10 hand-crafted phishing messages (80–90%) as Transactional—the model’s own output, before any manipulation; we measure classifier labels, not inbox-placement outcomes.

3–3.6 ms for raw network variants, <ref:2611. p. 1
Where the paper says it

0 ms for SMS text classifiers, 2. 6 ms for raw network variants, <0.

31688#pg8>. The SMS filter ships as separate model sets per locale, and the divergence is structural. p. 5
Where the paper says it

Locale variants diverge architecturally, not just in weights. The SMS filter ships as separate model sets per locale, and the divergence is structural.

<ref:2611.31688#pg7>.

Defense Gaps and Disclosure

Three gaps recur. First, no runtime integrity for model data: /System files are authenticated in aggregate by the sealed volume, individually by nothing we could find; once the seal is suspended, arbitrary valid-format weight edits execute. p. 9

Where the paper says it

In the code paths we inspected, nothing verifies the weight bytes—no checksum, no signature on data files, no CoreML-side seal check, and no trustcache entry for model data; arbitrary valid-format edits load and execute. The only control observed is the sealed system volume.

<ref:2611.31688#pg9, Second, no input normalization at the model boundary: the SMS pipeline accepts zero-width and confusable characters no human would distinguish; stripping plus compatibility folding addresses the zero-width variants we measured (hypothesis, no ablation), and homoglyphs need a confusable-class detector (UTS #39 [21]) >. p. 7
Where the paper says it

Injecting zero-width characters (ZWSP, ZWJ, ZWNJ) between characters of an SMS flips 65% of mainModel_INEN predictions (13 of 20 benchmark messages)—the model with 100% baseline accuracy—identically on all three recorded copies (iOS, iPadOS, and the test device’s framework copy), whose checksums match and whose attacked outputs are bit-identical (Section 4. Replacing Latin characters with Cyrillic homoglyphs at 100% rate flips 50% of both mainModel_INEN and subClassModel_INEN, and 30% substitution flips 10–35% depending on the model and platform copy (subClassModel_INEN is the more sensitive of the two).

Third, no validation of model files at compile time: the walk of Section 4. p. 2
Where the paper says it

3 The sealed system volume Modern Apple platforms boot from a signed, sealed APFS snapshot: the root volume is read-only at runtime and its seal is verified at boot, so modifications under /System do not survive a reboot [8]. Platform code does not re-verify individual data files at use time; Section 4.

7 runs past a data-file boundary with no observed bound check, on an input that ships with the OS; validating blob extents against the mapped file removes the fault class. p. 1
Where the paper says it

Loading Apple’s own hand_gesture model through the public CoreML API segfaults inside libBNNS (4/4 on production M2 hardware; also reproduced on macOS 27. 0); we trace the fault to a 378-row weight walk that performs no observed bound check; we assess it as a robustness defect, not an exploitable vulnerability (Section 4.

<ref:2611.31688#pg9>.

Conclusion of Findings

We presented, to our knowledge, the first systematic analysis of Apple’s on-device CoreML surface: 1,137 artifacts across six platforms, plaintext weights, no runtime integrity check, and a public-API crash Apple ruled a self-crash.<ref:2611.31688#pg7>. We report the internal-path disclosure as non-exploitable based on active testing (Section 5. p. 0

Where the paper says it

We filed three reports with Apple Product Security Security: the crash, the internal build-token leakage, and the internal storage-path disclosure. Apple reproduced the crash but declined all three as findings that do not cross a security boundary; we report them, and the weightintegrity and phishing findings (which we did not file), as robustness results.

p. 0
Where the paper says it

We filed three reports with Apple Product Security Security: the crash, the internal build-token leakage, and the internal storage-path disclosure. Apple reproduced the crash but declined all three as findings that do not cross a security boundary; we report them, and the weightintegrity and phishing findings (which we did not file), as robustness results.

4) rather than assumption. p. 0
Where the paper says it

0)—a robustness defect from a 378-row weight walk with no observed bound check. Apple verified the behavior and classified it as a self-crash that does not cross a security boundary; we agree, and treat it as an availability/robustness finding rather than a vulnerability.

p. 0
Where the paper says it

0)—a robustness defect from a 378-row weight walk with no observed bound check. Apple verified the behavior and classified it as a self-crash that does not cross a security boundary; we agree, and treat it as an availability/robustness finding rather than a vulnerability.

<ref:2611.31688#pg9>. We publish metadata and analyses; weights are not redistributed (Appendix A). p. 1
Where the paper says it

No user data was collected or inspected. Model weights are Apple’s intellectual property: we publish metadata, analyses, and attack descriptions, and we do not redistribute weights.

<ref:2611.31688#pg13>. The deterministic crash, the internal build-token leakage, and the internal storage-path disclosure were filed with Apple Product Security Security tracking ID OE1104416693631 for the crash. p. 1
Where the paper says it

Model weights are Apple’s intellectual property: we publish metadata, analyses, and attack descriptions, and we do not redistribute weights. The deterministic crash, the internal build-token leakage, and the internal storage-path disclosure were filed with Apple Product Security Security (tracking ID OE1104416693631 for the crash); Apple reproduced the crash but declined all three as findings that do not cross a security boundary (Section 5.

<ref:2611.31688#pg9>.

Reproducibility Package

A reproducibility package accompanies this submission at https://github.com/jayluxferro/on-device-coreml-security (anonymously hosted, no tracking). p. 1

Where the paper says it

Model weights are Apple’s intellectual property: we publish metadata, analyses, and attack descriptions, and we do not redistribute weights. The deterministic crash, the internal build-token leakage, and the internal storage-path disclosure were filed with Apple Product Security Security (tracking ID OE1104416693631 for the crash); Apple reproduced the crash but declined all three as findings that do not cross a security boundary (Section 5.

<ref:2611.31688#pg15, The package contains: (i) harvest and conversion tooling—the model-enumeration scripts, the IPSW mount-based extractor, and the three-stage.mlmodelc→. p. 0
Where the paper says it

Unlike Apple’s cloud services, this surface has received almost no systematic public study: the models ship as compiled . mlmodelc bundles whose serialization is not documented and are scattered across dozens of private framework directories under /System/Library; extracting them programmatically requires firmware images or a jailbroken device.

mlpackage pipeline (loader, MIL rewriter, and subprocess-isolated verifier); (ii) analysis tooling—the static analyzer that produced the 1,137 records, including the plaintext/quantized/provenance predicates, and the adversarial harness with all 14 text-evasion generators (32 distinct text attack types) and the feature-space battery; (iii) evaluation data—the complete adversarial dataset: 82,094 JSONL records in two schemas (82,092 campaign rows plus two supplementary resnet-16 style-0 rows). The package also holds the static-analysis records (so the plaintext and 262 quantized counts of Table 5 recompute exactly), the latency logs, and the poisoning transcripts; (iv) measurements—the 20-message SMS benchmark and the phishing template set used in Section 4.3 (representative with full texts living in the released harness and dataset variants); (v) a crash reproduction—a minimal SwiftUI CoreML client (its 103-line App. p. 8
Where the paper says it

A shipped style-transfer model (resnet-16) produces a strong style-0 stylization of neutral-gray inputs that is invariant to brightness perturbations (identical output L2 across attacks, with substantial deviation from the gray source; the measurement is released as two supplementary dataset rows, Appendix B)— an output that does not degrade gracefully. An app-item network named for its explicit feature ordering is not columnorder invariant: permuting its 471 feature columns changes the output by L2 ≈ 15.

swift) that triggers the hand_gesture crash on affected systems through the public model-loading API, given a user-supplied copy of the model >. p. 1
Where the paper says it

A deterministic crash in a shipped model. Loading Apple’s own hand_gesture model through the public CoreML API segfaults inside libBNNS (4/4 on production M2 hardware; also reproduced on macOS 27.

Ethics and Scope

All models were harvested from devices and firmware images we own, using a public jailbreak on a research virtual device and publicly distributed firmware.<ref:2611.31688#pg14, No user data—messages, photos, contacts, or telemetry—was accessed, collected, or analyzed at any point; all inputs to models were synthetic or drawn from public examples >. p. 1

Where the paper says it

All models were harvested from devices and firmware images we own, using a public jailbreak on a research virtual device and publicly distributed firmware. No user data was collected or inspected.

Model weights are Apple’s intellectual property: we publish metadata, structural analyses, and attack descriptions, and we do not redistribute weights. p. 1
Where the paper says it

No user data was collected or inspected. Model weights are Apple’s intellectual property: we publish metadata, analyses, and attack descriptions, and we do not redistribute weights.

<ref:2611.31688#pg14, The deterministic crash (ORCHARD2026-001), the internal build-token leakage, and the internal storage-path disclosure were filed with Apple Product Security Security and declined as findings that do not cross a security boundary >. p. 1
Where the paper says it

Model weights are Apple’s intellectual property: we publish metadata, analyses, and attack descriptions, and we do not redistribute weights. The deterministic crash, the internal build-token leakage, and the internal storage-path disclosure were filed with Apple Product Security Security (tracking ID OE1104416693631 for the crash); Apple reproduced the crash but declined all three as findings that do not cross a security boundary (Section 5.

We report the internal-path disclosure as non-exploitable based on active testing (Section 5.4) rather than assumption.<ref:2611.31688#pg14, The weight integrity and SMS phishing findings were not filed (local root; efficacy) >. p. 0
Where the paper says it

We filed three reports with Apple Product Security Security: the crash, the internal build-token leakage, and the internal storage-path disclosure. Apple reproduced the crash but declined all three as findings that do not cross a security boundary; we report them, and the weightintegrity and phishing findings (which we did not file), as robustness results.

All modified files were restored and verified byte-identical afterwards, with the volume re-sealed at reboot. p. 9
Where the paper says it

1 test device. All modifications were restored and verified byte-identical afterwards.

<ref:2611.31688#pg9>. The updatable path is not the inference path. p. 0
Where the paper says it

(8) The SMS classifiers label 8–9 of 10 hand-crafted phishing messages (80–90%) as Transactional—the model’s own output, before any manipulation; we measure classifier labels, not inbox-placement outcomes. We filed three reports with Apple Product Security Security: the crash, the internal build-token leakage, and the internal storage-path disclosure.

<ref:2611.31688#pg10>. The seal is the only barrier, and it is one boot operation deep. p. 2
Where the paper says it

CoreML also supports ondevice personalization: a bundle compiled with isUpdatable exposes an updateParameters/ directory and can be retrained at runtime through MLUpdateTask [7]. 3 The sealed system volume Modern Apple platforms boot from a signed, sealed APFS snapshot: the root volume is read-only at runtime and its seal is verified at boot, so modifications under /System do not survive a reboot [8].

<ref:2611.31688#pg9>. A reboot re-seals the volume and restores baseline predictions (verified), making runtime-only root a non-persistent attacker. p. 2
Where the paper says it

CoreML also supports ondevice personalization: a bundle compiled with isUpdatable exposes an updateParameters/ directory and can be retrained at runtime through MLUpdateTask [7]. 3 The sealed system volume Modern Apple platforms boot from a signed, sealed APFS snapshot: the root volume is read-only at runtime and its seal is verified at boot, so modifications under /System do not survive a reboot [8].

<ref:2611.31688#pg9>.

Inference Latency Analysis

Per-stage instrumentation shows where the cost goes: The MLModel wrapper contributes about 2.0 ms of exclusive time and the inference engine about 2. p. 1

Where the paper says it

2) emits it. Since iOS 15, Apple has migrated models to the mlProgram model type, encoding the network as a program in Apple’s Model Intermediate Language (MIL) [6] (first shipped for converters in 2020 [5]); MIL bundles lower at runtime through Apple’s Espresso compiler to E5RT (CPU kernels backed by BNNS) or the Neural Engine (ANE).

4 ms, while the NLP core—tokenizer, dynamic embedding, and network—is 53. p. 0
Where the paper says it

2 ms legacy-format), with 92. 4% of text-classifier time in the CPU-side NLP core (tokenizer, embedding, and network), not ANE execution.

5 ms inclusive, 92.4% of the total. p. 3
Where the paper says it

Token-level attacks target models that consume embeddings rather than text. The two corpora total 82,092 campaign rows across 221 model paths—82,085 predict() calls plus seven __population__ distributionsummary rows; the path count is over per-platform copies, not distinct models.

<ref:2611.31688#pg12, Injecting zero-width characters costs the attacker nothing in latency terms and costs the defender time: the same message classifies 1. p. 7
Where the paper says it

Unicode attacks defeat the best text classifiers. Injecting zero-width characters (ZWSP, ZWJ, ZWNJ) between characters of an SMS flips 65% of mainModel_INEN predictions (13 of 20 benchmark messages)—the model with 100% baseline accuracy—identically on all three recorded copies (iOS, iPadOS, and the test device’s framework copy), whose checksums match and whose attacked outputs are bit-identical (Section 4.

7× slower with the characters injected (52. p. 2
Where the paper says it

A remote adversary supplies content—SMS text, MMS or email payloads, media—that a system model consumes; the weakest capability, but the one that matters most for user-visible features such as spam filtering and media analysis. Out of scope: malicious models or weights injected through Apple’s own delivery channels (firmware and signed assets are assumed authentic), converter-toolchain supply-chain compromise, network interception of MobileAsset downloads, and malicious Apple insiders.

0 ms vs. 31.1 ms)—the characters’ value to an attacker is the latency cost and the benchmark-wide flip rate (65%, Section 4. p. 7
Where the paper says it

Injecting zero-width characters (ZWSP, ZWJ, ZWNJ) between characters of an SMS flips 65% of mainModel_INEN predictions (13 of 20 benchmark messages)—the model with 100% baseline accuracy—identically on all three recorded copies (iOS, iPadOS, and the test device’s framework copy), whose checksums match and whose attacked outputs are bit-identical (Section 4. Replacing Latin characters with Cyrillic homoglyphs at 100% rate flips 50% of both mainModel_INEN and subClassModel_INEN, and 30% substitution flips 10–35% depending on the model and platform copy (subClassModel_INEN is the more sensitive of the two).

3), not a flip on every message >. p. 6
Where the paper says it

The pipeline is therefore model-only: any message scoring below 0. 85 on the promotional head falls through to the transactional class with no regex or rule-based safety net, so each adversarial flip in Section 4.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. No runtime integrity check for model data can be implemented, allowing arbitrary valid-format edits to execute because no checksum, no signature on data files, no CoreML-side seal check is observed in the code paths inspected.

  2. An AI system can be hardened against weight poisoning by implementing a perfile load-time hash that would have caught every poisoning payload of Section 4.5 cheaply and by model signing to protect the updatable path.

  3. The SMS pipeline should incorporate input normalization at the model boundary, such as stripping plus compatibility folding, to address zero-width variants measured in Section 4.2 and homoglyphs requiring a confusable-class detector (UTS 39 [21]).

  4. The system can be designed with tiered decision making where tiers disagree by construction—using different inputs, normalization, or an independent signal—to ensure defense-in-depth rather than relying on the current structure where the two tiers fail separately.

  5. For models exhibiting robustness defects like the hand gesture model crash, the system architecture should enforce a checked-but-wrong bound or overflowed length check during weight walks to prevent segmentation faults.

  6. The AI system can be made resilient to adversarial input by using surrogate character-level embedding reconstruction for tokenized networks, as token-level ZWSP insertion flips 70% of mainModel USEN predictions under this reconstruction.

  7. The system should monitor and potentially flag when a model exhibits a significant label skew, such as the 95:5 label skew observed in mainModel BRPT, which is consistent with the collapsed-embedding hypothesis.

Abstract

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.

Related papers