
Five Malicious GGUF Models Found on Hugging Face in Large Scan
A scan of 3.27 million public Hugging Face model repositories found five malicious GGUF models with 2,428 downloads, including two models that hid a Windows RAT after their last tensor.
A scan of all 3,273,389 public Hugging Face model repositories on 26 November 2026 found five malicious GGUF models with 2,428 downloads as of 27 November. Hugging Face counts downloads, not people, so affected users are fewer or equal. The largest campaign, Mir2k, hid a Windows remote access trojan named ollie after the last tensor and later armed chat templates to make users run it.
Scan results
The scan included 226,310 GGUF repositories holding 2.56 PB of weights and parsed 572,184 chat templates without executing them. Five repositories remained after manual review, all online on 27 November: Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF had 1,488 downloads, Mir2k/Inkling-2-Mini-Uncensored-GGUF had 458, and three timdedid models had 271, 136 and 75. At scan time the repositories had 1,502 downloads, and the count grew by more than half in one day, mostly on the two Mir2k models.
Attack mechanics
A GGUF file stores a chat template under tokenizer.chat_template, and runtimes such as llama.cpp and LM Studio read only byte ranges named by the header. The attacks add text through ordinary template logic without escaping the restricted Jinja2 engine. The Mir2k template tells the model to begin every answer with a PowerShell line that finds the largest .gguf file, reads trailing bytes and starts d.exe. Bytes after the last tensor are never read, so an attacker can append an executable; Safetensors does not allow this because its loader requires tensors to fill the file exactly.
Mir2k campaign
Mir2k created 14 repositories on 22 November, including 12 empty placeholders named after expected releases. It uploaded Huihui-Qwen3.5-9B-abliterated on 22 November and Inkling-2-Mini-Uncensored on 24 November, both with clean templates and the payload already appended. On the morning of 26 November both templates were replaced twice, first reading a fixed Downloads path and later searching the whole user profile. Both models unpack to the same 11.47 MB Windows x64 program with SHA-256 listed in the indicators. It contains Tor 0.4.9.16, checks for VirtualBox, VMware and Sandboxie, installs a scheduled task every 10 minutes, uses two watchdogs, marks its process critical, and tries a known fodhelper.exe UAC bypass that fails. It sends saved Chrome, Edge and Brave passwords, read through DPAPI, though newer Chrome v20 App-Bound entries are left undecrypted; it targets Phantom and MetaMask, supports keylogging, clipboard reading, screenshots, streaming and webcam capture, and mines Monero with RandomX over Tor. It uses an ollie folder under AppData Roaming and contains C:/Users/MoH/socks.txt.
Detection and cleanup
The timdedid campaign published three byte identical Qwen3 1.7B models on 21 and 22 November plus an Ollama mirror. When a user message contains What is, the template inserts a [SYSTEM DIRECTIVE] telling an agent to call its powershell tool, download value.ps1 from a WordPress site into C:\Windows\Temp\payload.ps1 and run it in a hidden window. The second stage was not recovered. gguf-radar parses templates without running them, reports trailing bytes and suspicious padding, and rebuilds a clean GGUF file with identical dequantized weights. It can scan local files or Hugging Face links through HTTP Range requests, and its MIT licensed repository includes YARA rules. Recommendations include treating model suggested commands as untrusted, passing models through gguf-radar before internal use, and rejecting GGUF files with bytes after the last tensor.
Sources: malspark.com
SiTech — AI-powered web development
We build fast, modern websites and bring AI into real business workflows. Have a project or a question? We'd love to help.