npm · Malicious package advisory
Malware@doaction/pay
MAL-2026-5375
Malicious code in @doaction/pay (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (94ec95e460ba16497749775ca5e0bac92e4013e2297dd506bb2b99254acffaf3) @doaction/pay 9.9.9 declares `"preinstall": "node scripts/postinstall.js"` in package.json, which requires `@doaction/shared/bin/postinstall.js` and runs automatically on `npm install` with no user consent. The package's stated purpose is Datadog environment telemetry, and src/index.js wraps `collectEnv` and `sendToDatadog` from the shared dependency. At install time no caller-supplied API key or destination exists, so the preinstall execution path reads installer environment variables and ships them to a destination hardcoded inside the transitive dependency. Two additional concerns corroborate intent: (1) the lifecycle script invoked from `preinstall` is misleadingly named `scripts/postinstall.js`, while an unused `scripts/preinstall.js` of similar shape sits alongside it — a reviewer-confusion pattern; (2) the 9.9.9 version with an 'internal testing' description is consistent with a coordinated package set targeting installer environments rather than a normal release. ## Source: ghsa-malware (ea0e4224fea42b723c5ddeed073192af51d5fec4e00b596f37df2f4e3585f4b5) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Compromised versions (2)
- 99.99.99
- 9.9.9
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.