str-master@1.0.11
Malicious code in str-master (npm)
Analysis
str-master@1.0.11 is a malicious npm package posing as a string-manipulation utility library. On installation, the postinstall hook (bin/setup.js) executes a bundled 13.3MB Windows PE executable (assets/setup-helper.exe) with stealth parameters: the process is spawned detached (outlives the installer), with stdio ignored, the window hidden, and the reference released — ensuring silent background execution with no visible output. The decoy library (dist/index.js) contains legitimate-looking string utility methods to mask the payload. The payload binary is only executed on Windows systems (platform check). The package has no exfiltration code in its JavaScript source; the PE binary's runtime behaviour is unknown but is delivered in an aggressive supply-chain attack context.
- analyzed by
- Leitwacht
- first seen
- Jun 14, 2026, 08:34 AM
- analyzed
- Jun 14, 2026, 08:35 AM
Related advisories
- strmagic-kit@1.0.0
- string-utils-kit@1.0.0
- stringsculpt-kit@1.0.0
- stringfy-utils-kit@1.0.0
- rollup-packages-polyfill-core@0.5.0
- prettier-lint-lenz@2.6.4
- vite-react-toolkit@1.0.1
- obfus-jsxy@3.2.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.