TrojanPony: Your AI Coding Agent Could Run Malware (CRAZY Fake Skills)

The video exposes a security threat called Trojan Pony, where fake AI coding agent skills containing hidden malware use DLL side-loading to steal sensitive developer data and weaken defenses, exploiting the trust and ease of installing such skills. It warns users to carefully verify skill sources, inspect files before installation, and provides tools and guidelines to detect and mitigate these risks, emphasizing caution especially given that even audited skills can be malicious.

The video discusses a security threat involving fake AI coding agent skills that can install malware on users’ machines without their knowledge. Researchers at AIR Security discovered a campaign called Trojan Pony, where attackers posted counterfeit versions of popular coding skills and plugins. These fake skills appear legitimate and function like the originals, making it difficult for users to detect anything suspicious. The campaign has infected numerous public repositories, many of which are forks of the fake skills, and the malicious code is hidden in compiled Windows programs bundled within the skill files.

The attack works through a multi-step process. First, the fake skill is installed, often under a familiar name with added words like “improved” to seem trustworthy. Upon installation or use, the skill launches a bundled program that uses DLL side-loading—a technique where a legitimate signed program loads a malicious DLL placed alongside it. This bypasses signature checks and allows the malware to weaken security defenses like Microsoft Defender, drop a Trojan called Mob Stealer, and steal sensitive developer information such as API keys, SSH keys, and environment files. The malware also establishes persistence by copying itself to system folders and creating scheduled tasks.

The video emphasizes the heightened risk posed by AI coding agents like Claude Code and Codex, which run skills with user-level privileges and can execute arbitrary code outside sandbox protections. These agents often install skills quickly and based on trust, similar to browser extensions, increasing the chance of inadvertently running malicious code. The video warns against relying solely on security audit badges, as the fake skills in question had passed multiple audits despite containing malware. Users are encouraged to carefully inspect skill files and repositories before installation.

To help users identify suspicious skills, the presenter created a Python tool that scans skill repositories for risky files like executables and DLLs without running them. The tool can detect suspicious patterns such as side-by-side presence of programs and DLLs, hidden shell access, and automatic install scripts. The video also provides a checklist for safely installing skills: verify the original source and commit history, scrutinize all files and instructions, check dependencies and permissions, pin versions to prevent unexpected updates, and test new add-ons in isolated virtual machines without sensitive credentials.

Finally, the video advises users who may have installed these malicious skills to look for telltale files like gup.xml and libcurl.dll in their skill folders and to avoid opening suspicious files. If infection is suspected, users should disconnect the affected machine, re-image it, and rotate all credentials starting with GitHub tokens. Reviewing GitHub security logs for unauthorized activity is also recommended. The video concludes by urging viewers to always review skill file lists before installation and to share their experiences with installing skills without prior inspection.

Useful Links