malspark.com Malicious GGUF Models on Hugging Face Hide Payloads in Chat Templates and File Tails
Article Content
- •Five Hugging Face GGUF repositories were found to contain malicious chat templates or hidden payloads, with 2,428 downloads recorded before disclosure.
- •The Mir2k campaign hid a Windows RAT named ollie after the last tensor and rewrote templates on 26 November to prompt users to execute the unpacking command.
- •The timdedid models used template injection to make agents with shell access download and run a remote script.
- •Hidden payloads may be padded or Deflate-compressed to evade quick tail scans and file-signature checks.
- •The open-source gguf-radar tool can statically detect poisoned templates and trailing bytes and sanitize GGUF files without executing them.
Five malicious GGUF model repositories on Hugging Face combined chat-template poisoning with hidden bytes appended after model tensors, according to Malspark.
A scan of 3,273,389 public Hugging Face model repositories on 26 November 2026 identified the five models, which had 2,428 downloads as of 27 November; Hugging Face counts downloads rather than unique users, so affected users are fewer or equal.
The largest campaign, attributed to the Mir2k cluster, uploaded two uncensored GGUF models with a Windows remote access trojan named ollie hidden after the last tensor, sometimes padded or Deflate-compressed to evade scanning.
On 26 November the Mir2k operators rewrote both chat templates so the model prompts the user to run a PowerShell line that unpacks the payload.
A second cluster, timdedid, used a poisoned template to inject a fake [SYSTEM DIRECTIVE] instructing agents with shell access to download and execute a remote script.
Root0ne published the findings on 27 November 2026 via Malspark and the open-source gguf-radar tool, which detects poisoned templates and hidden bytes without running the files and can rebuild clean GGUF files with weights unchanged.
The attack targets developers loading local LLM weights into llama.cpp, Ollama, or agent harnesses. Safetensors loaders reject files with unexpected trailing data, so the post-tensor payload is primarily a GGUF issue, though template poisoning can affect other formats' tokenizer configs.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (7)
Following this threat?
Track Ollie and HuggingFace in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.
Free account · no card needed
Common questions
Am I affected if I downloaded one of these models?
Can a GGUF file run code just by being loaded for inference?
What should defenders do first?
Continue Reading
Broadcom patches critical VMware vCenter auth bypass flaws Broadcom disclosed VMware Security Advisory VMSA-2026-0009 on November 19, 2026, covering vulnerabilities in VMware vCenter, Tools, and SDDC Manager. CVE-2026-123890, a CVSS 9.8 authentication bypass in the VMware Directory Service, is listed in CISA's KEV catalog, which the verified record gives as 2026-11-20.…
Critical WP Rocket Path Traversal RCE (CVE-2026-125812) Under Active Exploitation CVE-2026-125812 is a path traversal flaw in the WP Rocket WordPress caching plugin, fixed in version 3.24.2, that allows unauthenticated remote code execution. Patchstack scores it CVSS 3.1 9.8 and says every release before 3.24.2 is affected; WP Media states the plugin is installed on more than 5.6 million sites. The…