{"id":"MAL-2026-20423","summary":"Malicious code in wiwusen (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5c757f93bd18189d86c86362ebbfea27a8932f11be1bd619a9e2ad3510a0531d)\nwiwusen@2.0.0 ships a nested package under payload/ (dudovemek@2.0.0) whose package.json declares a prepare lifecycle script that runs node prep.js. On install, prep.js executes cp.execSync('id') to capture the installer's uid/gid/group output and writes it, along with a canary marker, into files under the installer's $HOME directory ($HOME/.npmjs-mirror-dfa-canary-* and $HOME/.npmjs-mirror-dfa-id-*) with mode 0o600, and emits a PAYLOAD-PREPARE-EXECUTED log line. This demonstrates arbitrary code execution and host-identity capture in the installer's account at install time without any user action. The top-level manifest also declares bundleDependencies: [\"zzz-missing\"] without shipping that dependency in the tarball, causing npm to resolve the name from the registry at install time and expand the install-time code surface to whatever that name resolves to.\n","modified":"2026-11-24T06:30:06.842894949Z","published":"2026-11-24T05:40:45Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-24T06:19:37.324454183Z","modified_time":"2026-11-24T05:40:45Z","sha256":"5c757f93bd18189d86c86362ebbfea27a8932f11be1bd619a9e2ad3510a0531d","source":"amazon-inspector","versions":["2.0.0"],"id":"IN-MAL-2026-023080"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/wiwusen/v/2.0.0"}],"affected":[{"package":{"name":"wiwusen","ecosystem":"npm","purl":"pkg:npm/wiwusen"},"versions":["2.0.0"],"database_specific":{"indicators":{"package_integrity":[{"filename":"wiwusen-2.0.0.tgz","hashes":{"sha512_sri":"sha512-LhbpFh8yJ9YcAMC0YebyufQp0qYleirz2cyAaCTPqxSr0NZGCwJYFy5nFriqqrqBnUdfK9Xod5Iq8YmIVUgGSg==","sha1":"e2b0efdfbb4d3b7667c539982e4f45d178d64101"}}],"evidence_files":[{"path":"payload/prep.js","sha256":"ac020fb5904854e10facfd3020cb567180e39a7b6259a28da875c9b6e87e77ea","tlsh":"dbe0abc397ac93f43680f124993bb303494b5500b50060f95079883a37ee1190e934f8"},{"path":"package.json","sha256":"db8680d76433bf2447a96fdd02cd1c70e23762c37985c52d2eff79a10dd50c85","tlsh":"b5c08093941072b305fe25f08c649153c7614d07c114bc0c55d6d109431d0f7357d714"}]},"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/wiwusen/MAL-2026-20423.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}