@doaction/pay
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-55rv-c39c-944m
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @doaction/pay (npm)
---
_-= 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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0