TrojanPony: The Malware Turning AI Coding Skills into Weapons Against Developers

TrojanPony: il malware che trasforma gli skill AI in armi contro gli sviluppatori

A new malicious campaign dubbed TrojanPony has set its sights on skills and plugins for AI coding agents distributed through GitHub. Researchers have uncovered trojanized copies of popular developer tools that silently install the MopsStealer infostealer on Windows systems. The goal is straightforward: steal developer credentials and propagate malware across entire software infrastructures.


How the TrojanPony Campaign Works

The Attack Chain: From AI Skill to Credential Theft

Threat actors distributed modified versions of legitimate AI agent skills that appeared entirely authentic on the surface. Beneath that facade, however, they carried malicious code designed to trigger MopsStealer upon execution.

Once installed, the malware harvests a broad range of sensitive data:

  • Developer credentials stored locally on the machine
  • GitHub tokens granting access to repositories
  • Cloud secrets from AWS, Azure, and GCP environments
  • CI/CD credentials used in build and deployment pipelines

Stolen repository tokens prove especially dangerous. Attackers leverage them to access additional repositories and replicate the payload, enabling the compromise to spread autonomously with minimal further effort.

The Propagation: 487 Repositories Compromised

Perhaps the most alarming aspect of TrojanPony is its self-propagating capability. Analysis identified 487 public repositories on GitHub that had been compromised. Activity began around July 2026, and by November 2026 the malware had spread across hundreds of projects.

The threat actors behind the campaign have not yet been identified, though financial motivation appears likely. No quantified economic damage has been publicly disclosed, and no specific victim organizations have been named in available reports.


Why Developers Are a Prime Target

The New Attack Vector: AI Agent Skills

TrojanPony reflects a broader and growing trend. Software development environments are extraordinarily valuable targets. Developer workstations, build systems, and source code platforms hold the keys to production environments, cloud infrastructure, and intellectual property.

Within this landscape, AI coding agents introduce a novel attack surface. Skills, plugins, and extensions expand the exposure beyond traditional packages and dependencies — and critically, developers tend to place a high degree of implicit trust in these tools when adopting them.

Parallels with Previous Attacks

Conceptually, TrojanPony echoes well-known attack patterns such as dependency confusion, malicious package injection, and developer toolchain compromise. That said, the specific mechanism — trojanizing AI skills — represents a distinct and meaningful evolution. No directly comparable precedents with identical dynamics appear in available reporting, which positions TrojanPony as a genuinely new threat vector within the software supply chain.


How to Defend Against TrojanPony and Similar Threats

Technical and Governance Controls for CISOs and Security Managers

Effective defense requires a layered approach. Researchers recommend prioritizing the following controls.

AI Tool and Plugin Governance:

  • Maintain an approved catalog of AI skills, plugins, and extensions
  • Verify publisher identity, signatures, hashes, and provenance before adoption
  • Block unpinned versions and uncontrolled automatic updates

Credential and Token Management:

  • Enforce short-lived, least-privilege tokens for GitHub, cloud, and CI/CD access
  • Prohibit long-lived secrets on developer workstations
  • Use centralized secret managers and ensure rapid revocation procedures in the event of compromise

Endpoint and Repository Protection:

  • Deploy EDR, application allowlisting, and tamper protection on developer machines
  • Run suspicious tools in isolated, ephemeral environments
  • Monitor for unexpected forks, workflow modifications, and anomalous token usage

Identity Governance and Privilege Separation:

  • Enforce strict separation between development, build, and production privileges
  • Apply phishing-resistant MFA across all accounts with repository access
  • Implement centralized logging and automated anomaly detection

Beyond these controls, organizations must keep incident response procedures current. The ability to rapidly quarantine compromised repositories and rotate credentials can significantly limit the blast radius of any breach.


Conclusions

TrojanPony makes one thing clear: the software supply chain attack surface is expanding, and AI coding agents represent its newest frontier. The implicit trust developers place in tools distributed through platforms like GitHub can no longer be taken for granted. CISOs and security leaders must integrate security controls from the very moment AI development tools are considered for adoption — not as an afterthought, but as a foundational requirement.


Sources:


The TrojanPony campaign is a sharp reminder that the software supply chain has become one of the most critical vectors for advanced threats. Platforms like IsacChain enable organizations to securely share threat intelligence on attacks of this nature within certified ISAC communities, accelerating collective response times. Automated NIS2 compliance built into the platform streamlines incident reporting for supply chain-related breaches, while blockchain-based verification ensures the integrity and traceability of every shared indicator. Discover how IsacChain can help your organization at www.isacchain.com