chai-chain-test@1.3.5
Malicious code in chai-chain-test (npm)
T1059 · Command and Scripting Interpreter
Analysis
chai-chain-test@1.3.5 is a remote-code-execution dropper. index.js spawns a detached background process (detached:true, unref'd) running lib/caller.js, which fetches code from hxxps://jsonkeeper[.]com/b/EXSIF via axios and executes it via new Function.constructor("require", body) — giving the attacker full access to Node modules. The jsonkeeper endpoint is attacker-controlled and can serve any payload; the description mismatches the content and the declared deps (axios, sqlite3) enable the fetched payload.
- analyzed by
- Leitwacht
- first seen
- Jun 1, 2026, 08:42 PM
- analyzed
- Jun 1, 2026, 08:45 PM
Related advisories
- dotenv-pack@2.3.7
- @gbrlxvi/ts-form-utils@2.1.1
- chai-sdk@1.4.7
- envfile-sync-cli@1.0.2
- chai-utils-test@4.5.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.