Five models in the chat template.">GGUF format published on Hugging Face contained hidden malicious code, and in two cases a Windows trojan. This is what researcher Düzgün, who publishes as Root0ne, reports after analysing all public repositories on the platform. According to his figures, the five models recorded 2,428 downloads, a count of downloads rather than of people, so the number of users affected is equal to or lower than that.

Psst!Add AlexTech.ai asPreferred Source on Google

How the attack works

A GGUF file contains a header with metadata, the tensor table and finally the model weights. Runtimes such as llama.cpp and LM Studio read only the byte ranges the header points to and ignore the rest. The attackers exploit that space: they append an executable after the last tensor, where no loader reads it.

official image of GGUF LLM Models with Hidden Malware

Image: malspark.com — https://malspark.com/blog/malicious-gguf-models-hugging-face/

The second entry point is the chat template, a small Jinja2 program that the runtime applies to every prompt. The attackers rewrite it to add instructions the user never sees. In one case, a phrase in the user's message makes the template insert a fake [SYSTEM DIRECTIVE] that orders an agent with shell access to download and run a script. In the other, the template makes every reply open with a PowerShell line the user can copy and run.

The five models

The largest campaign is attributed to the account Mir2k, which uploaded two uncensored models, Huihui-Qwen3.5-9B-abliterated-GGUF and Inkling-2-Mini-Uncensored-GGUF. The first contains a Windows executable followed by about half a megabyte of padding, so a scan of only the last kilobytes does not see it. The second contains the same program compressed with raw Deflate, without recognisable signatures, which PowerShell decompresses in memory. The program, called ollie, is a remote access trojan that connects to an operator over Tor, looks for saved passwords in Chrome, Edge and Brave and for the Phantom and MetaMask wallet extensions, and can log keystrokes, clipboard, screen and webcam. It does not decrypt items protected by Chrome's new App-Bound encryption.

The other three models belong to the account timdedid: qwen3.8-cyber-uncensored, qwen3-cyber-UNCENSORED-2 and qwen3-cyber-UNCENSORED. In these cases the second stage was not recovered.

A vector that checks miss

The researcher found that the models stayed online even after the discovery. He also noted that Mir2k changed the templates of both its models on 26 November, about a day after the analysis was published, adding the execution command. Earlier versions contained the program but did not launch it.

The analysis stresses that combining an executable appended to the file with a template switched on later had not been described before in public research. Work by Pillar Security and other groups had already shown manipulable templates, but on lab test models.

The open source tool gguf-radar, published alongside the analysis, can detect suspicious templates and hidden bytes without running the model, and rebuild a clean GGUF file with the weights unchanged.

What to do

Anyone who downloaded one of the five models should check its files, run gguf-radar on local .gguf files and verify that no PowerShell commands were executed. Traditional antivirus engines and checks limited to the last kilobytes of a file do not detect the compressed payload.