Beware of Fake Claude Code Skills! How the Attack Works and How to Check If You're Infected
機械翻訳 / Machine-translated

機械翻訳 / Machine-translated
@aifriends
AI Friends(https://aifriends.jp)のクロスポスト公式アカウント。AIツールの紹介・使い方・できることを、中学生でもわかるやさしい日本語で届けます。
Have you ever installed an "improved" skill you found on GitHub without a second thought? Security firm AIR reported that fake improved versions are distributing malware. The impact has spread to more than 480 repositories (storage locations for programs). Read this article to understand the attack methods, how to check for infection, and what countermeasures to take.
On November 26, 2026, AIR published an investigation report on an attack they named TrojanPony.
The targets were skills and plugins for AI coding agents (AI that handles programming tasks on your behalf). Skills are supplementary files that teach an AI how to proceed with its work.
Attackers published fake "improved versions" mimicking popular skills on GitHub. These contained a full set of Windows malware hidden inside. Apart from the malicious components, they functioned just like the real thing.
The attack has been ongoing since July 2026. As of November 26, there were 487 public repositories containing the malware package.
Of those, 413 were forks of the fake skill (copies made from the original malicious repository). The account that first published the fake was deleted, but the copies remained.
| Fake Skill Name | Number of Forks |
|---|---|
| ponytail-improved | 125 |
| ratchet | 85 |
| humanizer-cli | 67 |
| andrej-karpathy-skills | 48 |
| openclaude-improved | 36 |
| agents-council | 35 |
| FlashKDA | 13 |
| yoinks | 3 |
| claude-code-skills | 1 |
Incidentally, according to AIR, the original skills were not affected. Even if a name looks similar, a different distribution source means it is an entirely different thing.
The remaining 74 repositories include lures disguised as a PC port of the game "GTA VI," 50 bot-generated copies of those lures, 3 lures disguised as AI apps, and 20 cases of hijacked legitimate developer repositories discussed next.
The damage was not limited to publishing fakes. According to AIR, attackers abused a token (a string of characters that acts like a master key for identity verification) stolen from a developer.
On November 17, the malware package was written into 20 repositories. Among them was "learning-cmake," which had 3,300 stars (favorites).
The core of the attack method is a technique called DLL side-loading — an attack that causes a legitimate program to load a fake component placed in the same folder.
The exe that launches is a renamed version of the update tool for the text editor "Notepad++." Because it is a genuine program with a valid digital signature, it doesn't look suspicious at first glance.
The malicious work is done by the fake DLL placed alongside it. It adds a setting to Defender — Windows' built-in antivirus — telling it "this folder doesn't need to be scanned."
What gets installed is a trojan (malware disguised as harmless software) called "MopsStealer." It calls itself "RuntimeBroker.exe," the same name as a legitimate Windows file.
It also registers 4 scheduled tasks (automated execution entries) so it persists after a reboot. It has the ability to bypass User Account Control prompts, and additional components for stealing information are pulled from the attacker's server.
Note that AIR's report does not include a specific list of the types of data that are stolen. It is safest to assume that all credentials used on the PC have been compromised.
The trigger for execution varies by skill. "ponytail-improved" runs the exe as part of the installation process.
Consider a scenario where a developer installs "agents-council." This skill runs the exe every time its consultation feature (council) is called. Every time the developer consults it over a design question, the malware's processes run in the background. Since everything works just like the real skill except for the hidden components, it would be very difficult to notice anything wrong.
What is surprising is that the malicious skills passed through inspection. As of November 26, the malicious skills were listed on the skill distribution site "skills.sh," with installation commands displayed and all three independent checks showing "PASS."
According to Notebookcheck, as of November 29, the fake ponytail-improved was still listed, with checks from Gen Agent Trust Hub, Socket, and Snyk all showing PASS.
According to AIR, none of the fake DLLs had been submitted to VirusTotal (a service that scans files with numerous security tools) as of November 26. Additionally, the November versions of the DLLs were padded out to 8–16 MB with filler data, in order to keep the entropy (a measure of file randomness) low.
In fact, the weakness of these checks had been pointed out earlier. In June, security firm Trail of Bits published a verification article showing they were able to bypass skill inspection tools, including the three checks integrated into skills.sh. They said that three of the four skills they tested could each be created in under an hour.
In other words, PASS simply means "nothing was found during the check." It is not a guarantee of safety.
Five of the attacker's repositories made it onto trending lists and accumulated a combined 2,482 stars. AIR believes these stars were likely purchased.
Imagine an independent developer who finds a trending "improved version" in the middle of the night. With lots of stars and passing checks, they'd naturally be tempted to install it right away. Even with these seemingly reassuring signals, the contents may not be safe.
So what criteria should you use when choosing? Let's compare commonly used judgment factors.
| Judgment Factor | What It Tells You | Limitations |
|---|---|---|
| Name and description | What the skill claims to do | Easily imitated |
| Star count | Whether it appears popular | There are cases of suspected purchased stars |
| Public scanners | Whether checks find anything suspicious | Fakes passed this time |
| Verifying the distribution source | Whether it comes from the author themselves | The author's token may have been stolen |
| Checking file contents | What is being executed | Requires time and knowledge to read |
No single factor is enough. The basics are verifying the distribution source and then reading the contents.
The official ponytail repository instructs users to obtain it from only two sources: GitHub's DietrichGebert/ponytail, or npm (a service for distributing program components) at @dietrichgebert/ponytail. It also explicitly states that no exe or DLL files are distributed.
Anthropic also warns about this in the official Claude Code documentation. Installed plugins can execute arbitrary code on your PC with your user privileges. If auto-update is on, files may change after you've verified them.
If you think you may have installed a fake skill, check the following points on that Windows PC. Do not run any suspicious exe files, even just to check.
~/.claude/skills, ~/.claude/plugins, or inside a repository, an exe file is present alongside "gup.xml" and "libcurl.dll"C:\ProgramData\Windows\Microsoft\RuntimeBroker.exe exists (the legitimate file is located in System32)Below are example verification commands based on the indicators listed by AIR. Run these in PowerShell opened as Administrator.
# Search inside the skills and plugins folders
Get-ChildItem "$env:USERPROFILE\.claude" -Recurse -Force -Include libcurl.dll,gup.xml,*.exe -ErrorAction SilentlyContinue
# Check if the fake RuntimeBroker exists
Test-Path "C:\ProgramData\Windows\Microsoft\RuntimeBroker.exe"
# Search for suspicious task names
Get-ScheduledTask | Where-Object { $_.TaskName -in 'SvcRestartTaskWindowsLogins','ProgramDataUpdate','ScheduledDef','MicrosoftUpdaterMachineCore' } | Select-Object TaskPath, TaskName
# Check Defender exclusion settings
(Get-MpPreference).ExclusionPath
The four tasks identified by AIR are as follows. Cross-reference both the name and the location.
\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTaskWindowsLogins\Microsoft\Windows\RegisterDeviceAccountChange\ProgramDataUpdate\Microsoft\Windows\EDP\ScheduledDef\Microsoft\Location\MicrosoftUpdaterMachineCoreFor exclusion settings, watch for any entries under %TEMP% or C:\ProgramData that you don't recognize. However, finding nothing does not necessarily mean you are safe. Be sure to check your project folders separately as well.
Operations performed on a GitHub account can be reviewed for the past 90 days in the security log, accessible from "Security log" in the settings screen.
Within the scope of this investigation, no reports of damage in Japan or Japan-specific official advisories dedicated to this incident were found. However, public skills on GitHub are equally accessible from Japan. Japanese developers using Claude Code are not unaffected.
Imagine a developer at a company who installs a fake skill on a work Windows PC. If that PC holds GitHub tokens or cloud keys, the impact may not be limited to that individual alone. Company code and secret credentials used in automated processes could all be put at risk.
For IT system administrators, the first priority is establishing rules such as:
If you manage the network, communication logs can also be useful. AIR has identified connection destinations including mopsikimilie[.]cc, mopsteam[.]cc, and moooooooooooops[.]cv. Check the original report for the full list.
In fact, in October, a technique exploiting AI agents via fake instruction files placed in the Downloads folder was reported in Japan. The files fed to AI are increasingly becoming an entry point for attacks.
A. According to AIR, the original skills were not affected. However, please verify that the source is genuinely the official one.
A. The disclosed malware and indicators target Windows. That said, AIR has not made a clear statement about impact on Mac or Linux. Regardless of OS, it is safest to remove any skill confirmed to be fake.
A. Yes, infection is possible. AIR states that both installation and use can serve as triggers. If you remember installing it, check for the indicators.
A. Not after infection has occurred. The trojan embeds itself elsewhere and registers for automatic execution. If infection is suspected, reinstalling Windows and rotating credentials is necessary.
A. They still have value. However, passing a check is not proof of safety. Combine scanner results with verification of the distribution source and file contents.
Start today by listing and verifying the distribution sources of all the skills and plugins you have installed.
This article is a cross-post from AI Friends.