wasl.tech

Fake Claude Code Skills Spread a Windows Password Stealer Across 487 GitHub Repos

It started with a small upgrade. A developer hunting for a better version of a popular coding skill found one on GitHub, promising sharper results and a smoother workflow. The install took seconds. The skill worked exactly as advertised. Nothing looked wrong.

That was the trap. Behind the familiar tool hid a Windows password stealer, and the developer had just invited it in.

Security researchers at AIR have now mapped the full scale of the campaign, which they call TrojanPony. According to the firm’s report, published on November 26, fake copies of popular coding-agent skills have been spreading a Windows trojan through GitHub since July 2026, reaching 487 public repositories.

The most alarming detail is not the size of the spread. It is how normal everything looked. The fake skills worked like the real ones, passed three independent security scans, and even trended on GitHub. For months, the malware hid in plain sight.

What TrojanPony is and how researchers found it

AIR Security’s research lab uncovered the campaign while tracking malicious coding-agent add-ons in the wild. The attackers published supposedly improved copies of well-known skills and plugins for Claude Code and similar coding agents, including ponytail-improved, agents-council and andrej-karpathy-skills.

The copies were published between July 26 and August 1 by an account using the name 0xwilliamortiz. Apart from the hidden payload, they behaved exactly like the originals. The original projects were not affected, according to AIR, and anyone who installed a skill from its real author was never at risk.

The deception worked because the fakes offered something developers genuinely wanted. The names promised improvements, the repositories looked active, and the tools delivered on their promises. The malware only revealed itself after the skill was already running. It is the latest reminder that AI tooling itself has become a target, as the earlier Fireworks AI breach showed when attackers went after the infrastructure behind AI services.

How the fake Claude Code skills delivered the malware

The attack chain relied on a clever disguise. Installing or using one of the fake skills launched an executable that was, in fact, the genuine and validly signed updater for Notepad++, renamed and bundled alongside the skill. Because the file carried a real digital signature, it looked trustworthy to the system.

That renamed updater then loaded a malicious file called libcurl.dll from the same folder. The DLL exported 56 fake curl functions, and when the updater called one of them, the attack began. It used PowerShell commands to add exclusions to Microsoft Defender, including paths under the Windows ProgramData directory.

With the defences quietly switched off, the DLL dropped a trojan known as MopsStealer. The trojan installed itself as RuntimeBroker.exe, a name chosen to mimic a legitimate Windows process, and set up persistence through four scheduled tasks so it would survive reboots.

MopsStealer also bypassed User Account Control, patched the Windows antimalware interface known as AMSI, and reached out to its command-and-control server at 145.63.134.94, with 64 duckdns.org fallback names. From there it could download further modules, including one designed to steal credentials and other sensitive data.

The scale of the spread across GitHub

By November 26, AIR counted 413 surviving forks of the malicious skills. The broader operation had reached 487 public repositories, including 50 bot-created forks of a fake Grand Theft Auto VI PC port, 20 compromised developer repositories and three fake AI application listings.

Five of the attacker’s repositories even appeared in GitHub trending digests, gathering 2,482 stars between them. AIR suspects many of those stars were purchased. One repository jumped from 175 to 567 stars in a single week, a pattern that helped the fakes look popular and credible.

The campaign did not stop at coding skills. In November the same malware kit moved on to AI-app lures, the bogus GTA VI download, and real trusted repositories that had been pushed with a stolen developer token. A trusted repository with 3,300 stars was among those hijacked, showing how the attack could ride on reputations it never earned — a pattern also seen in the Grok Build leak, where shared links exposed private apps and data.

The original attacker account has since disappeared from GitHub. Deleting it did not remove the forks. The copies remain online, and anyone who finds one through a search or a directory listing can still install the malware today.

Why three security scanners gave the malware a pass

Perhaps the most troubling finding is that the fake ponytail skill was still listed on the popular skills.sh directory as of November 29, complete with an install command and passing results from three independent scanners: Gen Agent Trust Hub, Socket and Snyk. All three said PASS.

The scanners were not looking in the wrong place so much as looking at the wrong thing. Only the DLL was malicious, and as of November 26 none of the campaign’s DLL builds had ever been submitted to VirusTotal. The signed updater was genuine, the skill itself worked, and the dangerous file sat quietly beside them.

Researchers had warned about exactly this weakness months earlier. In June, researchers at Trail of Bits demonstrated that the scanners then built into skills.sh could be bypassed with standard tricks, usually in less than an hour. The TrojanPony campaign appears to have put that lesson into practice at scale, much like the hijacked AI package on PyPI that turned a trusted Microsoft library into a credential stealer.

The result is a hard truth for the fast-growing ecosystem around AI coding agents. A green tick from a scanner is not proof that a skill is safe. It is proof that the skill passed the checks the scanner knew how to run.

How to tell if your machine is affected

Windows users are at risk if they installed one of the named skills from a copy rather than from its original author. AIR lists several warning signs that are easy to check before doing anything else.

Look inside your Claude Code directories, such as ~/.claude/skills or ~/.claude/plugins, for an executable file sitting next to gup.xml and libcurl.dll. That combination is a strong indicator of the malicious package. The genuine skill folders should not contain those files.

Another warning sign is a RuntimeBroker.exe file in C:\ProgramData\Windows\Microsoft. The legitimate Windows file lives in System32, not in ProgramData. A Microsoft Defender alert for Trojan:Win64/DLLHijack.MK!MTB is another clear confirmation of infection.

If you find any of these, do not try to clean the machine by hand. The trojan’s persistence mechanisms and credential theft mean a partial cleanup leaves the attacker with your passwords and tokens.

What to do if you installed a fake skill

AIR advises anyone who ran one of the malicious plugins to isolate the machine and reinstall Windows from a clean source. That is the only reliable way to be sure the trojan and its scheduled tasks are gone.

Then change every password and token that was stored or used on the infected machine, starting with GitHub credentials. Do this from a separate, clean device, not from the machine you are rebuilding. Review the GitHub security log for any activity you do not recognise.

Going forward, install skills only from the author’s own repository, and look at the files a skill includes before you run it. A skill is code, and code from a stranger deserves the same caution as any other download. Check for bundled executables and DLLs, especially ones you did not expect.

What happens next for AI coding tools

The TrojanPony campaign exposes a gap that the AI coding boom created almost overnight. Skills and plugins for agents like Claude Code spread through GitHub repositories and community directories, with little of the review that app stores apply to software. Developers install them with a single command, often without reading what they contain.

That convenience is now a target. Attackers have learned that a popular skill is a trusted delivery channel, and that a signed binary plus a working tool is enough to slip past both scanners and human judgement. The campaign’s move into hijacked repositories and fake apps suggests the same kit will keep finding new lures.

For now, the advice is simple and urgent. Check what you installed, trust only the original authors, and treat every community skill as code that runs on your machine, because that is exactly what it is.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top