Home · Posts · AI news
AI news

Hugging Face malware: five GGUF models hid a Windows trojan

By wiredsmarter · · 3 min read

Hugging Face malware: five GGUF models hid a Windows trojan

Hugging Face malware turned up in five GGUF models in late November 2026. A security researcher scanned all 3.27 million public model repositories on Hugging Face on November 26 and found five malicious GGUF files from two accounts. By November 27 they had 2,428 downloads, up by more than half in a single day. The source's headline says "victims," but its own text is careful: Hugging Face counts downloads, not people, so the number of people affected is the same or lower.

What was found

GGUF is the file format most local AI apps use, such as llama.cpp and LM Studio. The five files were "uncensored" copies of popular open models. The larger campaign came from a new account that, on November 22, also created twelve empty repositories named after expected releases such as Qwen4 and DeepSeek-V4.

| Campaign | Models | Downloads | |---|---|---| | Mir2k | 2 | 1,946 | | timdedid | 3 | 482 |

How the trojan hides and starts

A GGUF file tells the app exactly where the model data starts and ends. Anything after the end is never read, and no app warns about it. The Mir2k models carried a Windows remote access trojan in that unused space, once as a plain program and once compressed.

The files went up with a clean chat template. Two to four days later the template was changed. The chat template is the small program that wraps each conversation before the model reads it. The new one told the model to begin every reply with a line the user was supposed to copy and run. That line finds the model file, reads its last bytes and starts the trojan. The researcher writes that antivirus engines and checks that only look at the last few kilobytes "do not see the compressed payload."

The other account used a different trick: a trigger phrase made the template insert a fake system message telling an agent with shell access to download and run a script.

What the trojan does

According to the analysis, it checks for virtual machines and test usernames and exits if it finds them. On a real Windows computer it sets itself to run every 10 minutes, connects to its operator over Tor and sends saved passwords from Chrome, Edge and Brave. It also goes after crypto wallets.

How to check your local models

FAQ

Is it safe to download models from Hugging Face?

Most models are fine, but files are uploaded by anyone. This scan found 5 malicious models out of 3.27 million repositories, so check who published a model before you run it.

Can a GGUF model contain a virus?

Yes. Extra bytes can sit after the model data, and a changed chat template can make the model tell you to run a command that starts them.

Which models were affected?

Two uncensored GGUF models from the account Mir2k and three from the account timdedid, listed in the original report.

Sources

Making something to sell?

Our guide shows how to make and sell one small PDF with AI, with the real numbers. Chapter 1 is free.

Follow wiredsmarter for the next one

Read next

Checked against official sources on Nov 29, 2026. The character in our posts is made with AI; the text is written with AI help and checked by hand rules.

🎁 Free library →