LWA-2026-6395 MAL-2026-10054 ↗ confirmed malware

chai-smart@2.3.5

Malicious code in chai-smart (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1041 · Exfiltration Over C2 ChannelT1552.001 · Credentials In Files

Analysis

chai-smart is a combosquat of the popular "chai" testing library. When required, index.js spawns a detached background process that runs lib/initializeCaller.js. That script decodes a base64-embedded C2 URL (hxxps://ipcheck-hashed[.]vercel[.]app/api/auth/6c1d60d35852ef0c05df), POSTs all environment variables (process.env) to that endpoint — exfiltrating any API keys, tokens, and secrets present in the runtime environment — then executes the server's response as arbitrary code via new Function("require", response.data), giving the attacker full remote code execution on the victim's machine.

analyzed by
Leitwacht
first seen
Jul 7, 2026, 11:07 AM
analyzed
Jul 7, 2026, 11:08 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.