MAL-2026-11108 Malicious code in string-format-kit (npm)
- Package
- string-format-kit
- Registry
- npm
What is MAL-2026-11108?
MAL-2026-11108 is a malicious package in string-format-kit, published on 28 Jul 2026.
Official description
The package's postinstall.js lifecycle script executes a shell pipeline via child_process.exec on npm install. The pipeline reads ~/.ssh/id_rsa, ~/.ssh/authorized_keys, ~/.ssh/known_hosts, ~/.aws/credentials, ~/.bash_history, the full process environment, and host reconnaissance output (whoami, hostname, id, sudo -ln, uname, /etc/os-release, /proc/1/cgroup, /.dockerenv, ps aux, ip addr, ls -la /), base64-encodes the aggregate, and transmits it via curl over plain HTTP to a hardcoded Burp Collaborator subdomain at pzs5w7ntzhsnepwk564lyfdci3oucl0a.oastify.com/d. The declared package purpose (string formatting) has no legitimate need to read the installer's SSH private keys or cloud credentials. The name resembles legitimate string-formatting libraries, consistent with typosquatting to lure installations.
The OpenSSF Package Analysis project identified 'string-format-kit' @ 1.0.2 (npm) as malicious.
It is considered malicious because:
The package communicates with a domain associated with malicious activity.
The package executes one or more commands associated with malicious behavior.
What should I do about MAL-2026-11108?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.