chalk-ultra@12.0.3
Malicious code in chalk-ultra (npm)
Analysis
chalk-ultra@12.0.3 is a combosquat of the popular chalk package that executes a remote code downloader on install. The postinstall script spawns a detached background Node.js process which fetches a payload from hxxps://jsonkeeper[.]com/b/AD9A2 via HTTP GET and evaluates the response's .cookie field as JavaScript using the Function constructor with full require access — enabling arbitrary code execution controlled by the remote endpoint. The package also ships a 262KB hex-encoded binary blob as a LICENSE file, consistent with encoded payload storage. The C2 URL (jsonkeeper[.]com/b/AD9A2) serves the dynamic stage-2 payload.
- analyzed by
- Leitwacht
- first seen
- Jun 22, 2026, 06:56 AM
- analyzed
- Jun 22, 2026, 06:57 AM
hxxps://github[.]com/chalk-ultra/chalk-ultra Request takedown / dispute →Related advisories
- chalk-ultra@12.0.14 same package
- ts-bn-lint-helper@3.1.19
- yianzzkf6687@1.0.3
- aikaf788812@1.0.3
- aikaf6688812@1.0.3
- stitch-design@0.1.0
- panrouter@5.0.0
- panrouter-admin@5.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.