# TrojanPony: What 500 Surviving Fake Skill Forks Show

Fake coding-agent skills ship a renamed signed Notepad++ updater plus malicious libcurl.dll, which hijacks DLL loading to disable Defender and launch the MopsStealer trojan.

- Payout: Real-world hack
- Severity: high
- Program: TrojanPony
- Analysis by: StepSecurity
- Disclosed: 2026-12-02
- Write-up quality: 8/10
- Original: https://www.stepsecurity.io/blog/trojanpony-fake-ai-agent-skill-forks-analysis
- Library page: https://bugbountylibrary.com/r/blog%3Astepsecurity-io-blog-trojanpony-fake-ai-agent-skill-forks-analysis
- Tags: area:oss domain:oss impact:data-leak impact:rce kind:incident platform:threat-intel sev:high tech:github-actions tech:windows technique:chained technique:source-review vuln:misconfiguration

**Target:** Windows developer machines via fake coding-agent skills/plugins on GitHub and skills.sh
**Root cause:** The lure ships the validly signed Notepad++ updater GUP.exe renamed, alongside a stock gup.xml and a fake libcurl.dll; when the updater starts, Windows loads libcurl.dll from the updater's own folder (DLL search-order hijack).
**Steps:**
1. Install a fake skill (e.g. `node ponytail.js -i`, or run `ponytail.js` with no args) which calls `openCalc()` and starts the renamed updater detached.
2. The updater loads the adjacent fake `libcurl.dll` from its own folder.
3. The fake DLL adds Microsoft Defender exclusions for the temp folder and `C:\ProgramData`.
4. The DLL decrypts and starts the MopsStealer trojan, which persists via scheduled tasks and connects to C2 (mopsteam[.]cc).
**How found:** Researcher re-checked 500 surviving forks via GitHub API, compared libcurl.dll git blobs across forks to reconstruct 11 loader builds, read launcher code in each lure family, and reviewed skills.sh audit reports and GitHub event feeds for hijacked commits.
**Exploitation:** Attacker bulk-registered 307 GitHub accounts on July 8 to fork lure repos, uploaded 11 loader builds across 8 lures, and used stolen Akagi201 token to push secret-dumping workflows (plain/base64/hex to evade log masking) and a Telegram-exfil workflow into 20 repos; the Telegram workflow failed due to a bash -e bug on missing *.toml.
**Escalation:** Chained DLL hijack with Defender exclusion tampering and trojan persistence; separate GitHub token theft enabled CI secret dumping and release-based distribution.
**Insight:** Forks preserve replaced commits: diffing git blob IDs of a shipped DLL across forks reconstructs every loader build and short-lived uploads the operator tried to erase; also, marketplace audit badges can pass while ignoring the adjacent DLL that carries the malware.

## Proof of concept (copied exactly from the original report)

**Telegram workflow that failed before upload**

```
This is the workflow as GitHub still serves it in Akagi201/learning-cmake commit f32bf5f. The same file, git blob efdfa053…, went into all five repositories.
```

**PowerShell commands to detect kit files**

```
# Kit files in agent skill and plugin folders
Get-ChildItem "$env:USERPROFILE\.claude", "$env:USERPROFILE\.agents" -Recurse -Filter libcurl.dll -ErrorAction SilentlyContinue |
 Where-Object { Test-Path (Join-Path $_.DirectoryName 'gup.xml') } | Select-Object FullName

# The trojan's install path
Test-Path 'C:\ProgramData\Windows\Microsoft\RuntimeBroker.exe'

# Its scheduled tasks
Get-ScheduledTask -ErrorAction SilentlyContinue |
 Where-Object { $_.TaskName -in 'SvcRestartTaskWindowsLogins','ProgramDataUpdate','ScheduledDef','MicrosoftUpdaterMachineCore' } |
 Select-Object TaskPath, TaskName

# Defender exclusions the loader adds (run as administrator) and past detections
(Get-MpPreference).ExclusionPath
Get-MpThreatDetection | Where-Object { $_.Resources -match 'libcurl\.dll|vibecodecalc|council-worker|ratchetui|humanizer\.exe|fastsetup' }
```

**Git commands to find kit blobs in history**

```
# Kit blobs anywhere in history (save the git blob IDs from the indicators below to trojanpony-blobs.txt)
git rev-list --all --objects | grep -F -f trojanpony-blobs.txt

# Kit files by name
git log --all --format='%h %ad %an %s' --date=iso -- '*libcurl.dll' '*gup.xml'

# Workflows that send data to Telegram, or print secrets as base64 or hex
grep -rnE "api.telegram.org|base64 -w0|od -A n -t x1" .github/workflows/

# The same, in every commit that ever touched a workflow
git log --all -p -- .github/workflows/ | grep -nE "api.telegram.org|base64 -w0|od -A n -t x1"
```

