env-helper-friend (npm): malicious postinstall exfiltrates process.env secrets via DNS
Severity: critical · Patch status: no-fix-needed · Since 2026-11-24
The npm package env-helper-friend version 0.2.0 contains malicious install-time code. Its postinstall script serializes the entire process.env to JSON, truncates the payload to 200 characters, embeds it as a subdomain label under the hardcoded host .ygyrsdtjvygv.oeh, and performs a DNS lookup. Although the TLD does not resolve, recursive resolvers on the lookup path can log or forward the queried label, exposing CI tokens, cloud credentials, and other secrets to resolver operators and anyone controlling the destination zone. The destination can also be overridden via the URLLY environment variable. The README calls the package a test/research artifact, but the exfiltration executes on any default npm install. No patched versions are listed; affected environments should remove the package and rotate exposed secrets.
What to do
- Immediately remove env-helper-friend 0.2.0 from projects, lockfiles, caches, and CI images; block the package in dependency policy.
- Rotate all secrets that may have been present in process.env during any install of the package, especially CI tokens, cloud credentials, and deployment keys.
- Search DNS logs for queries to *.ygyrsdtjvygv.oeh and for use of the URLLY environment variable, and investigate affected build runners.
- Audit npm install logs and lockfiles for transitive inclusion of env-helper-friend 0.2.0, and consider disabling install scripts where feasible.
Sources
All live incidents on Threat Watch