GGUF LLM Models With Hidden Malware On Hugging Face Reached 2400 Victims
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

A Malspark scan identified five malicious GGUF model repositories on Hugging Face, with 2,428 downloads reported as of Nov. 27, 2026. The report describes hidden Windows malware and templates that can prompt users or agents to run commands, but Hugging Face download counts do not establish how many people were infected.

Five malicious GGUF model repositories were identified on Hugging Face in a scan by security research site Malspark, which reported 2,428 downloads as of Nov. 27, 2026. The report describes models containing hidden Windows malware and chat templates that can steer users or tool-enabled AI agents toward running commands; the download total is not a count of confirmed infections or unique people.

Before you orderOffer from Amazon

Get privacy and security gear delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

Malspark said it scanned 3,273,389 public Hugging Face model repositories on Nov. 26, including 226,310 GGUF repositories, and statically parsed 572,184 chat templates. Researchers used HTTP range requests to inspect file structures rather than downloading and executing every model. They reported that five malicious models remained online at the time of the scan and that the repositories had 2,428 downloads by the following day.

The report identifies two actors behind the models. In the largest campaign, the actor Malspark calls Mir2k uploaded two GGUF models containing a Windows remote-access trojan named “ollie.” According to the report, the malware was appended after the model’s last tensor, outside the data ranges that standard GGUF loaders use. Mir2k later altered both chat templates so replies would begin with a PowerShell command that directs the user to unpack and run the concealed program.

Malspark also describes models attributed to timdedid, whose templates use a trigger phrase to insert a hidden instruction telling an agent with shell access to download and run a script. The report says a template can add text that is not visible in the chat window. It also points to gguf-radar, an open-source utility that the researchers say can detect suspicious templates and data after tensors, then rebuild a clean GGUF while preserving model weights.

At a glance
reportWhen: Scan conducted Nov. 26, 2026; download…
The developmentMalspark reported finding five malicious GGUF model repositories on Hugging Face with 2,428 recorded downloads.

How Model Files Can Carry Malware

The findings matter because they show how a model file that appears to load and answer normally can still carry a separate malicious payload. GGUF runtimes read the tensors identified in the file’s metadata; according to Malspark, extra bytes after the last tensor may be ignored by the runtime, while remaining present in the downloaded file. A user or security tool that treats a model as passive data could miss that distinction.

The second risk is the interaction between hidden template instructions and agent permissions. A template can supply text that is not shown in the conversation, potentially influencing an AI agent that has permission to use a shell or other tools. In the Mir2k examples, the template reportedly instead places a command in the visible reply for a person to run. These are different paths to execution, and neither report of a malicious file by itself confirms that a downloader ran it or suffered an infection.

The reported total should be read carefully: 2,428 is a download count, not 2,428 victims. One person may download more than once, and downloads do not show whether the file was opened, whether malware executed, or whether a device was compromised. Malspark says the number of affected users is no greater than the download total, but does not establish a lower bound.

Products Worth Considering

Sony WH-1000XM4C (M4 2nd Gen) Wireless Noise-Cancelling Headphones, Black

Sony WH-1000XM4C (M4 2nd Gen) Wireless Noise-Cancelling Headphones, Black

As an affiliate, we earn on qualifying purchases.

What the GGUF Scan Examined

GGUF is a format used to distribute models for local inference. Its file structure includes metadata and a tensor table that identify model data. Malspark says the template is stored in metadata under tokenizer.chat_template; a runtime applies it to conversations before passing text to the model. The researchers say the template attacks they found rely on ordinary template logic and do not require breaking out of the restricted template engine.

The report distinguishes the template method, which can also apply to other model formats, from appending executable bytes after GGUF’s last tensor, which it describes as specific to GGUF. It says one Mir2k file carried a Windows program followed by about half a megabyte of filler, while another stored the program compressed with raw Deflate. Those details help explain why checks limited to recognizable file signatures or a file’s final few kilobytes may fail to detect the payload, according to Malspark.

Malspark notes that earlier research had demonstrated malicious instructions in model templates and data hidden in model files under laboratory conditions. The report’s claimed contribution is finding these techniques in models published on Hugging Face, including a campaign combining a concealed executable with a template modified later. It says no earlier public report of that exact combination was found; that is the researchers’ characterization, not an independently established claim that no such case existed.

““Hugging Face counts downloads, not people.””

— Malspark report

Downloads Do Not Confirm Infection

The report does not identify how many unique people downloaded the models, how many ran them, or whether any devices were successfully compromised. The source says the download figure is an upper limit on affected users, but provides no confirmed infection total or evidence linking particular downloads to infections.

It is also unclear from the supplied report whether Hugging Face removed or restricted the repositories after the scan, whether the platform independently verified Malspark’s findings, or whether the reported files changed after Nov. 27. The scan covered public repositories at a particular time, so it does not establish the current status of each listing or rule out other malicious models outside the scan’s findings.

Malspark provides technical descriptions and detection guidance, but the findings here are based on its report. The supplied material does not include a platform response, independent confirmation of the malware’s operation on victim devices, or a breakdown of the 2,428 downloads by model.

Checks for Downloaded Models

Malspark advises anyone who downloaded one of the identified models to check endpoints against the indicators in its report and scan local GGUF files with gguf-radar. It warns that antivirus products and checks examining only a file’s last few kilobytes may not detect the described compressed payload. Users should treat these recommendations as the researchers’ guidance and consult the report’s indicators for the specific files and hashes.

The next developments to watch are whether Hugging Face removes or labels the repositories, whether further independent analysis confirms the findings, and whether researchers identify additional affected files. Malspark’s reported scan is a snapshot from Nov. 26, with download totals recorded through Nov. 27; the status of the models and any response from the platform are not established in the available material.

Key Questions

Were 2,428 people confirmed to be infected?

No. 2,428 is the reported number of downloads as of Nov. 27, 2026. Malspark says Hugging Face counts downloads rather than people, and the report does not confirm infections or identify unique downloaders.

How did the malicious GGUF models work?

Malspark says two Mir2k models carried a Windows remote-access trojan after the last tensor in each GGUF file. Their chat templates reportedly prompted users to run a PowerShell command that extracted and launched the hidden program. Separate models attributed to timdedid used trigger phrases to insert hidden instructions aimed at agents with shell access.

Did the model itself behave suspiciously in chat?

According to Malspark, the models could answer normally while their templates added instructions that were not visible in the chat window. The report also describes Mir2k templates that placed a command at the beginning of replies, where a user might see and run it.

What should someone do if they downloaded one?

Malspark recommends checking systems against the indicators in its report and scanning local GGUF files with gguf-radar. The supplied material does not provide enough information to determine whether any particular downloader’s device was compromised.

Source: malspark.com

You May Also Like

CVE-2026-114713: UnrealIRCd Improper Neutralization Of Delimiters Vulnerability Actively Exploited (CISA KEV)

CISA lists an actively exploited UnrealIRCd delimiter-handling flaw, CVE-2026-114713, affecting networks with at least two linked servers.

AI Fuels More Than Half Of Cybercrime In Africa As Scams Surge – Interpol

Interpol reports AI now fuels more than 50% of cybercrime in Africa, with scams surging significantly, highlighting growing digital security concerns.

US Prosecutors Charge Atlanta Man After GrapheneOS Phone Wipes Itself During Airport Search

US prosecutors have charged an Atlanta man after his GrapheneOS phone erased itself unexpectedly during airport security screening. Details remain developing.

VOLTA And The AI Security Debate: Watermarks, Data, And Protection

Cisco Talos says VOLTA sends stolen Windows data to AI models for target assessments. The report does not confirm that any model generated one.