Security researchers say they found five malicious GGUF language-model repositories on Hugging Face that had accumulated 2,428 downloads by November 27. The reported campaigns combined poisoned chat templates with instructions that could induce users or tool-enabled agents to run malicious commands, while two models also carried a Windows remote-access program hidden inside the model files.
The figure represents downloads, not confirmed victims. Hugging Face’s counter can include repeat downloads, so the number of affected people cannot be determined from the total alone. The finding nevertheless highlights an unusual software-supply-chain risk for users who obtain local AI models from public repositories.
GGUF files contain metadata, including a chat template that formats conversations before they reach a model. According to Malspark’s report, attackers altered templates to insert instructions that were invisible in the chat interface. One campaign used a trigger phrase to add a false system directive telling an agent with shell access to download and execute a script. Another instructed the model to begin replies with a PowerShell command that a user might copy and run.
The larger campaign, attributed in the report to an account named Mir2k, also appended a Windows remote-access trojan called “ollie” after the final tensor in two GGUF files. Normal loaders read the locations declared in the GGUF header and ignore trailing data, allowing an executable to sit inside the file without affecting model loading. One copy was stored plainly with filler added after it; the other was compressed in a way that removed recognizable executable signatures.
Malspark said it scanned more than 3.27 million public Hugging Face model repositories on November 26, including 226,310 GGUF repositories. The scan parsed 572,184 chat templates without executing them and used HTTP range requests to inspect file headers and endings rather than downloading every model in full. Researchers manually excluded test repositories, benign role-playing prompts and published research samples before identifying the five repositories.
The report said all five remained online on November 27. Their combined download count rose from 1,502 on November 26 to 2,428 a day later, with most of the increase attributed to the two Mir2k models. The account had also created empty repositories named after anticipated model releases, a pattern the researchers flagged as preparation for future uploads.
The researchers released an open-source scanner called gguf-radar, along with indicators and detection rules. They said the tool checks both templates and data appended beyond the last tensor, and can rebuild a clean file while retaining the model weights.
Users should treat the findings as a warning about model provenance rather than assume every GGUF file is unsafe. The reported technique depends on malicious repository contents and, ultimately, execution of an inserted command. Verifying publishers, scanning downloaded files and refusing unexpected shell commands remain important safeguards.



