VYPR
researchPublished Nov 30, 2026· 1 source

'TrojanPony' Campaign Targets AI Coding Tools, Compromising Over 400 Repositories

A sophisticated campaign dubbed 'TrojanPony' is weaponizing AI coding assistants and developer repositories, injecting malware into over 400 code repositories and threatening the software supply chain.

Attackers are actively spreading self-propagating malware by targeting AI coding assistants and developer repositories through poisoned coding-agent skills and plug-ins. This campaign, discovered by researchers at AIR Security's Research Lab and named 'TrojanPony,' has already compromised 487 public GitHub repositories, posing a significant threat to the software supply chain.

The TrojanPony actors are distributing a Windows Trojan designed to steal credentials and facilitate further propagation. They achieve this by embedding malicious code within seemingly legitimate and improved coding agent skills and plug-ins. Researchers identified Trojanized versions of popular skills, including fake copies of 'ponytail-improved' and 'andrej-karpathy-skills,' which contained the Windows malware kit.

Beyond targeting AI coding tools, the campaign has also employed deceptive tactics such as weaponizing AI desktop application lures and a fake Grand Theft Auto VI PC port. To further amplify their reach, the threat actors appear to have artificially inflated the popularity of some malicious skills on GitHub. This was achieved by boosting their visibility and star counts, making them more attractive to unsuspecting developers. One account's repositories reportedly reached trending digests with a combined 2,482 stars, a significant increase that suggests bought popularity.

As of November 26, the campaign had infiltrated 487 public repositories, including numerous copies of malicious skills and forks. Despite efforts to remove the original campaign account, its delivery infrastructure remained active, and many malicious skills continued to evade detection by public security scanners. This highlights critical gaps in the current vetting processes for AI agent extensions, as shared marketplaces allow unvetted skills to be published.

The malware distributed, identified as MopsStealer, is a Windows information stealer focused on compromising developer systems. It aims to steal sensitive information, including credentials that could grant access to critical development infrastructure. Upon installation or use of an infected AI coding skill, the malware executes a renamed copy of the legitimate Notepad++ updater, which then sideloads a malicious DLL. This DLL adds exclusions to Microsoft Defender to evade detection and decrypts MopsStealer.

MopsStealer disguises itself as 'Windows RuntimeBroker.exe' and employs several techniques to maintain persistence and evade security measures. It creates scheduled tasks for persistence across reboots, bypasses Windows User Account Control (UAC), and tampers with the Antimalware Scan Interface (AMSI). The malware also establishes connections to attacker-controlled infrastructure to download additional modules, including advanced credential-stealing capabilities.

Compromised GitHub tokens are also being leveraged by attackers to gain unauthorized access to developer repositories and expose CI/CD secrets. This extends the threat beyond individual workstations, potentially impacting an organization's entire software development environment. The compromise of a single developer's machine can quickly escalate to affect an entire organization and its customers, as their systems often hold the keys to critical infrastructure.

AI coding skills represent an emerging attack vector in the ongoing battle for software supply chain security. Similar to how malicious code packages have been used in the past, these skills are now a new form of third-party dependency that developers readily install due to perceived legitimacy or popularity. Defending against such threats requires treating these skills with the same caution as any other dependency, recommending installation only from validated internal repositories or mirrors and employing allowlists.

Synthesized by Vypr AI
'TrojanPony' Campaign Targets AI Coding Tools, Compromising Over 400 Repositories · VYPR