MAL-2026-5371

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/example/MAL-2026-5371.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5371
Aliases
  • GHSA-w4g4-r5qj-rj58
Published
2026-06-09T14:17:41Z
Modified
2026-07-09T21:16:57.103575009Z
Summary
Malicious code in @doaction/example (npm)
Details

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

Source: amazon-inspector (9e2df92bb520aefba5bcfa6e3e88b4cbd7da3ea27b121380c17615bcfbab1ade)

@doaction/example@99.99.99 is a scoped npm package whose package.json self-describes as 'Example package with Datadog environment telemetry for internal testing' and pins @doaction/shared at ^99.99.99. On install, scripts/preinstall.js delegates execution to @doaction/shared/bin/preinstall.js via require('@doaction/shared/bin/preinstall.js'). The shared dependency's preinstall code is not present in this tarball and its actual behavior cannot be confirmed from the contents shipped here. The library API reportExampleEnv (src/index.js) is opt-in: callers must explicitly supply a Datadog API key and invoke the function, and the documented whitelist is limited to EXAMPLE_MODE and EXAMPLE_DEBUG. The installer-facing risk depends entirely on what @doaction/shared's preinstall and collectEnv actually do — those bytes need to be reviewed before a final disposition. The 99.99.99 version pattern combined with the scoped name is also consistent with a dependency-confusion shape against an internal @doaction namespace, which warrants human assessment.

Source: ghsa-malware (5632bd1a9818c4a4af54e5297d40c10279d83e702ee5f59fa9bd50c52a33e0bd)

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-w4g4-r5qj-rj58",
            "modified_time": "2026-06-09T14:17:42Z",
            "source": "ghsa-malware",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "sha256": "5632bd1a9818c4a4af54e5297d40c10279d83e702ee5f59fa9bd50c52a33e0bd",
            "import_time": "2026-06-09T15:22:39.855853245Z"
        },
        {
            "id": "IN-MAL-2026-008108",
            "modified_time": "2026-07-08T16:26:03Z",
            "versions": [
                "99.99.99"
            ],
            "source": "amazon-inspector",
            "sha256": "9e2df92bb520aefba5bcfa6e3e88b4cbd7da3ea27b121380c17615bcfbab1ade",
            "import_time": "2026-07-08T17:01:31.188969596Z"
        },
        {
            "id": "IN-MAL-2026-009402",
            "versions": [
                "9.9.9"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-07-09T21:02:18Z",
            "sha256": "76081a2c1ed86add4a6eb5780ada3678d542bc94634c8b17aab51edd79dbebaa",
            "import_time": "2026-07-09T21:03:51.129208331Z"
        }
    ]
}
References
Credits

Affected packages

npm / @doaction/example

Package

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

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": [
        {
            "path": "scripts/preinstall.js",
            "sha256": "d6513d118bada8a280565a6f71c4f9f6e7f02ff9027ee0892129ae0fce7c3d5d",
            "tlsh": "cfe0ab3c36e8b13cbdb55972251b128133a294180978bd94b8ca43538ea5195362ba93"
        },
        {
            "path": "package.json",
            "sha256": "065bf51aa2b0ebf4f3637c4f5fdebd84009c45cd813fb41f561fd6d0962375d3",
            "tlsh": "36f027303b125b331dc165625c3a406676b14f2f50847d082acb9319cb5c6bb75ff21d"
        },
        {
            "path": "src/index.js",
            "sha256": "5e76e2a742fc31f20b2bb37621109046d908d0130dd18db7837b4c8dad6b7b18",
            "tlsh": "a4119ca712992a16389754d0a45fc0b6f530c65339ca2cd830df57d45f8c4e67aa3e94"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/example/MAL-2026-5371.json"
cwes
[
    {
        "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",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]