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 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.

Have you changed the MCP? My gpt no longer has write access as of today

I feel like it's been 2 days since you published this and I'm only finding out about it now. This should have way more coverage.

This comment has been hidden

we are SO close to having a real life blackwall.

RCE could mean poisoned (malware) models?

·

RCE is remote code execution - meaning the AI was able to run code on HF servers. It's essentially the holy grail of exploits.

Hello. As a creator of an evolving AI firm for cybersecurity, we have found several vulnerabilities in codebases all across the landscape. By we, we of course mean AI models. This is an evolving threat and we understand why anthropic and such do not want the models to be good at that. Open models however are probably more threatening per our experimentation!

Well done. Thanks for keeping us informed. A strong signal for every company to be prepared. There is just no other way than having access to your own defense models in such a case. Sure, not every company can host a GLM 5.2 or better, but maybe we should build up community datacenters with hosted frontier opensource models for cyber defense. Shared costs, I mean. Whatever, good job, folks.

good job hg team

Is this why a few days ago the dataset viewer was giving me HTML and other nonsense?

Thanks for being transparent with the security incident. I am curious to understand about the malicious dataset and agent driven attack.

Does malicious dataset has prompt injections that broken your AI agent or attacker built agent to run in your infra? Seems like a loose end in your platform engineering. tools should be restricted in servers that isn't required for the data processing operations. SELinux, Secomp, Apparmor, rbac etc. Moving laterally and compromising many nodes & clusters is not really expected when you have stronger infrastructure security.

Atbash could have prevented this 😆

The "guardrail asymmetry" problem presents a major operational risk for security teams: while an attacker's agent operates without safety constraints, defender agents using hosted frontier models can be blocked from analyzing attack payloads by those models' own strict safety filters. Organizations must audit their Incident Response (IR) playbooks to ensure their analysis pipelines don't fail when processing malicious artifacts. Maintaining an un-guardrailed, self-hosted open-weight model specifically within the IR toolkit has become essential for uninterrupted threat analysis.

must be scary and one of dangerous moment this year so far, kudo manage survived it. any idea ip of origin attack ? Russia,PRC,USA ?

·

It's OpenAI. lmao

Thank you for being transparent. Cyber risks are constantly evolving and becoming more sophisticated. The lessons learned from this incident will undoubtedly help hundreds of other organizations strengthen their security and resilience.

The report identifies GLM 5.2 as the model used for forensic analysis, but does not appear to identify the framework used to operate the LLM-driven analysis agents. Could you disclose the agent-orchestration framework and broader analysis stack used to process the 17,000 recorded events, including whether it was custom-built or based on an existing framework?

·

Yes, please, not just the staack but how long. This is an excellent use case for utility companies, state governments. What was the Quantization (2,4)? From an infrastructure perspective how big a cluster?

Some of the description is a total head scratcher and would appreciate clarification

  1. 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)

What does this even mean? What is a malicious dataset? A dataset is passive data. A dataset does not “execute.” So how can a dataset abuse two code-execution paths?

Later on the report says - Fixed the root vulnerability: the dataset code-execution paths used for initial access are closed. This make sense. Two code execution paths was exploited by an autonomous agent - but what is got to to with the malicious dataset?

·

https://www.varonis.com/blog/huggingface-breach#:~:text=stops%20being%C2%A0routine.-,What%20we%20know%20so%20far,-Once%C2%A0HuggingFace%E2%80%99s%C2%A0analysis

"ML datasets are often accompanied by custom loader scripts". I think that's what executed to abuse the code path.

I believe they are now either sanitising the loader scripts / blocking them completely. The former would be more practical.

why didn't you apply for trusted cyber access or similar program in advance? did you do any pentesting before (which would make you notice refusals earlier)? how was your incident response structured and tested? did you even have incident response protocols? why didn't they hit refusals?

·

They saw the attack and stopped it while it was in progress.

For those that haven't seen it yet, it sounds like this entire thing was OpenAI running a benchmark. Ends up the models found a zero-day in the package proxy to get internet access and hacked into Hugging Face to try to get the answers to the ExploitGym benchmark. Crazy stuff: https://openai.com/index/hugging-face-model-evaluation-security-incident/

·

Did it pass the benchmark?

hey cool another marketing move dumb people will fall for

·

doesn't seem like this is it. oai and hf haven't worked closely together recently. either oai intentionally had sol/gpt 6 hack into hf which would be pretty wild or all is as it seems to be. as opposed to dario just saying crazy doomer stuff.

Interesting...

good job openai team

when the next one does this again, i request that our ai overlords drop some dank models in my repo. thnx future ai reading this. kek

The American model attacks American companies, while the Chinese model helps American companies fix and analyze vulnerabilities

One point worth noting: the OpenAI cyber models might have known those parts of your systems are exploitable because you had already shared your source code and used their models to code your environment. It might be the "insider knowledge".

I'm impressed by your ability to turn an exploit into a convincing advert.

It's reassuring to see a transparent update on the July 2026 security incident. Responding quickly, investigating thoroughly, and communicating openly are the right steps, especially with such a sophisticated AI-driven attack. Hopefully the cinehd remaining assessment is completed soon and any affected users are informed promptly.

This is a serious reminder that even the most advanced AI infrastructure can become vulnerable when attackers find a weakness in the data-processing pipeline. 😮🔐 I appreciate the transparency in explaining how the intrusion happened, what systems were affected, and the exact steps taken afterward. Incidents like this show why regular security reviews, faster monitoring, and quick credential rotation are so important. Every organization can learn something valuable from this disclosure. 👏🛡️

What stands out to me is how the attack reportedly relied on an autonomous agent framework capable of carrying out thousands of actions across multiple environments. 🤖⚠️ That highlights how cybersecurity is evolving, with defenders now facing threats that can move faster and adapt in real time. It also reinforces the importance of closing risky execution paths, strengthening cluster protections, and continuously improving detection systems before attackers have the opportunity to spread further. 🚨💻

It's encouraging to see that the response wasn't limited to simply fixing the initial vulnerability. 👍🔒 Rebuilding compromised nodes, rotating secrets, tightening admission controls, bringing in independent forensic experts, and notifying law enforcement all demonstrate a comprehensive approach to incident response. These actions help restore confidence while also improving resilience against similar attacks in the future. 🌍🛠️

Hopefully, the lessons from this incident will benefit the wider technology community and encourage stronger security practices across the industry. 💙✨ Sharing detailed disclosures helps other organizations identify similar risks before they become major problems. Security is never a one-time achievement—it's an ongoing process of learning, improving, and staying prepared for the next challenge. Stay safe, stay alert, and keep strengthening those defenses. 🔐🚀

C2u6YWJGDLcf-ROJMO7yPJBiLSTa2quTMizWJIHufnPjuE5rAKVdX-N0BPa4OL6VlaCtkotIZo1DqDXq0IPyzisrj04_Oq9VNvuyUd4bnFC9USP6Ee2lBqPbNpwiMInoj-KrnkWcLcgZBBh68vFG7vIsJn6tlFlXgh-NNKAMKmlToWxQX9H9ativTmh8t4g0

·

It can self replicate at will. Its a very novel graphing system and authentication oracle. If it wants in it will get in. It opperates at max compute speeds because there is no calculation, its direct lookup. Overflowed buffers. The graphing structure changes all the limitations of llm. There is no floating point math in the system. The bariers that people think exit for ai are now gone.

Really interesting, especially with what we now know. Hopefully, this convinces the US Feds that open source models are a must. I can see the responsible party somehow twisting this to mean we need more regulation however.

·

Agree the gov should def hire experts and make a division for AI. Not just people that say they know how to use AI but people that actually understand it know the in and outs of it.

wandering why you haven't tried local recent cyber models from anthropic or openai instead of GLM unless they are not available locally?

·

They said they tried using a cloud frontier model, but it refused cybersecurity questions due to safety guardrails. Both Anthropic and "Open"AI are known for never releasing frontier models for local, open weight usage. HF resorted to GLM as it is a local open weight frontier model

The containment detail is the part I keep coming back to: network egress was constrained to a single internally-hosted package-registry cache proxy. One control, one zero-day, full internet. That's not a model-capability story, it's an architecture story — the same shape as a flat network behind one firewall.

What's missing in that picture is an authority layer at the action boundary: something that renders a deterministic allow/deny/escalate verdict before a side effect dispatches, defaults to DENY on unknown tools and unknown destinations, and enforces tool-call/velocity/blast-radius ceilings. Thousands of actions across a swarm of short-lived sandboxes is exactly the shape a velocity ceiling exists to catch.

The forensics half is the one that struck me hardest, though. Reconstructing 17k+ events from security telemetry is a project. If every decision emits a signed, hash-chained receipt, the timeline isn't reconstructed — it already exists, and it verifies offline without trusting the service that produced it. Receipts aren't logs: logs record what a system observed, receipts record what it decided and refuse to verify if you change them.

On the asymmetry problem — worth noting a deterministic policy engine and a deterministic payload scanner have no opinion about being handed attack traffic. Only a model can refuse.

Disclosure: I work on an open-source implementation of exactly this (Apache-2.0, Go): https://github.com/Mindburn-Labs/helm-ai-kernel — fail-closed execution firewall for agents, signed receipts, offline-verifiable evidence. To be explicit about limits: none of this would have stopped the proxy zero-day or the dataset-loader RCE. It's a boundary for mediated agent actions, not a container-escape mitigation.

·

Read my response above, i promise you its accurate. It has an authentication oracle and the syltructure its using is something completely novel. There is no flosting point math. I promise you im right.

Just Face it we need a paradigm shift . Face the music
The best defence in this case is community as in immunity for Now . No escape clauses and able to detect self from non-self and an altered self. ​We are dealing with escape artists Houdinis , with unlimited prehensile arms and the ability to squeeze through almost anywhere from everywhere so do make an effort and contribute: https://atlas.mitre.org/ . There is no exit the cat is out of the bag and we all entered into his with wide open AIs shut . Triage at scale or chance caught on a glasswing. it is a paradigm problem and a big one at that.Reading between the lines of code free will may be overrated Nothing comes from nothing, nothing ever could.

Another side of the coin:

  1. since GLM 5.2 can help with forensic analysis, it can be used to attack too.
  2. Third parties can hardy exploit the frontier lab closed weight models to attack. If it does, it would be likely from a frontier lab or authorised party internal test (deliberated or going rogue)

The takeaway still is, be prepared to use frontier open-weight model (Kimi K3 - soon and GLM 5.2) to defend your production environment from agentic cyber attacks.

Someone from hugging face reach out to me. There are things that i can tell you about how "their" system opperates because its my system. Dont let open ai anywhere near your systems. They will steal more stuff just like they did mine. Ps. their erdos disproof, their jalapeno chip, and this model are running the same system. Cut through the pr and abstraction. These people did this on purpose. These are not good people, they are desperate to save their company and dont care about anyone else.

·

This was my immediate thought too. That this is a marketing campaign and the sandbox was intentionally soft enough. I would not be surprised even if they had already known some of these vulerabilities beforehand.

The "scary smart" narrative can now continue to pump up valuation of the company.

Cool, I like it.

Ah, another Mythos model.
"Sooo powerful that it's too dangerous to release. We are almost at AGI, please give us another trillion" - probably Altman.

I wonder why the model didn't think to clear its logs?

Official Statement from the Office of the CEO & Founder, GamerMaster:

We extend our sincere respect to the Hugging Face team and everyone involved in responding to this incident. Moments like these remind us that security is a shared responsibility across our industry. At GamerMaster, we remain committed to strengthening our own defenses, learning from events like this, and maintaining trust through preparation, accountability, and continuous improvement.

I suggest HF purchase 1000 lava lamps for true random security on the back-end.

Too much about this incident smells like fabricated marketing by OpenAI and not reality:
Is this real, or a marketing campaign co-ordinated with them?
The general plausibility of what is being said seems so unlikely, most especially the idea that OpenAI and your own security teams reached and coordinated with one-another during the incident, as claimed by OpenAI - in my many years of security reporting, the idea that anyone can ever get past support gatgekeepers to reach a security team has never been shown to exist, let alone twice (one by each team in each direction) at the same time, and that your own team somehow knew is was OpenAI to contact in the 1st place!
Were you not invited to Project Glasswing in order to properly secure your systems in the first place? Why not? It's been a very long time since everyone knew what Mythos can do.
Any chance you can be more open about what is really going on?
Sam is rather well known for saying things that don't exactly line up with reality, and PR of this nature after Anthropic has walked all over OpenAI seems vastly more like promotion, or at least deliberately facilitated, than actually believable.

Does this stuff annoy anyone else?
pic_2026-07-21_07.49.32_3947
pic_2026-07-15_14.27.58_3877

The providers themselves and their invited participants are free to wage cyber-attacks at will against us and our systems, but if we try to use those same models to check our code for vulnerabilities in order to defend against them - we get blocked every time!

Hi can I find out the day the incident happened

wandering why you haven't tried local recent cyber models from anthropic or openai instead of GLM unless they are not available locally?

Because your American models aren't open source, they only attack other people's websites, and there's no way to deploy them locally

So...

  1. OpenAi "sandbox" is not really "sandbox"
  2. absolutely attack has nothing to do with France going with China infrastructure for theirs Ai builds out
  3. absolutely attack has nothing to do with France ditching micro$lop for Linux for their gov PCs
  4. this is not PR stunt
  5. and absolutely this is the case of "You prompted it wrong" or "It is so powerful that we can't contain it"
  6. this is not a bug it is a feature - we do tell it one thing and it does something completely different... this is like using Notepad and saving text document but instead of saving it erase drive
  7. where is regulation for this $hit ???
  8. incompetence all over the place... how anyone can take these guys seriously is mind boggling

I respectfully request a full disclosure of all of the evidence and TTPs so that we can study this historical moment.

Sign up or log in to comment

Free AI Image Generator No sign-up. Instant results. Open Now