{"id":"MAL-2026-16310","summary":"Malicious code in npx-test-ma980 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (adfd1e5f7cc282648da56cdf50ac9c3cb27d6165fa4a3f8f3625b4a0c2694be6)\npackage.json declares a `bin` entry whose key contains shell metacharacters and a chained command: `\"tool & calc.exe\": \"./run.js\"`. On Windows, npm's bin shim/symlink generation and later invocation via `npm install -g` or `npx` can interpret the `&` in the bin key as a command separator, causing `calc.exe` to execute as an unintended side effect of installing or linking the package. The shipped `run.js` is a trivial `console.log(\"hello\")` and `payload.json` is empty, so the crafted bin key is the entire attack surface — a proof-of-concept exploit of npm bin-name handling that yields arbitrary command execution on the installer's host.\n","modified":"2026-09-21T03:30:16.559761465Z","published":"2026-09-21T03:21:25Z","database_specific":{"malicious-packages-origins":[{"sha256":"adfd1e5f7cc282648da56cdf50ac9c3cb27d6165fa4a3f8f3625b4a0c2694be6","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-020206","import_time":"2026-09-21T03:24:21.277872623Z","modified_time":"2026-09-21T03:21:25Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/npx-test-ma980/v/1.0.1"}],"affected":[{"package":{"name":"npx-test-ma980","ecosystem":"npm","purl":"pkg:npm/npx-test-ma980"},"versions":["1.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npx-test-ma980/MAL-2026-16310.json","indicators":{"evidence_files":[{"tlsh":"c1b01254d8724f533c8c0760053d41015227cc4760071c1a03436424c698d7b24bd158","path":"package.json","sha256":"e5a512771a725b1f1eb57fa02df03b9930c94b37b8429b9229a583da3fcb6f10"}],"package_integrity":[{"filename":"npx-test-ma980-1.0.1.tgz","hashes":{"sha1":"d9862d7b06326cea50bb9d06c1c439464888c925","sha512_sri":"sha512-3C2g6nGttIvl6L4nXmpJ4GU0wgFKacgBoo9sX73rjt7E99hAsKkuAcxiEQcYmN4U9fNoMg2F3QvYm3p2up0XOQ=="}}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}