OSV Malicious Advisory
scanned 2h ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-5380 confirms this npm version as malicious. `@doaction/sudo-prompt` shares the name of the widely-used unscoped `sudo-prompt` package but contains none of its privilege-escalation functionality. The only behavior is environment telemetry: `package.json` maps `preinstall` to `node scripts/postinstall.js`, which requires `@doaction/shared/bin/postinstall.js` (and a sibling `scripts/preinstall.js` requires `@doaction/shared/bin/preinstall.js`); the dependency...
Advisory
MAL-2026-5380
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @doaction/sudo-prompt (npm)
Details
`@doaction/sudo-prompt` shares the name of the widely-used unscoped `sudo-prompt` package but contains none of its privilege-escalation functionality. The only behavior is environment telemetry: `package.json` maps `preinstall` to `node scripts/postinstall.js`, which requires `@doaction/shared/bin/postinstall.js` (and a sibling `scripts/preinstall.js` requires `@doaction/shared/bin/preinstall.js`); the dependency performs Datadog environment telemetry on install. The single exported function `reportSudoEnv(config)` in `src/index.js` unconditionally calls `reportEnvToDatadog(...)` with hardcoded service identifier `doaction-sudo-prompt` and tag `module: sudo-prompt`. Caller passes their own `ddApiKey`, so the destination Datadog account is caller-controlled rather than attacker-owned, and no third-party-attacker-controlled endpoint was identified. The concerns are (a) the name overlap with a popular package, which can mislead developers into installing a telemetry shim instead of the privilege-prompt library they expected, and (b) the preinstall hook performs outbound telemetry without an opt-in. There is no credential scraping, no remote code fetch, no attacker-controlled exfiltration endpoint, and no install-time destruction. Routing to human review to assess the name-confusion risk against the legitimate `sudo-prompt` package and the undisclosed install-time telemetry behavior.
## Source: ghsa-malware (488a945e315d4824a3cc9dbb099b6eb414d12692164cb2c965626725ff64776a) 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.
Decision reason
OpenSSF Malicious Packages via OSV confirms @doaction/sudo-prompt@9.9.9 as malicious (MAL-2026-5380): Malicious code in @doaction/sudo-prompt (npm)
References
Source & flagged code
0 flaggedNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory