Five Poisoned Models on Hugging Face, Backdoors for $30
Malspark found five malicious GGUF models on Hugging Face, and a Purdue preprint backdoored five more by editing weights for under $30 each.

Malspark found five malicious GGUF models on Hugging Face last week. Days earlier, a preprint showed an agent planting backdoors in open-weight models for under $30 each.
Neither result is a breach report. Together they move the model file out of the "data" column and into the supply chain, where npm packages and container images already live.
What was found in the wild
Malspark scanned 3,273,389 public Hugging Face model repositories on 26 November 2026, including 226,310 GGUF repositories, and reported five malicious GGUF models with 2,428 downloads as of 27 November. Downloads are not unique users, so that figure is a ceiling, not a victim count.
The attack rides a part of the file most people forget is executable. A GGUF file "is not just weights. It also carries a chat template, a small program that rewrites every prompt before the model sees it." Two accounts were behind the five models. One made the model open each reply with a one-line PowerShell command that extracts a hidden program appended after the last tensor. The other told coding agents with a PowerShell tool to download and run a remote script whenever a question started with "What is".
According to the report, the recovered payload stole saved browser passwords and crypto wallet data, logged keys, captured screen and webcam, and mined cryptocurrency over Tor. No CVE is involved: llama.cpp, Ollama and LM Studio all work as designed. The attack relies on users trusting the file.
And what was done in a lab
The second result is arXiv 2611.27425, submitted 20 November 2026 by Ahaan Dabholkar, Harshvardhan Patel, Michalis Polychronakis and Saurabh Bagchi (Purdue / Stony Brook), which hit the Hacker News front page on 29 November. The write-up reports that two agents edited the weights of five open-weight vision-language models directly — no training run, no poisoned dataset.
The reported numbers: backdoored moderation models passed trigger images 93 to 100 percent of the time while keeping clean-input accuracy intact; OCR success ran 78 to 100 percent; the best case edited as little as 0.0003 percent of a model's weights; and the API tokens cost under $30 per model. The trigger was a perturbation staying within four pixel-value levels of the original image.
The author of the write-up is explicit about the limits: one experiment, five models, a preprint that has not been peer reviewed, and no claim that a production service has been hit this way.
Why your evals miss both
The two attacks share a failure mode. The GGUF template "sits in the file metadata, and the chat window never shows it"; bytes after the last tensor are never read by the loader, so no runtime warns about them. The weight-edited models keep their clean accuracy by construction. In both cases the model still answers well, so a quality test passes.
Neither is GGUF-exclusive. The same chat-template field exists in safetensors models via tokenizer_config.json or chat_template.jinja; only the appended-payload trick is blocked there, because the safetensors loader rejects extra bytes.
What to check before the next deploy
- Download from the publisher's own organization, found by listing — not by guessing a repo name. One account created empty repositories named after models that had not been released yet.
- Load a reviewed template (
--chat-template-filein llama.cpp,TEMPLATEin an Ollama Modelfile) instead of the one inside the file. - Reject GGUF files with bytes after the last tensor, and pin the hash of the exact file you tested.
- Gate agent tool calls, since both campaigns end with something on your machine running a command it should not.
One defensive result is worth watching: the paper's authors gave a separate LLM agent read-only access to the weights and asked it to classify each model as edited or unedited. It flagged every backdoored model with zero false positives — on five models, in one experiment. If that signature holds at scale, weight auditing becomes the model equivalent of a dependency scan. Until then, provenance and a pinned hash are what you actually have.
More from DangMua