[Paper Review] Mind Your Weight(s): A Large-scale Study on Insufficient Machine Learning Model Protection in Mobile Apps
This large-scale study analyzes machine learning model protection in 46,753 Android apps and finds that 41% of ML-enabled apps store models in plaintext, while 66% of encrypted models can be extracted via simple dynamic analysis. The study reveals widespread vulnerability to model theft, with severe financial and security consequences, and calls for robust on-device model protection techniques.
On-device machine learning (ML) is quickly gaining popularity among mobile apps. It allows offline model inference while preserving user privacy. However, ML models, considered as core intellectual properties of model owners, are now stored on billions of untrusted devices and subject to potential thefts. Leaked models can cause both severe financial loss and security consequences. This paper presents the first empirical study of ML model protection on mobile devices. Our study aims to answer three open questions with quantitative evidence: How widely is model protection used in apps? How robust are existing model protection techniques? What impacts can (stolen) models incur? To that end, we built a simple app analysis pipeline and analyzed 46,753 popular apps collected from the US and Chinese app markets. We identified 1,468 ML apps spanning all popular app categories. We found that, alarmingly, 41% of ML apps do not protect their models at all, which can be trivially stolen from app packages. Even for those apps that use model protection or encryption, we were able to extract the models from 66% of them via unsophisticated dynamic analysis techniques. The extracted models are mostly commercial products and used for face recognition, liveness detection, ID/bank card recognition, and malware detection. We quantitatively estimated the potential financial and security impact of a leaked model, which can amount to millions of dollars for different stakeholders. Our study reveals that on-device models are currently at high risk of being leaked; attackers are highly motivated to steal such models. Drawn from our large-scale study, we report our insights into this emerging security problem and discuss the technical challenges, hoping to inspire future research on robust and practical model protection for mobile devices.
Motivation & Objective
- Investigate the prevalence of machine learning model protection in popular mobile apps across the US and Chinese markets.
- Assess the robustness of existing model protection techniques against unsophisticated dynamic analysis attacks.
- Quantify the financial and security impacts of stolen on-device ML models on vendors and attackers.
- Highlight the urgent need for standardized, practical, and robust model protection mechanisms for mobile platforms.
Proposed method
- Built an automated static analysis pipeline to detect ML frameworks and model usage in Android app packages.
- Identified 1,468 ML-enabled apps from a dataset of 46,753 popular apps collected from US and Chinese app markets.
- Employed dynamic analysis with memory instrumentation to extract decrypted models from running apps.
- Tracked model reuse across multiple apps by identifying shared model files and their deployment patterns.
- Applied reverse engineering and runtime memory inspection to extract models even when encrypted.
- Conducted financial and security impact analysis based on R&D costs, market competition, and adversarial evasion risks.
Experimental results
Research questions
- RQ1How widely is model protection used in mobile apps that perform on-device machine learning?
- RQ2How robust are existing model protection mechanisms against dynamic memory extraction attacks?
- RQ3What are the financial and security consequences of model leakage for both attackers and model vendors?
Key findings
- 41% of the 1,468 ML-enabled apps analyzed do not protect their models at all, storing them in plaintext within the app package.
- Among apps that use encryption, 66% of the models could be extracted from runtime memory using basic dynamic analysis techniques.
- A total of 18 unique models were extracted and found to be shared across 347 distinct apps, indicating widespread reuse of protected models.
- Even models protected with multiple encryption layers or obfuscation techniques were successfully extracted in plaintext from memory.
- The financial impact of model leakage can reach millions of dollars due to lost R&D investment and competitive advantage.
- Stolen models enable adversarial attacks such as bypassing face recognition or liveness detection, posing serious security risks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.