Saltar al contenido
Fali Fuentes

TrojanPony poisons 487 AI skills on GitHub and steals developer tokens

Leer este artículo en español

In late November 2026, the actors behind TrojanPony published poisoned skills —such as ponytail-improved and andrej-karpathy-skills— on GitHub, artificially inflating their stars to appear legitimate. When installed, a renamed Notepad++ updater performed side-loading of a libcurl.dll malicious DLL that deployed MopsStealer, a infostealer for Windows capable of bypassing UAC, tampering with AMSI, adding Microsoft Defender exclusions, and persisting via scheduled tasks. The campaign reached 487 public repositories and, after the original account was removed, 413 active forks with still-operational command-and-control infrastructure remained, according to the Dark Reading advisory and the Aviatrix Threat Research report.

The vector is not the package registry, but the skills marketplace

Code assistants (Cursor, Claude Code, GitHub Copilot extensions, VS Code, JetBrains AI) lack the dependency scanning, code review, and allowlisting controls that npm, PyPI, or Maven have. Anyone can publish a skill without vetting, and public scanners continued to give pass results to several of the malicious packages, revealing a gap in the AI supply chain. Enterprise adoption of these assistants accelerates exposure: a developer compromises their workstation and, in the process, the credentials stored there.

Token theft with multiplier effect

MopsStealer extracts GitHub Personal Access Tokens and CI/CD secrets. With them, attackers propagate the malware to pipelines and additional repositories, expanding the blast radius far beyond the initial endpoint. Aviatrix documents a single compromised developer linked to 20 infected repositories. The stolen tokens open the door to lateral movement toward container registries, cloud keys (AWS, Azure, GCP), and SSH keys.

Layered evasion that breaks signature detection

The combination of DLL side-loading (T1574.002), UAC bypass, tampering of AMSI, Defender exclusions added at runtime and command obfuscation (delimiters lsSZA4B6/WG#0 and custom alphabet in cookies.txt) causes signature-based defenses and basic heuristics to fail systematically. The malware also disguises itself as RuntimeBroker.exe to go unnoticed in the process list.

Public scanners and persistence after the takedown

Some malicious skills continued to receive clean results on public scanners days after detection, highlighting the immaturity of controls in AI marketplaces. The C2 infrastructure (StaticVPN domains) remained active as of November 30, and the 413 surviving forks allow the campaign to self-propagate via stolen tokens even if the originating account is removed.

What to do right now

  • Block the installation of unsigned or unreviewed skills/plugins in all code assistants; manage a allowlist from SecOps/DevSecOps.
  • Apply egress filtering strict on development workstations and CI/CD runners: allowlist of legitimate FQDN/IP and block unknown destinations.
  • Enable detection of side-loading and UAC bypass via EDR/Defender for Endpoint telemetry (events 4688, 4672, unsigned DLL loads in atypical paths, modifications in HKLM\SOFTWARE\Microsoft\AMSI).
  • Rotate all GitHub PATs and CI/CD secrets now with short TTL; launch token scanning (GitHub Secret Scanning, TruffleHog, ggshield) across all repositories.
  • Start proactive hunting on known IOCs and TTPs (hashes of libcurl.dll, cookies.txt, psag-agent.exe, StaticVPN C2 domains, suspicious scheduled tasks, Defender exclusions added by unsigned processes) using MITRE ATT&CK T1195, T1574.002, T1053.005, T1548.002, T1562.001, T1555, T1528.

Removing the source account isn’t enough: the campaign is designed to self‑propagate via stolen tokens. The attack surface is new, immature, and grows every day your team uses code assistants without supply chain governance.

SYSTEM_EXPERT
Rafael Fuentes – BIO

I am a seasoned cybersecurity expert with over twenty years of experience leading strategic projects in the industry. Throughout my career, I have specialized in comprehensive cybersecurity risk management, advanced data protection, and effective incident response. I hold a certification in Industrial Cybersecurity, which has provided me with deep expertise in compliance with critical cybersecurity regulations and standards. My experience includes the implementation of robust security policies tailored to the specific needs of each organization, ensuring a secure and resilient digital environment.

Share
Scroll al inicio