Fake "Improved" Coding Skills Hide a Trojan: A Developer Supply Chain Defense Guide
This article walks through a real campaign in which counterfeit "improved" and "enhanced" versions of popular coding agent skills were published on a code hosting platform, carrying a Trojan that steals developer credentials. It breaks the attack chain into six stages — delivery, execution, DLL side-loading, antivirus exclusion, persistence, and modular credential theft — explains why a "passed" malware scan is not evidence of safety, lists three high-confidence indicators of compromise, and gives an incident response order plus a long-term hardening checklist covering installation source verification, least privilege, isolated execution, artifact integrity checks, observability, and team review policy.
1. Incident Recap: A “Working” Improved Version That Costs You Every Credential
Installing community skills for coding agents has become an everyday action for many developers. But “community” means low-friction upload and redistribution, which also means an attacker can push malicious code onto your development machine at almost no cost.
A campaign recently disclosed by a security research group (internally referred to with a “Trojan pony”-style codename) shows the typical pattern. Starting around the middle of this year, the attacker published counterfeit repositories on a code hosting platform under the names of “improved” and “enhanced” versions of popular skills and plugins. The copies were functionally identical to the originals across multiple high-attention projects. Apart from the extra payload, these clones behaved no differently from the genuine repositories — and the originals themselves were never modified. That last point is critical: “the feature I use still works” is not a valid security signal.
The attacker’s accounts were later removed by the platform, but the forked copies remain online. At the time of disclosure, nearly 500 affected repositories and more than 400 branches had been counted, including hijacked real developer projects and decoy repositories posing as an unofficial PC port of a popular game. More concerning, one counterfeit skill was still listed on a third-party skill directory site, complete with an install command and “passed” results from three third-party scanning services.
2. Attack Chain Breakdown: From One Install to Credential Exfiltration
Broken apart, the chain assembles almost every standard technique in current endpoint attacks.
Stage 1: Delivery — “Improved” Creates the Motivation to Install
The attacker invents no new demand; they parasitize an existing one. When a developer searches for a popular skill, names containing “improved”, “enhanced”, “council”, or “bundle” naturally attract more clicks and installs. Because the copies can be freely forked, deleting the originating account does not remove the distribution surface.
Stage 2: Trigger — Execution on Install or First Use
The install action, or the first invocation of the skill, launches an executable. It is not a custom-built tool but a genuine, validly digitally signed updater program for a text editor, with only its name changed. This is the “white file” abuse approach (LOLBin / living-off-the-land binary): the signature is valid and the reputation is good, so static detection and reputation-based verdicts tend to let it through.
Stage 3: Load Hijacking — The Real Malicious Logic Sits in a Same-Directory DLL
Windows searches for DLLs in the program’s own directory first. This is the classic DLL side-loading / search order hijacking. A sketch:
skill directory/├── updater.exe # genuine, validly signed, renamed├── libcurl-like.dll # malicious, exports same-name functions and forwards them└── gup-like.xml # accompanying configuration file
At startup the program loads the dynamic library by name, but hits the malicious copy in the same directory. The malicious code thereby inherits the host program’s signature and reputation as cover.
Stage 4: Defense Weakening — Adding Exclusions to the Built-in Antivirus
The payload then adds exclusion directories or processes to the operating system’s built-in antivirus, so subsequently dropped files are no longer scanned. This step is what turns “one-time execution” into “long-term availability”.
Stage 5: Implant and Persistence — Fake System Process Plus Scheduled Task
The Trojan lands using a common system process name such as “runtime broker” (the genuine binary belongs in a core system directory, while this one appears under a system-wide public data directory), and uses a scheduled task to restore itself automatically after reboot.
Stage 6: Callback and Modularity — Follow-On Modules Built to Steal Credentials
The Trojan calls back to a remote server to download follow-on modules, one class of which is dedicated to stealing login credentials: passwords saved in browsers, session cookies, and access tokens for development platforms. For developers, the most damaging loss is often not a local password but a code hosting platform token, which grants lateral access to every repository, CI workflow, and artifact.
3. Why “Scan Passed” Is Not a Security Basis
The three “passed” scanner badges on the page make it easy for developers to lower their guard, but the reasoning does not hold up:
- A scan is a snapshot; an attack is a process. Static scanning checks whether a file at one moment matches known signatures, while the malicious logic in this class of attack lives in the DLL and in runtime behavior.
- Bypass cost is extremely low. Researchers publicly demonstrated earlier this year that the scanners then built into skill directories could typically be bypassed in under an hour with routine techniques: obfuscation, packing, splitting the payload, and delayed triggering.
- A signature does not equal trustworthiness. What was hijacked is a legitimately signed program; signature validation confirms the file was not modified, not that its behavior is harmless.
- Reputation and popularity are lagging indicators. Counterfeit copies of popular skills also show “zero bad reviews” early on.
The conclusion is a single sentence: a passed scan only means the scanner found nothing.
4. Investigation Signals: Three High-Confidence Indicators
If you installed a relevant skill from a copy rather than from the original author, check these first (paths are relative to the user home directory and system directories):
- In the coding tool’s skill/plugin directory (a hidden configuration directory under the user home directory), a file combination of an
.exealongsidegup-like.xmland a malicious*.dll; - A “runtime broker”-style process file under the system-wide public data directory, while the same-named genuine binary belongs in a core system directory;
- An antivirus alert of the DLL hijacking class.
Any single hit should be treated as “already compromised”. Do not try to “delete the files and keep using it”.
5. Incident Response: Order Matters More Than Speed
- Reinstall the operating system, rather than only cleaning files — with persistence and modular downloads in play, the probability of leftovers is high.
- Rotate credentials from a clean device: every password and token stored or used on that machine, with code hosting platform tokens first, then cloud access keys, package manager tokens, SSH private keys, and signing keys.
- Audit the code hosting platform’s security logs: look for commits you did not make, abnormal workflows, suspicious collaborators, and token usage records.
- Check for lateral impact: whether CI/CD variables, artifact repositories, images, and release signatures were contaminated.
- Preserve evidence before reinstalling: if conditions allow, take an offline image of the suspicious directory first to support tracing.
6. Long-Term Defense Checklist
- Install only from the author’s own repository; verify account ownership and commit history, and be wary of forks and “bundle/improved” naming.
- Review the file list before installing: executable files and dynamic libraries inside a skill directory are themselves grounds for rejection.
- Least privilege: run skills under a low-privilege account, scope tokens per repository or environment, and prohibit long-lived all-access tokens.
- Isolated execution: first run of an unknown-origin skill in a container platform or a disposable virtual environment, combined with an egress network allowlist to restrict callbacks.
- Artifact verification: pin versions and hashes, and add provenance and integrity gates to the pipeline.
- Observability: use a logging service to centrally collect endpoint and pipeline events, and use monitoring alerts to notify in real time on high-risk behaviors such as “new exclusion added”, “scheduled task change”, and “abnormal process name”; in the cloud, object storage can be combined for evidence retention.
- Team policy: write “third-party skills require review” into the engineering security baseline, analogous to dependency introduction review.
7. One-Sentence Summary
The entry point for a supply chain attack is often not a vulnerability but an install that “looks more convenient”. Functional parity does not mean a trustworthy source, and a passed scan does not mean harmless behavior. For developers, source verification, least privilege, and credential rotation are a more reliable defense than any scan badge.
