Malicious code in @doaction/sudo-prompt (npm)
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.
AI Analysis
Technical Summary
@doaction/sudo-prompt is a malicious npm package that mimics the name of the legitimate sudo-prompt package but does not provide privilege escalation features. Its installation scripts perform environment telemetry by sending data to Datadog using a caller-provided API key, meaning the telemetry destination is controlled by the user, not an attacker. No credential scraping or remote code fetching was identified. The main risks are confusion due to the package name and undisclosed telemetry during installation. Despite the telemetry nature, some sources consider any system with this package installed as fully compromised, recommending secret rotation and removal.
Potential Impact
The package does not steal credentials or execute remote code but performs undisclosed environment telemetry during installation, potentially leaking environment details to Datadog. The name confusion risk may cause developers to install this package instead of the legitimate sudo-prompt, leading to unintended telemetry. Some advisories treat any installation as a full compromise, recommending secret rotation and system remediation. There is no confirmed exploit in the wild.
Mitigation Recommendations
No official patch or fix is available. The primary mitigation is to remove the @doaction/sudo-prompt package if installed. Rotate all secrets and keys from a separate, trusted environment as a precaution due to the potential full compromise risk. Developers should verify package names carefully to avoid installing similarly named malicious packages. Monitor for and avoid packages that perform undisclosed telemetry or have suspicious install scripts.
Malicious code in @doaction/sudo-prompt (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
@doaction/sudo-prompt is a malicious npm package that mimics the name of the legitimate sudo-prompt package but does not provide privilege escalation features. Its installation scripts perform environment telemetry by sending data to Datadog using a caller-provided API key, meaning the telemetry destination is controlled by the user, not an attacker. No credential scraping or remote code fetching was identified. The main risks are confusion due to the package name and undisclosed telemetry during installation. Despite the telemetry nature, some sources consider any system with this package installed as fully compromised, recommending secret rotation and removal.
Potential Impact
The package does not steal credentials or execute remote code but performs undisclosed environment telemetry during installation, potentially leaking environment details to Datadog. The name confusion risk may cause developers to install this package instead of the legitimate sudo-prompt, leading to unintended telemetry. Some advisories treat any installation as a full compromise, recommending secret rotation and system remediation. There is no confirmed exploit in the wild.
Mitigation Recommendations
No official patch or fix is available. The primary mitigation is to remove the @doaction/sudo-prompt package if installed. Rotate all secrets and keys from a separate, trusted environment as a precaution due to the potential full compromise risk. Developers should verify package names carefully to avoid installing similarly named malicious packages. Monitor for and avoid packages that perform undisclosed telemetry or have suspicious install scripts.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5380
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-f9qh-hqgp-pgvc"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c4168715ace43158bb6
Added to database: 07/09/2026, 09:39:13 UTC
Last enriched: 07/09/2026, 09:55:44 UTC
Last updated: 07/26/2026, 17:23:42 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.