Malicious code in whs4_pnm (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (47d72187d8b59a9a40cb8397d064bc7319b20e19ee7d48b870432bd96952b089) 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. ## Source: ghsa-malware (6c7538f81810e9802a2f2a45995000376e76177b2eb21d1c6e8aea63942a330d) 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.
AI Analysis
Technical Summary
The whs4_pnm npm package is identified as malicious software that, once installed or executed, fully compromises the host system. The compromise is severe enough that all stored credentials and keys must be considered exposed and rotated from a separate machine. Due to the potential for persistent malicious code beyond the package itself, simple removal of the package does not ensure complete remediation.
Potential Impact
Full system compromise on any computer with the whs4_pnm package installed or running. All secrets and keys stored on the affected system are at risk and must be rotated. The malicious package may have installed additional malware, so the system cannot be trusted even after package removal.
Mitigation Recommendations
Remove the whs4_pnm package immediately. Rotate all secrets and keys stored on the compromised system from a different, secure computer. Because the system may remain compromised beyond the presence of the package, consider rebuilding or thoroughly cleaning the affected machine. No official patch or fix is available; remediation relies on removal and credential rotation.
Malicious code in whs4_pnm (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (47d72187d8b59a9a40cb8397d064bc7319b20e19ee7d48b870432bd96952b089) 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. ## Source: ghsa-malware (6c7538f81810e9802a2f2a45995000376e76177b2eb21d1c6e8aea63942a330d) 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The whs4_pnm npm package is identified as malicious software that, once installed or executed, fully compromises the host system. The compromise is severe enough that all stored credentials and keys must be considered exposed and rotated from a separate machine. Due to the potential for persistent malicious code beyond the package itself, simple removal of the package does not ensure complete remediation.
Potential Impact
Full system compromise on any computer with the whs4_pnm package installed or running. All secrets and keys stored on the affected system are at risk and must be rotated. The malicious package may have installed additional malware, so the system cannot be trusted even after package removal.
Mitigation Recommendations
Remove the whs4_pnm package immediately. Rotate all secrets and keys stored on the compromised system from a different, secure computer. Because the system may remain compromised beyond the presence of the package, consider rebuilding or thoroughly cleaning the affected machine. No official patch or fix is available; remediation relies on removal and credential rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6953
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-23v6-j5g5-7x9p"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4e4f09c9d9e3dbe328dfa7
Added to database: 07/08/2026, 13:22:17 UTC
Last enriched: 07/08/2026, 13:51:45 UTC
Last updated: 07/28/2026, 02:06:19 UTC
Views: 26
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.