# 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.

Source: https://fullbytedeveloper.com/blog/scan-gguf-models-before-you-load
Published here: 2026-11-29

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](/blog/refuse-fake-claude-npm-packages), [How the September 2025 npm worm spread](/blog/shai-hulud-npm-worm-response), [Remove instrumentation-undici malware](/blog/patch-instrumentation-undici-malware) and [Patch GeoServer WFS KEV floors (CVE-2026-120705)](/blog/patch-geoserver-wfs-kev-floors). Browse the [Security topic](https://fullbytedeveloper.com/blog/topic/security).

## 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.

## Sources

1. [Malspark: GGUF LLM models with hidden malware on Hugging Face](https://malspark.com/blog/malicious-gguf-models-hugging-face/)
2. [Root0ne/gguf-radar (MIT) README](https://github.com/Root0ne/gguf-radar)
3. [gguf-radar v0.1.5 release](https://github.com/Root0ne/gguf-radar/releases/tag/v0.1.5)
4. [gguf-radar 0.1.5 on PyPI](https://pypi.org/project/gguf-radar/0.1.5/)
