Skip to main content

GGUF Radar

CI Release PyPI Python 3.10+ 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.

Metadata

Release files for gguf-radar 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gguf-radar 0.1.4
File Size Uploaded Provenance Actions
gguf_radar-0.1.4.tar.gz 107.0 kB With provenance Details for gguf_radar-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gguf-radar 0.1.4
File Interpreter ABI Platform Actions
gguf_radar-0.1.4-py3-none-any.whl Python 3 none any Details for gguf_radar-0.1.4-py3-none-any.whl

Total release size: 172.4 kB

Release files / gguf_radar-0.1.4.tar.gz

Download URL gguf_radar-0.1.4.tar.gz
Size 107.0 kB
Tags Source
SHA-256 checksum
How to use checksums
86d490843f2ad312cb99f0e016eded647ed16892da032e00e82d93b706586168
BLAKE2b-256 checksum
How to use checksums
6e5eef5bc44456562eff935b5815d1a66fdfb361719dfeae36974eef0cbc8ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / gguf_radar-0.1.4-py3-none-any.whl

Download URL gguf_radar-0.1.4-py3-none-any.whl
Size 65.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48b6e1f7bac6e76608ed746677e3aa44143c364e24b5d6f7adb71be8214623fe
BLAKE2b-256 checksum
How to use checksums
1b6e1f5337f8788402912b0aeeef66612b72b2bff79f1d1c1b27ddeacf5cd7d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for gguf-radar 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gguf_radar-0.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page