testmetest, an npm worm with a token-revocation wiper and AI-tool hook persistence
An npm worm steals keys and wipes your home folder if you revoke its token.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
An npm worm wipes your home folder if you revoke its token. SafeDep describes a Miasma-family worm published as test packages named *-testmetest and under the iobandamwer and testsecuiitytestme scopes. The armed versions steal SSH keys, npm, PyPI and Git credentials, .env files, browser logins, credentials for Claude, Codex, Gemini and Copilot, AWS, GCP, Azure, Vault and Kubernetes secrets, and GitHub Actions secrets from runner memory. It commits the stolen data to a new public repository in the victim's GitHub account, republishes to package registries, copies itself over SSH and plants AI-tool and editor hook files in repositories so it runs again when a project is opened. A net-health-checker service checks the stolen GitHub token every 45 seconds for 48 hours and, on a 401 or 403, deletes the home directory and Documents. Early versions ran through a binding.gyp command with no install script; from 2026-10-27 the dropper also runs on import, so ignoring install scripts no longer helps. JFrog found 42 armed GitHub repositories across 11 legitimate owners, armed in batches around 2026-09-28.
- Exposure starts
- 2026-10-21
- Exposure ends
- Not known yet (SafeDep says @testsecuiitytestme/cache-helper 1.0.3 was still live on 2026-10-27)
- Confidence
- low
- Scope
- every credential on a machine that installed or imported an armed version, every repository its GitHub token could write to, and hosts reachable over SSH from it
What to do, in this order
- Disconnect affected hosts from the network
SafeDep's and JFrog's first step.
- Remove the net-health-checker and pkg-runtime systemd user services or launch agents and their scripts, before revoking the GitHub token
SafeDep says net-health-checker deletes the home directory when the stolen GitHub token starts returning 401 or 403; JFrog says to remove persistence before revoking it. pkg-runtime runs attacker commands hourly.
- From a clean machine, revoke GitHub tokens and npm, PyPI and other registry tokens
The worm commits stolen data with the GitHub token and republishes to registries. Advisory inference from the reinstall step is to rotate from a clean machine.
github_pat, github_oauth_token, github_fine_grained_pat, npm_token
- Cloud, Vault and Kubernetes credentials, SSH keys and AI provider keys
SafeDep lists AWS, GCP, Azure, Vault and Kubernetes secrets, SSH keys and Claude, Codex, Gemini and Copilot credentials.
aws_access_key_id, aws_secret_access_key, private_key, anthropic_api_key, openai_api_key, gemini_api_key
- Every other credential the account could reach, including .env values, CI secrets and browser logins
SafeDep says to rotate all credentials; it lists .env files, browser logins and runner-memory secrets among what is stolen.
anything else stored there
- Audit repositories through the Git API for injected hook files, chore/ci-* and deps/upd-* branches, scan-output artifacts and new project-utils repositories, then reinstall the operating system
JFrog says to enumerate Git trees directly rather than rely on code search, because the hooks re-run the loader when a project is opened; SafeDep's last step is reinstalling the OS.
Notes
- SafeDep said on 2026-10-22 that it had found no compromised third-party packages or victims, and that all observed activity was in the operator's own test accounts; its later updates report none. JFrog separately found 42 armed third-party repositories and three real-format npm tokens in fake CodeQL artifacts. Neither source says whether the wiper has run on a real system.
- The start date is JFrog's first dated malicious publish (data-pipeline-testmetest 2.0.1, 2026-10-21 11:13 UTC); the sources do not date the earliest armed version.
- JFrog says some event-emitter-testmetest versions (1.0.6, 3.0.0, 3.0.1) are classed malicious at the campaign level although the recovered samples were dormant. SafeDep says 0.0.0-stage versions are placeholders and lists fewer @testsecuiitytestme/cache-helper versions than JFrog.
- SafeDep says the payload stays dormant in CI, containers, small machines and under a debugger, so a clean CI run does not clear a developer laptop.
- Neither SafeDep nor JFrog attributes this to the original Miasma operators.
How to tell if you’re affected
- Any *-testmetest, @iobandamwer/* or @testsecuiitytestme/* package in a lockfile
- net-health-checker or pkg-runtime services or launch agents; ~/.local/bin/net-health-checker.sh; ~/.local/share/runtimes/sync.py
- Repository files .claude/settings.json, .claude/index.js, .gemini/settings.json, .cursor/mcp.json, .cursor/rules/setup.mdc, .vscode/tasks.json, AGENTS.md or .github/init.js added unexpectedly
- Commits prefixed AutoSyncComplete: or carrying a skip-checks:true trailer; the string msync-3f7a
- Connections to aiarmor.website or 43.228.157.68
Sources
- SafeDep: testmetest npm packages carry a new Miasma worm variant
- JFrog: Beyond testmetest, native addon camouflage and 42 armed GitHub repositories
- OSV MAL-2026-18177, malicious code in data-pipeline-testmetest (npm)
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.