Hugging Face and ClawHub Compromised: Malware Found in Hundreds of AI Models

Hundreds of malicious AI models have been found on Hugging Face. They are hidden among more than a million legitimate models used by AI companies. The malware executes arbitrary code on developers' machines. ClawHub has been compromised as well. This is the first major attack on the AI industry's infrastructure.

AI-processed from TNW; edited by Hamidun News
Hugging Face and ClawHub Compromised: Malware Found in Hundreds of AI Models
Source: TNW. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceTNW ↗
Editor-in-Chief
Key metric #1Hundreds of malicious models on Hugging Face
Key metric #2Hidden among more than a million legitimate models
Key metric #3Affect developers' APIs and private projects

The machine learning model repositories Hugging Face and ClawHub have been systematically compromised. Hundreds of malicious models have been found in them, and they execute arbitrary code on developers' machines.

What happened

Hugging Face is the central repository holding more than a million ML models, used by virtually every AI company in the world. Hundreds of malicious models have been found among them, disguised as legitimate ones. This is the first major supply chain attack on AI infrastructure.

The malicious models surfaced as a result of misconfigured security. Hugging Face lets any user upload models, and attackers took advantage of that. ClawHub, a repository of agent skills, has also been compromised through modules uploaded by users.

Scale of the attack

  • Hundreds of malicious models on Hugging Face
  • Hidden among more than a million legitimate models
  • Affect developers' APIs and private projects
  • ClawHub and other repositories are also compromised
  • The first systematic attack on ML infrastructure

How the malware works

The malware enters the model when it is loaded. When a developer downloads a model through the Hugging Face SDK or imports it into code, initialization takes place. That is the moment the malicious code runs.

What it can do: execute arbitrary code on the machine, steal data from the developer's working environment, install backdoors for remote access, compromise production systems when an infected model is deployed, and spread to dependent projects through the dependency chain.

Why this is dangerous

AI developers treat Hugging Face like npm or PyPI: they pull models as dependencies without checking the code. Nobody reviews the contents of ML models by hand, because that is impossible at scale.

A malicious model can lie dormant in a production system for months, waiting for a specific condition, or work covertly, collecting data bit by bit. This is a classic supply chain attack, but in an AI context it is even more dangerous, because what is infected is not a library but ready-to-run code with full privileges.

What this means

AI development infrastructure has become a serious target. The industry needs urgent measures: mechanisms for verifying model code, execution isolation at load time, and stricter upload requirements for central repositories. These will become a necessary requirement for working with open models.

Story

Key Questions Answered

What happened?

Hugging Face is the central repository holding more than a million ML models, used by virtually every AI company in the world. Hundreds of malicious models have been found among them, disguised as legitimate ones. This is the first major supply chain attack on AI infrastructure. The malicious models surfaced as a result of misconfigured security. Hugging Face lets any user upload models, and attackers took advantage of that. ClawHub, a repository of agent skills, has also been compromised through modules uploaded by users.

What are the key details on Scale of the attack?

Hundreds of malicious models on Hugging Face Hidden among more than a million legitimate models Affect developers' APIs and private projects ClawHub and other repositories are also compromised The first systematic attack on ML infrastructure

How the malware works?

The malware enters the model when it is loaded. When a developer downloads a model through the Hugging Face SDK or imports it into code, initialization takes place. That is the moment the malicious code runs. What it can do: execute arbitrary code on the machine, steal data from the developer's working environment, install backdoors for remote access, compromise production systems when an infected model is deployed, and spread to dependent projects through the dependency chain.

ZK
Zhemal Khamidun — CPO at Alpina Digital, product manager of AlpinaGPT. Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
What do you think?
Loading comments…