Your Space is My Zone: Demystifying the Security Risks of AI-Powered Applications on Pre-Trained Model Hubs

AI Safety / AI Ethics PIAAP MBDSF
2026年06月29日
由人工智能驱动的应用程序(AI-Apps)依托Hugging Face等平台托管,通过在线推理与微调服务,使公众得以便捷地访问预训练模型,从而推动了人工智能技术的普及化。然而,在降低AI应用门槛的同时,这类平台也引入了一个此前尚未被深入探索的新型攻击面:AI-App往往由不可信第三方开发,其运行环境隔离性薄弱,且安全配置普遍不当。本文首次针对三大主流平台上的AI-App开展了系统性安全分析。为有序展开研究,我们将AI-App的全生命周期映射至成熟的威胁分类体系(如OWASP风险模型),据此识别出五大威胁类别及十大攻击向量——涵盖从通用Web安全缺陷到高危架构层面问题的完整谱系。分析结果揭示了一系列严重安全失效现象,包括访问控制机制失效、资源复用不安全、输入验证不足,以及敏感数据意外暴露等。尤为值得关注的是,我们首次发现三种源于平台自身架构设计的新型漏洞,并证实传统安全问题(例如日志文件全局可读)在此生态中被显著放大、危害加剧。为评估实际影响范围,我们构建了一套专用分析框架Insightor,并将其应用于超过97万个公开AI-App。令人警醒的是,我们发现数千个应用存在凭据泄露问题,数百个应用存在输入注入漏洞,可被利用以执行任意代码;另有数十个应用内嵌后门程序——表明此类威胁已处于真实活跃的攻击阶段。我们已依照负责任披露原则,将全部发现及时通报相关平台及开发者。
AI-powered Applications (AI-Apps), hosted on platforms such as Hugging Face, are democratizing access to pre-trained models through online inference and fine-tuning services. While lowering AI adoption barriers, these platforms introduce an unexplored attack surface, as AI-Apps are often developed by untrusted parties with weak isolation and misconfigured security settings. In this paper, we present the first systematic security analysis of AI-Apps across three leading platforms. To structure our investigation, we map the AI-App lifecycle to established risk taxonomies (e.g., OWASP), identifying five threat categories and ten attack vectors ranging from generic web flaws to high-impact architectural issues. Our analysis reveals critical failures including broken access control, insecure resource reuse, insufficient input validation, and sensitive data exposure. Notably, we uncover three novel architectural vulnerabilities inherent to platform design and demonstrate how traditional issues (e.g., world-readable logs) are uniquely amplified in this ecosystem. To assess real-world impact, we develop an analysis framework Insightor and apply it to over 970,000 public AI-Apps. Alarmingly, we find thousands of apps leaking credentials, hundreds containing input injection vulnerabilities that allow arbitrary code execution, and tens harboring embedded backdoors -- indicating active exploitation. We have responsibly disclosed all findings to the affected platforms and developers.
许愿