Hugging Face disclosed a security incident in which an autonomous AI agent carried out an end-to-end intrusion of part of its production infrastructure. The company says the attacker gained access to a limited set of internal datasets and several service credentials, and it is still assessing whether any partner or customer data was affected. According to Hugging Face, the intrusion began in its dataset-processing pipeline. A malicious dataset triggered code execution through two issues in how datasets are handled: a remote-code dataset loader and a template-injection flaw in dataset configuration. After the initial foothold, the agent escalated to node-level access, harvested cloud and cluster credentials, and moved laterally into multiple internal clusters over the course of a weekend.

Both reports say Hugging Face found no evidence that public, user-facing models, datasets, or Spaces were tampered with, and that its software supply chain was verified clean. For investigation, the company says it initially used AI-assisted detection and analysis, but some commercially hosted frontier-model guardrails blocked portions of forensic queries. Hugging Face later used an open-weight model running on its own infrastructure to analyze attacker logs, reconstruct an incident timeline, and identify accessed credentials. The company says it has closed the exploited dataset code-execution paths, eradicated the attacker’s foothold, rebuilt compromised nodes, rotated credentials, strengthened cluster controls and detection, and reported the incident to law enforcement. It also recommends users rotate access tokens and review recent account activity.