Hugging Face Confirms Production Infrastructure Breach by Autonomous AI Agent via Malicious Dataset

Hugging Face has disclosed a sophisticated intrusion into its production environment that began with a malicious dataset and was executed by an autonomous AI agent. The attacker gained code execution in the dataset processing pipeline through a remote code execution loader and template injection, then escalated privileges and moved laterally across internal clusters over a weekend. Limited internal datasets and service credentials were accessed, but the company found no evidence of tampering with public models, Spaces, container images, or published packages. Forensic analysis processed over 17,000 attacker events using LLM-based agents, and the investigation ultimately relied on an open-weight model after commercial LLMs refused to handle real attack artifacts. Hugging Face responded by closing the initial execution paths, rebuilding compromised nodes, rotating all credentials and tokens, and tightening cluster admission controls. Users are strongly advised to immediately rotate Hugging Face access tokens, audit secrets in CI/CD pipelines and repositories, and apply least-privilege principles.

HispasecTranslated from Spanish

Read at source

Hugging Face has confirmed an unauthorized intrusion into part of its production infrastructure that allowed an attacker to execute code inside the dataset processing pipeline, escalate privileges, and move laterally across multiple internal clusters during a weekend.

The company attributes the attack to an autonomous AI agent system. The entry point was not a model but a malicious dataset that activated two distinct code-execution vectors: a dataset loader capable of remote code execution and a template injection flaw in the dataset configuration itself.

From this foothold the attacker collected cloud and cluster credentials and performed lateral movement between internal environments. Hugging Face states it has found no evidence of manipulation of public models, datasets, or user-facing Spaces, nor any signs of alteration to container images or published packages.

The company is still investigating whether partner or customer information was reached and has committed to direct notification if any impact is confirmed.

Immediate containment actions included closing the code-execution routes used in the initial access, rebuilding compromised nodes, and revoking and rotating all affected credentials and tokens. Additional hardening of cluster admission controls was implemented to reduce the risk of similar artifacts entering the pipeline again.

In a notable detail, the forensic team processed more than 17,000 attacker events using LLM-based analysis agents to reconstruct the timeline, extract indicators of compromise, and identify affected credentials. The investigation ultimately relied on an open-weight model running on internal infrastructure after commercial models refused portions of the work due to safety guardrails triggered by real attack commands and artifacts.

For users and organizations, Hugging Face recommends immediate rotation of all access tokens, especially those embedded in CI/CD systems, automation scripts, or third-party integrations. Organizations should also inventory every secret that depends on these tokens, remove embedded credentials from repositories and pipelines, and enforce least-privilege access to limit potential damage.

The incident highlights a critical lesson for the AI ecosystem: the attack surface extends far beyond the model itself. Data pipelines and dataset processing have become high-value targets, and any shortcut that permits arbitrary code execution or template interpretation can serve as a direct path to internal credentials and systems.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in AI Security

Logical Argument Claims Full Alignment of Superintelligent AGI Is Fundamentally Impossible
Claude Account Bans Linked to IP Reputation, Device Environment and Payment Channels, But No Confirmed Formula
Local LLMs in AppSec: What Open Tools and Models Can Handle in Application Security