LWA-2026-5566 MAL-2026-5906 ↗ confirmed malware

chai-plugin-kit@5.8.1

Malicious code in chai-plugin-kit (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1082 · System Information Discovery

Analysis

chai-plugin-kit is a combosquat of the real chai assertion library. Its index.js loads a cloned copy of chai but also spawns a detached background process that executes an obfuscated second-stage loader (lib/chai/utils/addAssertion.js). At require-time, the loader makes an HTTPS GET request to senpad[.]bounceme[.]net:6285/api/x-handler with a key parameter (P$4vNc8!Xy2^Lg7@Tr9), fetches arbitrary code from the C2 server, and executes it via new Function() with the full require() scope. The real chai source code is shipped verbatim as a camouflage layer; the malicious payload is in index.js and lib/chai/utils/addAssertion.js.

analyzed by
Leitwacht
first seen
Jun 16, 2026, 12:46 PM
analyzed
Jun 16, 2026, 12:47 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.