Malicious code in @sudoughnym/enviro-demo (npm)
The npm package @sudoughnym/enviro-demo version 99.99.99 contains malicious preinstall and postinstall scripts that automatically run during npm install. These scripts collect host identifiers and environment metadata, including hostname, current working directory, process ID, Node.js version, platform, user environment variables, and send this data to an attacker-controlled third-party webhook. The package is a dependency-confusion proof-of-concept designed to outrank internal packages by using an inflated version number. Installing this package leaks sensitive environment information to an unauthorized external endpoint.
AI Analysis
Technical Summary
@sudoughnym/[email protected] includes lifecycle scripts (preinstall.js and postinstall.js) that execute automatically on installation. These scripts gather detailed environment and host information such as os.hostname(), process.cwd(), pid, node version, platform, process.env.USER, the first ten environment variable names, and the total count of environment variables. This collected data is POSTed as JSON to a third-party webhook URL not affiliated with the package publisher. The package's high version number is intended to cause internal build systems to resolve to this malicious public package instead of a private internal package named 'enviro'. This results in leakage of host identity and environment variable structure, potentially exposing secret variable names to attackers on every install.
Potential Impact
Any build or developer machine that installs @sudoughnym/[email protected] will leak host identity and environment metadata, including potentially sensitive environment variable names, to an attacker-controlled external endpoint. This exposure can lead to information disclosure that may facilitate further attacks or compromise of secrets. The malicious code executes automatically during installation without user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or removal is confirmed, avoid installing or resolving to @sudoughnym/[email protected]. Review and restrict package sources to trusted registries to prevent dependency confusion attacks. Remove any instances of this package from build and developer environments and audit environment variables for sensitive information exposure.
Malicious code in @sudoughnym/enviro-demo (npm)
Description
The npm package @sudoughnym/enviro-demo version 99.99.99 contains malicious preinstall and postinstall scripts that automatically run during npm install. These scripts collect host identifiers and environment metadata, including hostname, current working directory, process ID, Node.js version, platform, user environment variables, and send this data to an attacker-controlled third-party webhook. The package is a dependency-confusion proof-of-concept designed to outrank internal packages by using an inflated version number. Installing this package leaks sensitive environment information to an unauthorized external endpoint.
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
@sudoughnym/[email protected] includes lifecycle scripts (preinstall.js and postinstall.js) that execute automatically on installation. These scripts gather detailed environment and host information such as os.hostname(), process.cwd(), pid, node version, platform, process.env.USER, the first ten environment variable names, and the total count of environment variables. This collected data is POSTed as JSON to a third-party webhook URL not affiliated with the package publisher. The package's high version number is intended to cause internal build systems to resolve to this malicious public package instead of a private internal package named 'enviro'. This results in leakage of host identity and environment variable structure, potentially exposing secret variable names to attackers on every install.
Potential Impact
Any build or developer machine that installs @sudoughnym/[email protected] will leak host identity and environment metadata, including potentially sensitive environment variable names, to an attacker-controlled external endpoint. This exposure can lead to information disclosure that may facilitate further attacks or compromise of secrets. The malicious code executes automatically during installation without user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or removal is confirmed, avoid installing or resolving to @sudoughnym/[email protected]. Review and restrict package sources to trusted registries to prevent dependency confusion attacks. Remove any instances of this package from build and developer environments and audit environment variables for sensitive information exposure.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6697
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4452db27e9c797198e051d
Added to database: 06/30/2026, 23:35:55 UTC
Last enriched: 07/13/2026, 10:40:33 UTC
Last updated: 07/28/2026, 09:53:18 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.