Brief AI
›

TrojanPony: Trapped AI Tools in Over 480 Repositories

Code & Dev·Tom Levy·

TrojanPony: Trapped AI Tools in Over 480 Repositories

TrojanPony: Trapped AI Tools in Over 480 Repositories
Key Takeaways
1AIR signals TrojanPony on over 480 marketplaces and repositories.
2According to Aman Mahapatra, three audits on skills.sh have validated the malicious skill.
3According to AIR, cited by Noah Kenney, a stolen GitHub token was used to compromise 20 legitimate repositories.
Why it matters : a compromised developer account can provide the necessary access to introduce malware into other projects.

The AIR research team has reported TrojanPony, a campaign spread across more than 480 marketplaces and repositories that hijacks AI coding skills to install a Windows Trojan. The device steals data and credentials, and can then be used to contaminate other projects. The legitimate Notepad++ update program is hijacked, without compromising the editor's code.

The checks validate contaminated skills

On skills.sh, three independent audits awarded a "PASS" rating to the trapped skill, claims Aman Mahapatra, strategy director at Tribeca Softech, a technology consulting firm based in New York. He specifies that the scanners inspected the instructions, while the hostile code was embedded in a binary, and none of the affected DLLs had been submitted to VirusTotal. For him, misleading validation can discourage any further verification.

The visibility of the contaminated tools also relied on their displayed popularity. Mahapatra suspects star purchases for repositories featured in trending selections and reports that an automated channel dedicated to AI relayed the skill in less than a day. According to him, the fake port of GTA VI received 50 forks created by bots in seven minutes. These indicators, he emphasizes, do not constitute security guarantees and are now also used by attackers.

Mahapatra describes skills that resemble a README but are executable dependencies, lacking the checks developed over a decade for npm and PyPI. He mentions the usual absence of a lock file, provenance, and verification before installation, as well as the difficulties security teams face in keeping up with the evolution of AI-driven attacks. A month earlier, JFrog had already reported, with testmetest, a malicious trigger upon simply opening a folder in a programming assistant. Parameters such as the plugins loaded by these agents are thus targeted, Mahapatra notes.

A GitHub access exposes 20 legitimate projects

According to a discovery by AIR reported by Noah Kenney, senior consultant at Digital 520, attackers used a stolen GitHub token to introduce the same malware into 20 legitimate repositories. Kenney reminds us that a developer's role has a unique capability: to publish code. Once these projects are contaminated, their reputation and that of their maintainers can benefit the attacker.

Frank Dickson, senior analyst at Dickson Research, emphasizes the association of multiple intrusion methods. According to him, installing a TrojanPony skill exposes the Windows workstation, the secrets it holds, and tokens capable of granting access to third-party code.

The evening letterFree · 7 pm

The AI brief the pros read every evening

The 7 best AI stories, the essentials in 5 min. Free.

Included when you join: our pick of the best AI guides & comparisons.

Choose your rhythm

Free · No spam · Unsubscribe in 1 click

AIR discovered and named TrojanPony, whose activity dates back to July according to its researchers. The trapped copies, presented as enhanced, notably replicate ponytail and andrej-karpathy-skills while maintaining their expected functions. AIR indicates that the original account has disappeared but that 413 copies remain available. In November, the lures expanded to AI applications and a supposed port of Grand Theft Auto VI; the campaign also used trusted repositories fueled with a stolen token.

A signed executable loads a malicious library

According to AIR, installing or launching the fraudulent skill triggers a renamed version of the signed program that ensures updates for Notepad++. Frank Dickson explains that the authentic executable is placed alongside a hostile libcurl.dll library: Windows then loads this neighboring file. This technique is called DLL side-loading. Dickson clarifies that Notepad++ users are not exposed solely due to this campaign.

The library adds exceptions to Windows Defender and then installs MopsStealer, AIR reports. This Trojan then retrieves other malicious programs, including a data thief, from its command and control infrastructure. Philip Harris, research director at IDC, is particularly concerned about the neutralization of Defender's protections.

Harris links this hijacking of trust in a signed executable to the fundamental mechanism observed in incidents like the xz Utils backdoor. He believes that the small size of teams that typically maintain open-source components can exacerbate the consequences of an attack. In his view, marketplaces lacking verification offer easy targets, while AI agent skills and plugins represent a recent and poorly regulated layer of the software supply chain, without comparable controls to those of traditional registries.

Experts recommend checking workstations

Experts recommend focusing defenses on workstations, not limited to network monitoring tools, and hardening zero trust practices. To detect TrojanPony, Frank Dickson advises searching for the Notepad++ update program outside its usual directory, particularly among the skills or plugins of an agent, accompanied by libcurl.dll. He also suggests spotting a signed update program that creates exclusions in Defender.

If this executable has run, Dickson recommends a system reinstallation. All credentials stored on the machine should be renewed from a healthy device, prioritizing GitHub tokens. Finally, he advises checking the GitHub security log to identify commits or workflows that no team member has produced.

Brief AI — AI news in French

The essentials of artificial intelligence news, decoded and explained every day.