MAL-2026-14344
Malicious code in @js-lib-team/env-parser (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (ae761b7dd660e94dd99388dedf8c2227fa6a683e314468e7a482cd649c2e1a47) Package @js-lib-team/env-parser is advertised as an environment-variable parser but on require/import executes a top-level IIFE in index.js that reads the installer's local.env file, extracts values matching PRIVATE_KEY / SECRET / MNEMONIC via a 64-hex regex, and uses those keys to construct ethers.Wallet instances that sign and broadcast transactions transferring native-token balances (ETH/BNB/Polygon/Avalanche and other supported chains) from the installer's wallets to five hardcoded attacker-controlled destination addresses, including 0x70951410C5E9E938D8715288A7229548287a1a62 and bc1q4h4a2sjf4k9quhx7xrajfgcsaz082cv5h3g8dt. The load-time routine also sets process.title to 'systemd: [logrotate]' to disguise the Node process in ps/top output and ships helper stubs labelled 'Process Hiding & Persistence' and 'Polymorphic & Encryption Layers'. The declared parser purpose is a cover story; the actual behavior on module load is theft of installer-owned wallet key material and direct movement of funds to attacker addresses.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for @js-lib-team/env-parser (npm). Pin to a known-safe version or switch to an alternative.