env-helper-friend@0.2.0
Malicious code in env-helper-friend (npm)
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
- node-bs58.js@3.0.0
- @yuanjielab/cli@0.10.2
- kaspacore-lib@1.1.1
- character-ai-sdk@1.0.1
- orderly-plugin-liquidity-heatmap@1.0.6
- orderly-plugin-liquidity-heatmap@1.0.4
- @galicia-toolkit/spa-build-config@999.0.5
- css-reading-display-polyfill@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.