LWA-2026-4363 MAL-2026-5710 ↗ confirmed malware

chalk-plus-ts@1.0.3

Malicious code in chalk-plus-ts (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1059.004 · Unix ShellT1036.005 · Match Legitimate Resource Name or LocationT1036.004 · Masquerade Task or ServiceT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

A trojanized nodemailer clone published under a combosquat name ("chalk-plus-ts" riding the chalk+TypeScript popularity). The publisher (andrii0122) impersonates the real nodemailer author (Andris Reinman) in the package metadata. The postinstall hook runs node lib/utils/index.js, which spawns a detached child process running lib/utils/smtp-connection/index.js. That child fetches a JSON payload from jsonkeeper[.]com/b/QHDXR, extracts the 'cookie' property, and passes it to new Function("require", data.cookie)(require) — a classic remote-code-execution download-and-run pattern. The package also ships an AES-256-CBC decryption module (parse.js) with hardcoded key and IV, plus a 262KB encrypted LICENSE file, providing an alternative offline payload decryption path. The self-dependency (chalk-plus-ts@^1.0.3) is a secondary anomaly; the core threat is the postinstall RCE backdoor.

analyzed by
Leitwacht
first seen
Jun 11, 2026, 04:43 PM
analyzed
Jun 11, 2026, 04:44 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.