Brief AI
›

TrojanPony Traps AI Coding, 20 Contaminated GitHub Repositories

Code & Dev·Tom Levy·

TrojanPony Traps AI Coding, 20 Contaminated GitHub Repositories

TrojanPony Traps AI Coding, 20 Contaminated GitHub Repositories
Key Takeaways
1AIR reports over 480 marketplaces and repositories affected by TrojanPony.
2According to AIR, a stolen GitHub token allowed for the contamination of 20 legitimate repositories.
3According to Aman Mahapatra, three audits on skills.sh granted a PASS rating to a malicious skill.
Why it matters : stolen credentials from a developer's workstation can be used to distribute malware to other projects.

The AIR research team reports that TrojanPony is distributing malware through compromised AI coding skills, spreading to 20 GitHub repositories using a stolen token. Active since July, the campaign notably exploits a legitimate Notepad++ program without compromising the code of this editor.

Compromised repositories can contaminate other projects

A developer's computer also has means to publish code, reminds Noah Kenney, senior consultant at Digital 520. The repository compromise established by AIR allows, according to him, to leverage the reputation of existing projects and their maintainers.

For Aman Mahapatra, strategy director at the New York firm Tribeca Softech, skills now represent executable dependencies, lacking the controls built over a decade around npm or PyPI. He describes installations generally devoid of a lock file, verifiable origin, and prior review. Their appearance may, however, be limited to that of a README, while security teams struggle, he says, to keep up with AI-driven attacks.

He compares this case to JFrog's revelations regarding testmetest, which occurred a month earlier: simply opening a folder in an AI programming assistant could trigger malware. In his view, attacks now concern both agent settings and the extensions they load.

Audits validate a malicious skill

According to Aman Mahapatra, control tools inspected the skill's instructions but not the binary that contained the malicious payload. He reports three independent audits on skills.sh that granted a PASS designation to the infected skill, while no version of the affected DLLs had been submitted to VirusTotal. AIR also notes that public scanners deem these elements safe. Mahapatra believes that validation can interrupt checks and become more dangerous than a lack of a badge.

According to the consultant, the repositories were featured in trending selections and likely purchased stars; an automated AI news service relayed the skill in less than a day. He also states that the GTA VI lure generated 50 bot forks in seven minutes. He considers these popularity indicators as instruments of the attack, not as guarantees of security.

Philip Harris, research director at IDC, describes the almost unregulated marketplaces as easy targets for patient and sophisticated adversaries. He states that AI agent skills and extensions form a recent, poorly regulated layer that does not benefit from requirements comparable to those of traditional package registries.

The evening letterFree · 7 pm

The AI brief the pros read every evening

The 7 best AI stories, the essentials in 5 min. Free.

Included when you join: our pick of the best AI guides & comparisons.

Choose your rhythm

Free · No spam · Unsubscribe in 1 click

A signed program loads the infected library

The distributed samples mimic enhanced versions of ponytail and andrej-karpathy-skills: their functions remain operational, but malware is added, reports AIR, which discovered and named TrojanPony. Installation or launching triggers a renamed Notepad++ update executable, equipped with a legitimate signature. Placed alongside a malicious libcurl.dll, it loads this library when Windows executes it. Frank Dickson, senior analyst at Dickson Research, identifies this process as DLL side-loading.

According to AIR, the library introduces exclusions in Windows Defender and installs MopsStealer. To obtain other malware, including a data theft tool, MopsStealer connects to its command and control server. Sensitive information and credentials are the targets of the campaign, which also disseminates copies of the malware to victims. Dickson emphasizes the association of vectors: the Windows machine, the secrets it contains, and the tokens allowing modification of others' code can be exposed by the installation.

AIR identifies over 480 affected marketplaces and repositories; the initial account has disappeared, but 413 copies remain. In November, the lures included AI applications, a fake port of Grand Theft Auto VI, and legitimate trusted repositories modified with a stolen token.

Dickson clarifies that Notepad++ users are not exposed solely by using this editor. Harris, on the other hand, is concerned about the neutralization of Defender protections and likens the abuse of trust towards a signed binary to the principle encountered in the xz Utils backdoor incident. He also believes that the small size of teams maintaining open-source components can exacerbate the effects of an attack.

Experts recommend securing endpoints

Analysts and consultants advocate for strengthening endpoint protection rather than relying solely on network inspection. They recommend a stricter zero-trust approach for security leaders. Dickson advises looking for the Notepad++ update utility outside its usual directory, particularly in extension or agent skill folders, with a libcurl.dll nearby. A signed executable that discreetly adds exclusions to Defender is another element to watch for.

If the program has been executed, Dickson recommends reinstalling the machine and renewing all credentials it held from a healthy device, starting with GitHub tokens. He also suggests inspecting the GitHub security log to identify commits or workflows that no team member performed.

Brief AI — AI news in French

The essentials of artificial intelligence news, decoded and explained every day.