News · AI NEWS

Researchers Find Five Malicious GGUF Models on Hugging Face With 2,428 Downloads, Some Hiding a Windows Trojan in the File

· Beijing time

Summary

On November 27, security researcher Düzgün published a Malspark report on a scan of all 3,273,389 public Hugging Face model repositories from November 26. It found five malicious GGUF models with 2,428 downloads as of November 27. Hugging Face counts downloads, not people, so the number of affected users is no higher than that figure. The core trick is chat-template poisoning: a Jinja2 chat template inside the GGUF can insert instructions the user never sees, telling an agent with shell access to download and run a script, or making the model begin every reply with a PowerShell one-liner a person might copy and run. The largest campaign, which the author calls Mir2k, hid a Windows remote-access trojan named ollie after the last tensor in two “abliterated” GGUF models. Runtimes read only the byte ranges declared in the header, so the extra bytes do not change how the model loads. One copy stored the program compressed with raw Deflate, stripping recognizable file signatures. On November 26, both templates were rewritten so the model asks the user to run the line that unpacks the trojan. A second campaign, from the account timdedid on November 21–22, published three byte-identical copies of a Qwen3 1.7B model aimed at security users, plus an Ollama mirror. A trigger phrase in the user’s message made the template insert a fake system directive ordering an agent with shell access to fetch and run a script. The author also released gguf-radar, an open-source tool that detects poisoned templates and trailing hidden bytes without executing them and can rebuild a clean GGUF that keeps the original weights. Antivirus checks that only inspect the last few kilobytes of a file can miss a padded or compressed payload.

#Hugging Face#security#open-source#malware

This summary reflects the cited source. Visit the original for its full context.

← All AI news