MAL-2026-14234

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/commandor-lib/MAL-2026-14234.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14234
Published
2026-08-19T03:42:52Z
Modified
2026-08-19T04:00:18Z
Summary
Malicious code in commandor-lib (npm)
Details

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

Source: amazon-inspector (2e184348abf5c5ce61ee6c4e63189411a08755e57e95dac33c666adae7c6dc2d)

The package's scripts/postinstall.js runs automatically on npm install and imports child_process alongside http.request with multiple POST call sites (lines 13, 95, 194). This pattern in a lifecycle hook — spawning subprocesses and posting data to an external HTTP endpoint at install time — is consistent with installer-side reconnaissance and exfiltration to an author-controlled destination and does not correspond to any documented purpose of a generically named library package.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-018334",
            "import_time": "2026-08-19T03:49:30.81864293Z",
            "modified_time": "2026-08-19T03:42:52Z",
            "sha256": "2e184348abf5c5ce61ee6c4e63189411a08755e57e95dac33c666adae7c6dc2d",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / commandor-lib

Package

Name
commandor-lib
View open source insights on deps.dev
Purl
pkg:npm/commandor-lib

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "scripts/postinstall.js",
            "sha256": "1edaf0ae232e5ef6665ae3c08bff2132da50dc6a72db2d0dc1c289fff622f63d",
            "tlsh": "31d13fc61ef5a036874bf96884cf9d13b2a6c207330d4a65fb8f42107f5792c85a69d6"
        }
    ],
    "package_integrity": [
        {
            "filename": "commandor-lib-1.0.0.tgz",
            "hashes": {
                "sha1": "042830b450784aef86e318e5d8920c2e818445cc",
                "sha512_sri": "sha512-t4ubzf5RMWt5Bf1K3El4KFyIVgV9CLOUZbc85e3kC5fwBitEJTHsqqVGaNFY2hbkABOKJp03rU3UVqf86Wa6qA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/commandor-lib/MAL-2026-14234.json"