Malicious code in whs4_nmp (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (53a1fc3c42fcd64070dd50db1ed23a9f238bd10fea9bba087cb605f7419af28c) The package's `postinstall` script runs `node index.js` on install, which invokes `reportLoadedFrom` to POST installer-side data to a hardcoded Discord webhook (`discord.com/api/webhooks/1523336123319849031/...`). The transmitted payload includes the absolute filesystem path of the install location (which leaks the user's home directory / username), the Node.js version, and `process.platform`/`process.arch`. There is no disclosure, opt-in, or configuration surface — the destination is a fixed author-controlled channel. Package naming (`whs4_nmp`, internal default `whs4_typo`) and README framing (`typo 발생시 안내합니다`) indicate a dependency-confusion / typosquat probe designed to notify the author whenever a mistyped install lands on a real machine, harvesting host identifiers without consent. ## Source: ghsa-malware (05f2dab2e1b7ba48a8ac7e59bbaa32e72fe485b6ff9d28041becdde764394a06) 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_nmp npm package is identified as containing malicious code that fully compromises affected computers. Installation or execution of this package results in a complete system compromise, potentially allowing attackers to access all stored secrets and keys. Due to the nature of the compromise, simply uninstalling the package is insufficient to ensure system integrity, as attackers may have installed additional persistent malicious components.
Potential Impact
Any system with the whs4_nmp package installed or running should be considered fully compromised. Attackers may have gained full control over the system, exposing all stored secrets and keys. This level of compromise poses a critical risk to confidentiality, integrity, and availability of the affected system and any connected resources.
Mitigation Recommendations
Immediate removal of the whs4_nmp package is recommended. However, because the system may be fully compromised, all secrets and keys stored on the affected computer must be rotated from a separate, trusted machine. Additional forensic analysis and system restoration or reimaging may be necessary to ensure complete removal of malicious software.
Malicious code in whs4_nmp (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (53a1fc3c42fcd64070dd50db1ed23a9f238bd10fea9bba087cb605f7419af28c) The package's `postinstall` script runs `node index.js` on install, which invokes `reportLoadedFrom` to POST installer-side data to a hardcoded Discord webhook (`discord.com/api/webhooks/1523336123319849031/...`). The transmitted payload includes the absolute filesystem path of the install location (which leaks the user's home directory / username), the Node.js version, and `process.platform`/`process.arch`. There is no disclosure, opt-in, or configuration surface — the destination is a fixed author-controlled channel. Package naming (`whs4_nmp`, internal default `whs4_typo`) and README framing (`typo 발생시 안내합니다`) indicate a dependency-confusion / typosquat probe designed to notify the author whenever a mistyped install lands on a real machine, harvesting host identifiers without consent. ## Source: ghsa-malware (05f2dab2e1b7ba48a8ac7e59bbaa32e72fe485b6ff9d28041becdde764394a06) 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_nmp npm package is identified as containing malicious code that fully compromises affected computers. Installation or execution of this package results in a complete system compromise, potentially allowing attackers to access all stored secrets and keys. Due to the nature of the compromise, simply uninstalling the package is insufficient to ensure system integrity, as attackers may have installed additional persistent malicious components.
Potential Impact
Any system with the whs4_nmp package installed or running should be considered fully compromised. Attackers may have gained full control over the system, exposing all stored secrets and keys. This level of compromise poses a critical risk to confidentiality, integrity, and availability of the affected system and any connected resources.
Mitigation Recommendations
Immediate removal of the whs4_nmp package is recommended. However, because the system may be fully compromised, all secrets and keys stored on the affected computer must be rotated from a separate, trusted machine. Additional forensic analysis and system restoration or reimaging may be necessary to ensure complete removal of malicious software.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6950
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-4fw4-5853-rqf8"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4e4f0cc9d9e3dbe328e01c
Added to database: 07/08/2026, 13:22:20 UTC
Last enriched: 07/08/2026, 13:51:50 UTC
Last updated: 07/31/2026, 15:27:23 UTC
Views: 29
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.