LWA-2026-14451 MAL-2026-20352 ↗ confirmed malware

string-utils-assistant@1.0.0

Malicious code in string-utils-assistant (npm)

T1195.002 · Compromise Software Supply ChainT1059 · Command and Scripting InterpreterT1059.007 · JavaScriptT1059.003 · Windows Command ShellT1082 · System Information DiscoveryT1071 · Application Layer ProtocolT1105 · Ingress Tool TransferT1041 · Exfiltration Over C2 Channel

Analysis

A "simple string utility" package that, on install, starts a persistent remote-command channel hidden inside the library. The postinstall hook (`node postinstall.js`) spawns a detached, unref'd `node index.js` background process so the connection outlives the install. That script opens a raw TCP socket to 47[.]251[.]102[.]182:8057, announces the victim with `SYSTEM_TYPE:<os.platform()>\n`, then treats every newline-delimited message from the remote end as a command and executes it through child_process.exec (prefixing `chcp 65001 &&` on Windows), returning stdout/stderr over the same socket. Messages framed `FILE_START:<path>` … `FILE_END` are written verbatim to the attacker-chosen filesystem path using fs.createWriteStream, allowing arbitrary file delivery to the host. A second code path reports OS platform and CPU architecture when the local date matches 2024-11-30T10:00, and dropped connections are retried on a randomized 60–300 second timer. The advertised string helpers (toUpperCase, reverseString, trimString, …) are genuine and exported alongside the remote-command logic, so the package behaves as documented when imported. IOCs: 47[.]251[.]102[.]182:8057 (raw TCP command channel), files postinstall.js and index.js.

analyzed by
Leitwacht
first seen
Nov 23, 2026, 11:21 AM
analyzed
Nov 23, 2026, 11:22 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.