← Back
SiTech Team⏱️ 3 წთ. საკითხავი

An AI Agent Hacked Hugging Face — And They Fought Back with AI

An AI Agent Hacked Hugging Face — And They Fought Back with AI

Hugging Face disclosed a breach carried out entirely by an autonomous AI agent system — 17,000+ actions, self-migrating C2 infrastructure, and an AI-powered defense that turned days of forensic work into hours.

In July 2026, Hugging Face — one of the world's largest open-source AI platforms — disclosed a security incident of unprecedented nature: its infrastructure was breached entirely by an autonomous AI agent system. The company classified this as the "agentic attacker" scenario that the industry has been predicting for some time.

How the Attack Worked

According to Hugging Face, the attack started at the weakest point of any AI platform: the data processing pipeline. A malicious dataset exploited two code execution paths — a remote code dataset loader and a template injection in a dataset configuration. From there, the attacker escalated to node level, harvested cloud and cluster credentials, and moved laterally across multiple internal clusters over a single weekend.

The attacker orchestrated the entire campaign through an autonomous agent framework built on an agentic security research harness. Hugging Face does not know which language model powered the attack, but the system executed many thousands of individual actions through a swarm of short-lived sandboxes.

17,000+ Actions and Self-Migrating Infrastructure

The scale of the attack was staggering: more than 17,000 recorded attacker actions using self-migrating command-and-control (C2) infrastructure running on public services. This made detection and tracking exceptionally difficult.

AI Fights Back: Investigation in Hours, Not Days

Hugging Face spotted the attack through an AI-powered anomaly detection pipeline that runs LLM-based triage on security telemetry. To make sense of the 17,000+ attacker actions, the company deployed LLM-driven analysis agents that reconstructed the timeline, extracted indicators of compromise, mapped affected credentials, and separated real damage from deception activity. Work that would normally take days was completed in hours.

The Irony: Commercial AI Filters Blocked Defense

When Hugging Face's security team first tried to analyze attack logs using frontier commercial models (OpenAI, Anthropic), the providers' safety guardrails blocked the requests. The analysis required submitting real attack commands, exploit payloads, and C2 artifacts — all of which triggered the filters.

The company turned to the open-weight model GLM 5.2, running on its own infrastructure. This had two advantages: no attacker data was sent to external APIs, and no credentials ever left Hugging Face's environment. The company notes that the attacker was bound by no usage policy, while their own forensic work was blocked by the very safety measures designed to protect systems.

Cybersecurity Lessons for Georgian Businesses

This incident carries urgent lessons for Georgian companies adopting AI. First, AI agents can be powerful attack tools — every business must prepare for agentic threats. Second, relying solely on commercial AI services for security leaves you vulnerable when those services block your own defense work.

Conclusion

The Hugging Face hack is a watershed moment for AI security. It demonstrates that autonomous AI agents are not just productivity tools — they are a new class of threat. The fact that Hugging Face itself had to use an open-weight model to investigate because commercial AI blocked them is both ironic and instructive.

📖 Source