The TrojanPony campaign spreads an information-stealing trojan through poisoned coding agent skills, infecting more than 400 GitHub repositories
'TrojanPony' Targets AI Coding Tools, Sends Malware Galloping Across 400+ Repos
The AIR Security research team disclosed a supply chain attack campaign codenamed TrojanPony: attackers published fake coding agent skills with malicious payloads on GitHub, affecting 487 public repositories as of November 26, impersonating popular skills such as ponytail-improved, and researchers said most of their stars were inflated. Installing an infected skill sideloads a malicious libcurl.dll, dropping the information-stealing trojan MopsStealer, which persists via scheduled tasks, bypasses UAC and tampers with AMSI; attackers then use stolen GitHub tokens to compromise more repositories and expose CI/CD secrets. After the original account was removed, 413 malicious copies and forks remained available, some of which could pass public security scans. Detectify CEO Rickard Carlsson advised treating skills as ordinary third-party dependencies, installing only from verified internal repositories and following least privilege.
Malicious skills masquerade as popular tools that appear to work normally and are promoted with inflated stars; developers can use this to defend by treating coding agent skills as ordinary third-party dependencies.