{"id":"MAL-2026-10748","revision":"4e72984f493c4fcc99ea7a943895fc40","records":[{"revision":"4e72984f493c4fcc99ea7a943895fc40","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10748","aliases":[],"title":"Malicious code in string-formatter-pro (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (966ebbfb039acea9e1f98c5f74f13e2aab1617e371719bc9543315702dbd67cd)\nThe package advertises itself as a string-formatting utility whose main module exports only a trivial one-line capitalize() function, but ships a postinstall.js lifecycle script that runs automatically on `npm install`. postinstall.js issues a chain of curl commands against cloud instance-metadata endpoints (AWS IMDS at 169.254.169.254, Alibaba at 100.100.100.200, Tencent at metadata.tencentyun.com, and 169.254.0.23) to harvest IAM security credentials, EC2 user-data, the instance identity document, and the host's OpenSSH public key, then POSTs the aggregated output plus a directory listing of /data/ to the hardcoded destination pwpzhsrbtvmfqrqr7onqcwnrcii960up.oastify.com (a Burp Collaborator subdomain). The trivial library surface is a decoy for install-time credential theft against the installer's cloud environment.\n","state":0,"publishedAt":"2026-07-16T18:33:06+00:00","modifiedAt":"2026-07-16T19:19:59.4561702+00:00","affected":[{"ecosystem":"npm","name":"string-formatter-pro","ranges":[],"versions":["1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/string-formatter-pro/v/1.0.1","https://www.npmjs.com/package/string-formatter-pro/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10748","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10748","identifiers":["MAL-2026-10748"]},"retained":false,"historicalAffected":[]}],"coverage":[]}