TL;DR
This paper systematically studies malicious code poisoning attacks on pre-trained model hubs like Hugging Face, introduces MalHug for detection, and reports real-world deployment results identifying numerous security threats.
Contribution
It presents the first comprehensive threat analysis, a novel detection pipeline MalHug, and real-world deployment insights for securing pre-trained model hubs.
Findings
MalHug detected 91 malicious models and 9 malicious scripts
Operational for over three months on a large-scale deployment
Identified threats like reverse shell and credential theft
Abstract
The proliferation of pre-trained models (PTMs) and datasets has led to the emergence of centralized model hubs like Hugging Face, which facilitate collaborative development and reuse. However, recent security reports have uncovered vulnerabilities and instances of malicious attacks within these platforms, highlighting growing security concerns. This paper presents the first systematic study of malicious code poisoning attacks on pre-trained model hubs, focusing on the Hugging Face platform. We conduct a comprehensive threat analysis, develop a taxonomy of model formats, and perform root cause analysis of vulnerable formats. While existing tools like Fickling and ModelScan offer some protection, they face limitations in semantic-level analysis and comprehensive threat detection. To address these challenges, we propose MalHug, an end-to-end pipeline tailored for Hugging Face that combines…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
