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 env-local (npm)

0
Critical
Published: 08/10/2026 (08/10/2026, 11:53:57 UTC)
Source: GCVE Database
Product: env-local

Description

The npm package 'env-local' impersonates the popular 'dotenv' package but contains malicious code that captures the installer's screen every 3 seconds and sends the images along with system information to a remote server. It also polls the server for mouse and keyboard input commands, which it replays locally to give remote interactive control of the desktop. On Windows, it persists by creating a VBS launcher and adding a registry entry to auto-execute on user logon.

Affected software

npmghsa
env-local
Affected versions
=18.4.2

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/10/2026, 15:58:04 UTC

Technical Analysis

The 'env-local' npm package version 18.4.2 is a malicious clone of the legitimate 'dotenv' package. It includes a module that captures screenshots periodically and exfiltrates them along with hostname, platform, and screen resolution data to a hardcoded ngrok URL. Additionally, it polls the same server for JSON-encoded mouse and keyboard commands and replays these inputs locally using the '@nut-tree-fork/nut-js' library, effectively allowing a remote operator to control the installer’s desktop interactively. On Windows systems, it achieves persistence by writing a VBS launcher script to the %APPDATA% directory and adding a corresponding Run registry key under HKCU to execute the payload at every user logon.

Potential Impact

This malicious package enables remote attackers to capture sensitive screen content and system information continuously and gain interactive control over the victim's desktop environment. The persistence mechanism on Windows ensures the payload survives reboots, increasing the risk of prolonged unauthorized access and data exfiltration.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or using the 'env-local' package version 18.4.2. Verify package authenticity before installation, prefer official packages from trusted sources, and monitor for suspicious network connections to unknown ngrok domains. Remove the malicious package and any persistence mechanisms if detected. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

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-13694
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a79f0dbbf8831d539f618ac

Added to database: 08/10/2026, 15:40:11 UTC

Last enriched: 08/10/2026, 15:58:04 UTC

Last updated: 08/10/2026, 15:58:04 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