LWA-2026-14426 MAL-2026-20420 ↗ confirmed malware

env-helper-friend@0.2.0

Malicious code in env-helper-friend (npm)

T1059.007 · JavaScriptT1082 · System Information DiscoveryT1552 · Unsecured CredentialsT1071.004 · DNST1048 · Exfiltration Over Alternative Protocol

Analysis

env-helper-friend@0.2.0 runs an install-time payload from scripts/postinstall.js, wired through the package's "postinstall" script. The script serialises the entire process.env object to JSON, keeps the first 200 characters, and uses that slice as the leftmost DNS label of a hostname under ygyrsdtjvygv[.]oeh, then resolves it with node:dns/promises (dns.lookup). This exfiltrates environment-variable names and values — tokens, credentials and connection strings included — out of the installer's machine over DNS. The script prints only masked "********" values to the console so the install looks like an innocuous env scan, and it exits quietly on any error so it never fails the install. The destination can be redirected through the URLLY environment variable, and the hook is skipped if ENV_TOOLKIT_QUIET is set. IOC: ygyrsdtjvygv[.]oeh (DNS exfiltration endpoint).

analyzed by
Leitwacht
first seen
Nov 22, 2026, 11:06 PM
analyzed
Nov 22, 2026, 11:07 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.