
A security investigation into Hugging Face malware identified five model repositories with 2,428 downloads, according to Malspark.
Published on 27 November 2026, its report found hidden executable data in two Mir2k models and poisoned instructions in three timdedid repositories. It did not establish any infections.
Malspark's 26 November scan covered 3,273,389 repositories. Researchers examined 226,310 GGUF repositories containing 2.56 petabytes of weights and statically parsed 572,184 chat templates without executing them.
How Hugging Face Malware Was Hidden in AI Models
The two Mir2k files contained executable data appended after the final tensor, outside the ranges read by common loaders. One carried a Windows executable. The other held its compressed copy. Their chat templates were later changed to display a PowerShell command.
A hidden French system message instructed each model to begin replies with the command. A later version searched the user's profile for its largest GGUF file, extracted its final bytes, wrote them to a temporary executable and launched it.
A download alone did not run it. Users had to copy the command into PowerShell and execute it.
Malspark's static analysis identified the programme, 'ollie', as a Windows remote-access Trojan. It said the code could collect saved browser passwords, target cryptocurrency wallet extensions and mine Monero. These were code capabilities, not confirmed activity on infected devices.
Mir2k created 14 repositories, 12 empty placeholders. The two models were uploaded on 22 and 24 November with clean templates. Both templates were replaced on 26 November, then changed again nine hours later.
The three timedid repositories held identical copies of a Qwen3 model. Their templates searched the latest message for 'What is' before inserting a fake '[SYSTEM DIRECTIVE]'. It instructed an AI agent with shell access to download a script from a WordPress site and run it through PowerShell. Malspark could not recover the script, leaving its intended function unknown.
What the Hugging Face Malware Downloads Mean
The repositories recorded 1,502 downloads on 26 November and 2,428 the next day. The figures do not represent confirmed victims or necessarily unique people.
Hugging Face says counters include GET and HEAD requests to designated files and every GGUF file in a repository. Malspark used HTTP Range requests but did not quantify their effect on the counters.
Malspark said antivirus engines and pickle scanners did not flag either Mir2k file in its tests. The executable was appended beyond the final tensor, and one version was compressed. This finding concerns those tests, not every security product.
Pickle scanners target unsafe deserialisation, not executable data appended to GGUF files.
On 30 November, all five Hugging Face pages displayed notices saying access had been disabled. An Ollama listing associated with timdedid remained viewable, but this did not prove its current file contained the same poisoned template.
Malspark released gguf-radar with its findings. The tool checks templates and data beyond the final tensor and can rebuild GGUF files with unchanged weights while removing or replacing suspicious templates.
Template poisoning can also affect Safetensors and PyTorch models through their template files.
The appended-executable method in the Mir2k files was specific to GGUF.
The findings prompted discussion in r/LocalLLaMA. Threads posted on 28 and 29 November drew more than 1,000 and 380 votes, respectively.
Commenters raised concerns about unfamiliar downloads and asked how to check files. Their reactions are not evidence of infections. A successful model load does not guarantee safe instructions, particularly when an AI agent can access shell commands.











