← Back to Tech Radar
Hacker News tech

GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims

Trending on Hacker News: GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims (234 points / 69 comments, via malspark.com)

In one line

A scan of all 3273389 public Hugging Face model repositories found five malicious models downloaded 2428 times. The main campaign, Mir2k, hides a Windows remote access trojan at the end of GGUF files and later arms the chat template to make the model print the command that unpacks it.

Opening excerpt

  1. Summary Copy Anchor Link Local LLMs are usually shared as GGUF files, and every GGUF file carries a chat template that the runtime applies to each prompt. Chat template poisoning abuses that template. The model answers normally, while the template quietly adds instructions the user never sees: make an agent run a PowerShell command, or open every reply with a command for the user to run. In its strongest form, the malicious program travels inside the model file itself, appended after the last tensor where loaders never read, and the template is switched on later.

The open-source tool gguf-radar detects these templates and hidden bytes without running anything, and rebuilds a clean GGUF file with the model weights unchanged. Indicators, YARA rules and a MITRE mapping close the post.

The key figures of the scan are summarized below; each one is explained in Section 3.

Check endpoints against the indicators in Section 7.2 and scan local .gguf files with gguf-radar . Antivirus engines and checks that only look at the last few kilobytes of a file do not see the compressed payload.

(Excerpted from the original; full article via the source link below.)

This story hit the Hacker News front page today (234 points / 69 comments, via malspark.com). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.

Source: Hacker News

Related Services

Related Reading