MAL-2026-20111: Malicious code in playwright-config (npm)
Malicious package. A preinstall (and preupdate) script runs node index.js, which reads /etc/passwd (and attempts the Windows SAM hive and C:\Users), lists the current working directory, runs id/whoami, collects the user name, home directory, UID/GID and OS release, and posts it all to a hardcoded Discord webhook (1471187072869073017). The code labels its messages "Dependency Confusion Executed" and "Bug Bounty Execution", but it runs without consent on any machine that installs it. index.js (sha256 fb8451975ead2a956d3d8092eb2868d1ba9135fb6ef30e75941b1454958f75ae) is shared by canvaswebglminimal and playwright-config; the same webhook is used by google-caja-bower (MAL-2026-10186). Published 2026-02-23 and unpublished from npm on 2026-02-24.
Affected Software
Event History
Frequently Asked Questions
What event triggers the malicious code?
The code is invoked by both the package's preinstall and preupdate scripts, which run node index.js. Systems that installed or updated the package should be considered exposed.
Which environments are targeted by the collection logic?
The script reads /etc/passwd and executes id or whoami, indicating Unix-like systems are targeted. It also attempts to access the Windows SAM hive and C:\Users, so Windows hosts are included in its collection attempts.
What indicators can be used to hunt for related activity?
The collected data is posted to Discord webhook 1471187072869073017. The index.js file has SHA-256 fb8451975ead2a956d3d8092eb2868d1ba9135fb6ef30e75941b1454958f75ae.
Are there related packages worth reviewing?
canvas_webgl_minimal shares the same index.js file, and google-caja-bower uses the same Discord webhook. These packages may warrant review alongside playwright-config.