MAL-2026-10748Malicious code in string-formatter-pro (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | string-formatter-pro | 1.0.0 |
| npm | string-formatter-pro | 1.0.1 |
{"modified":"2026-07-16T18:55:50Z","published":"2026-07-16T18:33:06Z","schema_version":"1.7.4","id":"MAL-2026-10748","summary":"Malicious code in string-formatter-pro (npm)","details":"\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","affected":[{"package":{"ecosystem":"npm","name":"string-formatter-pro"},"versions":["1.0.1","1.0.0"],"database_specific":{"cwes":[{"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.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"224a7549abd6399fdfa0e4e178f60e64d16e3e55434241134c4e05003781a7e8","tlsh":"b141f298f6997c3a9d17cfb9e356120fa53068851ec0bb1784f02cf49d09a5ab329f81"},{"path":"index.js","sha256":"730c27aa8c390ed070f352f3f92be56cda4055318c1ddb1510c0cfb09bad6866","tlsh":"55a0240140d5304f014c51157f17114704c5c74011c000f403dc150c00114f001d1fcc"}],"package_integrity":[{"filename":"string-formatter-pro-1.0.1.tgz","hashes":{"sha1":"03bf9a55d075681a7191b2490e5337cfca8626c9","sha512_sri":"sha512-7XMCu8dWmhgYlfCmTswGMENrYTXcDAten4BCNKe4cq03zHUVXNL++/MdH5pjXQ2zNd3JtnuWpGL37WeQaaWROg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/string-formatter-pro/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/string-formatter-pro/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010692","import_time":"2026-07-16T18:53:59.411754232Z","modified_time":"2026-07-16T18:33:06Z","sha256":"966ebbfb039acea9e1f98c5f74f13e2aab1617e371719bc9543315702dbd67cd","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-010722","import_time":"2026-07-16T18:54:01.184925807Z","modified_time":"2026-07-16T18:37:49Z","sha256":"dcc99e6af3349c947820bca0200bd761575b5fb45b03eb35e465b6bd9697976c","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0