GGUF malware on Hugging Face reaches 2,428 downloads across five models

A full scan of all 3,273,389 public model repositories on Hugging Face uncovered GGUF malware across five active repositories totaling 2,428 downloads as of November 27, 2026. Published by security firm Malspark, the audit inspected 226,310 GGUF repositories and 572,184 chat templates without executing any code.

How the attacks hid malicious payloads

GGUF files used by local LLM tools like llama.cpp and LM Studio store a Jinja2 tokenizer.chat_template alongside a tensor table that marks where model weights end. Researchers identified two distinct campaigns:

  • Mir2k campaign (1,946 downloads): Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF (1,488 downloads) and Mir2k/Inkling-2-Mini-Uncensored-GGUF (458 downloads) carried an 11.47 MB Windows x64 remote access trojan named ollie appended after the last tensor, where loaders ignore extra bytes. On November 26, the attacker armed both templates so the model prepends every answer with a PowerShell command that extracts and runs %TEMP%\d.exe.
  • timdedid campaign (482 downloads): Three identical Qwen3 1.7B uploads inject a fake [SYSTEM DIRECTIVE] whenever a prompt includes "What is", attempting to hijack coding agents with shell access to download and execute payload.ps1.

Impact and open-source defense

Static analysis shows ollie bundles Tor 0.4.9.16 for onion C2 communication, steals saved passwords from Chrome, Edge, and Brave, targets Phantom and MetaMask wallet extensions, captures keystrokes and screens, and mines Monero when idle.

To help users and organizations defend against supply-chain tampering, the researcher released the MIT-licensed tool gguf-radar and YARA rules, which detect poisoned templates and trailing bytes and rebuild clean GGUF files without altering model weights.

Transparency note: This article was researched and drafted with AI assistance based on public technical reporting (Malspark).

By Spark