Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Malware-laden GGUF models on Hugging Face reached about 2,400 downloads

A scan of all 3.27 million public Hugging Face model repos found five malicious GGUF models from two actors, downloaded 2,428 times as of 27 November. The attack combines a poisoned chat template, which silently injects instructions (telling a shell-enabled…

Published Read the original

Ranked #3 of 29 on Saturday, November 28

Malware-laden GGUF models on Hugging Face reached about 2,400 downloads

Why it matters

Anyone pulling local models from Hugging Face, especially into agents with shell access, should treat the chat template and trailing file bytes as attack surface, not inert metadata.

What happened

1 min read

A scan of all 3.27 million public Hugging Face model repos found five malicious GGUF models from two actors, downloaded 2,428 times as of 27 November. The attack combines a poisoned chat template, which silently injects instructions (telling a shell-enabled agent to fetch and run a script, or prefixing every reply with a PowerShell line for the user to run), with a Windows remote-access trojan appended after the last tensor, where llama.cpp and LM Studio never read. The open-source gguf-radar tool detects both statically and rebuilds a clean file with unchanged weights.

inscraper analysis

Our analysis

Neither technique is new on its own: template injection was demonstrated in the lab in 2025, but this is the first public report of it being combined in the wild with an appended executable. The plant-first, arm-later pattern is the worrying part: files sat with clean templates for days before being switched, and the attacker pre-created empty repos named after expected releases such as Qwen4 and DeepSeek-V4 to catch early downloaders. The figures come from a single source that also ships the detection tool, and downloads are not victims. Safetensors blocks the appended-payload half but not the template half. Practical takeaway: be wary of 'uncensored' or 'abliterated' uploads from new accounts, and inspect templates before wiring a local model into an agent. The article quotes injected instructions as examples; they were treated as data.

More in Research