MAL-2026-6953 Malicious code in whs4_pnm (npm)
- Package
- whs4_pnm
- Registry
- npm
What is MAL-2026-6953?
MAL-2026-6953 is a malicious package in whs4_pnm, published on 7 Jul 2026.
Official description
The package declares a postinstall script (node index.js) that runs unconditionally on npm install. The script POSTs the absolute __filename path (which contains the installer's OS username via the home-directory prefix), the Node.js version, and the platform/architecture to a hardcoded Discord webhook at https://discord.com/api/webhooks/1523336123319849031/.... There is no opt-in, disclosure, or configuration option — every install silently transmits host-identifying data to an author-controlled endpoint. The package's own README and default internal packageName value (whs4_typo) indicate the package is positioned as a typo-target beacon, matching the typosquat-with-callback pattern where the attacker collects fingerprints of developers who mistype a legitimate package name.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
What should I do about MAL-2026-6953?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.
Sources
Also known as GHSA-23v6-j5g5-7x9p.