{"id":"MAL-2026-6566","summary":"Malicious code in date-uuid (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (58dffbe61370f78deed5bacbc8f6bc46a8a989f03da218643a41b52ed025fa6a)\nPackage advertised as a UUIDv7 helper, but on require()/import it auto-invokes extractDateISO() in bootstrap.js, which reads README.md from process.cwd(), extracts two specific lines (120 and 123), and base64-decodes them after prepending 'aH' and inserting 'Rz' to reconstruct an 'http...' URL (the prefix 'aHR0c' decodes to 'http'). The reconstructed URL is fetched, written to os.tmpdir() as temp_\u003ctimestamp\u003e.vbs (the '.vbs' extension is split as 'v'+'b'+'s' to evade grep), and executed via child_process.exec. The behavior is unrelated to the advertised UUID functionality. Sourcing the payload URL from the caller's README rather than the package source decouples the attacker-controlled destination from the published artifact and enables staged/deniable deployment: a chained attack or a future README edit can change what gets executed without republishing the package. Obfuscation devices (string-splitting the script extension, base64 framing of the URL prefix) co-located with the fetch-and-exec path indicate deliberate evasion intent.\n","modified":"2026-06-29T05:16:44.174100656Z","published":"2026-06-29T04:09:22Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-06-29T05:07:05.419863182Z","versions":["1.0.1"],"ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"58dffbe61370f78deed5bacbc8f6bc46a8a989f03da218643a41b52ed025fa6a","id":"IN-MAL-2026-007711","source":"amazon-inspector","modified_time":"2026-06-29T04:09:22Z"},{"modified_time":"2026-06-29T04:09:35Z","import_time":"2026-06-29T05:07:05.603011997Z","versions":["1.0.0"],"sha256":"8f8034cbe06fea0d316e5f04dc7b8f88197b6430515f02543f8b5ce964f2451f","id":"IN-MAL-2026-007712","source":"amazon-inspector","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-uuid/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/date-uuid/v/1.0.0"}],"affected":[{"package":{"name":"date-uuid","ecosystem":"npm","purl":"pkg:npm/date-uuid"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/date-uuid/MAL-2026-6566.json","indicators":{"package_integrity":[{"filename":"date-uuid-1.0.1.tgz","hashes":{"sha512_sri":"sha512-kJkHL87mrBbbJunwQZqmh5PYgppxjz02C12vZakumPyb6a5oXr8tJOvrrfHozzQNMzZc2MJpMa5BtlMl7zy7Ww==","sha1":"e52c8b0ce20a37c6fa70271d3a5d6935fc7cf750"}}],"evidence_files":[{"tlsh":"81d184d06563b2528ef663704392400df69fd122392681e6fedc64812fef264e5e2edc","sha256":"18f4b1801146529d0b42b0166d758a637773f3e98c3e5669f5686b8a8cb827d4","path":"lib/store.js"}]},"cwes":[{"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."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}