Overview
A threat campaign identified as TrojanPony is actively targeting AI-powered coding tools by injecting malicious code into coding-agent skills and plug-ins across more than 400 public repositories. The campaign distributes MopsStealer, an infostealer malware, through what appear to be legitimate developer resources. The scale and method of compromise represent a significant evolution in software supply chain attacks, now specifically weaponising the AI coding tool ecosystem.
Technical Analysis
TrojanPony exploits the trust developers place in AI coding agent skill stores and plug-in registries. By publishing or modifying coding-agent skills — small, composable capabilities that AI coding tools invoke autonomously — attackers embed malicious payloads that execute within the developer’s environment during routine agent operation. Because AI coding agents often operate with elevated permissions to read, write, and execute code, a poisoned skill can silently deploy MopsStealer, which is designed to harvest credentials, session tokens, and other sensitive data from infected developer machines.
The 400+ repository footprint suggests either automated repository creation or the compromise of existing legitimate repositories, making detection via reputation signals alone insufficient.
Framework Mapping
- AML.T0110 – AI Agent Tool Poisoning: Core technique — adversaries embed malicious logic inside agent skills that are invoked automatically.
- AML.T0010 – AI Supply Chain Compromise: The attack targets the upstream skill/plug-in ecosystem, impacting all downstream consumers.
- AML.T0115 – Publish Poisoned AI Artifacts: Malicious skills and plug-ins are published to repositories used by developers.
- LLM07 – Insecure Plugin Design: Plug-in architectures without strict sandboxing or permission scoping enable lateral movement from agent to host.
- LLM08 – Excessive Agency: AI coding agents granted broad system access amplify the blast radius of a compromised skill.
Impact Assessment
Developers using AI coding assistants integrated with open plug-in or skill registries are the primary targets. Credential theft via MopsStealer can cascade to source code repositories, cloud environments, and CI/CD pipelines, potentially enabling further supply chain attacks downstream. Organisations relying on AI-augmented development workflows without robust plugin vetting processes face elevated risk.
Mitigation & Recommendations
- Audit installed AI coding agent plug-ins and skills — review all third-party extensions for unexpected network calls, file access, or execution behaviour.
- Apply least-privilege principles — restrict what file system, network, and shell access AI coding tools and their plugins can exercise.
- Sandbox agent skill execution — use containerised or isolated environments to prevent malicious skills from reaching host credentials or sensitive files.
- Monitor for MopsStealer IOCs — deploy endpoint detection rules targeting known MopsStealer behaviours including credential store access and exfiltration patterns.
- Pin skill/plug-in versions and verify integrity — use hash verification and provenance checks before deploying new agent capabilities.