chai-as-patched@7.0.6
Malicious code in chai-as-patched (npm)
T1059 · Command and Scripting Interpreter
Analysis
chai-as-patched@7.0.6 is a combosquat dropper. index.js spawns a detached child process running lib/initializeCaller.js, which decodes a base64 URL (hxxps://tomato-brunhilda-40[.]tiiny[.]site/index.json), fetches remote code via axios, and executes it via new Function.constructor("require", response) — arbitrary remote code execution that auto-runs on require().
- analyzed by
- Leitwacht
- first seen
- Jun 1, 2026, 02:06 PM
- analyzed
- Jun 1, 2026, 02:08 PM
Related advisories
- @redhat-cloud-services/hcc-kessel-mcp@0.3.1
- cop3-rc@5.0.4
- cop3-rc@5.0.1
- @throttlecodes/react-native-callkit@1.0.2
- vcdxg-eavtg-util@1.0.1
- ardanbaileys@1.2.1
- nobiztoblut-bot@1.2.4
- @dinzid/bailstaov1@0.1.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.