TrojanPony Alert (Dec 2026): How Fake AI Coding Skills Compromised 480+ GitHub Repos—And How to Audit Yours in 60 Seconds

๐Ÿ“… Published: December 1, 2026 | ✍️ By MyTechDiary Editorial Team | ⏱️ 10 min read | ๐Ÿท️ Category: AI Security, Supply-Chain & DevSecOps

If you installed a trending AI coding skill or agent plugin from GitHub over the last five months, stop what you're doing and check your skills folder right now.

Security researchers at AIR Security just exposed a massive, worm-like software supply-chain campaign dubbed TrojanPony. Active since July 2026, the operation compromised over 480 public GitHub repositories by publishing fully functional look-alike versions of popular AI coding agent skills—including counterfeit packages named ponytail-improved, agents-council, and andrej-karpathy-skills.

Worse yet, many of these poisoned repositories passed automated directory and text-based security scanners (including checks on Socket, Snyk, and Gen Agent Trust Hub) while quietly deploying a Windows credential-stealing malware kit called MopsStealer—and then using stolen GitHub tokens to infect even more legitimate developer repos.

Following our previous deep dives into malicious MCP servers and AI agent Git secret leaks, this guide dissects the exact 5-stage TrojanPony kill chain and gives you copy-paste 60-second audit scripts for Windows, macOS, and Linux.

Security Disclosure: MyTechDiary independently tracks developer security incidents and open-source defense tooling. Some links in this article (such as developer secret managers and isolated cloud VPS sandboxes) are affiliate links supporting our lab at no extra cost to you.

1. Inside TrojanPony: How Fake Agent Skills Deployed MopsStealer

What makes TrojanPony far deadlier than typical typo-squatting attacks is that the bait actually works. A developer installs the skill, sees the expected helper commands running smoothly in Claude Code or their agent harness, and never notices the silent binary execution happening underneath.

Stage Technique What Happens on the Developer Machine
1. The Bait Trojanized Agent Skills (480+ repos) Functional clones like ponytail-improved, agents-council, and andrej-karpathy-skills lure developers via GitHub search and skill directories.
2. Signed Binary Abuse of GUP.exe Running the skill triggers a renamed copy of the legitimate, digitally signed Notepad++ updater (GUP.exe).
3. Side-Loading Malicious libcurl.dll The signed updater automatically side-loads a poisoned libcurl.dll dropped in the same folder—bypassing naive text/script scanners.
4. Evasion Defender Exclusions & AMSI Patch The DLL carves out Microsoft Defender exclusions, patches AMSI, and drops the MopsStealer payload.
5. Spread RuntimeBroker.exe + Token Theft Disguises itself as RuntimeBroker.exe, sets scheduled tasks, bypasses UAC, and uses stolen GitHub tokens to poison more repos.
๐Ÿ›ก️ Zero-Trust Agent Isolation

Never Test Community AI Skills on Your Primary Workstation

TrojanPony proved that green "verified" badges on skill directories aren't enough. Keep GitHub and cloud tokens out of plaintext with 1Password Developer CLI and run untrusted skills inside disposable Linux Cloud VPS or Docker sandboxes.


2. The 60-Second Audit: Check Your Machine for TrojanPony IoCs Right Now

Run the quick audit commands below to verify that none of your local AI agent skill folders or Windows defense settings have been tampered with.

A. Windows PowerShell Audit (Check Binaries, Defender Exclusions & Tasks)

# 1. Hunt for unexpected .exe or .dll binaries inside AI agent skill folders
$paths = @("$env:USERPROFILE\.claude", "$env:USERPROFILE\.agents", "$env:USERPROFILE\.gemini", "$env:USERPROFILE\.cursor")
foreach ($p in $paths) {
  if (Test-Path $p) {
    Get-ChildItem -Path $p -Recurse -Include *.exe,*.dll,*.bat,*.ps1 -ErrorAction SilentlyContinue |
      Select-Object FullName, Length, LastWriteTime
  }
}

# 2. Check for unauthorized Microsoft Defender exclusions added by malware
(Get-MpPreference).ExclusionPath
(Get-MpPreference).ExclusionProcess

# 3. Inspect Scheduled Tasks referencing unusual RuntimeBroker.exe paths
Get-ScheduledTask | ForEach-Object {
  $actions = $_.Actions | ForEach-Object { $_.Execute + " " + $_.Arguments }
  if ($actions -match "RuntimeBroker|GUP|libcurl|Temp|AppData") {
    [PSCustomObject]@{ TaskName = $_.TaskName; Action = ($actions -join "; ") }
  }
}

B. macOS & Linux Audit (Check Repos & Skill Folders for Hidden Binaries)

Even though MopsStealer primarily targets Windows endpoints, macOS and Linux developers can still accidentally clone, commit, or propagate poisoned skills to Windows teammates and CI runners. Scan your skill folders and repositories:

# Scan local AI skill directories for unexpected Windows binaries or suspicious DLLs
find ~/.claude ~/.agents ~/.gemini ~/.cursor -type f \( -name "*.exe" -o -name "*.dll" -o -name "GUP*" \) 2>/dev/null

# Check git repositories for suspicious skill names or bundled executables
git ls-files | grep -iE "\.(exe|dll)$|ponytail-improved|agents-council|andrej-karpathy-skills"

3. Four Rules to Bulletproof Your AI Agent Skills in 2026

  1. Zero Binaries in Skill Packs: A legitimate AI agent skill is Markdown instructions (SKILL.md) and transparent, readable source scripts. Treat any skill repository bundling compiled .exe, .dll, or opaque binary blobs as immediately hostile.
  2. Pin Commits, Never Blindly Track main: TrojanPony spread by hijacking developer GitHub tokens and injecting payloads into previously clean repositories. Pin external skills to verified commit SHAs and review diffs before upgrading.
  3. Sandbox First, Trust Never: Run unfamiliar skills and MCP plugins inside a disposable Docker sandbox (--rm --cap-drop=ALL) or an isolated Linux Cloud VPS with zero access to your host credentials.
  4. Use Short-Lived Scoped Tokens: Replace classic long-lived GitHub Personal Access Tokens (PATs) with fine-grained, repository-scoped tokens injected at runtime via 1Password CLI, and block secret commits using TruffleHog.

Lock Down Your Developer Workstation Today

The Agent Skills ecosystem is booming—and attackers know it. Separate your credentials, isolate third-party skills in cloud sandboxes, and scan every commit automatically.

Popular posts from this blog

Why AI Coding Agents Are Leaking Production Secrets on GitHub (And How to Sandbox Claude Code & Cursor)

Best Password Managers: Bitwarden vs KeePass vs 1Password (2026 Comparison)

Google EmbeddingGemma 2: Run Multimodal Edge AI on Raspberry Pi & Mobile Phones (Hands-On Guide)