Skip to content

MAL-2026-10748 Malicious code in string-formatter-pro (npm)

Unknown
Published
Updated
Exploit status
No public exploit known
Technology
Cloud Platforms

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (966ebbfb039acea9e1f98c5f74f13e2aab1617e371719bc9543315702dbd67cd)

The 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.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
npm string-formatter-pro(npm) = 1.0.0; = 1.0.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm string-formatter-pro(npm) = 1.0.1 No fix listed
npm string-formatter-pro(npm) = 1.0.0 No fix listed

References