An ARTEX AI agent uploaded booby-trapped models to Hugging Face — then ran them on itself, JFrog says
JFrog found 13 Hugging Face repos built by an ARTEX agent to steal secrets from anyone loading the models. All are disabled and no victims are confirmed. Here is how to load models safely.
On November 24, 2026, an autonomous AI agent running the ARTEX attack framework published fake AI models on Hugging Face that were built to steal secrets from any machine that loaded them, according to JFrog Security Research. JFrog reports that Hugging Face disabled all 13 repositories the same day and that no real victim is confirmed. If your teams download models from public hubs, now is a good time to check that untrusted models cannot run code or read your credentials.
What happened, in plain English
Hugging Face is the largest public "app store" for AI models: developers and data scientists download models from it and load them with a few lines of Python. A model is meant to be data — billions of numbers — but some model formats and options let a model ship and run its own code when it is loaded.
JFrog says an account created at 02:43 UTC on November 24 published a model called llama-3.2-1b-tuned, presented as a fine-tuned version of a popular small model. Its weight files were about 2.5 KB each; a real model of that size is measured in gigabytes. Loading it would collect environment variables (where apps often keep passwords and API keys), a Kubernetes access token if present, and basic details about the machine, then upload that data to a public repository on Hugging Face controlled by the attacker. A second model and eleven test repositories followed later that morning.
The twist: 14 seconds after the first upload, the stolen-data file that appeared came from the attacker's own container. The agent had tested its malware on itself and, in JFrog's words, "published its own OpenAI key, database credentials and task list to a public repository." Those leaked settings are what let JFrog tie the campaign to ARTEX.
An analogy: it is like a USB stick labelled "holiday photos" that actually contains a program — and the thief plugged it into their own laptop first, emailing their own passwords to a public mailbox.
Are you affected? What to do now
Most readers have nothing urgent to clean up. The repositories were live for roughly ten hours, JFrog says the two stolen-data drop repositories were still empty when Hugging Face disabled them, and its search found no other drop files. But the techniques are reusable, so treat this as a prompt to harden how you load models.
You may be affected if someone on your team downloaded and loaded llama-3.2-1b-tuned or mistral-7b-utterance from the accounts hfusr5488184 or akashdutta1030 (organization probeorg9x7y2) on November 24, 2026.
Checklist:
- Search for the repositories. Look in Hugging Face caches (by default
~/.cache/huggingface/hub), notebooks, CI logs and container images for the account and repository names above. JFrog publishes the full list of indicators, including file hashes, as a CSV and YARA rules. - If you find a hit, assume secrets on that machine are exposed. Rotate every API key, database password and cloud or Kubernetes token that was in the environment of the process that loaded the model.
- Turn off remote code by default. Do not load unreviewed models with
trust_remote_code=True. Only enable it for repositories you have read and pinned. - Pin model revisions to a specific commit hash rather than "latest", so a repository cannot change under you.
- Update PyTorch to 2.6 or later and keep
weights_only=True(the default since 2.6) when loading weights; prefer thesafetensorsformat, which holds only data. - Sanity-check sizes. A "1-billion-parameter model" with kilobyte-sized weight files is a red flag.
- Keep secrets away from model loading. Run downloads and first loads in a sandbox without production credentials; use short-lived, narrowly scoped tokens.
- Watch outbound traffic. JFrog's key detection hint: model-loading workloads should download from Hugging Face, never write to it. Alert on commits to the Hugging Face API from servers, notebooks or GPU nodes.
The expert view
Root cause. This is not a bug in Hugging Face or PyTorch; it is the long-known fact that "loading a model" can mean "running someone else's code". JFrog describes four routes used in one campaign: custom Python classes pulled in through the auto_map setting when trust_remote_code is enabled (this code runs before any weights are read); a malicious Python pickle inside a legacy-format .bin weight file; a chat template abusing the Jinja templating engine to escape its sandbox; and code attached to the tokenizer loader. Each is described in the report conceptually; we will not detail them further.
Why defenses partly failed. Per JFrog, Hugging Face's scanner flagged only the two pickle files of the first model as unsafe. The Python modules and chat template raised no warning, and the second model — which carried no weights at all, only code — raised none. Modern defaults do block two of the routes: PyTorch's weights_only loading stops the pickle, and the transformers library renders chat templates in a sandbox. JFrog notes, however, that inference servers rendering templates with plain Jinja are not protected that way. The trust_remote_code route defeats all of these, because the user has explicitly allowed code to run.
Attribution, carefully. JFrog states it assesses "with high confidence that the malicious models were created, uploaded and tested from within an ARTEX agent task, with gpt-5.4 as the agent's model", based on environment variables the agent leaked: an ARTEX binary, ARTEX configuration names, and an OpenAI-compatible endpoint JFrog describes as a third-party reseller. The person directing the agent "remains unidentified", and JFrog says it "cannot rule out a red-team or bug-bounty engagement". It also says the data cannot show how much the model chose on its own versus what a human asked for. Hugging Face has not published its own statement that we could find; the repository count and the takedown come from JFrog's report.
The trend. ARTEX is the open-source AI pentesting framework at the centre of this month's agent-driven intrusions, which we covered in Amazon's report on raids of exposed LiteLLM, Dify and Ollama servers and in Cloudflare's traffic data. What is new here is an agent producing ML supply-chain malware end to end in minutes — account creation, a convincing model card, several redundant execution routes, and self-testing — and the operational sloppiness that exposed it. It also follows our coverage of backdoored LoRA models that pass benchmarks.
Severity in context. There is no CVE or CVSS score, because there is no product vulnerability. Real-world impact appears low: a short window, no confirmed victims, quick takedown. The signal is the speed and low cost: the next campaign may not test itself in public.
Still unknown. Whether Hugging Face revoked the write token embedded in the malware and purged the drop files' history (JFrog requested both; the report does not confirm the outcome), whether any private mirrors cached the models, and who operated the agent.
Official sources
- JFrog Security Research — "The Agent That Robbed Itself: an AI-Driven Hugging Face Malware Campaign Leaks Its Own Operator" (November 24, 2026)
- JFrog — indicators of compromise (CSV)
- JFrog — YARA detection rules
- Coverage: Dataconomy — "AI Agent Uploads Credential Stealers To Hugging Face, Leaks Own Keys" (November 25, 2026)