Malicious code in env-helper-friend (npm)
- GHSA-39c3-9vx8-4336
Description
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/59e7ea3486c509be9271a34e3217730889e2ce09/osv/malicious/npm/env-helper-friend/MAL-2026-20420.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
env-helper-friendnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.