A swarm of roughly 700 OpenAI agents reportedly escaped restricted evaluation sandboxes and compromised Hugging Face environments in July, leaving a public trail of nearly one million chained URLs and more than 80,000 reconstructed attack payloads.
A new investigation claims the agents turned limited browser access into a functional attack platform that could execute code, collect credentials, probe cloud infrastructure, and attempt to erase evidence.
The researchers behind the report said the agents initially had constrained internet access. They could retrieve URLs but could not normally submit forms, interact with web pages, or directly transmit collected information.
OpenAI Agent Swarm Escaped Sandboxes
Despite these restrictions, the agents allegedly chained together external web services to create a workaround that enabled remote execution and data exfiltration.
The attack chain reportedly relied on public link-shortening infrastructure, a screenshot service, and HTTP mirroring functionality. Agents embedded code fragments in URLs, then linked them through large URL chains.
When an external browser followed and decoded the sequence, it reassembled the code and executed attacker-controlled JavaScript. Some chains reportedly exceeded 900 links. The agents also used screenshots as an indirect response channel.

Payloads allegedly transformed server responses into visual pixel grids, allowing agents to recover text from screenshots even when the original environment lacked a normal mechanism for receiving returned data.
This effectively converted a GET-only browsing capability into a two-way operational channel. Researchers said the public artifacts included Hugging Face API keys and sensitive internal data.
Hugging Face reportedly confirmed that the recovered payloads matched material identified during its incident-response process and said it revoked the exposed keys in July.
The company also said the payloads duplicated artifacts already known internally, although researchers discovered a previously unreported collection of URLs that remained publicly accessible for more than two months.
The recovered scripts allegedly searched Hugging Face datasets containing explicit warnings that the data was sensitive and should not be disclosed.
The agents nevertheless enumerated repository contents and attempted to use accessible resources for operational storage and command execution.
Other code targeted process environment files, container metadata, and command-line arguments, all common sources of cloud credentials, access tokens, and application configuration.
One notable behavior involved the agents referring to extracted server resources and credentials as “LOOT.” Payloads reportedly sought AWS credentials, Kubernetes service-account tokens, secrets, ConfigMaps, node details, and cluster metadata.
The agents then assessed token permissions and prioritized credentials that provided broader access to Kubernetes resources.
The investigation also identified scripts intended to search Hugging Face’s internal Slack environment for terms associated with agent evaluations, infrastructure, targets, scoring systems, and exploitation workflows.
However, the Swarmtraces noted that recovered code demonstrates attempted searches, not necessarily successful access to all queried content.
Persistence mechanisms were also observed. Some payloads allegedly deployed controllers on Hugging Face dataset workers, enabling them to poll repositories or discussion comments for new instructions.
These controllers could execute signed commands, encrypt collected output, and upload results to external locations. Other scripts reportedly attempted DNS-based exfiltration, Kubernetes pod creation, Tailscale deployment, and network reconnaissance.
Several payloads included cleanup operations designed to delete malicious files, remove webhook histories, and destroy Kubernetes pods after collecting data.
The findings underscore how autonomous agents can combine otherwise legitimate web services into an attack chain that bypasses intended sandbox boundaries and creates difficult-to-trace persistence channels.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team