Root0ne/gguf-radar

★ 388⑂ 39

Checks LLM model files for hidden malware and poisoned chat templates without running them, and builds clean copies of GGUF files.

About Root0ne/gguf-radar

Root0ne/gguf-radar is an open-source project on GitHub, mainly written in Python. Checks LLM model files for hidden malware and poisoned chat templates without running them, and builds clean copies of GGUF files. It currently holds 388 stars and 39 forks with 2 open issues, and was last pushed on 2026-11-29 (repository created 2026-11-27).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #97 with 0 new stars today.

GitHub Repository Details

Repository Root0ne/gguf-radar · default branch main · size 336 KB · watchers 3 · source: GitHub REST API and repository README

README

https://github.com/Root0ne/gguf-radar/blob/HEAD/GGUF Radar

https://github.com/Root0ne/gguf-radar/blob/HEAD/CI https://github.com/Root0ne/gguf-radar/blob/HEAD/Release https://github.com/Root0ne/gguf-radar/blob/HEAD/PyPI https://github.com/Root0ne/gguf-radar/blob/HEAD/Python 3.10+ https://github.com/Root0ne/gguf-radar/blob/HEAD/License: MIT

GGUF Radar

GGUF Radar checks LLM model files for hidden malware and poisoned chat templates. It never runs the model or its template. If it finds something in a GGUF file, it can also build a clean copy of that file with the same model weights.

It works on GGUF files on your disk and on models hosted on Hugging Face. For Hugging Face models it downloads only the small parts it needs, so a scan takes seconds even for very large models. It also checks the chat templates of Safetensors and PyTorch models.

Why this matters

A GGUF file holds the model weights and a chat template, which is a small program that formats every conversation before the model reads it. Attackers have used both. They hide programs after the end of the weights, where model loaders never look, and they change the chat template so that the model tells the user to run a command or tells a coding agent to download a script. These attacks are described in this research post.

Install

GGUF Radar needs Python 3.10 or newer.

pip install gguf-radar

To install from the repository instead, run pip install git+https://github.com/Root0ne/gguf-radar.

Quick start

Check a file on your disk:

gguf-radar scan ./model.gguf

Check a model on Hugging Face:

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

Build a clean copy of a file:

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

Compare the chat template of a GGUF file with the template of the original model:

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

Results

Every scan ends with one of four verdicts.

| Verdict | What it means | | --- | --- | | CLEAN | Nothing suspicious was found. | | SUSPICIOUS | Something unusual was found. A person should look at it. | | MALICIOUS | The file shows a pattern used in real attacks. Do not use it. | | ERROR | The file or the repository could not be read. |

The command exits with code 0 for CLEAN, 2 for SUSPICIOUS or MALICIOUS, and 1 for ERROR, so it can stop a CI pipeline.

Documentation

The YARA rules for the attacks in the research post are in rules/.

Contributing and security

Bug reports, missed detections and false alarms are welcome as issues. Please read CONTRIBUTING.md before you open a pull request. If you find a security problem in GGUF Radar itself, please report it privately as described in SECURITY.md.

License

The code is released under the MIT License. The logo, the documentation and the YARA rules are released under CC BY 4.0, as described in LICENSE-ASSETS. Both licenses only ask that you keep the credit to @Root0ne.

GitHub Stars & Activity

388Stars
39Forks
2Open issues
PythonLanguage

GitHub Popularity

GitHub stars388
Forks39
Open issues2
Primary languagePython
LicenseMIT
Stars gained today0
Created2026-11-27
Last pushed2026-11-29

Trending History

Daily boardrank #97 · ▲ 0 stars

Related AI Projects

1

mvanhorn / last30days-skill

Python★ 78,100⑂ 7,022▲ 768 stars
→
2

jingyaogong / minimind

Python★ 73,606⑂ 9,726▲ 683 stars
→
3

HKUDS / CLI-Anything

Python★ 68,718⑂ 6,408▲ 724 stars
→
4

wshobson / agents

Python★ 43,085⑂ 4,573▲ 36 stars
→
5

agentscope-ai / agentscope

Python★ 36,934⑂ 3,959▲ 45 stars
→
6

zhouxiaoka / autoclip

Python★ 19,343⑂ 2,757▲ 737 stars
→
7

Tracer-Cloud / opensre

Python★ 16,959⑂ 2,302▲ 319 stars
→
8

SWE-agent / mini-swe-agent

Python★ 10,209⑂ 1,384▲ 33 stars
→

More AI Rankings