A security firm is reporting a massive malicious AI coding skills campaign that delivers a Windows trojan to steal sensitive data and credentials and distribute copies of the malware to its victims.
Dubbed TrojanPony by the AIR Research team who discovered it, the campaign, ongoing since July, published “improved” copies of popular coding-agent skills and plugins, such as ponytail and andrej-karpathy-skills, that, as well as working as expected, contain embedded malware, the security firm said. When the fake skill was installed or run, a renamed, signed copy of the Notepad++ updater launched and sideloaded the malicious libcurl.dll, which added Windows Defender exclusions and dropped a trojan known as MopsStealer. The trojan pulled additional malware, including a stealer, from its command and control server.
“The campaign now spans over 480 marketplaces and repositories, with public skill scanners marking it safe,” the post said. “The original account is gone, but 413 copies remain. In November, the kit moved on to AI-app lures, a fake [Grand Theft Auto VI (GTA)] port, and real trusted repos pushed with a stolen token.”
Notepad++ code itself was not breached in this attack.
Abuses trust in a signed binary
Frank Dickson, principal analyst at Dickson Research, said the TrojanPony attack is significant because of the way it combines multiple attack vectors into one campaign.
“The TrojanPony campaign is a big deal. One install of a TrojanPony skill hands the attacker a developer’s Windows machine, the secrets stored on it, and the tokens needed to push malware into everyone else’s code. The victim is never just one laptop,” Dickson said.
“Notepad++ was not compromised, and Notepad++ users are not at risk from this,” he added. “The attacker borrows Notepad++’s genuine, signed updater, renames it, and parks it in the same folder as a malicious libcurl.dll. When the updater runs, Windows hands it the poisoned library sitting right beside it. It is essentially DLL side-loading. The signature is real. The trust it buys is the weapon.”
Philip Harris, an IDC research director, echoed Dickson’s concerns, especially because the attack also disabled Windows Defender protections.
TrojanPony “abuses trust in a well-known, widely distributed, signed binary to slip past defenses, the same fundamental technique behind incidents like the xz Utils backdoor,” Harris said, stressing that the nature of the small teams that typically handle open source components can make the bad impact even more severe.
“Marketplaces with effectively no vetting at all are exactly the soft targets patient, sophisticated attackers go after,” he said. “What makes this campaign arguably more concerning is that it’s targeting the newest, least-governed layer of the software supply chain: AI agent skills and plugins, where there’s essentially no equivalent yet to the scrutiny applied to traditional package registries, and where public scanners are demonstrably missing it.”
One stolen token, 20 compromised repositories
Analysts and consultants said the best defense against this kind of attack is to refocus defenses on current endpoints rather than only using tools that look at the network.
“This isn’t a normal infostealer, because a developer’s laptop isn’t a normal endpoint,” Noah Kenney, principal consultant at Digital 520, pointed out. “It can publish code. AIR found the attacker used one stolen GitHub token to push the same malware into 20 real repositories. Once that happens, the attacker gets to use the reputation of those projects and the people who maintain them.”
Aman Mahapatra, chief strategy officer for New York City-based technology consulting firm Tribeca Softech, added that this attack takes advantage of the fact that security teams are struggling to keep up with changes in attacks fueled by AI.
“This campaign is significant because it shows that agent skills have become executable dependencies with none of the controls enterprises spent a decade building around npm and PyPI,” he said. “There’s usually no lockfile and no provenance, and nobody reviews a skill before it’s installed. A skill looks like a README. It also comes a month after JFrog’s testmetest report, in which opening a folder in an AI coding assistant was enough to trigger malware. Attackers have now gone after both the settings and the add-ons that coding agents load.”
Detections inadequate
Mahapatra also noted how inadequate current enterprise malware detections have proven to be.
“Skill scanners looked in the wrong place. They analyzed a skill’s instructions, and this payload sat in a binary,” Mahapatra said. “Three independent audits on skills.sh marked the malicious skill PASS and none of the skills’ DLL builds had ever been submitted to VirusTotal. A PASS badge on a malicious skill is worse than no badge, because it ends the review.”
The attackers also tried some clever marketing tricks in which they tried to create the illusion of popularity, to give developers more confidence in using the tainted tools.
“The repos had likely bought stars and showed up in trending digests, and an automated AI news channel promoted the skill within a day,” Mahapatra said. “The GTA VI lure drew 50 bot forks in seven minutes. Stars and forks were never security signals, and now they’re attack infrastructure.”
To help CISOs defend their enterprises against such attacks, analysts focused on adopting an even stricter zero-trust mentality. In addition, Dickson offered some hints to assist in the attack’s detection and remediation.
“For this attack, look for Notepad++’s updater anywhere outside a Notepad++ install, especially inside an agent’s skills or plugins folder with a libcurl.dll beside it. Look for a signed updater quietly adding Defender exclusions,” he advised. “If it ran, reimage the machine, rotate every credential it held from a clean device, GitHub tokens first, and review the GitHub security log for commits and workflows nobody on the team made.”
No Responses