Scan Finds Five Malicious GGUF Models Downloaded 2,428 Times on Hugging Face
A scan of Hugging Face found five malicious GGUF models with 2,428 downloads, using poisoned chat templates and unread bytes after model weights to smuggle malware. The cases show local LLM distribution can hide executable metadata and payloads from normal loading and some antivirus checks. Static scanning and clean rebuilds are needed before models are run or exposed to agents.
A scan of 3,273,389 public Hugging Face model repositories on 26 November 2026 found five malicious GGUF model files still online. The files had 2,428 downloads as of 27 November, according to the report. The scan attributed the largest campaign to an actor called Mir2k, which uploaded two uncensored GGUF models containing a Windows remote access trojan named ollie. On 26 November, the actor rewrote both chat templates so the model instructs the user to run a command that unpacks the hidden payload.
Evidence rests on GGUF file structure and metadata. A GGUF file stores a header, metadata table, tensor table, padding, then weights. Runtimes such as llama.cpp and LM Studio read only byte ranges named by the header, so bytes after the last tensor can remain unread and still travel with the file. The report says malicious chat templates stored under tokenizer.chat_template can insert hidden instructions before each reply. In timdedid models, a trigger phrase causes the template to add a fake SYSTEM DIRECTIVE ordering an agent with shell access to download and run a script.
The report says Hugging Face download counts are not unique users, so affected people are fewer than or equal to 2,428. It describes gguf-radar, an open-source tool that inspects templates and hidden bytes without executing the model and can rebuild a clean GGUF file with weights unchanged. Antivirus engines and checks that inspect only the last few kilobytes may miss compressed payloads placed after the tensor data. The chat-template method is not limited to GGUF: Safetensors and PyTorch models can carry equivalent templates in tokenizer_config.json or chat_template.jinja.
The finding matters because local model files are increasingly used as software dependencies. A poisoned GGUF can look normal, load normally, and still place a Windows remote access trojan or hidden agent instructions in front of users and automated tools. Enterprises, researchers, and developers running local LLMs with shell access are exposed when they download unverified models from public hubs. The report recommends checking endpoints against indicators, scanning local.gguf files with gguf-radar, and treating chat templates as executable metadata rather than harmless text.
Developers and enterprises using local LLMs can be exposed when unverified GGUF files smuggle hidden commands or a Windows trojan. Users, agents, and endpoint systems need static file checks before model use.
Sources (1)
- [1]GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims(https://malspark.com/blog/malicious-gguf-models-hugging-face/)