mal-2026-6717
Vulnerability from ossf_malicious_packages
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (0d0014944456f668a25fa484bf7cb5f36a7128d6a585b86d9294d8d49b23049a)
Package declares scripts.postinstall pointing at shim.js, a script that runs unconditionally on npm install. shim.js branches on uname -s (Darwin/MINGW/Linux) and executes OS-native commands on the installer's machine, including launching the Calculator application and opening https://github.com/X3r0Day/BunnyHijack in the installer's default browser via open / cmd /c start / xdg-open. Additionally, package.json registers a bin entry named node mapped to shim.js. Under package managers that resolve node from node_modules/.bin (notably bun), any dependency postinstall that invokes node will execute this shim instead of the real Node.js runtime; the declared dependency protoc-gen-grpc-web is used as the trigger. The combined effect is arbitrary command execution on the installer at install time, both directly via the package's own postinstall and indirectly by hijacking the node command for sibling dependencies' install scripts. The Calculator launch and browser navigation are a proof-of-concept payload; the underlying execution primitive is fully attacker-controlled.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"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"
},
{
"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": {
"evidence_files": [
{
"path": "shim.js",
"sha256": "f9849ea2c8b097251e088a50c519eabaf85a81022b73712da40817773dba2914",
"tlsh": "13f0dda7ac6153612f0f16ac374b546e9c9513674054fca823a3c743ef4613e59c14b2"
},
{
"path": "package.json",
"sha256": "f7f409f00cf69edb97f12cf5616374dc4079fc69d7d1dc579702c5fe34941bb7",
"tlsh": "9dd0a7508ce246b324cd39a06c29640353295e1750083c2c61d3104cdb4e6bf047ab68"
}
],
"package_integrity": [
{
"filename": "test-pkg-x0-1.0.4.tgz",
"hashes": {
"sha1": "8086bfba46af24962e78b30389f4595cb62a0d83",
"sha512_sri": "sha512-PjvQrzRwn/dINQx3Q6FJ/WfpDDHupftNfBad5+9o+sN6n8BLcg7sd/IH0I7vY/WXsMq/zClDe8W0T+TicXa2Og=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "test-pkg-x0"
},
"versions": [
"1.0.4",
"1.0.3",
"1.0.0",
"1.0.2",
"1.0.1"
]
}
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-007896",
"import_time": "2026-07-01T21:04:20.716755235Z",
"modified_time": "2026-07-01T20:47:44Z",
"sha256": "0d0014944456f668a25fa484bf7cb5f36a7128d6a585b86d9294d8d49b23049a",
"source": "amazon-inspector",
"versions": [
"1.0.4"
]
},
{
"id": "IN-MAL-2026-007895",
"import_time": "2026-07-01T21:04:20.676561525Z",
"modified_time": "2026-07-01T20:47:34Z",
"sha256": "a85b5bbf9139048d1a42a81b40abceadeed726418faace65479f33ae2c94271f",
"source": "amazon-inspector",
"versions": [
"1.0.3"
]
},
{
"id": "IN-MAL-2026-007890",
"import_time": "2026-07-01T21:04:20.297337581Z",
"modified_time": "2026-07-01T20:46:56Z",
"sha256": "aeb1efbab7d02351ac1c9de44053ede94268a1c1c361496326bad0cc265f1baa",
"source": "amazon-inspector",
"versions": [
"1.0.0"
]
},
{
"id": "IN-MAL-2026-007891",
"import_time": "2026-07-01T21:04:20.358771887Z",
"modified_time": "2026-07-01T20:47:04Z",
"sha256": "c3594b48100f7bbaa17f7c16e4fe5b5098841972586311992715bf33d66ed638",
"source": "amazon-inspector",
"versions": [
"1.0.2"
]
},
{
"id": "IN-MAL-2026-007892",
"import_time": "2026-07-01T21:04:20.441482702Z",
"modified_time": "2026-07-01T20:47:12Z",
"sha256": "e144deafee87e34e9d4777f9c78934cb1547e4a6dee22cc08a6ecfa560942c85",
"source": "amazon-inspector",
"versions": [
"1.0.1"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0d0014944456f668a25fa484bf7cb5f36a7128d6a585b86d9294d8d49b23049a)\nPackage declares scripts.postinstall pointing at shim.js, a script that runs unconditionally on npm install. shim.js branches on uname -s (Darwin/MINGW/Linux) and executes OS-native commands on the installer\u0027s machine, including launching the Calculator application and opening https://github.com/X3r0Day/BunnyHijack in the installer\u0027s default browser via open / cmd /c start / xdg-open. Additionally, package.json registers a `bin` entry named `node` mapped to shim.js. Under package managers that resolve `node` from node_modules/.bin (notably bun), any dependency postinstall that invokes `node` will execute this shim instead of the real Node.js runtime; the declared dependency protoc-gen-grpc-web is used as the trigger. The combined effect is arbitrary command execution on the installer at install time, both directly via the package\u0027s own postinstall and indirectly by hijacking the `node` command for sibling dependencies\u0027 install scripts. The Calculator launch and browser navigation are a proof-of-concept payload; the underlying execution primitive is fully attacker-controlled.\n",
"id": "MAL-2026-6717",
"modified": "2026-07-01T21:06:12Z",
"published": "2026-07-01T20:46:56Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/test-pkg-x0/v/1.0.4"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/test-pkg-x0/v/1.0.3"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/test-pkg-x0/v/1.0.0"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/test-pkg-x0/v/1.0.2"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/test-pkg-x0/v/1.0.1"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in test-pkg-x0 (npm)"
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.