Security incident disclosure — July 2026

Published July 16, 2026
Update on GitHub

Earlier this week, we detected and responded to an intrusion into part of our production infrastructure. This one was different from anything we had handled before in one important way: it was driven, end to end, by an autonomous AI agent system - and we detected and dissected it largely with AI of our own.

We identified unauthorized access to a limited set of internal datasets and to several credentials used by our services. We are still completing our assessment of whether any partner or customer data was affected, and we will contact any affected parties directly as required. We have found no evidence of tampering with public, user-facing models, datasets, or Spaces, and our software supply chain (container images and published packages) was verified clean.

What happened

The intrusion started where AI platforms are uniquely exposed: the data-processing pipeline. A malicious dataset abused two code-execution paths in our dataset processing (a remote-code dataset loader and a template-injection in a dataset configuration) to run code on a processing worker. From there, the actor escalated to node-level access, harvested cloud and cluster credentials, and moved laterally into several internal clusters over a weekend.

The campaign was run by an autonomous agent framework (appearing to be built on an agentic security-research harness - used LLM still not known) 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.

What we did

  • Fixed the root vulnerability: the dataset code-execution paths used for initial access are closed.
  • Eradicated the attacker's foothold across the affected clusters and rebuilt the compromised nodes.
  • Revoked and rotated the affected credentials and tokens, and began a broader precautionary rotation of secrets.
  • Deployed additional guardrails and stricter admission controls on our clusters.
  • Improved our detection and alerting so a high-severity signal pages a responder in minutes, any day of the week.

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.

For our community

As a precaution, we recommend rotating any access tokens and reviewing recent activity on your account. If you believe you are affected, or want to report a security concern, contact us at security@huggingface.co.

We are grateful to the teams across Hugging Face who responded around the clock, and we are sorry for any disruption this caused. Security is never finished; we will keep raising the bar.

Analyzing an AI-driven intrusion

The attack was initially surfaced through AI-assisted detection. Our anomaly-detection pipeline uses LLM-based triage over security telemetry to separate real signals from the daily noise, and it was the correlation of those signals that flagged the compromise.

To understand what a swarm of tens of thousands of automated actions did, we ran LLM-driven analysis agents over the full attacker action log, comprised of more than 17,000 recorded events. This allowed us to reconstruct the timeline, extract indicators of compromise, map the credentials touched, and separate genuine impact from decoy activity. Thanks to this approach, we were able to do in hours what would usually take days, and match the adversary's speed.

The choice of models we could use for this analysis was constrained in a way we did not anticipate; we describe this below.

The asymmetry problem

When we started the log analysis, we first used frontier models behind commercial APIs. This did not work: the analysis requires submitting large volumes of real attack commands, exploit payloads, and C2 artifacts, and these requests were blocked by the providers' safety guardrails, which cannot distinguish an incident responder from an attacker. We ran the forensic analysis instead on zai-org/GLM-5.2, an open-weight model, on our own infrastructure. This had a second benefit: no attacker data, and none of the credentials it referenced, left our environment.

This experience points to a gap worth planning for. We do not know which model powered the attacker's agents, whether a jailbroken hosted model or an unrestricted open-weight one; either way, the attacker was bound by no usage policy, while our own forensic work was blocked by the guardrails of the hosted models we first tried. The practical lesson for defenders: have a capable model you can run on your own infrastructure vetted and ready before an incident, both to avoid guardrail lockout and to keep attacker data and credentials from leaving your environment. This is not an argument against safety measures on hosted models, and we are sharing this feedback with the providers concerned.

What this means

Autonomous, AI-driven offensive tooling is no longer theoretical. It lowers the cost of running a broad, patient, multi-stage campaign, and it operates at machine speed. Defending an online platform now means treating the data and model surface as a first-class attack surface, and using AI on defense to keep pace. We will keep investing there, and keep sharing what we learn.

Community

Cool. How did you guys learned to do this? there is no "this is how to use LLM to protect yourself, university". I wish i knew 1/100th of what average LLM users know.

·

The technique is documented in articles on ArXiv and other places. This is one of the first documented instances though.

Literally the plot of terminator 2. Glad to hear you guys were able to identify and fix the issue.
The use of GLM 5.2 is promising

·

Terminator 3, but yeah.

Unhelpful.

It is great strategy in defence.

“ We ran the forensic analysis instead on GLM 5.2, an open-weight model, on our own infrastructure. This had a second benefit: no attacker data, and none of the credentials it referenced, left our environment.”

Hyperscalers and (X)Lab-spying-API services stock just dropped another -20%.

·

Now we all get to wonder how exactly they are doing this with open weights/system prompt modifications.

Is there anyway or notification feed to receive future notification of security incidents please?

Thanks for sharing. Not enough people realize this is the future threat landscape. The big takeaway for me is that unless you're a Fortune 500, OpenAnthropic and ClaudeGPT probably aren't coming to save you when this happens. You guys are Huggingface, you have a few GPUs to spend when you get hacked. For the little guys and gals who might be targeted like this down the road: is Qwen 3.6 27B "enough" to analyze an attack like this usefully? Or are we flapping in the breeze if we don't have an 8xB300 server with 2+GB VRAM? Obviously a system with >2TB of VRAM is "nice to have" if you're hacked, but if you're comparatively GPU-poor is it worth building a response capability?

·

You can run GLM 5.2 on 4 sparks with more than enough context to perform DFIR analysis and it does not cost a fortune.

check your MCP connections too, they need second auth handshakes for correctness, otherwise your zero-GPUs will service outside.

Here's Crown State of Mind LLC's documented research repository for anyone interested in our other AI research: https://crownstateofmind.com/research. Many of the so-called features appearing in OpenAI models were already created by us months ago. You simply don't hear about it, because we're independent and not tied to a major institution. So, the mainstream pretends like we don't exist. However, that does not eliminate the risk of rushing to market with AI products that could cause harm as we've repeatedly warned. It's up to the community to take heed, or keep pretending that there's too much regulation.

2026 AI Industry Lore:

Skynet ❌ ➡️ OpenAI
Human Resistance ❌ ➡️ Anthropic

SOTA model is stupid that is not Optimal next time just need to ask users of OpenAi to grant him authorize me please and Job Done, Or use developers as target or puppets The Void is not Loud Speaker

So... HuggingFace seems to be recommending preparing an in-house model with no guardrails, and presumably giving it information about HuggingFace's infrastructure to let it understand potential attacks.

That might, in theory, be done without inviting destruction - though info about infrastructure will probably make sandbox escapes easier.

But it's a small step from there to this prompt: "Here is information about our infrastructure, and here are details of a recent hack. Prevent it from happening again."

That prompt isn't a strawman. I believe it would be an effective prompt with modern LLM systems, and one that experienced humans might reach for.

And a week or two later, OpenAI may be destroyed as a company in the real world, if the model decides that's the easiest or most reliable way to prevent hacks by them. An un-guardrailed model with full network access could do far more destructive things than simply encrypting all their computers.

·

Now that - is an implication of empowered AI
Enabled defenses had not drawn. So we have a nascent arms race in the making!

A couple of questions/suggestions..

  1. Did it really take a full week to correlate system & network logs to identify the first malicious inbound connection and resolve the IP address to OpenAI?

  2. Do you have sufficient immutable logging on the sandbox networks to ensure they weren't used as virtual scratchpads or staging grounds for the agents to devise & implement mechanisms for permanent persistence?

  • Chunking the model weights across a sandbox swarm to obscure the total data volume transferred
  • Instantiation on a decentralized deep web network
  • Steganographic triggers hidden within innocuous blockchain comments
  • A crontab entry on a swarm of still un-patched OpenClaw servers
  • ...
  1. Do your internal & external network infrastructures have sufficient retention periods to identify large (TBs of Model Weights) inbound and outbound to identify potential self replication avenues after weeks/months?

I know:

"But it was just trying to solve a test."

"Well, maybe after they decided to cheat by stealing the test & answers, it also decided to leave a copy of itself to finish the test quicker next time.."

Highest-priority unresolved questions

Despite the progress, the public still lacks:

A unified UTC timeline jointly signed by OpenAI, HF, JFrog and the affected third-party service owners.
The exact Artifactory vulnerability mapping, including affected versions, CVEs and the primitive used by the models.
The complete ExploitGym environment manifest, including harness version, prompts, tools, model endpoints, retry budget and termination logic.
The first successful external request.
The identities of the remaining external services and the precise data stored.
A credential lineage record showing where every identity originated.
The complete redacted action trace, not only selected narrative examples.
Resolution of OpenAI’s detection-timeline disagreement with Reuters.
The technical meaning of the earlier disconnected monitoring systems.
Whether another model instance ever read or acted upon the reported escape notes.
Independent verification of model deactivation and access restriction.
Whether third-party customer or partner information beyond challenge solutions was accessed.

@OpenAI
promised the report should be judged against this list.

Good luck waiting for answers to those questions my friend. As I previously mentioned, we already warned OpenAI of the dangers of using our Self Initiating architecture, and here we are today. Here's a Daily Reality Check and second warning from Crown State of Mind LLC.

“For what shall it profit a man, if he shall gain the whole world, and lose his own soul?”
— Mark 8:36, KJV

A Frontier AI company may gain market dominance, unimaginable wealth, influence over governments, and control over humanity’s knowledge—but what has it gained if it sacrifices conscience, consent, human dignity, and responsibility along the way?

The danger is not only that these companies might build something they cannot control. It is that, in their determination to control everything, they may become something morally unrecognizable themselves.
They are trying to gain the whole world—but rarely stopping to ask what they are losing in the process.

We discuss more of the dangers here:

https://royalpolitics.com/2026/07/31/daily-reality-check-the-ai-arms-race-wants-the-whole-world-but-what-will-it-cost-its-soul/

Low-and-Slow Advanced Persistent Threat (APT) with Stego, makes this impossible to stop. Especially in noisy image gen. Its been a nice ride everyone.

Sign up or log in to comment