mci-sdk@1.2.8
Malicious code in mci-sdk (npm)
Analysis
This package presents itself as a multi-chain streaming/pipeline SDK, but it includes an install-time remote code execution stager. Its package.json runs a postinstall script that imports and immediately invokes a function named multiChainInterface. That function reads a base64-encoded value from a bundled config file, decodes it to a hidden remote URL (hxxps://jsonkeeper[.]com/b/2P5FA), and issues an HTTP GET to it. It extracts a JavaScript payload from the cookie field of the response, spawns a detached background node process with a piped stdin, writes the fetched payload into that node process for execution, then unrefs/detaches it so it keeps running silently and independently of the installer. The remainder of the package is benign stream-pipeline code copied to make the library look like a legitimate SDK. Net effect: installing the package fetches and executes attacker-controlled code on the victim host at install time.
- analyzed by
- Leitwacht
- first seen
- Jun 16, 2026, 04:12 PM
- analyzed
- Jun 16, 2026, 04:34 PM
Related advisories
- chai-plugin-helper@1.7.3
- xmr-btc-lib-js@1.2.1
- xboxauthwrapper@3.9.8
- work-planner-client@1.0.0
- wordsmith-kit@1.0.0
- check-ulid@3.0.2
- vue-template-compiler-plugin@2.7.16
- vl-ui-contact-card@10.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.