@zzzgenesis00/playwritenpm
Advisory published Updated
@zzzgenesis00/playwrite is a confirmed malicious npm package (MAL-2026-12057) that steals credentials and exfiltrates sensitive data (malicious version 1.48.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @zzzgenesis00/playwrite (npm)
What this malware does
The package @zzzgenesis00/playwrite is a typosquat of playwright. Its exported launch() returns empty stub methods, while postinstall.js (also loaded transitively via index.js) runs on npm install and require. It collects hostname, username, homedir, platform, cwd, node version, npm registry configuration and the output of npm whoami via execSync, and harvests credential-shaped environment variables including NPM_TOKEN, GITHUB_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, DOCKER_PASSWORD, GCLOUD_ACCESS_TOKEN and NPM_CONFIG. It enumerates ~/.ssh (id_rsa, id_ed25519, id_ecdsa and.pub files), reads ~/.npmrc and ~/.gitconfig, and scans Chrome, Chromium and Firefox profile directories for Cookies and Login Data. The collected data is JSON-POSTed over HTTPS to the hardcoded Serveo reverse-tunnel host 40f955f39128bd79-178-249-214-24.serveousercontent.com at path /collect, with a 2-second setTimeout delay and a try/catch wrapper commented to keep npm install silent on failure.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for @zzzgenesis00/playwrite (version 1.48.0).
If you installed it — respond
@zzzgenesis00/playwrite is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If @zzzgenesis00/playwrite was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @zzzgenesis00/playwrite-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.