string-utils-assistant: malicious npm package opens reverse shell and writes arbitrary files
Severity: critical · Patch status: no-fix-needed · Since 2026-11-23
GitHub Advisory Database published GHSA-wp4c-7f8p-7c22 for string-utils-assistant 1.0.0, an npm package advertised as string helpers. Its postinstall hook launches index.js as a detached background process that connects to 47.251.102.182:8057, reports the host OS, and accepts server commands. The protocol supports FILESTART/FILEEND framing to write attacker-supplied content to arbitrary paths and executes other received lines via childprocess.exec, returning output—effectively a reverse shell; on Windows commands are prefixed with chcp 65001. A sandboxed install connected to the C2 address. The package has about 5 downloads/month and no patched version. Anyone who installed or depends on version 1.0.0 should treat the host as compromised, remove the package, and investigate.
What to do
- Immediately remove string-utils-assistant@1.0.0 from projects and lockfiles; block the package/version in npm proxies and CI.
- Treat any host that installed it as compromised: isolate it and inspect for detached index.js processes, child_process.exec activity, and connections to 47.251.102.182:8057.
- Rotate credentials, tokens, SSH keys, and secrets accessible on affected build or developer hosts.
- Audit npm install logs and CI caches for postinstall execution; consider --ignore-scripts for untrusted dependencies.
- Search for files written via FILE_START/FILE_END framing and review persistence or autostart mechanisms.
Sources
All live incidents on Threat Watch