A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models

Beatrice Casey, Joanna C. S. Santos, Mehdi Mirakhorli
10/6/2024
cs.CRcs.LGcs.SE

No confident code implementation found for this paper.

Abstract

The development of machine learning (ML) techniques has led to ample opportunities for developers to develop and deploy their own models. Hugging Face serves as an open source platform where developers can share and download other models in an effort to make ML development more collaborative. In order for models to be shared, they first need to be serialized. Certain Python serialization methods are considered unsafe, as they are vulnerable to object injection. This paper investigates the pervasiveness of these unsafe serialization methods across Hugging Face, and demonstrates through an exploitation approach, that models using unsafe serialization methods can be exploited and shared, creating an unsafe environment for ML developers. We investigate to what extent Hugging Face is able to flag repositories and files using unsafe serialization methods, and develop a technique to detect malicious models. Our results show that Hugging Face is home to a wide range of potentially vulnerable models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{casey2024largescale,
  title  = {A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models},
  author = {Beatrice Casey and Joanna C. S. Santos and Mehdi Mirakhorli},
  year   = {2024},
  eprint = {2410.04490},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04490v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.04490.svg)](https://codeofpaper.com/paper/2410.04490)

Discussion