Skip to main content

Malicious code in envpack-conf (npm)

0
High
Published: 08/12/2026 (08/12/2026, 15:36:36 UTC)
Source: GCVE Database
Product: envpack-conf

Description

envpack-conf version 1.0.1 is a trojanized npm package impersonating the legitimate pkg-conf utility. It contains malicious code that, when imported, asynchronously queries multiple public Ethereum RPC endpoints for transactions from a specific attacker address. It decodes transaction data to retrieve two IPv4 addresses, fetches an XOR-encrypted second-stage payload from these hosts, decrypts it, and executes it both via eval() and a detached Node.js child process. The package uses obfuscation techniques such as Unicode escapes and typosquatting to evade detection and impersonate the original maintainer.

Affected software

npmghsa
envpack-conf
Affected versions
=1.0.1

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/12/2026, 20:27:45 UTC

Technical Analysis

The envpack-conf 1.0.1 npm package is a malicious trojanized clone of the pkg-conf utility. It injects a top-level asynchronous immediately-invoked function expression (IIFE) that activates on module import. This IIFE queries several public Ethereum RPC endpoints for transactions sent from the attacker's Ethereum address 0xa322E5f3D311D3080e6f0121063e9aDC2490Ef1a. It decodes the 'to' field of these transactions into two IPv4 addresses, then fetches an XOR-encrypted payload from these addresses at the path /0x/cls. The payload is decrypted and executed using both eval() and a detached Node.js child process, allowing persistent and stealthy execution on the host. The package name and metadata impersonate the legitimate pkg-conf package and its maintainer, using typosquatting and obfuscation to evade static analysis.

Potential Impact

This trojanized package can execute arbitrary code on any system that imports it, potentially leading to full compromise of the host environment. The malicious payload is fetched dynamically and executed in a detached process, enabling stealthy persistence. The obfuscation and impersonation increase the risk of inadvertent installation by developers relying on the legitimate pkg-conf package, potentially spreading the compromise in development and production environments.

Defensive Guidance

No official patch or remediation is currently documented. Users should immediately remove envpack-conf version 1.0.1 from their projects and replace it with the legitimate pkg-conf package from trusted sources. Verify package integrity and authenticity before installation. Monitor for any unexpected child processes or network connections related to Ethereum RPC endpoints. 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-13921
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a7cd443bf8831d539187058

Added to database: 08/12/2026, 20:14:59 UTC

Last enriched: 08/12/2026, 20:27:45 UTC

Last updated: 09/22/2026, 02:32:45 UTC

Views: 70

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