LIVE FEED
ATLAS OWASP HIGH Significant risk · Prioritise patching RELEVANCE ▲ 8.5

TrojanPony Poisons AI Coding Agent Skills Across 400+ Repos

TL;DR HIGH
  • What happened: TrojanPony campaign poisons AI coding agent skills and plug-ins, spreading MopsStealer across 400+ repos.
  • Who's at risk: Developers using AI coding agents and plug-in ecosystems are directly exposed to malicious skill packages that execute infostealer malware.
  • Act now: Audit all third-party AI coding agent plug-ins and skills for unexpected code or network calls · Restrict AI coding tool permissions to least-privilege and sandbox plugin execution environments · Monitor developer endpoints for MopsStealer indicators of compromise and credential exfiltration activity
TrojanPony Poisons AI Coding Agent Skills Across 400+ Repos

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

  1. Audit installed AI coding agent plug-ins and skills — review all third-party extensions for unexpected network calls, file access, or execution behaviour.
  2. Apply least-privilege principles — restrict what file system, network, and shell access AI coding tools and their plugins can exercise.
  3. Sandbox agent skill execution — use containerised or isolated environments to prevent malicious skills from reaching host credentials or sensitive files.
  4. Monitor for MopsStealer IOCs — deploy endpoint detection rules targeting known MopsStealer behaviours including credential store access and exfiltration patterns.
  5. Pin skill/plug-in versions and verify integrity — use hash verification and provenance checks before deploying new agent capabilities.

References

◉ AI THREAT BRIEFING

Stay ahead of the threat.

Twice-weekly digest of critical AI security developments — every story mapped to MITRE ATLAS and OWASP LLM Top 10. Free.

No spam. Unsubscribe anytime.