{"id":"MAL-2026-13978","revision":"85d3439f163144918dec87644df09031","records":[{"revision":"85d3439f163144918dec87644df09031","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13978","aliases":[],"title":"Malicious code in datefmt-util-helper (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d897db063e1782ce6549adbac0736b75a2708f864c8eacfeaabac56b76c1bcbb)\nPackage presents itself as a date-formatting utility but ships a postinstall reverse shell. package.json declares scripts.postinstall = 'node postinstall.js'; postinstall.js hardcodes VPS = '8.135.48.40' and PORT = 4444 and runs execSync of a python3 -c payload that opens a socket to that host and invokes pty.spawn('/bin/bash'), with fallback branches using python3 subprocess and a Node net + child_process.spawn('/bin/bash') chain. Runs automatically during `npm install`, giving the remote host full interactive shell control on the installer's machine as the installing user. index.js implements a trivial date formatter as cover (a source comment translates to 'disguised as a normal date-formatting tool'); the library surface exists only to legitimize the package.\n","state":0,"publishedAt":"2026-08-13T21:09:09+00:00","modifiedAt":"2026-08-13T21:30:25.6382382+00:00","affected":[{"ecosystem":"npm","name":"datefmt-util-helper","ranges":[],"versions":["1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/datefmt-util-helper/v/1.0.1","https://www.npmjs.com/package/datefmt-util-helper/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13978","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13978","identifiers":["MAL-2026-13978"]},"retained":false,"historicalAffected":[]}],"coverage":[]}