A malicious AI coding skill doesn't need to compromise a language model to compromise an enterprise. It only has to run on a developer's machine that holds the right credentials.
That's the lesson of TrojanPony, a malware campaign AIR Research Lab documented on November 26. AIR found the campaign's code in 487 public GitHub repositories, including fake copies of popular AI coding skills that did their advertised jobs while installing Windows malware. The projects being copied were not affected. The danger is in the look-alikes.
The campaign raises a question that goes beyond software supply chain security: why should compromising one developer's workstation give an attacker the rest of the development environment?
The lead lure was a fake copy of ponytail, a widely used skill. Between July 26 and August 1, a GitHub account named 0xwilliamortiz published "improved" copies of ponytail, andrej-karpathy-skills and agents-council. Later waves copied other skills and added unrelated lures, including a fake PC port of GTA VI.
Each fake skill shipped a genuine, digitally signed Notepad++ updater under a new name, next to a malicious libcurl.dll. When a developer installed or ran the skill, the updater loaded that DLL. The DLL ran hidden PowerShell commands that added folders to Microsoft Defender's exclusion list, then decrypted MopsStealer and installed it as RuntimeBroker.exe, borrowing the name of a genuine Windows process.
From there it behaves like a conventional infostealer. Dark Reading reports that it bypasses User Account Control, tampers with the Antimalware Scan Interface, survives reboots and pulls further components from attacker servers. Most of those steps exist to keep endpoint protection from seeing it.
Developers choose skills the way they choose packages, by popularity and reputation. TrojanPony gamed both. According to AIR, five of the account's repositories reached trending digests with 2,482 stars between them, and one went from 175 to 567 stars in a week. AIR says the stars were most likely bought. A day after one fake appeared, an automated AI-news channel was already promoting it on YouTube.
Automated vetting failed too. On November 26, one fake was still listed on skills.sh, Vercel's open skills directory, with an install command and audits from three independent scanners. All three marked it as passing.
The skills also did their advertised jobs, giving developers little reason to suspect anything was wrong. Allowlists and pinned versions are still worth having. But TrojanPony shows that a skill can pass multiple security checks and still carry a malicious payload.
The credentials on a developer's machine reach well beyond it. AIR reports that the attacker used one developer's stolen GitHub token to try to read CI secrets in that developer's organization. On November 17 the attacker pushed the malware into 20 repositories belonging to a single compromised developer, including the popular learning-cmake project, and added a workflow that sent CI secrets to Telegram.
This is how the campaign spreads. Infected laptops give up tokens, and the tokens open repositories that can infect whoever clones them next. Rickard Carlsson, CEO of Detectify, told Dark Reading that one stolen token was enough to reach those 20 repositories, and that a compromised developer machine can quickly become a problem for the whole organization and its customers.
Carlsson's advice is least privilege: a compromised skill "shouldn't automatically give an attacker access to credentials, tokens, or production systems." The usual ways to get there are narrowly scoped tokens, pinned skill versions and an internal allowlist in place of public marketplaces. These controls reduce the likelihood of compromise and limit what stolen credentials can authorize. They don't remove the underlying risk: reusable enterprise credentials that stay accessible on a compromised developer workstation.
The stronger control is to make sure the laptop holds as few enterprise credentials as possible. If coding agents reach repositories, CI systems and internal APIs through a policy enforcement point that retains the enterprise credentials, those credentials need never be exposed to the developer's workstation in the first place. A compromised session can still misuse access while it is live, so the enforcement point also has to limit which repositories and systems each agent session can reach.
Ensage AI applies this principle to the agents themselves. Its AI Session Controller holds the enterprise API keys for model providers, so an agent on the endpoint never has the real key. Its enclaves decide network reachability per project, so an agent working in one project can't reach another project's internal resources.
None of that would have stopped MopsStealer from running, and endpoint protection still matters. TrojanPony's GitHub tokens are also a different case. A token stolen from disk can be replayed from the attacker's own infrastructure, outside any enclave, so source-control and CI credentials need the same treatment: brokered access, short-lived tokens, or IP allow lists on the GitHub organization.
AIR recommends these steps, and its report lists indicators of compromise for the loader DLLs, the trojans and the affected repositories.
TrojanPony is a software supply chain attack delivered through an AI ecosystem. The delivery mechanism is new. The underlying problem is familiar: trusted software running with too much access.
Vetting what developers install remains essential, and so does controlling what that software can reach after installation. The security of an enterprise shouldn't depend on every AI skill being trustworthy.
See how Ensage AI controls what AI agents can reach