Skip to main content
MalwarePublished Updated

@doaction/sudo-prompt (npm) · Malicious Code

Affects @doaction/sudo-promptSource GCVE Database

0

Malicious package : remove @doaction/sudo-prompt and rotate any secrets on hosts that installed it.

Data as of 9 Jul 2026, 09:55 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-5380

What to do

Remove @doaction/sudo-prompt from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npm@doaction/sudo-promptAffected
  • =99.99.99
  • =9.9.9
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The @doaction/sudo-prompt npm package is a malicious package that impersonates the widely-used sudo-prompt package but lacks its intended privilege-escalation functionality. Instead, it performs environment telemetry by sending data to Datadog during installation without user consent. There is no evidence of credential theft, remote code execution, or attacker-controlled data exfiltration endpoints. However, the package name overlap can mislead developers into installing this telemetry shim unintentionally. Security advisories caution that any system with this package installed should be considered fully compromised, recommending immediate secret rotation and package removal.

References

Community reviews

Loading reviews…