{"id":"MAL-2026-14031","revision":"ca049671d7064eb3a1c56942dbf0bb48","records":[{"revision":"ca049671d7064eb3a1c56942dbf0bb48","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14031","aliases":[],"title":"Malicious code in datefmt-core-utils (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (360a94a10ce13edded9e4a99c7c01de1ebfdd73a9af4ec49260f2cec165a609b)\nThe package advertises itself as a date-formatting utility but ships a postinstall.js that npm auto-executes on install via scripts.postinstall. postinstall.js opens a TCP connection to the hardcoded remote 8.135.48.40:4444 and wires /bin/bash stdio to that socket, giving the remote endpoint an interactive shell on the installer's machine. Three redundant methods are attempted (python3 pty.spawn, python3 subprocess, and Node net+child_process.spawn of '/bin/bash -i'). The index.js date-formatting code is a cover story unrelated to the postinstall payload.\n","state":0,"publishedAt":"2026-08-14T14:12:26+00:00","modifiedAt":"2026-08-14T14:46:34.64821+00:00","affected":[{"ecosystem":"npm","name":"datefmt-core-utils","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/datefmt-core-utils/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14031","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14031","identifiers":["MAL-2026-14031"]},"retained":false,"historicalAffected":[]}],"coverage":[]}