Back Darkreading 'TrojanPony' Targets AI Coding Tools, Sends Malware Galloping Across 400+ Repos
Attackers are threatening the software supply chain via poisoned coding-agent skills and plug-ins, and MopsStealer infections are still spreading.
Attackers are spreading self-propagating malware by targeting AI coding assistants and developer repositories via poisoned coding-agent skills and plug-ins. Infections so far have reached 487 public GitHub repositories, threatening the software supply chain .
Researchers from AIR Security's Research Lab discovered the campaign, dubbed "TrojanPony," which spreads a Windows Trojan that steals credentials and helps propagate the attack across developer repositories, according to research published last week.
TrojanPony actors are spreading the malware via "improved" coding agent skills and plug-ins aimed at unsuspecting developer AI users. The attackers distributed Trojanized versions of popular skills, including fake copies of ponytail-improved and andrej-karpathy-skills, embedding a Windows malware kit within otherwise functional tools.
The campaign also weaponized AI desktop application lures and a fake Grand Theft Auto VI PC port, and compromised developer repositories to spread the malware. Moreover, the threat actors appear to have artificially boosted the popularity of some skills on GitHub to make them more attractive to developers.
Related: Critical PHP Flaws Allow Code Execution, but Don't Panic 'PHP2Shell'-Style
"Five of the account's repos reached trending digests with 2,482 stars combined; one went from 175 to 567 in a week," AIR Security researchers wrote in the post. "The stars were most likely bought. A day after it appeared and gained popularity, an automated AI-news channel was already promoting it on YouTube."
Malicious Skills Still Active
As of Nov. 26, the campaign had reached 487 public repositories , the researchers said. These include copies of the skills mentioned above and others such as ratchet, humanizer-cli, openclaude-improved, agents-council, FlashKDA, yoinks, and claude-code-skills, according to AIR. Twenty of the repositories belong to a single compromised developer.
As of the same date, 413 copies of malicious skills and forks remained available, despite the removal of the original account associated with the campaign, the researchers noted. The campaign's delivery infrastructure also remained active.
Indeed, some malicious skills continued to receive passing results from public security scanners, highlighting gaps in the current vetting of AI agent extensions. "Shared marketplaces and repositories let anyone publish skills without vetting them, and most scanners miss what they carry," the researchers noted in the report.
Malware Steals Credentials, Enables Further Compromise
The malware distributed through the campaign includes MopsStealer, a Windows information stealer whose primary goal is to compromise developer systems and steal sensitive information, including credentials that could provide access to development infrastructure.
Related: Cursor Traces Malicious Claude Code Extensions to Third-Party Breach
When a developer installs or uses an infected AI coding skill, its malicious components launch a renamed copy of the legitimate Notepad++ updater. The executable then sideloads a malicious libcurl.dll, which adds exclusions to Microsoft Defender to help evade detection, according to the report. The DLL decrypts and executes MopsStealer, which disguises itself as Windows RuntimeBroker.exe.
The malware creates scheduled tasks to maintain persistence across reboots, bypasses Windows' User Account Control (UAC), and tampers with the Antimalware Scan Interface (AMSI) to evade detection. It also connects to attacker-controlled infrastructure to download additional modules, including credential-stealing capabilities.
Attackers additionally use stolen GitHub tokens to compromise developer repositories and expose CI/CD secrets , extending the threat beyond individual workstations to potentially affect an organization's software development environment.
"Developers' computers often hold the keys to an organization's most critical systems, from source code to cloud infrastructure," observes Rickard Carlsson, CEO of AI security firm Detectify.
Related: Grok Bots Attempt to Access Corporate Data Without User Approval
"In this campaign, a single stolen token allowed an attacker to spread malware to 20 repositories," he says. "When a developer's machine is compromised, the problem can quickly reach the entire organization and its customers."
AI Coding Skills as Emerging Attack Vector
Attackers have long targeted the software supply chain by spreading malware through seemingly innocuous developer code packages that subsequently become embedded in software. With the advent of AI-enabled development, coding-agent skills — add-ons that give AI coding assistants specific capabilities or workflows — have become an emerging attack vector.
"This is a software supply chain attack, and we've seen it for years," Carlsson observes. "Skills are just the newest form of third-party dependency. Developers install them because they recognize the name or see they're popular, the same way they'd pull a package from npm or PyPI."
The skills in TrojanPony could easily fool developers, because they "largely worked as expected, so developers had little reason to suspect anything," he says.
In this way, attackers don't need to compromise large language models (LLMs) or the coding assistants themselves. Instead, they can spread malware by exploiting "the trust people place in the ecosystem around it," Carlsson says.
Defending against this emerging attack vector is similar to how organizations also should protect developers against poisoned code packages and repositories in general: by treating code as a valuable asset and setting security protections accordingly.
"Treat skills like any other dependency," Carlsson advises. "Install them only from a validated internal repository or mirror, the same way many teams already proxy npm, and use an allowlist instead of letting developers pull anything from a public marketplace."
Developers also should pin versions, review code before approving updates, and avoid relying too heavily on popularity or marketplace ratings when deciding which skills to use. They should also exercise caution even when using carefully vetted skills, Carlsson adds.
"Apply [the principle of] least privilege , too," he says. "A compromised skill shouldn't automatically give an attacker access to credentials, tokens, or production systems."
To help defenders identify infected dependencies and investigate potential compromises, AIR researchers included indicators of compromise (IoCs) associated with the malware kit, loader DLLs, Trojans, affected repositories, and the network and host infrastructure used in the campaign.
Elizabeth Montalbano is freelance writer, editor, and journalist with 30 years of professional experience and a master's degree from Arizona State University. Her areas of expertise include enterprise technology, cybersecurity, business, and culture. During her long career, Elizabeth has lived and worked as a full-time journalist in Phoenix, San Francisco, and New York City. She specializes in news coverage and analysis, using her years of experience to look at the current state of cybersecurity with a critical gaze. She currently resides in a village on the southwest coast of Portugal, where in her free time she enjoys surfing, hiking with her dogs, growing plants, and playing and performing as a singer and musician.
Want more Dark Reading stories in your Google results?
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
