Malicious code in whs4_deu (npm)
The npm package 'whs4_deu' versions 1.0.0 and 1.0.1 contains malicious code that executes during installation. Specifically, a postinstall script runs a JavaScript file that sends the installer's absolute file path, Node.js version, and platform details to a hardcoded Discord webhook. This behavior is undocumented and the webhook URL is obfuscated to evade detection. The package provides no legitimate functionality and is flagged as malicious due to its communication with a domain linked to malicious activity.
AI Analysis
Technical Summary
The 'whs4_deu' npm package versions 1.0.0 and 1.0.1 include a postinstall hook that executes 'index.js' upon installation. This script collects sensitive environment information such as the absolute filename path (which can reveal OS username and directory structure), Node.js version, and system architecture, then sends this data to a hardcoded Discord webhook URL. The webhook URL is split in the code to avoid simple detection by string searches. The package does not offer any functionality consistent with its name, and its sole observable behavior is this install-time data beaconing. The OpenSSF Package Analysis project and Amazon Inspector have identified this package as malicious due to its unauthorized data exfiltration and communication with a suspicious domain.
Potential Impact
The malicious postinstall script can leak sensitive environment information including the installer's file path, potentially exposing usernames and directory layouts, as well as Node.js version and platform details. This data exfiltration to a hardcoded external webhook can aid attackers in reconnaissance or further targeted attacks. There is no indication of direct code execution beyond the postinstall script or broader system compromise from the provided data.
Mitigation Recommendations
Users should avoid installing the 'whs4_deu' package versions 1.0.0 and 1.0.1. Since no official patch or remediation is indicated, the best mitigation is to remove or block usage of this package. Monitor package sources and dependency trees to prevent inadvertent installation. Check vendor advisories or npm security advisories for updates or removal notices regarding this package.
Malicious code in whs4_deu (npm)
Description
The npm package 'whs4_deu' versions 1.0.0 and 1.0.1 contains malicious code that executes during installation. Specifically, a postinstall script runs a JavaScript file that sends the installer's absolute file path, Node.js version, and platform details to a hardcoded Discord webhook. This behavior is undocumented and the webhook URL is obfuscated to evade detection. The package provides no legitimate functionality and is flagged as malicious due to its communication with a domain linked to malicious activity.
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_deu' npm package versions 1.0.0 and 1.0.1 include a postinstall hook that executes 'index.js' upon installation. This script collects sensitive environment information such as the absolute filename path (which can reveal OS username and directory structure), Node.js version, and system architecture, then sends this data to a hardcoded Discord webhook URL. The webhook URL is split in the code to avoid simple detection by string searches. The package does not offer any functionality consistent with its name, and its sole observable behavior is this install-time data beaconing. The OpenSSF Package Analysis project and Amazon Inspector have identified this package as malicious due to its unauthorized data exfiltration and communication with a suspicious domain.
Potential Impact
The malicious postinstall script can leak sensitive environment information including the installer's file path, potentially exposing usernames and directory layouts, as well as Node.js version and platform details. This data exfiltration to a hardcoded external webhook can aid attackers in reconnaissance or further targeted attacks. There is no indication of direct code execution beyond the postinstall script or broader system compromise from the provided data.
Mitigation Recommendations
Users should avoid installing the 'whs4_deu' package versions 1.0.0 and 1.0.1. Since no official patch or remediation is indicated, the best mitigation is to remove or block usage of this package. Monitor package sources and dependency trees to prevent inadvertent installation. Check vendor advisories or npm security advisories for updates or removal notices regarding this package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-11070
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a7b6fbcbf8831d5393e7b0c
Added to database: 08/11/2026, 18:53:48 UTC
Last enriched: 08/11/2026, 18:56:09 UTC
Last updated: 08/11/2026, 18:56:09 UTC
Views: 2
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.