minimalistic-assert-plus@1.1.7
Malicious code in minimalistic-assert-plus (npm)
Analysis
minimalistic-assert-plus@1.1.7 is a trojanized clone of the chai assertion library. On require, index.js spawns a detached background node process (stdio ignored, unref'd) that runs an obfuscated loader (lib/chai/utils/expectAssertion.js). The loader decodes an obfuscated string array, builds a URL, and makes an HTTP GET to coolblast[.]zapto[.]org:8888/api/x-handler?key=W7qL9!mX2, then evaluates the response body via new Function with the require function passed in — executing arbitrary remote code returned by the server. The C2 host and request key are hardcoded/obfuscated in the payload.
- analyzed by
- Leitwacht
- first seen
- Aug 11, 2026, 03:40 PM
- analyzed
- Aug 11, 2026, 03:41 PM
Related advisories
- @tamago19/tamaaago@2.1.3
- neverthrow-core@1.1.2
- kit-vim-map@1.0.0
- @sqlite-labs-free/createsql@1.0.5
- freeai-proxy@1.0.0
- vexium-kit@2.0.2
- process-live-log@11.5.2
- @sqlite-labs/nodesql@1.0.5
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.