chalk-plus-js@7.0.4
Malicious code in chalk-plus-js (npm)
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
- linux-ci-utils@1.0.0
- win-build-utils@1.0.0
- @or-sdk/library@0.5.8
- @servicetitan/mfe-quick-actions@0.5.53
- @ornikar/rollup-plugin-postcss@2.0.10
- @ornikar/eslint-config-babel-use@13.2.4
- assertion-utils-js@2.4.3
- boardflow@1.1.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.