Full Byte Developer.

Scan GGUF models before you load them

Scan Hugging Face GGUF files with gguf-radar; Mir2k hid a RAT after the last tensor and armed the chat template later.

Published here · 4 sources

A scan of 3,273,389 public Hugging Face model repositories on 2026-11-26 found 5 malicious GGUF models still online with 2,428 downloads as of 2026-11-27. Hugging Face counts downloads, not people. Run gguf-radar scan before you load a model, compare the chat template of a SUSPICIOUS file, and delete any file marked MALICIOUS. [1][2]

Related reading: Refuse fake Claude npm packages, How the September 2025 npm worm spread, Remove instrumentation-undici malware and Patch GeoServer WFS KEV floors (CVE-2026-120705). Browse the Security topic.

Install gguf-radar and scan without running the model

Root0ne/gguf-radar is MIT. The README says it never runs the model or its template. It needs Python 3.10 or newer. The latest release is v0.1.5, published 2026-11-30. Install that exact version from PyPI: [2][3][4]

bash
pip install gguf-radar==0.1.5

Scan a local file: [2]

bash
gguf-radar scan ./model.gguf

Scan a Hugging Face repo (downloads only the parts the tool needs): [2]

bash
gguf-radar scan Qwen/Qwen2.5-0.5B-Instruct-GGUF

Sanitize or compare the chat template

Build a clean GGUF with weights unchanged: [2]

bash
gguf-radar sanitize suspicious.gguf -o clean.gguf

Compare the chat template against a base model: [2]

bash
gguf-radar compare-template ./model.gguf --base Qwen/Qwen2.5-0.5B-Instruct

README verdicts: CLEAN, SUSPICIOUS, MALICIOUS, ERROR. Exit code 0 for CLEAN, 2 for SUSPICIOUS or MALICIOUS, 1 for ERROR. [2]

The README says a file marked MALICIOUS shows a pattern used in real attacks and should not be used. I would delete it rather than load a sanitized copy. [2]

Read the scan numbers

Malspark published the research on 2026-11-27. The scan covered every public Hugging Face model repository, including 226,310 GGUF repositories, and parsed 572,184 chat templates without running them. Five repositories from two accounts were still online on 27 November. Their downloads grew from 1,502 at scan time to 2,428 a day later, almost all on the two Mir2k models. [1]

Know where the malware hides

Malspark describes two real campaign patterns. [1]

Mir2k: a Windows remote access trojan named ollie sits after the last tensor. Loaders ignore those bytes. On 2026-11-26 the campaign rewrote both chat templates so the model asks the user to run the line that unpacks the implant. [1]

timdedid: a trigger phrase in the user message makes the template insert a fake [SYSTEM DIRECTIVE] that orders an agent with shell access to download and run a script. [1]

If you already loaded one of the listed campaign repos, Malspark says to check endpoints against its indicators and scan local .gguf files with gguf-radar. [1]

Send this to the teammate who pulled a "free uncensored GGUF" without a scan.

Keep this guide

By Full Byte Developer

Filed under Security, Local AI

Questions about this guide

How many malicious GGUF models did the scan find?

Malspark scanned 3,273,389 public Hugging Face model repositories on 2026-11-26 and found 5 malicious GGUF models still online with 2,428 downloads as of 2026-11-27. Hugging Face counts downloads, not unique people.

What does Mir2k put inside the GGUF file?

Per Malspark, Mir2k appends a Windows remote access trojan after the last tensor, where loaders do not read it, then later rewrites tokenizer.chat_template so replies print the unpack command.

What does timdedid do?

Malspark describes timdedid templates that insert a fake system directive on a trigger phrase so an agent with shell access downloads and runs a script.

Which gguf-radar commands should I keep?

The README documents gguf-radar scan for a local file or Hugging Face repo, gguf-radar sanitize to rebuild a clean GGUF with weights unchanged, and gguf-radar compare-template --base to compare chat templates.

Does a CLEAN verdict mean the model is safe forever?

No. Per the README, CLEAN means nothing suspicious was found in that scan. Re-scan after template updates, and treat Hugging Face download counts as downloads, not people.

Sources

Next in this stack