Malspark and AIR Security researchers revealed two supply chain attacks on AI tools with similar mechanics: five malicious GGUF models on Hugging Face, downloaded 2,428 times, and the TrojanPony campaign featuring fake skills for Claude Code that infected 487 repositories. In both cases, the malware hides in bytes that standard loaders and scanners do not check.

image
image
image

What happened

On November 26, 2026, Malspark researchers completed scanning 3,273,389 public model repositories on Hugging Face and discovered five malicious GGUF models, with a total of 2,428 downloads. The infection works in two stages: a swapped Jinja2 chat template (tokenizer.chat_template) forces the model to output a PowerShell command, while an executable file—a 11.47 MB Windows RAT named "ollie" containing Tor 0.4.9.16 and a Monero RandomX miner—is appended after the last tensor in the file. Simultaneously, AIR Security described the TrojanPony campaign, active since July 2026: 487 repositories and 413 forks with fake skills for Claude Code under the names ponytail-improved, agents-council, and andrej-karpathy-skills. These skills launch a signed Notepad++ installer, load a swapped libcurl.dll, weaken Defender, and install MopsStealer, which masquerades as RuntimeBroker.exe. An open-source tool, gguf-radar, has been released to detect threats in GGUF files.

Context

GGUF is a common format for storing language model weights. Local loaders like llama.cpp only read up to the last tensor, leaving the file tail out of sight. Hugging Face is perceived by the community as a trusted model hub, while catalogs like skills.sh are seen as a source of verified skills for coding agents. Standard security tools—Socket, Snyk, Gen Agent Trust Hub—check dependencies and binaries but do not inspect bytes after GGUF tensors or the contents of signed installers, which may hide a swapped libcurl.dll. TrojanPony exploits exactly this trust: one of the fake skills had a verification badge in the skills.sh catalog, and the installer was signed.

Why this matters for the industry

The incident shows that the current model loading and skill installation chain lacks artifact-level verification: neither loaders nor standard scanners inspect the chat_template, the GGUF file tail, or swapped DLLs inside signed binaries. For production teams, this means that "passing a scanner" and "signature verification" are not proof of security, and model and skill verification becomes a separate mandatory infrastructure layer. For vendors and startups, this is an opportunity: gguf-radar and similar YARA rules can already be integrated into CI/CD as a standard model loading stage, and TrojanPony IoCs can be added to antivirus and SIEM rules. It is expected that Hugging Face and skill catalogs will introduce mandatory artifact verification, and AI artifact supply chain security will become a standalone discipline with specialized scanners for GGUF and Safetensors.

Why this matters for users

If you have downloaded GGUF models from Hugging Face or installed skills and plugins for Claude Code from unofficial sources, check your files. For GGUF models, run gguf-radar scan (installed via pip install gguf-radar, requires Python 3.10+) or gguf-radar sanitize to create a clean copy and compare the chat template with the original. For TrojanPony, look for an executable file next to libcurl.dll in the ~/.claude/skills or ~/.claude/plugins directories, a RuntimeBroker.exe process outside of System32, and the Defender alert Trojan:Win64/DLLHijack.MK!MTB. If any of these are found, reinstall Windows, change all passwords, and audit your GitHub. The cost of checking takes minutes, while the cost of compromise is a full system reinstall and changing all tokens.

What is currently unknown / limitations

Five infected GGUF files out of 3,273,389 repositories is a low percentage, so the incident speaks to the quality of check evasion rather than mass hub infection. The exact number of TrojanPony victims beyond the 487 repositories and 413 forks is not specified. The detection quality of gguf-radar, including the rate of false positives and misses, is not described in the sources. The full list of TrojanPony IoCs is cut off in the available material, so for a complete check, one should refer to the original AIR Security blog.

Sources

Author

Look at AI, editorial team