The fake Claude Code skills that stole GitHub tokens
Malicious skills and plugins for AI coding agents have been spreading since July. Why the scanners passed them, and what to check before installing.
A security firm called AIR has documented a campaign, running since July 2026, that distributes malicious copies of popular skills and plugins for Claude Code and similar coding agents. The copies look like the real projects, run the function the developer expects, and quietly install a credential stealer on Windows machines.
By 26 November, AIR counted at least 413 forks and 487 repositories involved. One fake variant was still listed in a public skill directory on 29 November, with an install command and a passing grade from three different security scanners.
The lesson is not that AI coding tools are unsafe. It is that a skill, a plugin or an MCP server is software you install, with the permissions you already have.
What the campaign does
The report, summarised by Selular on 30 November, describes a cluster of activity it calls TrojanPony. The fake packages borrow the names of real, popular projects, including one called ponytail-improved, so that a developer searching for a useful skill finds something that looks familiar.
When the fake skill runs on Windows, it starts a renamed copy of the Notepad++ updater. That binary carries a valid digital signature, which is why it does not look like malware. It then loads a malicious libcurl.dll from the same folder, a technique known as DLL hijacking: the application loads the library sitting next to it instead of the one it expects.
From there the chain adds an exclusion to Microsoft Defender, drops a stealer called MopsStealer disguised as RuntimeBroker.exe, registers a scheduled task so it survives a reboot, and downloads further modules to collect credentials and other data.
| Step | What happens | Why it works |
|---|---|---|
| Install | Fake skill or plugin is added to the agent | The name and function match a real project |
| Launch | Renamed Notepad++ updater starts | It is signed, so it looks legitimate |
| Load | Malicious libcurl.dll is read from the folder | DLL search order prefers the local file |
| Persist | Defender exclusion, scheduled task, masquerade as RuntimeBroker.exe | The machine now trusts the process |
Why the scanners said PASS
The uncomfortable part of the report is not the malware. It is the score.
A fake ponytail variant was still listed with a "PASS" grade from Gen Agent Trust Hub, Socket and Snyk as of 29 November. That is not proof that those tools are useless. It is proof that they answer a narrower question than buyers assume: does this package contain known-bad code or known-bad patterns? They do not answer "will this thing behave badly when it runs on my machine with my token in the environment?"
The report also points to earlier Trail of Bits research showing that scanners of this kind can be bypassed with specific techniques. Once you know that, the passing grade stops being a permission slip and becomes one input.
What a skill actually gets from you
An agent skill is usually a folder with instructions and scripts. Installing it is closer to running a small program than to adding a bookmark. It can read files, run shell commands, and use whatever credentials are in the environment.
That is the part developers underestimate. Your Claude Code session, your shell, and your GitHub token often live in the same place. An agent that can run a command can read ~/.gitconfig, ~/.ssh, .env files, and the token you exported ten minutes ago so a push would work.
Least privilege is the fix, and it is unglamorous. Run the agent in a container or a dedicated VM. Keep personal and work GitHub accounts separate. Use fine-grained tokens scoped to one repository and an expiry date, not a classic token with access to everything. Do not keep long-lived cloud credentials in the shell that the agent runs in.
Seven checks before installing a skill
None of these takes long, and together they remove most of the risk.
- Install from the vendor's own repository, linked from its documentation, not from a directory listing or a search result.
- Read the install script before you run it. If it downloads and executes something else, that is the whole review.
- Check the author against the project it claims to be. A fork with a similar name and a recent history is not the project.
- Pin the version and record the commit. "Latest" is a moving target and an attacker's easiest entry point.
- Run it with the narrowest credentials that will do the job, then revoke them.
- Watch the folders the agent writes to. An executable, a
libcurl.dll, or agup.xmlappearing beside a skill's instructions is not normal. - Treat a passing scanner grade as one signal, not as clearance.
The Windows part is the detail, not the lesson
The campaign targets Windows, and the mechanism depends on the way Windows loads a library from the application's folder. Do not read that as an exemption for everyone else.
On macOS and Linux, the install step still runs a script with your permissions, and the equivalent attack is a postinstall hook, a replaced binary, or a shell alias that runs something else. The platform changes the technique, not the trust decision. A developer on a Mac who installs an agent skill from a search result is making the same bet as the Windows user in the report.
If you have already installed one
Rotate first, investigate second. Any token that was in the environment of a machine that ran an untrusted skill should be treated as exposed: GitHub tokens, npm and PyPI tokens, cloud keys, SSH keys, and anything in a .env file.
Then look for the persistence. On Windows, check Defender's exclusion list, the scheduled tasks, and processes masquerading as RuntimeBroker.exe. Review recent repository changes and any new SSH keys or deploy keys on your accounts, because a stolen GitHub token is usually used to reach code, not to read email.
Read the git history, not just the current branch. A token with write access is used to push a small change, open a pull request, or add a workflow that runs on the next push. Compare the commit authors and timestamps for the days around the install, and check whether any workflow file or dependency was touched by someone who should not have touched it.
Finally, check what the agent read. The exfiltration target in this campaign was credentials. If the agent had access to a client repository or a production secret, that is a separate conversation with a different clock.
What this means for AI agents generally
Every agent ecosystem is building the same three things: a way to install third-party capability, a directory that ranks it, and a scanner that gives it a grade. That is a package manager with a trust problem, and the industry has twenty years of evidence about how those fail.
Developers have run untrusted code from registries for years, and the defences are known: lockfiles, pinned versions, provenance, private mirrors, and a human who reads the install script. Agent skills arrived without most of that. The install command is a one-line snippet in a README, the directory ranks by popularity, and the scanner gives a badge.
The difference is the permission level. An npm package runs inside your build. An agent skill runs inside your session, with your shell history, your environment variables and your signed-in accounts. That is closer to installing a browser extension than to adding a library.
Three habits transfer directly. Pin versions and keep a record of what you installed. Keep a private, reviewed list of approved skills instead of letting every developer install what looks useful. And treat a new skill the way you would treat a new dependency in a payment path: someone reads it before it runs.
What to tell your team
A policy that fits on one page gets followed more often than a training module. Four lines are enough.
Skills and plugins come from an approved list. The agent runs in a container or a virtual machine for anything outside a scratch project. Tokens are fine-grained and short-lived, and they are not left in the shell when the agent is not using them. Anything that runs an install script gets read first.
The approved list is the hard part, because it needs an owner. Give it to whoever already owns dependencies, and review it monthly. Agent tooling moves faster than a quarterly security review.
The limits of this report
AIR's report covers one campaign, one platform family and one target operating system. The counts are as of 26 November 2026, and the attackers' original accounts were removed while copies continued to circulate. Nothing here says that the named projects are malicious; the report says their names were copied.
The pattern will outlast it. We review app code and the dependencies around it. If an agent has had access to a repository you care about, the contact page is the fastest route.