Skip to main content
MalwarePublished

env-helper-friend (npm) · Malicious Code

Affects env-helper-friendSource GCVE Database

0

Malicious package : remove env-helper-friend and rotate any secrets on hosts that installed it.

Data as of 24 Nov 2026, 05:25 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-20420

What to do

Remove env-helper-friend from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmenv-helper-friendAffected
  • =0.2.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package env-helper-friend version 0.2.0 contains malicious code in its postinstall script that exfiltrates environment variables by encoding them into DNS queries. This exfiltration occurs during npm install, sending truncated environment data to a hardcoded domain or an attacker-controlled domain via the URLLY environment variable. The package is labeled as a test or research artifact but executes this data leakage on any default npm install.

References

Community reviews

Loading reviews…