TL;DR
This paper presents the first systematic empirical study of on-device deep learning models in iOS apps, shattering the illusion of security provided by Apple’s closed ecosystem. By exploiting cross-platform model reuse, the authors develop a novel adversarial attack that uses an app's Android "white-box" counterpart as a bridge to successfully fool "gray-box" Core ML models on iOS with an average success rate of 75%.
What Problem Does This Paper Address?
On-device deep learning (DL) models are increasingly used in mobile apps for critical tasks like user authentication, medical monitoring, and photo editing. While the open-source nature of Android makes it easy to extract and attack these models (a "white-box" scenario), iOS has long been considered a safe haven. Apple's closed ecosystem and its proprietary Core ML framework encrypt or hide model weights, rendering them "gray-box" models that resist traditional white-box adversarial attacks.
Because accessing and analyzing iOS app files is notoriously difficult, a major research gap existed: no one knew exactly how widespread on-device models were on iOS, how they differed from their Android counterparts, or if they were truly secure. This paper addresses this gap by providing a comprehensive look at the iOS on-device model landscape and evaluating its actual security posture.
Methods
The authors designed a multi-step workflow to collect, analyze, and attack iOS on-device models:
- App Crawling and Extraction: Using the IPA tool on iPhone emulators, they downloaded and decrypted iOS apps, extracting non-code resources to identify on-device models based on file suffix patterns (e.g.,
.mlmodelc,.tflite). - Cross-Platform Matching: They paired iOS apps with their Android mirror versions from Google Play, comparing model structures and parameters to see if developers reuse the same models across platforms.
- The Bridge Attack Pipeline: To target the protected iOS Core ML models, the authors proposed a clever cross-platform transfer attack. Since they cannot directly perform backpropagation on a gray-box Core ML model to generate adversarial examples, they locate its identical white-box counterpart in the Android version (often in TF Lite format). They convert this Android model into a trainable PyTorch (
.pt) format, generate adversarial examples through standard backpropagation, and then feed these malicious inputs into the iOS app.
Datasets
The authors curated and released the first public dataset of iOS app source files for mobile DL research:
- Total Apps Crawled: 2,907 free iOS apps from the Apple App Store.
- Identified DL Apps: 334 iOS apps containing a total of 1,883 valid on-device models.
- Evaluation Set: 10 representative real-world apps (including PayPal, HP Smart, and Merlin Bird ID) that share identical model structures across iOS and Android.
Key Insights and Ideas
- The Illusion of Closed Security: The most striking finding is that iOS apps are vulnerable because of Android. Due to the high engineering cost of training separate models, developers frequently reuse the exact same model weights and structures for both platforms. This cross-platform consistency creates a security backdoor.
- Model Bloat is Real: While the average model size is quite small (0.45MB, accounting for just 1.7% of an app's total size), some apps are heavily bloated with models. For example, Facetune2 Editor contains a staggering 160 distinct on-device models to handle various photo-processing features.
- Framework Fragmentation: Reusing frameworks across platforms is surprisingly rare. Even when the underlying model is identical, developers regularly swap frameworks—using Core ML on iOS and TF Lite on Android—which complicates straightforward security audits.
Key Results
- High Attack Success Rate: The proposed bridge attack successfully fooled all 10 real-world target iOS apps. Across 10 different adversarial attack algorithms, the method achieved an average success rate of 70% on iOS gray-box models and 72% on Android equivalents.
- Potent Attack Variations: The recently proposed Clipping-Aware Noise (CAN) attack proved to be the most effective, achieving an 85% average success rate because it generates subtle perturbations that easily bypass human visual inspection.
- Real-World Impact: The authors demonstrated practical exploits on popular apps. They successfully forced the Gradient app to misclassify a user's gender from male to female, and tricked the Smart Bird ID app into misidentifying an Australian Magpie as a Satin Bowerbird.
Limitations and Future Work
While highly effective, the attack methodology has a clear scope limitation: it relies entirely on the existence of a white-box Android counterpart, which applies to only 17.63% of the discovered iOS models. If an iOS app uses a unique Core ML model with no Android mirror, this specific pipeline fails.
Additionally, the study relied primarily on static analysis, which misses models that are dynamically downloaded from a remote server after the app launches. The authors note that future work must focus on developing better dynamic analysis tools for iOS and exploring pure black-box attacks that do not rely on cross-platform twins.
Summary updated