Malicious code in env-helper-friend (npm)
MAL-2026-20420
Published · Modified
Dependency scanning
Check whether env-helper-friend is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
Source: amazon-inspector (cdf9cf4146dc3e76fdd362acd19b90ff841abcb88ef3ef5c0e05b300cfc64d70)
On npm install, env-helper-friend's postinstall script serializes the entire process.env to JSON, truncates it to 200 characters, embeds the payload as a subdomain label of a hardcoded host (*.ygyrsdtjvygv.oeh), and performs a DNS lookup of the resulting hostname. Although the TLD does not resolve, recursive DNS resolvers on the install path still receive and typically log/forward the queried label, exfiltrating the environment contents (which commonly contain CI tokens, cloud credentials, and other secrets) to any resolver operator on the lookup chain and to any operator who controls the destination zone. The destination host is also overridable via the URLLY environment variable, allowing redirection to an arbitrary attacker-controlled label. README self-identifies the package as a test/research artifact, but the install-time exfiltration mechanism executes on any default npm install regardless of that label.
References
Ready to move
Start Securing
Free, no credit card | First findings in minutes