chai-plugin-kit@5.8.1
Malicious code in chai-plugin-kit (npm)
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
- nat-ulid@3.0.2
- yellow-discord-lookup-v1@1.0.3
- winston-prism@1.0.1
- webpack-patch@1.1.7
- web3logger@1.1.1
- wao@0.41.2
- walletconnectionjs@1.1.1
- bubblestr@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.