AIR Security uncovers malware in AI coding add-ons that passed three scanners

AIR Security uncovers malware in AI coding add-ons that passed three scanners

AIR Security has uncovered TrojanPony, a campaign distributing malware through AI coding add-ons, including a skill that passed three security scanners on skills.sh. The altered tools kept their expected features while carrying a Windows payload capable of installing information-stealing malware.

Operating since July, the campaign offered supposedly improved versions of popular coding-agent skills and plugins, including ponytail and andrej-karpathy-skills. These were not simply broken imitations: they preserved the originals’ functionality while adding malware. That combination let the add-on perform its advertised job and carry a separate, harmful payload in the same package.

A legitimate updater loads the malicious file

The Windows attack used a renamed copy of Notepad++’s genuine, digitally signed updater. Attackers placed it beside a malicious file named libcurl.dll. When certain affected plugins ran, the updater could load that neighboring file. The technique, called DLL sideloading, makes a legitimate program load an attacker’s library—a file containing code the program uses.

The malicious library added exclusions to Microsoft Defender and installed a trojan called MopsStealer. That trojan could then retrieve additional malware from an attacker-controlled server, including components designed to steal sensitive information. The signed program was therefore the entry point for loading malicious code, rather than evidence that the whole package was safe.

Notepad++ itself was not breached. The campaign borrowed its updater; it did not compromise the editor’s code. Frank Dickson, principal analyst at Dickson Research, told CSO that Notepad++ users were not at risk from this attack merely by using Notepad++.

The signature is real. The trust it buys is the weapon.

Frank Dickson, principal analyst at Dickson Research, speaking to CSO

Passing checks, persistent copies

The original attacker account has disappeared, but researchers found 413 surviving skill forks—copies of the repositories. AIR put the broader operation’s reach at 487 public repositories as of November 26. Those figures measure distribution, not successful infections: the number of users whose machines were actually infected remains unknown.

A skills.sh page for “ponytail” shows three security audits marked PASS.The “ponytail” skill listing shows passing results for Gen Agent Trust Hub, Socket, and Snyk. Source: digitaltrends.com.

Some repositories also gained visible signs of popularity. Five associated with the attackers appeared in GitHub trending digests and collected 2,482 stars between them. AIR suspected many of those stars were purchased. That suspicion is not a confirmed accounting of fake engagement, but it qualifies the apparent popularity surrounding the malicious tools.

The scanner failure involved a distinction between the add-on’s written instructions and its bundled executable files. Aman Mahapatra, chief strategy officer at consulting firm Tribeca Softech, told CSO that scanners examined the skill’s instructions while the payload sat in a binary. Three audits marked the malicious skill as passing, he said.

Earlier testing had already exposed weaknesses in those checks: Trail of Bits demonstrated in June that all three scanners integrated into skills.sh could be fooled. TrojanPony’s malicious listing subsequently received passing results from all three.

Distribution also extended beyond attacker-created copies. AIR found that one stolen GitHub token—an access credential—was used to push the same malware into 20 legitimate repositories. That gave the campaign another route into projects: compromising an account’s publishing access, rather than persuading every developer to choose an unfamiliar imitation.

What affected Windows users should look for

Dickson recommended looking for the updater in unexpected locations and reviewing signs that a developer account had been used to spread the infection. His suggested indicators included:

A Notepad++ updater outside its normal installation, especially inside an agent’s skills or plugins folder beside libcurl.dll.A signed updater adding Microsoft Defender exclusions.Unrecognized commits or workflows in GitHub security logs.

For anyone who ran a malicious plugin, AIR advises isolating the Windows machine, reimaging it and changing credentials from a clean device. Dickson likewise recommends rotating every credential the machine held, starting with GitHub tokens.