Dependency-confusion malware: canvas_webgl_minimal & playwright-config exfiltrate system data via Discord webhook
Severity: critical · Patch status: no-fix-needed · Since 2026-11-18
Two npm packages, canvaswebglminimal (11.11.13) and playwright-config (20.20.20), published 2026-02-23, contained malicious preinstall/preupdate scripts running node index.js. The script reads /etc/passwd, attempts the Windows SAM hive and C:\Users, lists the working directory, runs id/whoami, and collects username, home directory, UID/GID and OS release, posting everything to a hardcoded Discord webhook. Messages are labelled 'Dependency Confusion Executed' and 'Bug Bounty Execution', indicating a researcher-style probe that nonetheless runs without consent on any installer's machine. The identical index.js (sha256 fb8451975ead...) is shared by both packages and the same webhook is used by google-caja-bower (MAL-2026-10186). The packages were unpublished from npm on 2026-02-24; no patched versions exist, so any machine that installed them must be treated as compromised.
What to do
- Search lockfiles, CI logs and package caches for canvas_webgl_minimal@11.11.13 and playwright-config@20.20.20 and for the sha256 fb8451975ead2a956d3d8092eb2868d1ba9135fb6ef30e75941b1454958f75ae index.js
- If installed anywhere, treat the machine/runner as compromised: rotate credentials accessible to that user, review what the account could reach, and rebuild from clean images
- Check network/DNS logs for connections to the hardcoded Discord webhook and block Discord webhook egress from build environments
- Audit npm install scripts (ignore-scripts, --ignore-scripts in CI) and enforce dependency allowlists to mitigate dependency-confusion typosquats
Sources
All live incidents on Threat Watch