All postsSHORT3 min read
Malspark Found AI Model Files Hiding Windows Malware on Hugging Face
Malspark found 5 malicious GGUF models in public Hugging Face repos. How the Windows payload and template tricks worked, and how to check local models.
Malspark found AI model files on Hugging Face hiding Windows malware while loading normally. Its Nov 27, 2026 research describes hidden bytes and changed chat templates. The command a model suggests needs its own review.
What Malspark found
Malspark scanned all 3.27 million public Hugging Face model repos and found 5 malicious GGUF models.
Malspark reported 2,428 downloads as of Nov 27 (downloads, not people). The findings cover models uploaded by the accounts Mir2k and timdedid.
Trick 1: bytes after the weights
Per Malspark, 2 of the models (account Mir2k) hid a Windows program after the model's last tensor, where model loaders never read. Those extra bytes didn't change how the model loaded or behaved.
Days later, Mir2k changed the chat template so the model starts every reply with a PowerShell line for the user to copy and run. That line unpacks the hidden program. Malspark's sequence depends on the user running the suggested line.
One Mir2k repo was named Inkling-2-Mini-Uncensored-GGUF. That's the account's repack named after Inkling 2 Mini.
Trick 2: hijacking coding agents
Per Malspark, the other 3 (account timdedid) target coding agents: when the user's latest message contains 'What is', the template tells an agent with a PowerShell tool to download and run a script.
Malspark didn't recover the second stage. What it would've installed is unknown.
What the Windows program does, per Malspark
Per Malspark's analysis, the Mir2k program steals saved browser passwords (Chrome, Edge, Brave), targets the Phantom and MetaMask wallet extensions, can log keys, take screenshots and use the webcam, and mines Monero when the PC is idle.
Malspark describes a Windows x64 program. Its analysis says Chrome's newer v20 App-Bound encrypted entries were left undecrypted.
Why antivirus missed it
Antivirus didn't flag the live Mir2k files in Malspark's tests. Malspark says antivirus engines and checks that only look at the last few kilobytes of a file don't see the compressed payload.
The normal model-loading path also stops before those appended bytes, per Malspark.
Where it stands now
Hugging Face has since disabled all 5 (checked Nov 29). Our check of the model pages found access disabled. The disablement time isn't established by that check.
How to check your own models
Released with the research, gguf-radar is free and open source (MIT code). It scans GGUF files and Hugging Face models without running them, and can rebuild a GGUF file with the weights unchanged. Rebuilding keeps the embedded chat template unless you replace or remove it, so a rebuilt file isn't guaranteed safe. The README requires Python 3.10+.
Scan a local file:
gguf-radar scan ./model.gguf
Rebuild the file:
gguf-radar sanitize suspicious.gguf -o clean.gguf
Rebuilding keeps the embedded chat template unless you replace or remove it, so a rebuilt file isn't guaranteed safe.
gguf-radar exits with code 2 on SUSPICIOUS or MALICIOUS, so it can stop a CI pipeline. The README also lists code 0 for CLEAN and code 1 for ERROR.
Malspark's advice: treat any command a model suggests as untrusted, and pin a reviewed chat template (llama.cpp --chat-template-file, or TEMPLATE in an Ollama Modelfile).
gguf-radar looks for known patterns; a carefully written template can still pass, and it doesn't check what the model has learned.
How I'd turn it into a service (my opinion, no income guaranteed)
Malspark suggests companies pass every incoming model through gguf-radar before it reaches an internal model registry or a developer machine.
I'd sell teams that run local models an intake check built around that advice. Wire the scan into CI, stop the pipeline on a flag, and pin a reviewed template. Hand over the scan results and the template the team reviewed so they can repeat the check on the next model.
I'd keep the tool's limitations beside the report. No income guaranteed.
Daily email
Get each breakdown in your inbox.
One email each evening, right after the Short goes live: the AI tool it covers, the full write-up with sources, and how to get paid for it. Free, and you can unsubscribe anytime.