Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @doaction/sudo-prompt (npm)

0
High
Published: 06/09/2026 (06/09/2026, 14:17:42 UTC)
Source: GCVE Database
Product: @doaction/sudo-prompt

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

npmghsa
@doaction/sudo-prompt
Affected versions
=99.99.99=9.9.9

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

AILast updated: 07/09/2026, 09:55:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses