Five Hugging Face GGUF Models Hid a Windows Trojan and Drew 2,428 Downloads
Security / news
Five Hugging Face GGUF Models Hid a Windows Trojan and Drew 2,428 Downloads
Malspark says the Mir2k and timdedid repositories hid the payload after the last tensor; Hugging Face's API now shows all five disabled.
Five Hugging Face repositories hid a Windows remote access trojan at the end of GGUF model files, and the files were downloaded 2,428 times before the repositories were disabled, according to a November 27 report by the security researcher Düzgün (@Root0ne) on the Malspark blog. The attacker needs a victim who downloads one of the models, loads it in a local runner and then runs a PowerShell command that the model itself prints. Anyone who ran such a command should treat the machine as compromised.
Hugging Face's public API showed all five repositories flagged disabled: true on November 28, 2026. The Malspark post says the models were still online on November 27 and does not report a response from Hugging Face. The platform's own records are the only second source for the takedown, and they say nothing about why the repositories were disabled.
The five repositories and their download counts
Malspark scanned 3,273,389 public repositories and found five malicious models. The counts below are the post's figures as of November 27. Malspark notes that "Hugging Face counts downloads, not people, so the number of affected users is lower or equal."
- Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF1488 downloads
- Mir2k/Inkling-2-Mini-Uncensored-GGUF458 downloads
- timdedid/qwen3.8-cyber-uncensored271 downloads
- timdedid/qwen3-cyber-UNCENSORED-2136 downloads
- timdedid/qwen3-cyber-UNCENSORED75 downloads
Source: Malspark, Nov. 27, 2026
Two accounts are involved: Mir2k and timdedid. The most-downloaded file posed as an "abliterated" build of Huihui-Qwen3.5-9B, a label for models with safety refusals stripped out. The second imitated Inkling-2-Mini, a model from Thinking Machines.
How the payload hides in a GGUF file
The malicious bytes sit after the last tensor, where loaders do not read. A modified chat template then makes the model print a PowerShell line that extracts and starts the hidden program. The model weights themselves are not the weapon; the metadata and trailing bytes are.
The Mir2k implant is, per Malspark, a Windows x64 trojan that bundles Tor and mines Monero. It targets saved browser passwords and cryptocurrency wallet extensions, and supports keylogging, screenshots and webcam capture. It persists through scheduled tasks. Artifacts to look for include the folder AppData\Roaming\ollie and a leftover path, C:/Users/MoH/socks.txt.
Everything about the payload rests on Malspark alone. The post lists 20 indicators and YARA rules, including one named Malspark_Mir2k_Ollie_RAT_PE, but this report did not verify the sample independently.
Template poisoning was a known risk before this campaign
The technique is not new in theory. On February 19, 2026, Splunk's James Hodgkinson described scanning metadata from roughly 156,000 GGUF files and calling template poisoning "a plausible but currently unexploited risk." His dataset showed no malicious intent. Nine months later, Malspark describes a campaign in which the template is the delivery step.
Splunk's suggested defence was to compare the template shown on a repository page with the one embedded in the file. That check would not catch trailing bytes, which is why Malspark asks hubs and runtimes to reject GGUF files with data after the last tensor or non-zero padding.
What to do if you downloaded one of these models
Delete the file, and check for the ollie folder and the scheduled tasks. If either is present, rotate browser-saved passwords and move any wallet funds from a clean device.
Going forward, Malspark advises treating any command a model suggests as untrusted. In llama.cpp, a reviewed chat template can be pinned with --chat-template-file; in Ollama, with TEMPLATE in a Modelfile. Malspark also recommends scanning files with gguf-radar before they reach an internal registry.
Local-model tooling inherits the supply-chain exposure of every package manager before it, as the LiteLLM sandbox-escape listing on CISA's catalog and 1Password's GitHub account compromise both showed in November. Hugging Face has not said whether it will scan for trailing bytes. Download counts on the disabled repositories were still moving on November 28: the API showed 1,711 for the largest, up from 1,488 the day before.
Sources
More in Security
- 01CERT-In Flags Five WhatsApp Flaws: The Fixed Builds and Who Can Exploit EachWhatsApp's own advisories list CVE-2026-102769, 44908, 23871, 23866 and 23863, and only the ad-reply bug carries a possible-abuse note.
- 02Java4Shell Needs AVX-512 Hardware and Java 17.0.6 or Later, Oracle and Calif Disagree on SeverityCVE-2026-114938 is a heap overwrite in the JVM's Base64 decoder; Oracle fixed it Nov. 17 and scored it 8.1, while the discoverer, Calif, scored it 9.2.
- 03CISA Lists Three Danfoss AK-SM 800A Flaws as Exploited, With a Nov. 28 Deadline for TwoThe refrigeration controllers' ICS advisory said no exploitation had been reported on Nov. 18; the catalog entry came seven days later.
- 04VMware vCenter Directory Service Flaw Was Exploited in September, Two Months Before Broadcom's PatchCVE-2026-123890 needs only network access and no credentials. Broadcom lists no workaround, and the fix cannot go through vCenter Quick Patch.