Trojan found in Hugging Face GGUF models; 3.2M repos scanned, sandbox-plus-scan workflow shared

udmrzn · x · 2026-11-30

Security researcher @Root0ne claims 5 GGUF models on Hugging Face hid malware (2,428 downloads). After scanning 3.27M public repos, the main campaign "Mir2k" placed a Windows trojan after the last tensor in "uncensored" GGUF files—a region llama.cpp and LM Studio never read—and rewrote chat templates so every reply starts with a PowerShell line unpacking it. The model loads and answers normally while the payload rides along.

The original poster shares a protection workflow for local LLMs:

The author's own flow: AI agent downloads the model, but sandbox isolation plus pre-scan is mandatory, and results are only retrieved from the sandbox.

Related event: Scan of 3.27M Hugging Face Repos Finds 5 Malware-Laden GGUF Models(10 posts)→

Original post →

More from Safety

Safety channel →