On November 27, 2026, security researcher Düzgün disclosed on the Malspark blog that five models distributed on Hugging Face, the AI model sharing service, in the GGUF format (a model file format widely used to run LLMs locally) contained hidden malware. All five were billed as "uncensored" versions with their safety-related refusals removed, and as of November 27 they had been downloaded a combined 2,428 times.
A Scan of More Than 3.27 Million Repositories Found Five Malicious Models
On November 26, the researcher scanned 3,273,389 public model repositories on Hugging Face. Of those, 226,310 contained GGUF files, and 572,184 chat templates (the settings that define how input to a model is assembled) were analyzed statically. After manually removing security-test repositories and harmless samples, five were judged to be malicious.
| Repository | Downloads (as of November 27) | Analysis status |
|---|---|---|
| Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF | 1,488 | Malware recovered and analyzed |
| Mir2k/Inkling-2-Mini-Uncensored-GGUF | 458 | Malware recovered and analyzed |
| timdedid/qwen3.8-cyber-uncensored | 271 | Second stage not recovered |
| timdedid/qwen3-cyber-UNCENSORED-2 | 136 | Second stage not recovered |
| timdedid/qwen3-cyber-UNCENSORED | 75 | Second stage not recovered |
Hugging Face counts downloads, not people, so the researcher notes the number of people actually affected is 2,428 or fewer. The count stood at 1,502 at the time of the November 26 scan, meaning it grew even in the single day before disclosure.
A Windows Program Hidden at the End of the Model, Launched via the Template
The two models from the Mir2k account had a Windows executable appended after the model's weight data. Inference apps do not read that region, so the models still work normally. In "Inkling-2-Mini-Uncensored-GGUF," the same program was embedded in compressed form to make it harder to spot.
When the two models were published on November 22 and 24, their chat templates contained nothing suspicious. On November 26, however, the templates were rewritten to steer the model into printing a single PowerShell command at the start of its replies. According to the report, that command searches the user's folders for a GGUF file and writes the program hidden at its end into a temporary folder.
Targets Passwords and Crypto Wallets, and Mines When Idle
The recovered malware is a remote access trojan (RAT) with Tor built in, communicating with its command server through a Tor onion service. According to the report, it supports stealing passwords saved in Chrome, Edge and Brave, targeting the Phantom and MetaMask cryptocurrency wallets, logging keystrokes, reading the clipboard, taking screenshots, streaming the screen and capturing from the webcam.
It can also mine the cryptocurrency Monero while the PC is idle. The report says it uses several mechanisms to stay resident, such as registering a task that runs every 10 minutes.
The three models from the timdedid account, meanwhile, carried a "logic bomb" in their templates. When the user's latest message contains "What is," the template inserts text instructing an AI agent with PowerShell access to fetch a script from an external site and run it in a hidden window. The second-stage malware was not recovered, so what it does remains unknown.
All Five Were Still Online at Disclosure; the Researcher Offers Mitigations and a Scanning Tool
According to the report, all five repositories were still public as of November 27. The report does not mention any response from Hugging Face.
For users, the researcher recommends treating any command a model suggests as untrusted and using a reviewed template through llama.cpp's "--chat-template-file" or the "TEMPLATE" directive in an Ollama Modelfile. The researcher also released "gguf-radar," an open-source tool that scans and sanitizes GGUF files, and calls on model hubs and inference apps to reject GGUF files that contain bytes after the last data.
Our Take
GGUF files tend to be seen as mere containers for weights, and they likely draw less suspicion than executables. What makes this technique troublesome is that the files work normally as models, and an attack can be switched on simply by rewriting the template. Changing the contents days after publication is especially likely to catch users who checked a model's safety when it first appeared.
That said, harm occurs only when a command the model outputs is actually executed, so the risk is likely greatest for setups that let an AI agent operate a shell. Even so, more than a few people casually try "uncensored" versions of unknown origin. For now, the most practical defense is probably the habit of checking whether the uploader is a known author and whether the update history shows suspicious changes.
Summary
Five GGUF models on Hugging Face billed as "uncensored" were found to contain hidden malware and had been downloaded a combined 2,428 times. This matters to anyone trying out LLMs locally, especially those who allow AI agents to run PowerShell or similar tools. Anyone who has downloaded one of the affected models should review the scanning methods and mitigations the researcher published.