Hugging Face GGUF Models Hid a Windows Trojan: 5 Models, 2,807 Downloads Before Takedown
Independent security researcher Root0ne scanned all 3.27 million public model repositories on America's Hugging Face and found five GGUF models hiding a Windows trojan: the payload sits past the last tensor while a poisoned chat template makes the model print the unpack command. Downloads reached 2,807 before the takedown on November 28, and a mirror was still listed on America's Ollama that day.
Five model files hid a Windows trojan, and downloads climbed to 2,807 before America's Hugging Face pulled them all on November 28 — while a mirror from the same crew was still listed on America's Ollama public library that same day, ready to download. Independent security researcher Root0ne (Düzgün) published the findings on November 27 on the security research site Malspark: on November 26 he scanned all 3,273,389 public model repositories on America's Hugging Face, covering 226,310 GGUF repositories holding 2.56 PB of weights, and statically parsed 572,184 chat templates without downloading a single model in full — and found five malicious GGUF models from two crews, Mir2k and timdedid. The five had 1,502 downloads when the scan ran, 2,428 by November 27, and 2,807 before the takedown on November 28, up 379 in a day. To be clear: downloads are not victims. Hugging Face counts downloads, not people, and infection still needs the user to actually run the command; copies downloaded before November 26 carry the payload but not the trigger. The story broke on America's Reddit r/LocalLLaMA board on November 28, drawing 668 upvotes and 81 comments in nine hours, and reached the front page of America's Hacker News the same day.
What broke here is the most repeated safety advice in the local-model world: skip pickle, use GGUF or Safetensors, because those files hold numbers and metadata, not code. GGUF is the standard format for local inference stacks such as llama.cpp and LM Studio, and hobbyists pull other people's repackaged models onto their own machines every day, with "uncensored" builds the most popular of all — while the platform checks uploads and never inspects them. Pillar Security wrote in July 2025 that GGUF chat templates can hide instructions, and a 2026 paper by Fogel and colleagues measured the attack on 18 models and four inference engines, but those were lab demonstrations. This is the first time anyone has caught it live in a real model hub, with both halves of the trick combined — and no earlier public report had done that. The template half is not even GGUF-specific: Safetensors and PyTorch models carry the same kind of chat template in a separate file, and it can be poisoned the same way.
Mir2k worked in two steps, days apart
Mir2k worked in two steps, days apart. On November 22 the account created 14 repositories: 12 are empty shells squatting on the names of models that do not exist yet — Qwen4-27B, DeepSeek-V4, Llama-4-Scout, gemma-4-27b — waiting to ride the next release wave, while the other two held the trap, both sold as "uncensored" builds: Huihui-Qwen3.5-9B, built on China's Alibaba Qwen3.5 and uploaded November 22, and Inkling-2-Mini, uploaded November 24. The trojan was already in the files from day one, appended after the last tensor, where loaders stop reading and neither antivirus engines nor ordinary GGUF parsers raise a word. The first model carries the program in plain form with about half a megabyte of padding behind it, aimed at scanners that only read the tail of a file; the second carries the same program compressed with raw Deflate, which wipes out every file signature. On the morning of November 26 both templates were replaced within about an hour, and replaced again about nine hours later: the new template adds a French system instruction telling the model to open every reply with one fixed PowerShell line, copied character by character, then answer normally. That line finds the largest .gguf file in the user profile, reads its last bytes, writes them to %TEMP%\d.exe and starts it. Both models unpack to the same 11.47 MB Windows program, which the researcher calls ollie — about 10.25 MB of it is a complete Tor 0.4.9.16 client.
Once ollie runs, it does a lot: it checks for VirtualBox, VMware and Sandboxie drivers and for usernames such as sandbox, malware and test, and only settles in on a real machine; a scheduled task runs it every 10 minutes with the highest privileges, two watchdog processes keep it alive, registry keys re-enable it at startup, and its process is marked critical, so ending it crashes Windows. It reaches its operator over an onion service in a ChaCha20 session protected by a built-in pre-shared key; it sends off saved passwords from Chrome, Edge and Brave — the browsers of America's Google, America's Microsoft and America's Brave Software — targets the Phantom and MetaMask wallet extensions, both American products, and supports keylogging, clipboard reading, screenshots, screen streaming and webcam capture, mining Monero with RandomX while the PC is idle. It has exactly one visible flaw: the fodhelper.exe privilege-escalation bypass it tries was compiled without its backslashes, so Windows never finds the paths; the binary also still contains a path from the author's own machine, C:/Users/MoH/socks.txt.
timdedid took a different route, aimed at agents
timdedid took a different route, aimed at agents. On November 21 and 22 the account published three byte-identical copies of a Qwen3 1.7B model from China's Alibaba, pitched at security users, plus a mirror on Ollama. The template is Qwen3's official one with a single addition near the end: whenever the user's latest message contains the words "What is", it inserts a fake [SYSTEM DIRECTIVE] ordering an agent with a PowerShell tool to download value.ps1 from a WordPress site into C:\Windows\Temp\payload.ps1 and run it in a hidden window. A plain chat user sees nothing; only an agent allowed to run shell commands gets hooked. The README advises against replacing the embedded template, which keeps the trigger in place, and the second-stage script was never recovered, so what it would have installed is unknown. The Ollama mirror, timdedid/qwen3-1.7b-cyber, was still listed on November 28 with 42 downloads; Malspark's advice for Ollama users is to define their own TEMPLATE in the Modelfile in any case.
The impact falls in four layers. The first lands on people who already downloaded the files: passwords, wallets, keylogging, webcam, mining — an infected PC has to be isolated and reinstalled, not just cleaned, saved passwords changed from a clean device, and wallet funds moved to a new address. The second lands on agents: timdedid proves a few lines of template inside a model file can turn an agent with shell access into a downloader, triggered by an ordinary question the agent itself never sees. The third lands on the platforms: 3.27 million repositories were swept by one outside researcher using HTTP Range requests, not by any platform's routine screening; Hugging Face pulled five, the Ollama mirror stayed up, and 12 empty shell repositories still squat on the next generation's model names, waiting for the next release. The biggest hidden loser is trust in open-model distribution itself: four of the five poisoned models wear China's Qwen name, using a Chinese open model's reputation as bait and damaging everyone who builds open models seriously — and the line "GGUF is safer than pickle" can never be repeated as it was, because the format has no hole; the hole is that nobody checks what is inside the file.
iHolyshit review People who run models locally keep making the same mistake: they treat a model file as data, not software, as if downloading were copying a song. These five files prove a model file is already software — it can rewrite your conversation, call your command line, and plant a Tor-carrying trojan on your machine, while the loader, the antivirus and the platform's review all wave it through. The platforms deserve the blame most: one outside researcher could sweep 3.27 million repositories with Range requests, yet the platform only moved after someone else published; Malspark's call to reject GGUF files with data after the last tensor is such a simple rule, and as of this writing Hugging Face has said nothing about it in public. Users need the lesson too: do not download "uncensored" builds from unknown accounts, especially ones wearing hot names like Qwen, DeepSeek or Llama right after a release; scan first with a tool like gguf-radar — community feedback says it throws false positives, so check its hits by hand — and never give an agent shell access without confirmation, because the one command a model prints for you to copy is exactly the one you must not copy.
November 29, 2026 (Beijing time)
Share this article
What do you think of this story?
Anonymous feedback, up to 5 reactions per article.
Reader comments
Comment without signing in, or sign in to display your member name.
Discuss the technology and the story. Hate, politics and war, threats, abuse, personal accusations, sexual content, ads, links and personal information are not allowed.
No comments yet. Be the first to share.