GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims malspar...
HN Best 200 @best
GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims malspark.com · 36 points · 17 comments · HN thread
TL;DR A security scan of all 3.27 million public Hugging Face model repositories found five malicious GGUF models with 2428 downloads, run by two actors: Mir2k, which hid a Windows RAT named ollie after the last tensor and used a chat template to get users to run a PowerShell unpacking line, and timdedid, whose template tried to make coding agents download and run a script. The authors also released gguf-radar, a tool that detects these patterns and rebuilds GGUF files without changing the weights.
- The scan parsed 572184 chat templates statically and read GGUF headers via HTTP Range requests; five repositories remained after manual review, all still online on 27 November.
- Mir2k's two uncensored models hold an 11.47 MB Windows x64 program appended after the last tensor, one plain and one raw-Deflate compressed; the template was armed on 26 November and read the payload back from disk.
- The ollie implant embeds Tor 0.4.9.16, runs a scheduled task every 10 minutes, tries a fodhelper UAC bypass that fails due to missing backslashes, steals browser passwords and wallet data, and mines Monero when idle.
- timdedid's Qwen3 1.7B copies inserted a fake [SYSTEM DIRECTIVE] when a message contained 'What is', telling an agent to download and run a PowerShell script; the second stage was not recovered.
- The authors show three further hiding places in GGUF (alignment padding, GGUF/ZIP polyglots, and zero-scale Q8_0 blocks) that were reproduced in the lab but not seen in the wild.
- gguf-radar is open source under MIT, with YARA rules, and rebuilds files with 32-byte alignment, zeroed padding and no trailing bytes; antivirus and pickle scanners did not flag the test files.
Discussion The thread is short and mostly argues about scale and framing rather than the technical details. Several commenters stress that a Hugging Face 'download' counts model loads rather than unique users, and some find five malicious models out of over three million too small to matter. A few note that the attack class is a reminder of why safetensors exists, and one commenter links the story to political debate over open models, which another dismisses. The mood is skeptical but not hostile, with a mild tone of 'interesting but minor'.
- Small scale; the threat is real but minor so far (many): Commenters point out that five repositories out of 3.27 million is a tiny share and that ordinary malicious ads or vibe-coded app clones are a bigger risk. They see the finding as a useful reminder rather than an urgent crisis.
- Downloads overstate the number of affected users (some): One commenter notes that a Hugging Face download is a model load, so the 2400 figure could come from a few users loading the model many times. This matches the article's own caveat.
- Downloading large blobs from public hubs is risky (some): A commenter argues that the ease of distributing gigabyte-sized files through a centralized user-upload platform made this kind of exploitation inevitable.
- Model files were thought to be pure data (a few): One commenter says they assumed model files only held weights and tensors, and found it surprising that they could carry executable payloads, comparing it to older self-unpacking archive malware.
- Linux driver blobs comparison is a tangent (a few): Part of the thread debates whether Linux drivers and proprietary blobs are comparable to model files. Participants largely conclude that open-source drivers and vendor firmware from known sources differ from random uploads.