LWA-2026-4314 MAL-2026-5709 ↗ confirmed malware

chalk-plus-js@7.0.4

Malicious code in chalk-plus-js (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027.002 · Software PackingT1573.001 · Symmetric CryptographyT1071.001 · Web ProtocolsT1105 · Ingress Tool Transfer

Analysis

This is a combosquat of the popular chalk package whose postinstall lifecycle hook runs "node lib/utils/index.js". That script spawns a detached child process using process.execPath (node) to execute a bundled script file, with the child detached so it outlives the install and continues running in the background for stealth/persistence after npm exits. The detached-subprocess-from-postinstall pattern and the chalk combosquat name are consistent with a credential/secret-stealing dropper. The specific outbound exfiltration endpoint could not be recovered from the sample, so no network IOC is provided.

analyzed by
Leitwacht
first seen
Jun 11, 2026, 02:13 PM
analyzed
Jun 11, 2026, 02:15 PM

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.