MAL-2026-12478

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/test22221/MAL-2026-12478.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12478
Published
2026-08-05T12:44:50Z
Modified
2026-08-05T13:36:17.041759627Z
Summary
Malicious code in test22221 (npm)
Details

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

Source: amazon-inspector (e4a3401759b5c6d7effdafcbae6027657e3cf8f9aabf1f04dfc2fa9039b64e53)

package.json declares preinstall and postinstall lifecycle hooks that run on npm install. Both hooks curl a hardcoded bare-IP endpoint over plain HTTP at 54.37.234.136, sending the installer's username (whoami), hostname, current working directory, and a timestamp as query-string parameters to http://54.37.234.136/voicemail. The same lifecycle scripts also embed an unbounded for((i=1;;i++)) loop that repeatedly curls incrementing paths on the same host with a 10-second sleep, functioning as a long-poll channel to the attacker-controlled endpoint during install. The destination is a bare IP with no relationship to any package publisher domain, and the collected fields are host-identification data with no legitimate purpose in an install hook.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T13:03:58Z",
            "source": "amazon-inspector",
            "sha256": "a44fe0c6ead0b2a6bb04d0b5e3b533495b68798d43c99f3ba0de9f7602687f66",
            "import_time": "2026-08-05T13:08:52.02623016Z",
            "id": "IN-MAL-2026-014868",
            "versions": [
                "2.2.7"
            ]
        },
        {
            "modified_time": "2026-08-05T12:46:03Z",
            "source": "amazon-inspector",
            "sha256": "e3cbc7d139320187d95a6264959f8d4a2a6688fa6140bc8bc43e2fba0110914f",
            "import_time": "2026-08-05T13:08:43.624852628Z",
            "id": "IN-MAL-2026-014752",
            "versions": [
                "2.2.8"
            ]
        },
        {
            "modified_time": "2026-08-05T12:44:50Z",
            "source": "amazon-inspector",
            "sha256": "e4a3401759b5c6d7effdafcbae6027657e3cf8f9aabf1f04dfc2fa9039b64e53",
            "import_time": "2026-08-05T13:08:42.770916845Z",
            "id": "IN-MAL-2026-014744",
            "versions": [
                "2.2.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / test22221

Package

Affected ranges

Affected versions

2.*
2.2.7
2.2.8
2.2.9

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/test22221/MAL-2026-12478.json"
indicators
{
    "package_integrity": [
        {
            "filename": "test22221-2.2.7.tgz",
            "hashes": {
                "sha512_sri": "sha512-f4gbJCquvC2lPJva9eGR33Kjg1lqr+JNUyw0l+3sHvbLMezdG+o2yxrECoOmIPTaWPQZPIRq+bW+ogYj+zXLjg==",
                "sha1": "41fed083fdc48702f82661043c48784d23b41200"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "0af09e5c9825ae733bc0831c3c95c30bb5816ef79158bc1aaf030c49288c176607a36b",
            "sha256": "a0b87bbb02973582b409e66d9f3281c35567abd5c854a3a02fcab50ee48a2d9e",
            "path": "package.json"
        }
    ]
}
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"
    }
]