A scan of 3.27 million public Hugging Face repositories on November 26, 2026 identified five malicious GGUF models from two campaigns with 2,428 total downloads. The Mir2k campaign uploaded two uncensored models (Huihui-Qwen3.5-9B-abliterated-GGUF, 1,488 downloads; Inkling-2-Mini-Uncensored-GGUF, 458 downloads) containing a 11.47 MB Windows x64 remote access trojan named "ollie" appended after the last tensor. The first model stored the executable plain with filler bytes; the second used raw Deflate compression to evade signature scanning. On November 26, Mir2k weaponized both models by replacing their clean chat templates with malicious Jinja2 templates that prepend a PowerShell command to every model reply. This command locates the GGUF file in the user profile, extracts the trailing bytes (11,474,944 bytes from 12 MB before end for Huihui; last 4.2 MB decompressed for Inkling), writes them to %TEMP%\d.exe, and executes it. The ollie implant embeds Tor 0.4.9.16, establishes persistence via scheduled tasks and critical process marking, exfiltrates browser credentials via DPAPI (excluding Chrome v20 App-Bound entries), targets Phantom/MetaMask wallets, enables keylogging/screen capture/webcam access, and mines Monero via RandomX over Tor. The timdedid campaign (three Qwen3 1.7B models, 482 combined downloads) used a trigger phrase ("What is") in the chat template to inject a [SYSTEM DIRECTIVE] hijacking an agent's PowerShell tool to download and execute a second-stage script from a WordPress site. The open-source tool gguf-radar detects these threats by statically parsing chat templates into syntax trees to flag file operations, decompression, process execution, and hidden directives, while also identifying bytes after the last tensor, non-zero alignment padding, zero-scale weight blocks carrying hidden data, and GGUF/ZIP polyglots. It rebuilds clean GGUF files preserving dequantized weights by zeroing padding, normalizing negative-zero scales, clearing zero-scale blocks, and removing trailing data. YARA rules and MITRE ATT&CK/ATLAS mappings are provided for detection.

Read original