MAL-2026-5380

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/sudo-prompt/MAL-2026-5380.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5380
Aliases
  • GHSA-f9qh-hqgp-pgvc
Published
2026-06-09T14:17:42Z
Modified
2026-07-08T23:47:00.789101587Z
Summary
Malicious code in @doaction/sudo-prompt (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (e989180180ebba42b05f086cda01159058a0a9ccca3c4beb95f3e5a31430dfe6)

@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.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "488a945e315d4824a3cc9dbb099b6eb414d12692164cb2c965626725ff64776a",
            "id": "GHSA-f9qh-hqgp-pgvc",
            "modified_time": "2026-06-09T14:17:51Z",
            "import_time": "2026-06-09T15:22:39.846558659Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "99.99.99"
            ],
            "id": "IN-MAL-2026-008115",
            "import_time": "2026-07-08T17:01:31.707180554Z",
            "sha256": "1083bbecb5bbb6de74ff391c8e0516c1041b464d728ff90b3727d78b7cd19e91",
            "modified_time": "2026-07-08T16:27:02Z",
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "9.9.9"
            ],
            "id": "IN-MAL-2026-008983",
            "modified_time": "2026-07-08T23:01:41Z",
            "sha256": "e989180180ebba42b05f086cda01159058a0a9ccca3c4beb95f3e5a31430dfe6",
            "import_time": "2026-07-08T23:27:57.266374912Z",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @doaction/sudo-prompt

Package

Name
@doaction/sudo-prompt
View open source insights on deps.dev
Purl
pkg:npm/%40doaction/sudo-prompt

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

9.*
9.9.9
99.*
99.99.99

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "e7f052306b129a331dc162b25d3b402362f08f6b618079082acb111ac76c6baa0ff61c",
            "sha256": "259ec76bb2618a5c3518a845014db467402feb2727fb4090b7e806ef9f78dc3f",
            "path": "package.json"
        },
        {
            "sha256": "7f75da4b76c369a33fd603fee135f884f0a1d98a4ef0fd6cd014072357d05d5a",
            "tlsh": "1a11d47751957915228754d04a5b80a3bda0d2833eca24b9305f47d09fdc4d4b9b1c98",
            "path": "src/index.js"
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/sudo-prompt/MAL-2026-5380.json"