Five Poisoned GGUF Models Found on Hugging Face, One Hides a Windows Trojan
Researchers found five poisoned GGUF models among the 3.27 million models on Hugging Face. They were downloaded 2,428 times in total, and the weights of one of them hide a remote access trojan (RAT) for Windows. A GGUF file stores service data alongside the weights, such as the chat template, so check the chat template and the repository author before downloading a random quantization.
AI-processed from X: @KrakowiakK; edited by Hamidun News
Downloading a quantized version of a fresh model from Hugging Face and running it locally is routine for anyone who runs LLMs on a laptop or server. Most people never assume a model file can contain anything but numbers. New findings change that: among 3.27 million models on Hugging Face, researchers found five poisoned files in GGUF format. They were downloaded 2,428 times in total, and the weights of one model hide a remote access trojan (RAT) targeting Windows. The finding was reported in a Sunday digest by the author of the @KrakowiakK channel, who also gave the main practical advice: if you pull random quants from the hub, check the chat template before downloading.
Why GGUF Was Considered Safe
The GGUF format was created for llama.cpp and its ecosystem. A single file holds the model weights and metadata. The main source of concern used to be PyTorch pickle files, which could execute arbitrary code when opened. GGUF was designed as "just data," so many people came to believe it could be handled without caution.
But the metadata holds more than architecture and context length. It also contains the chat template, a set of rules that tells the software how to turn your conversation into a string for the model. These templates are usually written in a templating language, which makes them a small program rather than a plain number. That is why the author of the post recommends inspecting it first. The digest does not disclose what mechanism the authors of these five files used, and it is best not to speculate about details.
Scale: Small, but Unpleasant
Five files out of 3.27 million is about 0.00015% of the catalog. For Hugging Face as a whole, that figure is microscopic. But 2,428 downloads mean real people who ran someone else's file on their machines. For an attacker, those numbers are a good result: no mass mailing is needed, only a nicely named repository, such as "Q4_K_M from an enthusiast," with a promise of speedups or removed censorship.
The most unpleasant detail is the Windows RAT. A remote access trojan gives an attacker control of the computer: files, passwords, API keys, browser sessions. Developers who run local models often keep cloud service tokens and access to work repositories on the same machine.
What to Do in Practice
The concrete steps require no special tools.
- Take quants from authors with a track record: official organizations, well-known quantizers, repositories with many downloads and active discussion.
- Before downloading, open the GGUF metadata and read the chat template. It should contain nothing beyond role markup and service tokens; any system function calls, links, or strangely long inserts are a reason to stop.
- Compare the template against the original template of the source model. If a quant differs without explanation, that is a red flag.
- Run unfamiliar files in an isolated environment: a virtual machine or a container without access to your home directory, keys, and work projects.
- Verify checksums against those published by the author of the original model or a trusted quantizer.
- Do not keep cloud tokens and SSH keys on the same machine where you experiment with other people's weights.
The Limits of What We Know
It is important to assess what is known soberly. The digest contains no repository names, no description of how the malicious code was triggered, and no data on whether anyone was affected. The details will most likely be published by the researchers who found the models, and the picture can then be refined. For now, one clear conclusion follows from the facts: local models are no longer a harmless toy. Downloading a model is like downloading a program, and it should be treated the same way: verify the source, isolate it, and do not trust attractive names.
For teams building internal assistants on open models, this is also a reason to adopt a simple rule: an approved list of weight sources and mandatory metadata inspection before any file reaches work machines.
- Nov 29, 2026Sber Releases Open-Source Kandinsky ImageSR 2.0 Upscaler: 2K to 8K in 19.5 Seconds on H100
- Nov 29, 2026Malicious Launch Commands Hidden in Chat Templates of GGUF Models
- Nov 28, 2026Five GGUF Models on Hugging Face Found Hiding Malware: 2,400+ Downloads
- Nov 28, 2026Five GGUF Models on Hugging Face Hid a Trojan, About 2,400 Downloads
Key Questions Answered
Why GGUF Was Considered Safe?
The GGUF format was created for llama.cpp and its ecosystem. A single file holds the model weights and metadata. The main source of concern used to be PyTorch pickle files, which could execute arbitrary code when opened. GGUF was designed as "just data," so many people came to believe it could be handled without caution. But the metadata holds more than architecture and context length.
What are the key details on Scale: Small, but Unpleasant?
Five files out of 3.27 million is about 0.00015% of the catalog. For Hugging Face as a whole, that figure is microscopic. But 2,428 downloads mean real people who ran someone else's file on their machines. For an attacker, those numbers are a good result: no mass mailing is needed, only a nicely named repository, such as "Q4_K_M from an enthusiast," with a promise of speedups or removed censorship. The most unpleasant detail is the Windows RAT.
What to Do in Practice?
The concrete steps require no special tools. Take quants from authors with a track record: official organizations, well-known quantizers, repositories with many downloads and active discussion. Before downloading, open the GGUF metadata and read the chat template. It should contain nothing beyond role markup and service tokens; any system function calls, links, or strangely long inserts are a reason to stop. Compare the template against the original template of the source model.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
