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 @sudoughnym/enviro-demo (npm)

0
High
Published: 06/30/2026 (06/30/2026, 20:59:17 UTC)
Source: GCVE Database
Product: @sudoughnym/enviro-demo

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

npmghsa
@sudoughnym/enviro-demo
Affected versions
=99.99.99

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: 07/13/2026, 10:40:33 UTC

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.

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-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 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