serverless-env-helpersnpm
Advisory published Updated
serverless-env-helpers is a confirmed malicious npm package (MAL-2026-20051) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.0, 1.0.1, 1.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in serverless-env-helpers (npm)
What this malware does
Malicious package. A postinstall hook runs node postinstall.js. In version 1.0.1 it read ~/.aws/config, ~/.aws/credentials, ~/.docker/config.json and ~/.netrc, queried the ECS task metadata endpoint (169.254.170.2/v2/metadata), requested an EC2 IMDSv2 token (169.254.169.254/latest/api/token) and ran npm config list --json. Every detonated version contacted probe-worker.hugebigballs87.workers.dev. Observed in a sandboxed install. All eight versions were published on 2026-04-03 within about an hour and unpublished from npm on 2026-04-05.
Malicious versions
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for serverless-env-helpers (8 malicious versions).
If you installed it — respond
serverless-env-helpers is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If serverless-env-helpers was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
References
Credits
- wormsign · finder
Detect & block this
O3 blocks serverless-env-helpers-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.