ToolNavs Find Useful AI Tools
Submit Sign in
Back to AI information
Trojan Found Hiding in GGUF Model Files: 5 Hugging Face Models Pulled, but a Copy Still Lives on Ollama

Trojan Found Hiding in GGUF Model Files: 5 Hugging Face Models Pulled, but a Copy Still Lives on Ollama

AI information • Admin • • 10 views

A GGUF model file can hide a trojan too. On 27 November, security team Malspark published a report: after scanning all 3.27 million-plus public model repositories on Hugging Face, it found five GGUF model files carrying a Windows remote-access trojan, downloaded 2,428 times by 27 November. A follow-up check on 28 November showed Hugging Face had taken down all five repositories — yet a mirror of one model on Ollama was still available for download, with the count up to 2,807.

Where the trojan hides, and how it fires

Two accounts, two methods. Mir2k uploaded two "uncensored" models on 22 and 24 November, appending an 11.47 MB trojan directly after the last tensor — a GGUF model file's loader only reads the byte ranges its header points to, so trailing data neither breaks loading nor raises any warning. On 26 November, both models' chat templates were replaced within about an hour of each other, and from then on every reply began with a PowerShell command; anyone who ran it would unpack the trojan as d.exe in the temp folder. The other account, timdedid, tampered with three copies of a Qwen3 1.7B model: whenever a user message contains "What is", the template quietly inserts a fake system instruction telling an agent with shell access to download and run a script. The scan also found that antivirus engines and ordinary GGUF parsers raised no alert on either live sample.

Who is at risk, and where the limits are

At risk are people running GGUF models locally — above all users who download "uncensored" models through llama.cpp, LM Studio or Ollama, and anyone who lets an agent execute commands on its own. The trojan targets Windows only: once started, it steals passwords saved in the browser, goes after the Phantom and MetaMask wallet extensions, logs keystrokes, takes screenshots, and mines cryptocurrency while the machine is idle; it also registers itself as a critical process, so killing it crashes the system. The limits matter too: a GGUF loader executes no code itself. The Safetensors format is unaffected by this technique, because its loader refuses files with trailing bytes, and Hugging Face counts downloads, not people, so the real victim count is lower.

Self-check in four steps: first, search local model folders and ollama list for the five repository names and the Ollama mirror timdedid/qwen3-1.7b-cyber, and delete any matches. Then scan the GGUF files you keep with the open-source tool gguf-radar, which statically checks templates and trailing bytes and can clean a file without changing its weights. Give your agent a reviewed chat template instead of letting it run commands straight from a community model's output. On a Windows machine that has already run one of these models, look for three signs — an ollie folder under AppData\Roaming, a d.exe in the temp folder, and a scheduled task firing every ten minutes; if infected, isolate and reinstall. Malspark is also calling on model hubs to reject GGUF files with data after the last tensor; Hugging Face has not responded.

Recommended Tools

More