On November 27, 2026, security researcher Düzgün, also known as Root0ne, published findings through Malspark detailing the discovery of malicious GGUF (GGML Universal File Format) models on Hugging Face. The scan, conducted on November 26, examined over 3.27 million public Hugging Face model repositories and identified five GGUF models that incorporated hidden malware or malicious instructions within their chat templates. These five models collectively recorded 2,428 downloads by November 27. Hugging Face has since disabled the identified repositories.

The primary campaign, dubbed "Mir2k" by Malspark, involved two uncensored GGUF models. The attackers initially embedded a Windows remote access trojan named "ollie" at the end of these GGUF files. Loaders typically do not read this section of the file, allowing the model to function normally without immediate detection of the hidden payload. Days later, on November 26, the same actor modified the chat templates of these models. The altered templates were designed to prompt users to execute a command that would unpack and run the concealed malware.

A second actor, identified as "timdedid," employed a different tactic, utilizing a poisoned chat template to instruct an agent to execute a downloaded script. This method is particularly concerning as local models are increasingly integrated with tools capable of executing commands, turning a poisoned template into a pathway for code execution.

Malspark's report emphasizes that the download count reflects activity rather than confirmed infections, as execution of the malicious payload still depended on a user or agent running the suggested command. Hugging Face's download statistics count requests to selected files, not unique users or successful compromises. One of the malicious models from the "timdedid" campaign was found to still be available on Ollama's public library with its malicious instructions intact, even after Hugging Face disabled the original repository.

The attack methods identified by Malspark combine two previously known techniques: hiding data within the GGUF file structure and manipulating chat templates. While earlier research in 2021 demonstrated embedding malware in model weights, Malspark's findings represent real-world attacks on Hugging Face that combine these methods.

In response to these findings, the researchers released an open-source tool called "gguf-radar." This tool is designed to inspect GGUF files for suspicious chat templates and hidden trailing bytes without executing the model. It can also rebuild clean GGUF files, preserving the model weights while removing malicious metadata or appended bytes. Malspark recommends that users treat third-party model files with the same caution as random installers and exercise particular care when agents are configured to execute commands based on model output.