Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in whs4_deu (npm)

0
High
Published: 07/25/2026 (07/25/2026, 16:15:37 UTC)
Source: GCVE Database
Product: whs4_deu

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

npmghsa
whs4_deu
Affected versions
=1.0.1=1.0.0

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

AILast updated: 08/11/2026, 18:56:09 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses