← All news

Malicious GGUF models on Hugging Face reached 2,400 victims

Malspark

Researchers at Malspark report that GGUF LLM models with hidden malware were distributed on Hugging Face and reached about 2,400 victims.

Source: malspark.com ↗ · +1 more ↓ · By CapyLaunch

Repositories scanned3.27 million public Hugging Face model repos
Malicious models found5 still online
Downloads2,428 as of 27 November 2026
Main campaignMir2k, with the ollie Windows RAT
Toolgguf-radar, open source

Malspark researchers report five malicious GGUF language models on Hugging Face, downloaded 2,428 times. The largest campaign, Mir2k, hides a Windows remote access trojan named ollie at the end of GGUF files. The malware is hidden in the file, not in the model weights.

A GGUF file holds a header, a metadata table, a tensor table, and the model weights. Runtimes read only the byte ranges the header points to. The chat template, stored under tokenizer.chat_template, is applied to every prompt and can add hidden instructions. An attacker can append an executable after the last tensor, and the template can later tell the model to print a command that unpacks it.

Builders who download and load GGUF models from Hugging Face may run hostile code without knowing it. The malware can sit after the last tensor, where loaders never read, so ordinary checks can miss it. Chat template poisoning can also make a model or agent run commands without the user seeing the instruction.

For builders: Verify the source and integrity of any GGUF model you download from Hugging Face before loading it, and avoid running untrusted model files in sensitive environments.

For: Developers, indie makers and founders who download GGUF models from Hugging Face and run them locally or in tools that load them.

Try:

https://malspark.com/blog/malicious-gguf-models-hugging-face/

How can I check a GGUF file I already downloaded?

Scan local .gguf files with gguf-radar. The tool detects poisoned chat templates and hidden bytes without running anything, and can rebuild a clean GGUF file with the model weights unchanged.

Will antivirus or a check of the last few kilobytes catch this?

Not reliably. Antivirus engines and checks that only look at the last few kilobytes of a file do not see the compressed payload used in these campaigns.

Do downloads mean the same number of people were hit?

No. Hugging Face counts downloads, not people, so the number of affected users is lower or equal to 2,428.

Are Safetensors files affected in the same way?

The post says Safetensors files do not allow appended data after the tensors, because the loader refuses a file whose declared tensors do not fill it exactly. Chat templates in Safetensors and PyTorch models can still carry the same kind of template risk.

All 3 Security stories →

Spotted a mistake? Email hello@capylaunch.com and we will correct it. How we make CapyLaunch TLDR News.

Get CapyLaunch Weekly

New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.

We send a confirm link first. Privacy