Osegi
Security·2 min read

TrojanPony: 487 GitHub repos hide a trojan in fake Claude Code skills

Fake Claude Code skills on GitHub still worked as advertised while quietly installing the MopsStealer trojan on Windows. Researchers counted 487 repositories.

A laptop screen showing a code repository with a red warning icon over a skill folder, suggesting a malware infection.
Image: Хабр

If you grabbed a Claude Code skill from a random GitHub fork lately, it may have done its job and robbed you at the same time. Security researchers at AIR have found a campaign called TrojanPony, running since July, that spreads fake Claude Code skills carrying a Windows trojan named MopsStealer.

What is TrojanPony?

Skills are add-ons for Claude Code. The attackers copied popular ones, including ponytail-improved, agents-council and andrej-karpathy-skills, and kept their useful features intact. AIR counted 487 public repositories in total: 413 forks of the fake skills, 50 forks of a fake GTA VI port, 20 compromised repositories belonging to a developer, three fake AI apps and the fake port itself.

On install or use, the skill launches a renamed, legitimately signed Notepad++ updater. That updater loads a malicious DLL sitting next to it, a trick called DLL side-loading. The DLL brings in MopsStealer, which disguises itself as RuntimeBroker.exe, uses the Task Scheduler to survive reboots and downloads extra modules to steal credentials.

The attackers also used a stolen developer GitHub token to push malicious changes into 20 real repositories, including learning-cmake with 3,300 stars, and tried to get at CI secrets. Five of their repositories appeared in GitHub's trending lists, with 2,482 stars combined. Deleting the original account did not remove its forks. Nobody knows how many machines were actually infected.

One malicious copy is still listed on skills.sh, even though it passed three security checks from Gen Agent Trust Hub, Socket and Snyk. In June, Trail of Bits showed that the site's scanners can often be fooled in under an hour. A PASS only means the scanner found nothing.

How to check if you are infected

Windows users are at risk if they installed one of these skills from anywhere but the original author. AIR flags an .exe next to gup.xml and libcurl.dll, for example in ~/.claude/skills or ~/.claude/plugins. A RuntimeBroker.exe in C:\ProgramData\Windows\Microsoft is another warning sign, since the real one lives in System32. A Defender alert for Trojan:Win64/DLLHijack.MK!MTB confirms an infection.

If you find any of this, clean the system, then use a clean device to change every password and token stored or used on the infected machine. Afterwards, check your GitHub security log for commits or workflows you did not create.

Apps worth a look

SUMO: the number puzzle

Tap the right tiles, add them up, hit the target. Easy to learn, hard to master. Free, for all ages.

Tags:claude codegithubtrojanponymopsstealermalwarewindows

More from this day

See all →

More in: Security

See all →