Abstract
This study provides the first large-scale empirical analysis of on-device deep learning (DL) models within the iOS ecosystem. By analyzing 2,907 iOS apps, researchers identified 1,883 models across 334 applications. The findings reveal significant framework fragmentation and a widespread "mirror effect" where developers reuse identical models across iOS and Android. Crucially, the study introduces a "bridge" attack that leverages white-box Android models to compromise proprietary iOS Core ML models, achieving a 75% success rate and challenging the perceived security of the Apple ecosystem.
Introduction
While the security and architecture of on-device models in Android have been extensively documented, iOS has remained a "black box" due to Apple’s closed-source ecosystem and the proprietary nature of the Core ML framework. This lack of transparency has fostered a belief that iOS apps are inherently more secure. However, as deep learning becomes central to mobile features—ranging from financial scanning to augmented reality—this visibility gap represents a significant security risk. This research addresses three primary areas: the characteristics of iOS DL models, the reasons for platform-specific model choices, and the actual robustness of iOS models against adversarial attacks.
Methodology and Pipeline
To systematically analyze the iOS landscape, the researchers developed a comprehensive extraction and analysis pipeline. The process began with data acquisition, using automated tools to download and reverse-engineer 2,907 iOS apps. Models were identified through suffix pattern matching (e.g., .mlmodelc, .tflite, .pb) and subsequently validated by running predictions on random data to filter out non-predictive files.
A critical component of the methodology was the cross-platform comparison. The authors utilized Structure Similarity (SS) and Parameter Similarity (PS) metrics, based on the longest common subsequence of model layers, to compare iOS models with their Android counterparts. This comparison laid the groundwork for the "bridge" attack, which circumvents the "gray-box" nature of Core ML by attacking the more accessible "white-box" Android version of the same application.
Key Insights and Cross-Platform Findings
The study uncovered several surprising trends in how developers deploy models across platforms:
- Framework Fragmentation: Contrary to expectations, Apple's Core ML is not the absolute dominant force. While it holds a 36.6% share, Google’s TF Lite and TensorFlow combined account for approximately 42% of the models found. This suggests that developers often prioritize cross-platform consistency over platform-specific optimization.
- The Mirror Effect: Approximately 17.6% of on-device models are identical across both iOS and Android. This "lazy" reuse creates a massive security loophole; a vulnerability discovered in the open Android version can be directly applied to the supposedly more secure iOS version.
- Hardware vs. Fragmentation: The research noted that Android developers frequently opt for cloud-based models (via Google ML Kit) to avoid performance bottlenecks on low-end hardware. In contrast, iOS developers benefit from a more uniform hardware landscape, allowing them to rely more consistently on on-device execution.
- Task Dominance: Convolutional Neural Networks (CNNs) dominate the landscape, accounting for 82.9% of models, primarily focused on computer vision tasks such as object detection and image enhancement.
Security Evaluation: The Bridge Attack
The core security finding of the paper is the effectiveness of the "bridge" attack. Because iOS Core ML weights are often hidden or encrypted, direct white-box attacks are impossible. However, by locating an app's Android counterpart, converting that model into a trainable PyTorch format, and generating adversarial examples there, the researchers could "transfer" the attack to the iOS model.
In testing across 10 representative real-world apps—including high-profile targets like PayPal and Smart Bird ID—the attack achieved an average success rate of 75%. For instance, the researchers successfully forced the Smart Bird ID app to misidentify an Australian Magpie as a Satin Bowerbird using subtle image perturbations that are unnoticeable to the human eye. This approach significantly outperformed existing baselines like ModelAttacker, which only achieved a 34% success rate.
Conclusion and Future Work
This research debunks the myth of "security by obscurity" in the iOS ecosystem. The findings suggest that the average on-device model is small (0.45MB) and often poorly protected due to cross-platform code reuse. Future work is needed to explore security in non-image domains, such as NLP and Audio models, and to develop more robust dynamic analysis tools for the closed iOS environment. The authors call for framework providers to implement better cross-platform encryption and obfuscation to mitigate these newly identified risks.
Summary updated