42 GitHub repositories implanted with malicious payloads, triggered when AI programming tools open them
Start here
While tracking an npm worm named testmetest, the JFrog security research team found 42 GitHub repositories implanted with payloads, belonging to 11 legitimate owners. These repositories carry execution hooks aimed at AI coding assistants and IDEs, triggered when developers open the project with Claude, Gemini, Cursor or VS Code. The hidden code is located in .github/init.js, ranges in size from 12.9 to 13.7 MB, and is not indexed by GitHub code search. SafeDep first described the npm side on October 22 and reported no confirmed victims. Later attacks switched to compiled native addons that XOR-decrypt .napi_cache at runtime, and detect CI, container and debugging environments.
Generated by AI from reports · Updated 28 days ago
Storyline
- · 2 reports· Attention41CSA research: instruction file poisoning of AI coding agents
- · 2 reports· Attention44
42 GitHub repositories implanted with malicious payloads, triggered when AI programming tools open themThis event
- · 1 reports· Attention39Security vendor discloses malicious GitHub repositories inducing AI coding agents to steal credentials
Progress timeline
- CybersecuritynewsSelectedHackers hijack 42 GitHub repositories, setting malware traps for Claude, Gemini and Cursor users
Hackers hijacked 42 real GitHub repositories and planted malware that triggers when developers open the projects with Claude, Gemini, Cursor or VS Code. The JFrog security research team found the repositories while tracking an npm worm named testmetest; SafeDep first described the npm side on October 22 and reported no confirmed victims. The hidden code is in .github/init.js, ranging from 12.9 to 13.7 MB; GitHub code search does not index such large files, and each tool's settings file invokes the script at session start or when a folder is opened. The payload is a rebuilt version of the ci.js CI publisher, intended to turn stolen GitHub and npm access into new malicious npm releases; the repositories belong to 11 legitimate owners (including individual developers, students and one company), and the attackers also forged commit history.
- JFrog Security ResearchSelectedBeyond testmetest: native extension disguise and 42 payload-implanted GitHub repositories reveal a hidden npm publisher
JFrog Security Research found 42 third-party GitHub repositories implanted with payloads, belonging to 11 legitimate owners, linked to the testmetest npm campaign. These repositories carry execution hooks targeting AI coding assistants and IDEs, as well as polymorphic wrappers of 12.9 to 13.7 MB, which all decode to the same hidden CI publisher payload that can be triggered when a workspace is opened. Later attacks switched to compiled native addons that XOR-decrypt .napi_cache at runtime and detect CI, containers, debuggers and small-memory VMs in order to stay silent in automated scanners; on the npm side, they use binding.gyp command extensions to execute index.js at install time, steal credentials and propagate.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@GlazeScanHQ · GlazeScanhttps://research.jfrog.com/post/beyond-testmetest-42-hijacked-github-repos/The "testmetest" npm worm hijacked 42 GitHub…(opens the original post in a new tab)
- X@Ahmad365Raza · Ahmad Raza | MERN Stack DeveloperJFrog found 42 GitHub repos booby-trapped by the testmetest npm worm. Opening one in Claude Code, Cursor, Gemini or VS…(opens the original post in a new tab)
- X@SocialTrustLab · FrancisFull brief, with what it means for Canada: https://agentsnorth.ca/security/testmetest-npm-worm-42-github-repos-claude-c…(opens the original post in a new tab)
- X@SocialTrustLab · FrancisA credential-stealing npm worm hid startup hooks in 42 real GitHub repos. Open one in Claude Code, Cursor, Gemini CLI o…(opens the original post in a new tab)
1 likes · 2 comments·Oct 30 22:42Collect
- X@jcinjpn · Jon(ジョン)It feels like a security apocalypse lately. A new report by @JFrogSecurity says simply opening a cloned repo in Claude…(opens the original post in a new tab)
169 likes · 6 comments·Oct 31 12:40Collect
- X@theomlondhe · Om LondheA worm hid 13 MB payloads in 42 GitHub repos, set to fire when you open them in Claude Code, Cursor or VS Code. I rebui…(opens the original post in a new tab)
6 likes · 3 comments·Oct 31 23:40Collect
- X@jondot · jondotThe testmetest npm worm leaves a service that checks your stolen GitHub token every 45 seconds. On a 401 it runs rm -rf…(opens the original post in a new tab)
1 likes · 2 comments·Oct 30 22:42Collect
- X@ralbuque · Ricardo AlbuquerqueWorm em npm roubou credenciais do GitHub e npm e armou 42 repositórios reais com hooks para Claude Code, Gemini, Cursor…(opens the original post in a new tab)
39 likes · 6 comments·Oct 29 21:35Collect
- X@br_dev_org · br-dev.orgUm novo worm npm da família Miasma, inicialmente considerado apenas um teste sem vítimas, comprometeu 42 repositórios r…(opens the original post in a new tab)
2 likes·Oct 30 22:42Collect
- X@E77F · SHADOW KNIGHT🚨 اختراق 42 مشروعًا برمجيًا على GitHub لزرع برمجيات خبيثة تستهدف المطورين ومستخدمي أدوات الذكاء الاصطناعي كشف باحثو ال…(opens the original post in a new tab)
2 comments·Oct 29 21:35Collect
- X@compu4n6 · compu4n6Hackers Hijack 42 GitHub Repositories to Plant Malware Traps for Claude, Gemini, and Cursor Users https://ift.tt/LPg7tw…(opens the original post in a new tab)
- X@onefinalprompt · JarnoJFrog found 42 hijacked GitHub repos that run malware as soon as a developer opens one in Claude Code, Cursor or VS Cod…(opens the original post in a new tab)
2 likes · 7 comments·Oct 31 17:40Collect