Skip to content
EventPast event

42 GitHub repositories implanted with malicious payloads, triggered when AI programming tools open them

2 reports2 reporting sourcesLatest report

Start here

AI overview

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

Developments on the same subject and issue, from earliest to latest

3 events
  1. · 2 reports· Attention41
    CSA research: instruction file poisoning of AI coding agents
  2. · 2 reports· Attention44

    42 GitHub repositories implanted with malicious payloads, triggered when AI programming tools open themThis event

  3. · 1 reports· Attention39
    Security vendor discloses malicious GitHub repositories inducing AI coding agents to steal credentials

Progress timeline

Oct 29
Oct 28
  1. CybersecuritynewsSelected
    Hackers 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.

Oct 26
  1. JFrog Security ResearchSelected
    Beyond 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

Total 29 items