{"id":"MAL-2026-21082","summary":"Malicious code in nocuhel (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a3ca29b99714d4efa3fc100dc78d29b2a3fcc524a42f217720a2ee4bd8b35cf8)\nThe nocuhel tarball bundles a nested package directory (payload/wiwusen) whose package.json declares a prepare lifecycle script running `node prep.js`. prep.js writes a marker file into the installer's $HOME and invokes /bin/sh -c 'id \u003e...', demonstrating arbitrary command execution during `npm install`. The outer manifest declares bundleDependencies:[\"decoy\"] while the nested directory is named wiwusen - a packaging mismatch that smuggles the lifecycle-carrying sub-package past casual manifest review. The behavior fires automatically on default install via the nested prepare hook; the shelled-out `id` capture and marker drop in $HOME are a classic install-time ACE proof-of-concept with no legitimate build or runtime purpose.\n","modified":"2026-12-03T20:45:10.172826517Z","published":"2026-12-03T20:38:44Z","database_specific":{"malicious-packages-origins":[{"sha256":"a3ca29b99714d4efa3fc100dc78d29b2a3fcc524a42f217720a2ee4bd8b35cf8","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-023225","import_time":"2026-12-03T20:41:50.493664060Z","modified_time":"2026-12-03T20:38:44Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/nocuhel/v/1.0.0"}],"affected":[{"package":{"name":"nocuhel","ecosystem":"npm","purl":"pkg:npm/nocuhel"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/nocuhel/MAL-2026-21082.json","indicators":{"evidence_files":[{"path":"payload/prep.js","sha256":"406cbce61060140bfee0bac5c893d7558fd436ed70e10281bae31e34f3ba4374","tlsh":"e7d0c2864bb606e9be8447b2352ea0099d57a003329151e8a0dac08b6a6622b1e230f1"},{"path":"package.json","sha256":"d5cc743ca5bf7524583efc57eaba24d2080f6be7d35f33cbead0c804270108f0","tlsh":"bcb012501850f26326b7fbf16c148453c330230c6288c04c48d4300aa2adbfe6016330"}],"package_integrity":[{"filename":"nocuhel-1.0.0.tgz","hashes":{"sha1":"50617a0c085870fbe9cc7c063786508b1ec47b84","sha512_sri":"sha512-OT+50gmaC2787zrKYXXqBPhKE8H7JfWoLL1C6v5x/j8WfbFxg0XH5CjUQsgvOTp6om+10LUwZ5ajINVK/wp8ig=="}}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}