Malicious code in test22221 (npm)
--- _-= 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.
MAL-2026-12478
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-12478
test22221
Source reference: /affected/0/package/name
- Affected versions
- 2.2.7
Source reference:
/affected/0/versions2.2.8Source reference:
/affected/0/versions2.2.9Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "test22221",
"purl": "pkg:npm/test22221",
"ecosystem": "npm"
},
"versions": [
"2.2.7",
"2.2.8",
"2.2.9"
],
"database_specific": {
"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."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/test22221/MAL-2026-12478.json",
"indicators": {
"evidence_files": [
{
"path": "package.json",
"tlsh": "0af09e5c9825ae733bc0831c3c95c30bb5816ef79158bc1aaf030c49288c176607a36b",
"sha256": "a0b87bbb02973582b409e66d9f3281c35567abd5c854a3a02fcab50ee48a2d9e"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "41fed083fdc48702f82661043c48784d23b41200",
"sha512_sri": "sha512-f4gbJCquvC2lPJva9eGR33Kjg1lqr+JNUyw0l+3sHvbLMezdG+o2yxrECoOmIPTaWPQZPIRq+bW+ogYj+zXLjg=="
},
"filename": "test22221-2.2.7.tgz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #11006 · Revision 1
- Added to Heist Feed
- Publisher date