Attackers hijack 42 GitHub repositories in npm worm campaign “testmetest”
JFrog found malware in 42 GitHub repositories. AI assistants or project work can trigger it automatically.
(Image: Sundry Photography/Shutterstock.com)
JFrog Security Research discovered 42 GitHub repositories booby-trapped by attackers with execution hooks and hidden malware. The researchers link them to the npm worm campaign “testmetest”. It’s unclear how many computers ran the malware or what data was stolen.
According to JFrog’s analysis, the 42 compromised GitHub repositories belong to 11 legitimate owners. The attackers planted the malware, which JFrog says resembles Shai-Hulud variants, using hijacked accounts or employee or contributor privileges. Security provider SafeDep had already described the campaign’s npm side on Oct. 22, but had found no compromised third-party packages or victims.
AI assistants and IDEs serve as the fuse
The attackers placed project configurations for development tools in the 42 repositories. When users started Claude Code, Gemini or Cursor in a project, for example, or opened it as a VS Code workspace with the right settings, those configurations could run the hidden malware file .github/init.js.
JFrog lists 15 npm packages for which at least one version was deemed malicious: data-pipeline-testmetest, event-bus-lite-testmetest, event-emitter-testmetest, log-rotate-testmetest, log-sink-testmetest, net-codec-testmetest, npm-publish-testmetest, pixel-map-testmetest, retry-utils-testmetest, test-brotli-testmetest, test-brotli2-testmetest, @iobandamwer/cache-helper, @iobandamwer/native-helper, path-stream-utils-testmetest and @testsecuiitytestme/cache-helper.
JFrog recommends examining affected systems and, if necessary, rebuilding them from trusted sources. Those affected should check repository configurations and workflows and revoke any credentials that may have been stolen. Caution is warranted: SafeDep says the worm installs a wiper that deletes the home directory as soon as victims revoke the stolen GitHub token.
GitHub and npm credentials in the crosshairs
Some of the tampered npm packages contain a worm that primarily collects GitHub and npm credentials and can spread itself further. JFrog’s security experts also found obfuscated publisher malware in .github/init.js. Among other things, it searches for GitHub tokens and is designed to use available npm publishing permissions to publish tampered package versions, for example through GitHub Actions.
JFrog also found Shellpanel workflows in some hijacked repositories that attack cPanel systems through the critical vulnerability CVE-2026-41940. But the researchers say there is no evidence of a continuous attack chain from the npm infection to exploitation of the vulnerability.
Videos by heise
Hidden from GitHub code search
During the analysis, the contents of the payload file .github/init.js initially remained hidden because the file was 12.9 to 13.7 MB, depending on the variant, and GitHub code search does not index files that large. The usual Contents API also did not return its contents. The JFrog team found it only after listing the repositories' directory trees through the Git Trees API and then retrieving .github/init.js directly as a Git blob.
JFrog also describes a later concealment variant. In the three recently released npm packages it examined — @iobandamwer/cache-helper, @iobandamwer/native-helper and path-stream-utils-testmetest — the malware is not present as readable JavaScript. Instead, it is encrypted and hidden in the .napi_cache file. A compiled add-on also included in the npm package decrypts it at runtime and runs the payload. Before doing so, however, the add-on checks whether it is running in an analysis environment and aborts if it is.
According to a SafeDep update from Oct. 27, another npm account published the package @testsecuiitytestme/cache-helper, whose add-on starts the worm as soon as the package is imported. The --ignore-scripts option no longer protects against it.
The threat actors maintain their own repositories for campaign infrastructure, 17 of which are run under the GitHub account CementBeetleSteeple. One of those repositories, stable-scripts-9965, serves as a data collection point, according to the security experts. As of Oct. 25, it held 27 files containing what are believed to be encrypted data packages in the format data/snap-*.json. The plaintext data and the number of people affected remain unclear for now because JFrog’s analysis was limited to metadata and did not attempt decryption.
(mro)