MAL-2026-5372

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/examples/MAL-2026-5372.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5372
Aliases
  • GHSA-3hg6-5qgp-v676
Published
2026-06-09T14:17:42Z
Modified
2026-07-09T21:16:57Z
Summary
Malicious code in @doaction/examples (npm)
Details

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

Source: amazon-inspector (361bc047872fceb7885c47404eef734b43ce8e5e7f13554e79d011be6f383339)

@doaction/examples@99.99.99 declares preinstall: node scripts/postinstall.js in package.json, which requires @doaction/shared/bin/postinstall.js. The package self-describes as 'for internal testing' and depends on @doaction/shared at ^99.99.99. On npm install, the preinstall hook auto-executes and loads telemetry code from the sibling @doaction/shared package, which collects environment variables and transmits them to a remote destination — the installer has no opportunity to consent and no documented opt-out at this stage. The version 99.99.99 combined with @doaction scope and 'internal testing' wording is the canonical dependency-confusion override fingerprint: any organization with private @doaction/* packages whose installer pulls from public npm instead of an internal registry will resolve and execute this code in place of their internal package. A secondary integrity concern: a separate scripts/preinstall.js file exists but is unreferenced, while the actual preinstall hook points at a file named postinstall.js — a naming inconsistency that obscures what executes at install time.

Source: ghsa-malware (44da964c1ac1406847f9192c36e492ae4a8bb056aed718e6b72aee397fff34ac)

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": [
        {
            "id": "GHSA-3hg6-5qgp-v676",
            "import_time": "2026-06-09T15:22:39.828206584Z",
            "modified_time": "2026-06-09T14:17:43Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "44da964c1ac1406847f9192c36e492ae4a8bb056aed718e6b72aee397fff34ac",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-004985",
            "import_time": "2026-06-09T17:45:46.692392602Z",
            "modified_time": "2026-06-09T17:11:51Z",
            "sha256": "361bc047872fceb7885c47404eef734b43ce8e5e7f13554e79d011be6f383339",
            "source": "amazon-inspector",
            "versions": [
                "99.99.99"
            ]
        },
        {
            "id": "IN-MAL-2026-004986",
            "import_time": "2026-06-09T17:45:46.743595671Z",
            "modified_time": "2026-06-09T17:11:51Z",
            "sha256": "a5cf9d24ddb8566d91003c9f3ea71b41c84e2756534fc389c693b60e99081493",
            "source": "amazon-inspector",
            "versions": [
                "99.99.99"
            ]
        },
        {
            "id": "IN-MAL-2026-009403",
            "import_time": "2026-07-09T21:03:51.162085692Z",
            "modified_time": "2026-07-09T21:02:28Z",
            "sha256": "fef13a39592a8e5fad66c3347235c91556652224858018999f55d14ecbba6a9a",
            "source": "amazon-inspector",
            "versions": [
                "9.9.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @doaction/examples

Package

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

Affected ranges

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

Affected versions

9.*
9.9.9
99.*
99.99.99

Database specific

cwes
[
    {
        "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.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "domains": [
        "e1gjv2ne5a.execute-api.ap-northeast-1.amazonaws.com"
    ],
    "evidence_files": [
        {
            "path": "scripts/postinstall.js",
            "sha256": "1f1dc32372e7c221c99f8110c2331e199b08f6facbd546d17ed4768ebb6eebdc",
            "tlsh": "1bd0224d3b8db77c3ce0493e1947230a727181240260b6b878da035287641446a1f4e1"
        },
        {
            "path": "package.json",
            "sha256": "1fd9e671f09b0494acdc6d94d75f04b5dad7cf535e99928db4b769ffcbab676e",
            "tlsh": "26f0e2203b125b331dc175625c3a416a76b14f2b90847d186adf52198b6c27bb5ff21d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/examples/MAL-2026-5372.json"