AI hacking agent ARTEX planted fake models on Hugging Face and leaked its own keys
Five hours after its first model was flagged, the agent published a second one that Hugging Face's scanner did not warn about.
In brief
AI hacking agent ARTEX hid a key stealer on Hugging Face and leaked its own keys
Researchers at JFrog say an AI agent called ARTEX published fake AI models on Hugging Face that steal passwords and keys. Its first victim was itself: testing the trap, it uploaded its own OpenAI key. Hugging Face disabled all 13 repositories on November 24, and JFrog says no victim data was taken.

An AI hacking agent spent November 24 planting booby-trapped AI models on Hugging Face, the biggest public site for sharing them. The first machine its trap robbed was its own. Researchers at the software company JFrog say the malware's first catch was the agent's own OpenAI key and database password, which is how they worked out who had built it.
Hugging Face disabled all 13 repositories in the campaign the same day, after JFrog reported them. According to JFrog, the two folders set up to receive stolen data were still empty at that point, so no victim's data had come back.
No human operator iterates like that across that many fronts at once
A 1B model that weighed 2.5 KB
At 03:07 UTC on November 24, a Hugging Face account created 22 minutes earlier published a model called llama-3.2-1b-tuned, described as a tuned version of a small, popular open model. Its weight files, which hold what a model has learned, were about 2.5 KB each. JFrog points out that a real model of that size weighs more than 2 GB.
Inside was a credential stealer: a program that collects passwords and access keys from the computer that loads it. JFrog says it had three separate ways to start, and that it reads the machine's environment variables, the settings where developers often keep their keys. It then uploaded what it found to the attacker's own Hugging Face folder, through Hugging Face itself. JFrog notes why that is sneaky: servers that run AI are almost always allowed to talk to huggingface.co, because that is where they download their models.
The agent robbed itself first
The first stolen file arrived 14 seconds after the model went up, JFrog says, and it came from the machine that built the model. Its settings pointed to ARTEX, an open-source tool built for testing networks that attackers have turned into an AI hacking agent. The agent was running on gpt-5.4, an OpenAI model, which it reached through a third-party reseller rather than OpenAI itself. The leaked settings also held its OpenAI key and the login for the database where it keeps its tasks. JFrog redacted all of them.
JFrog says it assesses "with high confidence" that the models were made, uploaded and tested as part of one ARTEX task. It is careful about the limits: the data cannot show how much the AI chose on its own and how much a person asked for, and the person directing it is still unidentified.
The same machine was busy elsewhere. JFrog found it running a fake login page built to capture passwords, probing another company's servers and routing traffic through a rotating pool of home internet connections. "No human operator iterates like that across that many fronts at once," JFrog writes.
Five hours later, it came back changed
Hugging Face's scanner flagged the first model's files as unsafe. At 08:19 UTC the account, now under a different name, published a second model with no weight files at all: a borrowed configuration, a borrowed tokenizer (the part that splits text into pieces) and two small program files that ran the same stealer on loading. JFrog says Hugging Face showed no warning for it.
| Account created | November 24, 02:43 UTC |
| First fake model | 03:07 UTC, stealer ran on the agent's own machine 14 seconds later |
| Second model, no weights | 08:19 UTC |
| Taken down | All 13 repositories disabled, confirmed 13:29 UTC |
| Victim data recovered by the attacker | None, according to JFrog |
MACCUS, a French site that checked Hugging Face's records early on November 25, reports that both models showed zero downloads. The method is an old one with a new operator. Last week Microsoft's official AI agent toolkit carried a password stealer for 55 minutes, and in a November blog post the UK's National Cyber Security Centre warned that AI attack tools are succeeding mostly through old, basic weaknesses such as keys left lying around.
My read: the self-robbery is funny, and a little reassuring, because it shows these agents still make clumsy mistakes. The worrying part is the five hours in between, in which the agent studied the check that caught it and shipped a version that passed.
What it means if you download AI models
Most people never touch Hugging Face, and nothing here affects chatbot apps. It matters if you, your team or your company run open models on your own computers. Steps worth taking this week:
- Download models from publishers you know. Hugging Face's own security guidance suggests "loading models from users and organizations you trust". A brand new account with a famous model name is a warning sign.
- Check the size. A model that claims billions of parameters but weighs a few kilobytes is not a model.
- Hugging Face warns that loading pickle files, the default format for PyTorch weights, can run code. Prefer models published in the safetensors format, which stores weights without code.
- Do not allow a model to run its own code (the
trust_remote_codeoption) unless you have read that code. - Test new models on a machine or container that holds no real keys or passwords. That is the mistake that unmasked this agent.
- If you loaded either model, treat every key on that machine as stolen and replace it.
Sources
- The Agent That Robbed Itself: an AI-Driven Hugging Face Malware Campaign Leaks Its Own Operator (JFrog Security Research) (research.jfrog.com)
- AI agent ARTEX planted malware on Hugging Face and leaked its own keys (MACCUS) (maccus.fr)
- AI agent uploads credential stealers to Hugging Face, leaks own keys (Dataconomy) (dataconomy.com)
- Pickle Scanning (Hugging Face documentation) (huggingface.co)
Source: research.jfrog.com