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
- electron-device-id@1.0.3
- sensivity@2.5.24
- sensivity@2.5.23
- @gbrlxvi/ts-form-utils@2.1.1
- sensivity@2.5.3
- sensivity@2.5.2
- sensivity@2.5.0
- argoncrypt@1.2.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.