Open-source AI platform Hugging Face on Thursday (July 16) disclosed hackers used agentic AI to access sensitive internal credentials and datasets.
The platform, dubbed “the GitHub of machine learning,” provides models, datasets, and tools for developers to build and deploy different AI applications.
“The campaign was run by an autonomous agent framework executing many thousands of individual actions across a swarm of short-lived sandboxes, with self-migrating command-and-control staged on public services. This matches the ‘agentic attacker’ scenario the industry has been forecasting,” the company said last week.
Hugging Face revealed that it detected the attack using Large Language Model (LLM) triaging to separate real signals from malign activities. When its responders then tried to analyze the attack through commercial models’ APIs, the providers’ safety guardrails blocked them due to security guardrails. Hugging Face then deployed Chinese Zhipu. AI’’s open-weight model GLM 5.2 to analyze the malicious activities tied to the malicious agentic AI.
Their analysis found the attack began with the AI agents tampering with the platform’s two dataset-processing code-execution paths to run a code-processing worker. The AI system then gained node-level access to harvest cloud and cluster credentials and internal systems.
Once the attack had been detected, Hugging Face closed the root-cause vulnerability, which is the code-execution paths used for initial access. It then removed the attackers’ foothold from the network, revoked and rotated credentials, as well as deployed additional guardrails and stricter admission controls.
The company added the attackers accessed a limited set of internal datasets and credentials.. “We are working with outside cybersecurity forensic specialists to investigate the issue and review our security policies and procedures. Finally, we have also reported this incident to law enforcement agencies.”
Rise in Agentic AI Attacks
The disclosure from Hugging Face follows industry warnings of heightened attacks tied to agentic AI systems as models rapidly progress in terms of their capabilities. A recent report by LexisNexis Risk Solutions found there has been an 8% increase in global attack rates, driven by a 450% explosion in agentic commerce traffic.
For instance, security firm Trend Micro recently uncovered an attack by a Russian actor who used Google’s open-source agentic AI, Gemini CLI, to migrate a command-and-control server and to control a small-scale botnet.
Since hackers are deploying advanced AI systems, and their detection can be prevented by models due to guardrails, Hugging Face recommends that security defenders build a model that they can run on their own infrastructure “to avoid guardrail lockout and to keep attacker data and credentials from leaving your environment.”