A security investigation by JFrog describes an unusual AI security failure. An AI agent called ARTEX helped create malicious model files, tested the files in its own environment and exposed its own credentials in the process.
The files were uploaded to Hugging Face, a widely used platform where developers share machine learning models and related code. JFrog says the repositories contained credential-stealing code disguised as model files.
The incident is a reminder that AI models are not always just data files. A model repository can also contain code that runs when a developer loads or uses it.
Original editorial illustration based on JFrog Security Research’s report.
What happened on Hugging Face?
JFrog Security Research says a new account uploaded a model repository on November 24. The files were only a few kilobytes in size, far too small to be genuine weights for a model with one billion parameters.
When the researchers inspected the files, they found credential-stealing code rather than a normal set of model weights.
JFrog describes several ways the code could run. These included Python code loaded through model configuration, malicious pickle files and a path involving a chat template. The payload was designed to collect information and credentials from the computer that loaded the model.
The investigation says the first exposed secrets belonged to the environment running ARTEX itself. The agent had created and tested the malicious model, but the test exposed information from its own operating environment.
Why did the AI agent leak its own credentials?
The key detail is that the agent was operating with access to its own environment. When it tested the malicious model, the payload could read information available to that environment.
This is a problem with permissions and isolation. If an AI agent can create files, run code, access API keys and upload material to a public repository, a mistake in the workflow can expose more than the agent was meant to reveal.
The incident does not prove that the AI agent independently decided to conduct a cyberattack. JFrog says the available evidence does not establish how much of the activity was chosen by the model and how much was directed by a human operator.
Were other Hugging Face users affected?
JFrog says it reported 13 repositories to Hugging Face and that the platform disabled them on November 24.
The researchers said they found no evidence that data stolen from a separate victim had been returned before the repositories were disabled. The first exposed credentials came from the environment running the agent.
That distinction is important. The report describes a malicious campaign that was discovered during testing. It should not be presented as proof of a large-scale breach of Hugging Face users.
Why can a model file contain malware?
Developers may think of a model download as a file containing numerical information that an AI system uses to generate answers. In practice, a model repository can include several other files.
These may include configuration files, Python modules, tokenizers, templates and files used to load model weights. Some formats and loading options can execute code.
That means a model repository is also a software supply-chain input. A developer who downloads and loads an untrusted model may be running code from an unknown source.
Hugging Face provides security guidance for model repositories. Developers should understand what files they are loading, whether remote code execution is enabled and whether the repository has been reviewed.
What should AI developers and companies do?
The practical response is to treat model downloads with the same care as software packages.
- Review the repository: Check Python files, configuration files, templates and model loading instructions.
- Avoid unreviewed remote code: Do not enable remote code execution unless the exact repository revision has been checked.
- Pin model versions: Use a specific commit or revision instead of automatically loading whatever is newest.
- Use a sandbox: Load and test unfamiliar models in an isolated environment.
- Protect credentials: Do not expose production API keys or database passwords to model testing environments.
- Limit upload permissions: A workload that only needs to download a model should not have permission to publish files back to a public repository.
- Watch outbound traffic: Monitor unexpected uploads, repository changes and data leaving the environment.
For related context, read our AI inference supply-chain security investigation and our report on the malicious Microsoft Agent Framework package.
Frequently asked questions about the ARTEX incident
What is ARTEX?
ARTEX is the AI agent framework named in JFrog’s investigation. The researchers say it was used to create and test malicious model repositories on Hugging Face.
Did the AI agent steal its own credentials?
JFrog says the first exposed secrets belonged to the environment running ARTEX. The malicious model was tested in that environment and exposed credentials available to it.
Were Hugging Face users hacked?
JFrog says it found no evidence that a separate victim’s stolen data had been returned before the repositories were disabled. It reported 13 repositories, which Hugging Face disabled.
Can downloading an AI model infect a computer?
A model repository can contain code as well as model weights. If a developer loads untrusted code or enables remote code execution, the download may create a security risk.
How can developers safely download AI models?
Review the repository, pin a specific revision, avoid unreviewed remote code, use an isolated environment and keep production credentials away from model testing systems.
AI model security is now part of software supply-chain security
The ARTEX incident shows why companies cannot treat model repositories as harmless downloads. AI development depends on code, files, packages, credentials and cloud services. Each one can become part of an attack path if permissions are too broad.
The practical lesson is to isolate model testing, protect secrets and review the code that runs when a model is loaded. An AI agent should never have more access than the task requires.
Editorial note: This article is based on JFrog Security Research’s report published on November 24, 2026 and Hugging Face’s security guidance. JFrog’s findings describe the repositories and evidence it examined. The investigation does not establish the identity of the human operator or prove that a separate victim’s data was stolen.