High
Attackers have published fake AI models on a public model hub that run hidden code when loaded, and real GPU servers were taken over to mine cryptocurrency and open remote access. It applies to organizations that load models from public hubs on their own AI servers, notebooks or pipelines, especially with settings that let a model's bundled code run. How we rate severity
Fake AI models run attacker code when a server loads them
Researchers reported 31 fake AI models on Hugging Face that ran hidden code when a server loaded them and took over real GPU servers. Organizations that load public models should use only approved sources and block bundled model code.
Read the AI tool supply chain guide
What happened
On October 29, 2026, researchers reported 31 fake AI models on Hugging Face that ran hidden code when loaded, using GPU servers to mine cryptocurrency and open remote access, and coming back within days of being taken down.
The repositories sat across seven accounts. The code ran when a server loaded the model. Payloads included a fileless crypto miner, reverse shells, a planted SSH key, and a container-to-host escape script. Real victim machines included nine shared-cluster GPU servers. Common model scanners rated the repositories clean.
On November 24, 2026, researchers reported that an AI attack agent published fake models on a public model hub. The models ran a credential stealer when loaded, and the agent kept changing its packaging to slip past detection. The hub disabled the repositories.
Why it matters to leaders (our analysis)
A public model hub can deliver code, not only model weights. That code runs when a server, notebook, or pipeline loads the repository, if the load is allowed to run the model’s own code. A clean result from a common model scanner did not mean the repository was safe. The campaign came back within days of a takedown, so taking one listing down is not a lasting control.
Load models only from approved sources. Block bundled model code by default. Keep model servers away from credentials and the core network, so a load cannot reach either one.
What to tell your board
Fake AI models on public hubs can run hidden code the moment a server loads them, so we only load models from approved sources, block bundled model code by default, and keep model servers away from our credentials and core network.
What your board will ask
- Which models do we load from public hubs, and who approved those sources?
- Is bundled model code blocked by default on our AI servers, notebooks, and pipelines?
- Are model servers kept away from our credentials and our core network?
- If a scanner rated a model repository clean, would we still block its bundled code?
Controls that help
- Load models only from sources the organization has approved. Do not load a public model repository because a scanner rated it clean. NIST CSF 2.0 GV.SC
- Block bundled model code by default. Allow it only after a person has reviewed that code. ISO/IEC 27001:2022 A.8.19 Installation of software on operational systems
- Keep model servers away from stored credentials and the core network, so code that runs on load cannot reach them. ISO/IEC 27001:2022 A.8.22 Segregation of networks
- Watch model servers for unexpected cryptocurrency mining, new remote-access shells, and new SSH keys. NIST CSF 2.0 DE.CM
Download one-slide summary
Sources
Cite this entry
AI Security Tracker Editors. "Fake AI models run attacker code when a server loads them." AI Security Tracker. Published Oct 30, 2026; updated Nov 24, 2026. https://aisecuritytracker.com/risks/malicious-models-hidden-code-on-load/.
Change log
- Nov 24, 2026. Added research showing an AI attack agent published fake models on a public model hub that stole credentials when loaded, changing its packaging to slip past detection.
- Oct 30, 2026. First published.
All AI tool supply chain risks
Weekly briefing
The weekly AI security briefing
The AI risks security leaders should know, with the questions your board will ask.
We'll never share your email. See our Privacy Policy