基于污点分析的移动端深度学习模型泄露自动分析方法
2025-09-02朱文天林璟锵
关键词:动态分析;污点分析;深度学习;Android应用
中图分类号:TP391 文献标志码:A 文章编号:1001-3695(2025)08-025-2437-09
doi:10.19734/j.issn.1001-3695.2024.10.0501
Automatic method to analyze deep-learning model leakage on mobile systems using taint analysis
Zhu Wentian,Lin Jingqiang† (SchoolofCyberScienceamp;Technology,UniversityofScienceamp;TechnologyofChina,Hefei230O27,China)
Abstract:Toanalyze dep-learning modelleakageonmobilesystems,existing methods require todynamicallyrun mobile applicationsand manually trigerdeep-learningfunctions,whichareunstableand needalotof manualparticipations,limiting the widespread useof such analysis methods.To automatically analyze more deep-learing models on mobile systems,this paper proposed an automatic method to analyze deep-learning modelleakage on mobiledevices using taint analysis.This method combined keyword matching and entropy evaluation to extract modelfiles inmobile applications,usedataint-analysis method basedonsimulated execution totrackthefunctionaddress of modeldecryption,andfinallcalledthedecryption functionto obtaintheplaintextmodel.Basedonthisdesign,thispaperimplementedanautomatedanalysis toolcaledModelDec.The analysis esults on mainstream APP stores show thatthe model leakage detectionrateand theanalysis speed are better than existing methods,which demonstrate the effectiveness of the proposed method.
Key words:dynamic analysis; taint analysis;deep learning model;Android applications
0 引言
随着人工智能技术的飞速发展和广泛应用,深度学习算法正逐渐被集成到智能手机等移动设备上。与云端部署深度学习服务相比,移动端部署展现出不同的优势。首先,用户的数据可以在移动设备上直接进行处理,不仅保护了用户隐私,还降低了数据泄露的风险。其次,由于省去了数据通过网络传输的步骤,服务的响应速度得到显著提升,增强了应用的稳定性和可靠性。此外,移动端部署的深度学习服务支持离线使用,这极大地扩展了应用的使用场景,使得用户即使在没有网络连接的极端情况下也能享受到人工智能服务。
然而,在移动端部署深度学习服务需要将深度学习模型存储在用户设备上,这也带来了新的安全挑战。深度学习模型通常是模型所有者自主知识产权的核心部分,若缺乏充分的保护措施,则可能被盗窃或滥用。事实上,移动端部署使得模型保护比云端部署更具挑战性。因为模型存储在用户设备上,而这些设备对于模型所有者而言是不可信的,可能掌握在攻击者手上,会将模型泄露出去。具体而言,模型泄露会导致模型所有者在人力、数据采集、计算资源等方面的投资损失;其次,竞争对手若获取到这些专门训练的深度学习模型,将削弱模型所有者的市场竞争力,包括但不限于产品优势和定价策略;此外,泄露的模型可能遭受恶意对抗攻击,例如生成对抗样本[1~4]或在模型中植入后门[5-7],导致深度学习服务产生错误的输出。……
