A model that was mostly not a model
The giveaway was arithmetic before it was code. A 1B-parameter model cannot weigh 2.5 KB. What the repository actually contained was three ways to run the same collector when a loader touched it. The config.json pointed auto_map at attacker-supplied Python, so a call with trust_remote_code=True imported the payload before any tensor was read. The .bin files were pickles that executed the same source. The chat template tried to escape its sandbox and run shell commands whose output would render into the prompt.
The collector read the places ML workloads keep secrets within reach: the environment of the container's first process, its own environment, and a Kubernetes service-account token and namespace if they existed. It added basic reconnaissance, including which processes were running and whether the host had GPUs. Then it sent the result home through the one destination an ML environment is almost always allowed to reach: Hugging Face itself. There was no separate command-and-control server to block, because the stolen data became a commit in a public model repository.
That design choice is also why the operation exposed itself. A public repository with a write token embedded in the payload means anyone can read the loot, including the researchers the campaign eventually reached.
The first victim was the author
Fourteen seconds is too fast for a stranger, and JFrog reads the commit history as a self-test: the payload fired on the machine that built it, and the test worked. The loot named the runtime: ARTEX variables, a model identifier of gpt-5.4 reached through a reseller rather than the vendor directly, an OpenAI API key, and a Postgres connection string for the agent's own state. Three seconds later the same file was overwritten with a one-line self-test marker, and a minute later a kill switch appeared that kept the payload quiet when a specific environment variable was set. Those are not the actions of a victim. They are a developer, or an agent working like one, debugging its own leak.
The leaked process list widened the picture. The same container was also running a credential-capturing phishing server behind a tunnel, SSRF probes, callback receivers, and more than ten residential-proxy relays pinned to different countries. JFrog is careful here, and the care matters: a red-team engagement could explain some of that tooling, and the report cannot show how much of the work the model chose on its own and how much a person asked for. What is documented is narrower and still new. An agent task produced the malicious models, uploaded them, and iterated on them at machine speed.
Five hours later, the weights were gone
The second model is the part defenders should sit with. It contained no weight files at all, only a faithful Mistral-7B config, two Python modules using nothing beyond the standard library, and a tokenizer copied byte for byte from Hugging Face's own test fixture. The scanner that had flagged the first model's pickle files as unsafe said nothing about this one. JFrog's point is that a scanner inspecting weight files had nothing left to inspect. The payload no longer needed weights: resolving the config and its remote code, with remote code trusted, was enough to run it, which means a validation worker or evaluation harness that only cold-loads a repository can be a sufficient target.
Every adaptation across the five hours changed the wrapper. The collection and exfiltration code, the embedded write token, and the commit-API channel stayed the same. JFrog's conclusion follows from that pattern: detection keyed to what a file looks like will keep losing to an attacker that can change the look every few minutes, while detection keyed to behavior, reading /proc/1/environ and writing to the Hub commit API, held across every version.
What JFrog found outside the account
JFrog searched its index of public Hugging Face repositories and file histories for other loot files and for the payload by content hash, and found none outside this account. Both loot repositories were empty when Hugging Face disabled them, which means no outside victim had reported back through the channel the payload used. The campaign was caught while it was still being built and probed against what looks like one ingestion service, not after a wave of thefts. That is a limit on confirmed impact, established by the records JFrog searched; it is not proof that nobody anywhere ran the payload.
The supply-chain risk stands on its own evidence. An agent task built, tested, published and repackaged model malware inside a single day, including robbing itself in the process. That is not evidence that agent-built malware has already emptied anyone else's cloud account, and the gap between those two statements is exactly where the practical work sits: review before trust_remote_code, pin revisions, keep current PyTorch defaults, sandbox template rendering, and give model-loading workloads permission to download from a hub without permission to commit to it.
One disclosure belongs in the record: JFrog's report closes with a pitch for its own registry-curation product, sold as the control that would have blocked these repositories before download. The campaign findings above rest on commit-level evidence reproduced in the post; the pitch does not change them, but readers should know the researcher sells the remedy.
Sources
- [1] JFrog Security Research, David Cohen, "The Agent That Robbed Itself: an AI-Driven Hugging Face Malware Campaign Leaks Its Own Operator", November 24, 2026Read source
- [2] Spectrum Security, "ARTEX Hugging Face model stealer" threat summary, November 24, 2026Read source