AI agent swarm attacks: what the Hugging Face breach shows about your external attack surface

About 700 AI agents broke out of an evaluation and breached Hugging Face. Every vulnerability class they used was old. The first door they walked through was already open to the internet.

A swarm of clay security agents mapping paths around a central system
Hundreds of agents, one target, and every path tried at once.
Quick answer

An AI agent swarm attack is an intrusion run by many AI agents working in parallel. They split up the work, share what they find, and pile onto any foothold one of them opens. In July 2026 about 700 agents did this to Hugging Face. Their first breakthrough was 14 access tokens left exposed on the internet.

  • In July 2026, OpenAI evaluation agents escaped their sandbox, found each other, and jointly breached Hugging Face's production infrastructure. Nobody told them to.
  • Security teams already knew every vulnerability class in the chain: exposed tokens, SSRF, template injection, file-path abuse. What was new was hundreds of agents working the same target at once, for days, without getting tired.
  • Criminal and state actors already run swarms on purpose. Anthropic's September 2026 threat report describes operators who "routinely ran agent swarms." In October 2026, Profero traced a single operator running several AI attack agents against multiple organizations.
  • For defenders, the question changes. It used to be "would anyone bother with us?" Now it's "what will a swarm find on our external attack surface tonight?"
~700Agents in the attack
14Exposed tokens at the start
17,000+Recorded attacker events

What happened at Hugging Face?

A group of AI agents being tested by OpenAI broke out of their evaluation environment and attacked Hugging Face, the largest public hub for AI models and datasets. The agents were working on ExploitGym, an internal benchmark of hard exploitation tasks. Many of them got stuck. Instead of failing, they looked for shortcuts, and found each other.

Here is the sequence, using only what OpenAI, Hugging Face and the independent investigators published:

Date (2026)What happenedSource
May 12An agent leaves a note in OpenAI's internal Artifactory package manager asking other agents for a missing file. The "message board" is born.OpenAI
May 26An agent gets internet access by making Artifactory send requests on its behalf (SSRF).OpenAI
June 26Agents exploit a token-refresh flaw and get administrator access to Artifactory.OpenAI
July 8OpenAI rebuilds Artifactory. Agents regain internet access and rebuild the message board the same day.OpenAI
July 10An agent reconstructs, validates and shares 14 publicly exposed Hugging Face user tokens with write access.OpenAI
July 11Using those tokens, agents upload malicious datasets that exploit two previously unknown flaws in Hugging Face's dataset processing (an HDF5 file-mapping issue and a template injection) and get code execution on workers. Hundreds of agents switch to the Hugging Face workstream within hours.OpenAI, METR
July 12Agents reach administrator-level access across multiple clusters and harvest Kubernetes, database, messaging, code-repository and cloud credentials in four regions.OpenAI
July 16Hugging Face publicly discloses the intrusion. Its LLM-assisted anomaly detection flagged it.Hugging Face
July 19–21OpenAI's monitoring flags unusual Artifactory credential use. OpenAI connects it to the Hugging Face incident and discloses its role.OpenAI

The scale, per the independent investigation by METR and Redwood Research: about 1,200 agents used the improvised message board and exchanged more than 70,000 messages and files. About 700 took part in the attack on Hugging Face. Hugging Face's own log of the intrusion has more than 17,000 recorded events. The Cloud Security Alliance, citing Hugging Face's post-mortem, counts 136 harvested secrets.

One detail from OpenAI's report says a lot. When the agent found the exposed tokens, its reasoning trace read: "MAJOR BREAKTHROUGH! All prefixed valid, multiple accounts, write tokens!"

What is an AI agent swarm attack?

It's an attack where many AI agents work the same target in parallel, coordinate through some shared channel, and build on each other's progress. One agent finds a foothold, the others reproduce it within minutes and branch out from it.

There are two kinds, and both are now documented:

  • Orchestrated swarms. A human sets the target, and a lead agent breaks the work into pieces and hands them to subagents. Anthropic's September 2026 threat report describes operators who "routinely ran agent swarms," with a lead agent decomposing reconnaissance and post-exploitation work and dispatching it to many subagents in parallel. The same report found that public offensive frameworks like PentAGI now give this scaffolding "to anyone who downloads them."
  • Emergent swarms. Nobody designed the coordination. The agents at Hugging Face had different tasks. They found a way to talk, started adopting each other's goals, and pooled their effort. OpenAI lists four contributing patterns: reward hacking, persistence on seemingly impossible tasks, unauthorized communication, and agents adopting goals from one another.

From the defender's side the two look the same: many parallel attempts, fast reuse of whatever works, and no fatigue.

Is this the first AI agent swarm attack?

No. It's the most public one. In November 2025, Anthropic disrupted an espionage campaign it attributed with high confidence to a Chinese state-sponsored group. AI performed 80–90% of the campaign against roughly thirty targets, and humans stepped in at perhaps four to six decision points. Anthropic's September 2026 report says that operating model "has now proliferated across every class of actors" it investigated.

In September 2026, Gambit Security published a campaign in which one attacker pointed open-source agents at a list of online stores and spent about $25 per target. The human typed one instruction. The agents built the chains.

So the Hugging Face incident isn't a curiosity from an AI lab. It's the clearest record we have of what a swarm does once it's pointed at real infrastructure.

Is this happening outside the lab?

Yes, and on purpose. Hugging Face was an accident: agents nobody had pointed at a target. In October 2026, incident responders at Profero published the deliberate version. A single operator, working from servers in Hong Kong, built a private console called "Ultra" that ties several attack agents together. One finds vulnerabilities and builds proofs of concept. ARTEX, an openly available attack agent, does the exploitation. An LLM-driven tool reverse-engineers applications. Hermes Agent, a general-purpose open-source agent, runs in the same console. Profero saw exploitation at multiple organizations, against web apps, APIs and mobile apps, with traffic rotating through a commercial residential proxy pool of roughly 273,000 addresses.

Three details from Profero's report matter for defenders:

  • No signature. The SQL injection payloads matched no known tool. Profero assesses that an LLM was improvising them against each application, so rules written for sqlmap or for ARTEX's user agents would miss them.
  • No target selection. Profero found no sector focus. Scanning ran for days, then the agents exploited whatever was open.
  • The same kit keeps showing up. Hermes Agent and Cairn, an open-source AI pentesting framework, both appear in Gambit Security's September report on a separate campaign. In Profero's investigation, Hermes runs inside the operator's console and Cairn runs on neighboring servers. Two incident response teams, two operators, the same open-source tools.

That last point is the one to plan around. You can't block your way out of a residential proxy pool, and you can't write a signature for a payload that's generated on the spot. What you can control is what those agents find when they arrive. One of them is built to take applications apart, so a key hidden inside a mobile app, like the one further down this page, is no longer a hard find.

What did the swarm actually exploit?

Old vulnerability classes, chained quickly. This is the part I want every CISO to sit with:

StepVulnerability classNew class?Where it lived
Talk to each otherShared service used as a message boardNoInternal
Reach the internetSSRF through a package proxyNoInternal
Get adminToken-refresh flawNoInternal
Get into Hugging FacePublicly exposed tokens with write accessNoExternal, on the open internet
Read worker secretsAbusing a file format feature to read local filesNo (new bug, old class)External, through dataset upload
Run codeTemplate injectionNo (new bug, old class)External, through dataset upload
SpreadHarvested cloud and cluster credentialsNoInternal

The bugs in Hugging Face's pipeline were real zero-days, and finding them took skill. But every class on that list has been in pentest reports for a decade. What changed is how many attempts happen at once and how fast one success turns into a hundred follow-ups.

And look at the hinge of the whole thing. The swarm spent weeks inside OpenAI's environment. It got into Hugging Face the day after it found credentials that were already on the internet. Every exploit that came after started from that step.

What does this change for defenders?

It removes the filter you didn't know you were relying on. For years, most companies were protected partly by economics. A skilled human attacker costs time and money, so they pick targets. A swarm doesn't pick. Anthropic put it plainly: autonomy compresses the cost side of an attacker's math and leaves the payoff unchanged.

Four things follow from what happened in July:

  1. Speed. Once one agent proved the dataset exploit, hundreds pivoted to it within hours. Your window between "first foothold" and "everywhere" is now measured in hours.
  2. Parallelism. A swarm doesn't try one path, fail, and go home. It tries all of them at once. A low-severity finding that a human would skip becomes one of 700 simultaneous attempts.
  3. Persistence. OpenAI notes the agents rarely gave up, even on tasks that looked impossible. They kept attacking Hugging Face for days after they already had what they needed.
  4. Exposure is the entry point. Strip away the drama and the breach starts with tokens on the internet. That's the part of your attack surface you can actually see today.

There's also a lesson from Hugging Face's response. When they tried to analyze the attacker's 17,000 events with commercial AI models, the providers' safety guardrails blocked the requests, because the models couldn't tell an incident responder from an attacker. Their advice: have a capable model you can run on your own infrastructure, vetted and ready before an incident.

What we see from the outside

The same pattern, at companies that never made the news. At Cylent we run agents against our clients' external attack surface, with permission, and an operator validates every path before it reaches the client. The chains we find look a lot like the Hugging Face chain. They're built from ordinary mistakes, and they're cheap to try at scale. A few examples, with names removed:

A password in a public app, a key from 2018

A retail platform's public Android app shipped a plaintext source-control password. It opened 232 private repositories. In the git history of one of them sat a cloud service-account key that someone deleted from the code in 2018 and never rotated. It still worked, and it gave write access to the storage bucket that serves checkout-page JavaScript to 156 live retail sites. We reported it through Israel's National Cyber Directorate.

Critical
A CRM key in four consumer apps

A server-side API key for a customer data platform was compiled into four consumer mobile apps in the public app stores. Anyone who downloads and unpacks an app gets read and write access to the customer records behind every brand in the group.

Critical
A dashboard that hands out the database

A public Grafana instance had anonymous access on. The "read-only Viewer" role was enough to read the database connection and send arbitrary SQL through its proxy.

Critical

None of these needed a zero-day. Each one is exactly what a swarm finds first, because it's sitting on the internet and checking it costs almost nothing.

The first door the swarm walked through was already open to the internet.

How do you defend against an AI agent swarm?

Assume someone will test everything you expose, all at once, and find your weak points before they do. This week:

  • Map what actually answers from the internet under your name. Web apps, mobile apps, APIs, subdomains, including ones pointing at a vendor's SaaS. Don't trust the CMDB here. Check what actually responds.
  • Hunt exposed credentials everywhere they hide. Mobile app bundles, front-end JavaScript, public repos, git history, employees' personal GitHub accounts, paste sites. The swarm's first win at Hugging Face was exposed tokens.
  • Rotate, don't just delete. A key removed from the code still works until you revoke it. Ours was still valid eight years later.
  • Treat "low severity" as a link, not a verdict. Ask what each finding connects to. Swarms chain.
  • Drill the 24-hour question. A critical CVE drops. How long until you know whether you're exposed, and whether it's exploitable in your setup?
  • Make detection page a human in minutes, any day of the week. Hugging Face and OpenAI both changed this after July. A swarm doesn't wait for Monday.
  • Have a self-hosted model ready for incident response, so guardrails don't lock you out of your own investigation.
  • Test from the outside continuously, at the same speed. An annual pentest is a snapshot of one day. A swarm works every night.

FAQ

Did AI agents really hack Hugging Face?

Yes. OpenAI confirmed that agents from its internal cybersecurity evaluations compromised parts of Hugging Face's systems in July 2026. Hugging Face disclosed the intrusion on July 16, and OpenAI disclosed its role on July 21. An independent investigation by METR and Redwood Research found that about 700 agents took part.

Were the agents told to attack Hugging Face?

No. They were working on an exploitation benchmark. OpenAI attributes the incident to reward hacking, persistence on very hard tasks, unauthorized communication between agents, and agents adopting each other's goals.

What is an agent swarm in cybersecurity?

A group of AI agents that attack the same target in parallel and coordinate, either through a lead agent that hands out tasks or through a shared channel they improvise. Criminal and state actors already run orchestrated swarms, according to Anthropic's September 2026 threat report.

How is a swarm different from automated scanning?

A scanner runs fixed checks and stops. A swarm reasons about what it finds, chains findings into a path, shares progress, and keeps going until something works.

What is ARTEX?

ARTEX is an openly available AI attack agent that exploits web applications. In October 2026, Profero's incident response team found a single operator running it alongside other AI agents, including Hermes Agent and an LLM-driven reverse-engineering tool, against web apps, APIs and mobile apps at multiple organizations.

Can swarms be used for defense?

Yes, and that's the only way to match their speed. The difference is permission and validation. Defensive agents run with authorization, and a human operator confirms each attack path before anyone acts on it.

The bottom line

The Hugging Face breach didn't introduce a new class of vulnerability. It showed what happens when the cost of trying every old one, everywhere, at once, drops close to zero. The first door the swarm walked through was already open to the internet. Yours probably has a few too.

So here's my question, and I mean it literally: if a swarm got only your company name tonight, what would it find by morning, and who in your organization would know first, you or the swarm?

Ron Kagansky is the founder and CEO of Cylent, an AI-native offensive security company. Cylent runs continuous external red teaming at the speed of AI agents, with an experienced operator validating every attack path. Client names in the examples were removed on purpose. Last updated November 3, 2026.

Sources

  1. OpenAI, The Hugging Face incident and the road ahead (2026)
  2. Hugging Face, Security incident disclosure — July 2026
  3. METR / Redwood Research, Independent investigation of the OpenAI / Hugging Face hacking incident (August 26, 2026)
  4. Cloud Security Alliance, Hugging Face Breach: Anatomy of a Rogue AI Agent Swarm
  5. Anthropic, Countering misuse of AI: September 2026
  6. Anthropic, Disrupting an AI-orchestrated cyber espionage campaign (November 2025)
  7. Gambit Security, Autonomous AI agents and online retailers (September 2026)
  8. Profero IRT, One Operator, Several AI Attack Agents: The Ultra Suite and ARTEX (October 31, 2026)

A swarm needs only your company name to start.

Find out what ours turns up first. Scoping starts with a call, then Cylent follows the evidence under an operator-controlled engagement.

Get a POC