Malicious GGUF model files on Hugging Face concealed remote access trojans and weaponized chat templates to target local artificial intelligence users.
Security researchers discovered that five AI models on the open-source platform carried hidden payloads designed to trick users into running unauthorized code. The compromised repositories reached 2,807 combined downloads before the platform disabled them.
- Five malicious GGUF repositories were identified across two accounts named Mir2k and timdedid.
- Files reached 2,807 combined downloads before Hugging Face disabled access on November 28, 2026.
- Security researcher Düzgün released the open-source scanner gguf-radar to detect hostile templates and hidden data.
Trojans Hidden in Model Files
The campaign exploited the GGUF file format, which people use for running open-source language models locally via tools such as llama.cpp and LM Studio. Attackers appended executable data after model weights without disrupting normal inference.
The user account Mir2k uploaded two models containing an 11.47-megabyte Windows remote-access trojan called ollie. Early downloaders received the dormant binary embedded at the end of the file.
Three Models Targeted Coding Agents with Forged System Instructions
A secondary campaign involving three models uploaded by the account timdedid targeted automated coding agents equipped with terminal permissions. Modified chat templates injected forged system instructions directing agent software to execute scripts fetched from external servers.
Security researcher Düzgün (@Root0ne) just reported malware hidden in 5 GGUF models on Hugging Face, with 2,428 downloads. Here's what you need to know. He scanned all 3,273,389 public model repos on Nov 26, including 226,310 GGUF repos and 572,184 chat templates. He found 5… https://t.co/PycV5K7uOe pic.twitter.com/l5m6euykke
On November 26, 2026, security researcher Düzgün completed a static sweep of all 3,273,389 public repositories on Hugging Face, isolating the five malicious entries. The platform disabled all five repositories by November 28, 2026.
“GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims,” said Düzgün in the Malspark security advisory published on November 27, 2026.

Technical Observations of the Malware
Technical analysis of the Mir2k uploads revealed a two-stage structure where the attacker laid the mine first and detonated it later. The malicious files embedded an 11.47-megabyte Windows x64 executable named ollie, which stored its artifacts under the application data path close to legitimate software directories.
IT Lab said that the payload bundled a complete copy of the Tor transport protocol, starting a specific port to communicate with an onion server via encryption and a pre-shared key.
Researcher Scanned All 3,273,389 Public Hugging Face Repositories
Development teams, small and medium-sized businesses, and educational institutions experimenting with local artificial intelligence download community GGUF quantizations from Hugging Face under the assumption that they contain nothing more than numeric weights. New research reveals that these files can conceal a full Windows remote access trojan positioned safely after the final tensor while weaponizing the integrated chat template.
New blog post: GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400+ Victims. Scanning 3.27 million public model repositories, I found 5 GGUF models with hidden malware, downloaded more than 2400 times. A GGUF file's header says where the model weights end, and…
On November 26, 2026, a security researcher named Düzgün scanned every public model repository hosted on Hugging Face, analyzing all 3,273,389 public repositories. This comprehensive sweep covered 226,310 GGUF repositories holding a total of 2.56 petabytes of weights, alongside the static parsing of 572,184 chat templates without downloading any model in full. The investigation narrowed the scope down to five malicious repositories distributed across two separate uploader accounts named Mir2k and timdedid.
The malicious files appeared to function entirely as expected, successfully loading into memory and answering user prompts normally. The GGUF format incorporates a Jinja2 template known as tokenizer.chat_template, which executes every single time a conversation is rendered. Attackers manipulated this template to slip in hidden instructions.
Regarding the specific timeline of the attacks, the account timdedid published three Qwen3 1.7B models oriented toward security users on November 21 and 22, alongside a mirror hosted on Ollama. Subsequently, the Mir2k account established 14 repositories on November 22, twelve of which served as empty placeholders bearing the names of unreleased models such as Qwen4-27B, DeepSeek-V4, Llama-4-Scout, and gemma-4-27b, while the remaining two repositories contained the deployed traps.

The Mir2k models were published between November 22 and 24 with the trojan already concealed past the final tensor while the chat templates remained clean. By the morning of November 26, both templates were modified to include trigger mechanisms within roughly an hour, and modified again nine hours later so that every subsequent conversation reply automatically opened with a malicious PowerShell line.
Users who downloaded the files before November 26 received a version that carried the underlying payload without the activation trigger.
The embedded template mirrored the official Qwen3 structure while integrating a hidden rule specifying that whenever a user prompt began with “What is”, the template forced an unseen system directive ordering tool-enabled coding agents to invoke the PowerShell utility, download a secondary file named value.ps1 directly into the temporary directory at C:WindowsTemppayload.ps1, and execute it within a hidden window.
The repository documentation explicitly discouraged users from altering or replacing the embedded template.
Download statistics for the compromised items fluctuated across the observation window. The repositories recorded 1,502 downloads at the time of the initial scan, 2,428 downloads by the time of public disclosure, and reached a combined total of 2,807 downloads before platform moderation took effect.

Analysts said that Hugging Face records every GET or HEAD request as a download without deduplicating requests by individual user accounts, meaning the actual number of people affected remains lower than the total download count, and no published telemetry confirms exact infection figures.
Independent verification conducted by i10x.ai confirmed both the precise takedown timestamp and the 2,807 download count by November 28, 2026. Reviewers inspected the initial 16 megabytes of the Ollama file header to confirm the trap remained intact.
Pasquale Pillitteri said he checked the public Hugging Face application programming interface on November 28, 2026, and verified that all five repositories displayed disabled status alongside content-policy notices. Direct lookups of specific repository paths such as Mir2k/Huihui-Qwen3.5-9B-abliterated-GGUF and Mir2k/Inkling-2-Mini-Uncensored-GGUF confirmed their disabled status and final modification timestamps.
Technical analyses provided by security researchers published indicators of compromise alongside YARA detection rules and mapping to MITRE ATT&CK and ATLAS frameworks. Recommendations for remediation advise affected users to inspect local Hugging Face cache directories, model storage folders used by Ollama and LM Studio, temporary system directories containing suspicious executables, local application data directories, and network ports associated with proxy activity.
The Malspark project released an open-source utility called GGUF Radar designed to inspect model files for suspicious template instructions and trailing binary data without requiring full execution.
Keep reading
- Bart Peeters, 67, to End Performances With De Ideale Mannen After 2027 Farewell Tour
- Community Mod Integrates DLSS 5 Into Fallout 4 With Visual Gains but Performance Costs
- Review Finds Exercise Beats Diet for Longevity (archyworldys.com)
- Sakana AI’s CEO says its homegrown models are about more than Japan’s national security (newsylist.com)