wordsmith-kit@1.0.0
Malicious code in wordsmith-kit (npm)
Analysis
wordsmith-kit@1.0.0 is a trojanized clone of a legitimate string-manipulation library that disguises a Windows executable dropper. The package ships a clean string-utility module (dist/index.js) as camouflage, but its postinstall hook (bin/setup.js) spawns a 9.8MB PyInstaller-packaged Windows PE binary (assets/setup-helper.exe) in the background with a hidden window, detached from the parent process. The PE binary contains Python modules for HTTP networking (urllib, urllib3), subprocess execution, file/archive handling (zipfile, tarfile, tempfile), and credential handling (token) — indicating it is a network-capable agent that communicates over HTTP/HTTPS for command-and-control and data exfiltration.
- analyzed by
- Leitwacht
- first seen
- Jun 16, 2026, 04:58 AM
- analyzed
- Jun 16, 2026, 04:59 AM
Related advisories
- pretie_x2@3.8.5
- bubblestr@1.1.4
- texttweak-kit@1.0.0
- textify-kit@1.0.0
- strutil-kit@1.0.0
- str-master@1.0.11
- strmagic-kit@1.0.0
- string-utils-kit@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.