{"id":"MAL-2026-17160","summary":"Malicious code in simple-date-formatter-new-14 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cbe2adf4e9d3b54b33c0e80285a5b0eb4d81dfde75c7a5b7a202ac43793268cd)\nThe package presents itself as a date-formatting utility (index.js is a 160-byte formatDate stub) but the published tarball contains an SSH-key exfiltration payload and an install-time DNS beacon. package.json declares a postinstall lifecycle script that runs 'nslookup 9e954818.log.dnslogs.dpdns.org', causing every installer to beacon a per-package token to attacker-controlled DNS logging infrastructure at install time, leaking installer presence and resolver IP. A sibling postinstall.js reads ~/.ssh (enumerating.pub files and related host/user identifiers) and POSTs the collected data over HTTPS to a hardcoded bare IP endpoint at https://124.221.154.135/post; comments in the file describe SSH key theft and C2 exfiltration. The name-collision between the declared postinstall hook and the stealer filename, combined with the empty author field and typosquat-style package name, is consistent with a disposable supply-chain payload.\n","modified":"2026-09-24T13:30:04.614777737Z","published":"2026-09-24T13:17:15Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-020510","import_time":"2026-09-24T13:18:04.646747359Z","modified_time":"2026-09-24T13:17:15Z","sha256":"cbe2adf4e9d3b54b33c0e80285a5b0eb4d81dfde75c7a5b7a202ac43793268cd"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-new-14/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-new-14","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-new-14"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"path":"package.json","sha256":"25dfa94f6680927f4902d86be56e443581c8f93bee61f99c0539e5c1207371b9","tlsh":"dfe0cd14cd145c732ac541bddd5749076b15ae1b44407c19739b590c839a77745fd34f"},{"sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee","path":"postinstall.js"}],"package_integrity":[{"filename":"simple-date-formatter-new-14-1.0.0.tgz","hashes":{"sha1":"d1dbcd45f848c3d9efec090c3ff8d90ac2067692","sha512_sri":"sha512-Ka1xaoyhl+ychIogjhv0mfHhI3CZkZgDtPFzXFoyinEkJlPpuZc0LsMziFbnuB/KlF0Oe20DZDkBrOi0/qaQGA=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-new-14/MAL-2026-17160.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}