P2 · HighMalware
Malicious code in serverless-env-helpers (npm)
- MAL-2026-20051
Description
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.
Text from the OSV record.
Affected
serverless-env-helpersnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.