# Hugging Face Hosts Malicious GGUF Models That Trick Users Into Running Hidden Malware

Original title: GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims

> Hacker News story 50676752 · language: en · submitted 2026-11-28
> Web version: https://zeli.app/story/50676752
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 251 · by [homarp](<https://news.ycombinator.com/user?id=homarp>) · 💬 82
[original](<https://malspark.com/blog/malicious-gguf-models-hugging-face/>) · [HN discussion](<https://news.ycombinator.com/item?id=50676752>)

## Summary

A scan of all 3.27 million public Hugging Face model repositories found five malicious GGUF models with 2,428 downloads. Two actors hid Windows malware inside the model files and used poisoned chat templates to coax users into running it. The Mir2k campaign planted an executable after the last tensor, then switched on the trigger days later, unpacking the ollie remote-access trojan. The open-source gguf-radar tool detects these templates and hidden bytes without executing anything.

## Key quote

> The hidden program is uploaded first and the template is changed two to four days later. The victim never downloads anything except the model itself.

## HN discussion (82 comments)

### [kodoman](<https://news.ycombinator.com/item?id=50679959>)

> Glad I have a stupidly paranoid setup for llama-cpp where I run it in a vm only able to be connected to. not that this is the only possible issues and stuff like malicious models quantized models (IE models that are secretly trained to do something malicious but posed as a simple quantization) is another issue people sleep on. I think securing agents is a nightmare, but those who think about them will be ahead.

### [msdz](<https://news.ycombinator.com/item?id=50677001>)

> Downloading and executing gigabyte-sized blobs would’ve been unthinkable in the past. Combine that with the size/popularity of a centralized, “trusted” (even thought it’s really not, it’s just user uploads after all) platform for distribution and it was only a matter of time until this would be exploited.

### [mrob](<https://news.ycombinator.com/item?id=50678813>)

> IMO, any system that was exploited by this was already insecure. It's not exploiting bugs in the inference engine or attempting any kind of sandbox escape. Here the exploit was in the chat template, but it's possible to encode the same thing directly in the weights. Unless the model is truly Open Source (not just open weight), there's no way to know what malicious instructions might be encoded in the weights. The only defense is to sandbox the agent sufficiently strongly that it can't do harm no matter what tokens it generates. In such a sandbox, it doesn't matter that the payload was stored directly in the GGUF file, because it won't be able to do anything with it anyway.

### [googaar](<https://news.ycombinator.com/item?id=50679947>)

> I try to use vetted uploaders like unsloth. I should start compiling the GGUFs myself.

### [catlifeonmars](<https://news.ycombinator.com/item?id=50679818>)

> Is my understanding correct that the malware was entirely in a metadata file that injected hidden prompts rather than the model weights being poisoned in some way? I assume this is way cheaper to execute. On the surface it also seems way cheaper to catch. Is it less detectable than e.g. poisoning a models weights or am I missing something here?

---

## Cite

- Page: https://zeli.app/story/50676752
- Date: 2026-11-28
- Source: malspark.com (https://malspark.com/blog/malicious-gguf-models-hugging-face/)
- Hacker News: https://news.ycombinator.com/item?id=50676752

## Other languages

- zh: https://zeli.app/zh/story/50676752 · markdown: https://zeli.app/zh/story/50676752.md
- ja: https://zeli.app/ja/story/50676752 · markdown: https://zeli.app/ja/story/50676752.md
- ko: https://zeli.app/ko/story/50676752 · markdown: https://zeli.app/ko/story/50676752.md
- de: https://zeli.app/de/story/50676752 · markdown: https://zeli.app/de/story/50676752.md
- es: https://zeli.app/es/story/50676752 · markdown: https://zeli.app/es/story/50676752.md
- ru: https://zeli.app/ru/story/50676752 · markdown: https://zeli.app/ru/story/50676752.md
