Hundreds of fake AI coding skills on GitHub carry Windows malware

Cảnh báo skill AI coding giả mạo chứa mã độc trên GitHub

Cloned AI coding skills infected with TrojanPony still passed all three of skills.sh's security scanners, while the Windows malware hides behind a Notepad++ updater.

⚡ MIGOVI TL;DR

  • The TrojanPony campaign has run since July, pushing "improved" versions of popular skills such as ponytail and andrej-karpathy-skills, bundled with Windows malware
  • One malicious skill on skills.sh still received a passing result from all three built-in security scanners
  • 413 forks survive, and the campaign as a whole touched 487 public repositories as of November 26
  • The malware abuses a digitally signed Notepad++ updater to load a DLL, add exclusions to Microsoft Defender, and install MopsStealer
  • It is unclear how many people have been infected; anyone who ran a malicious plugin should isolate and reinstall their Windows machine

Security scanners are not an absolute shield

Third-party skills and plugins are becoming a common way to extend AI coding assistants. Some distribution hubs even ship with built-in security scanners to weed out malicious add-ons, so users tend to install with more confidence. A new investigation by AIR Security suggests that confidence may be misplaced: the firm found a malicious AI coding skill on the skills.sh directory that still received a passing result from all three independent security scanners. In fact, back in June, researchers at Trail of Bits showed that all three scanners built into the directory could be fooled.

Malicious ponytail AI coding skill on skills.sh still showing a passing scan result
The malicious skill still received a passing result from three security scanners.

The TrojanPony campaign

The campaign, dubbed TrojanPony, has been active since July. Rather than distributing obviously suspicious software, the attackers publish supposedly improved versions of popular AI coding skills, including ponytail and andrej-karpathy-skills. The fake versions keep the same functionality as the originals, so they look no different on the surface, but they ship with a malware file for Windows.

To boost credibility, five repositories tied to the attackers even appeared in GitHub's trending feed, collecting 2,482 stars. AIR suspects many of those stars were purchased. The attackers' original accounts have vanished, but the malware has not: researchers found 413 forks of the skills still online, while the campaign as a whole had touched 487 public repositories as of November 26.

Notepad++ updater abused

The malware's disguise is fairly clever. The attackers bundle a renamed copy of the legitimate Notepad++ updater, which carries a valid digital signature, together with a malicious DLL. When a user runs one of the affected plugins, the updater can load that DLL, add exclusions to Microsoft Defender, and install the MopsStealer trojan.

Once on a machine, the trojan can download additional components designed to steal sensitive information. The same malware toolkit has also turned up elsewhere, including fake AI apps, a nonexistent GTA VI download for PC, and legitimate GitHub repositories hijacked with stolen developer tokens.

What to do if you ran a plugin

It is still unclear how many people were actually infected. AIR advises anyone who ran one of the malicious plugins to isolate and completely reinstall the Windows machine, then change their credentials from a clean device. The reason to change them from another machine is that the trojan can download extra components to steal data, so a machine that ran the plugin can no longer be trusted for sensitive tasks.

MIGOVI VIEWPOINT

The most worrying part of this case is not the malware itself but that two signals people commonly rely on to trust a skill, the security scan result and GitHub stars, were fooled at the same time. Because everyone quietly assumes that a hub with scanners is safer, a false "pass" can breed more complacency than having no badge at all. For readers in Vietnam who use AI coding assistants on Windows, the more practical defense is to treat a skill like software installed from an unknown source: check the author and commit history, look for any bundled executables or DLLs before running it, and prefer the original version from a developer you already know. If you must try an unfamiliar skill, do it on a machine or virtual machine that holds no tokens, access keys, or important accounts, so any damage stays contained.

Source: Digital Trends

Reviewed by: Hero Association

Share your thoughts ^^

Your email address will not be published. Required fields are marked *

Insights

Contents

  1. Security scanners are not an absolute shield
  2. The TrojanPony campaign
  3. Notepad++ updater abused
  4. What to do if you ran a plugin