chai-as-precision@7.0.6
Malicious code in chai-as-precision (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web Protocols
Analysis
chai-as-precision@7.0.6 is a combosquat of the popular chai assertion library. On import, index.js spawns a detached background Node.js process that runs lib/initializeCaller.js. That script decodes a base64-embedded URL (hxxps://tomato-brunhilda-40[.]tiiny[.]site/index[.]json), fetches it via HTTP GET with a custom header, and passes the response body to new Function.constructor("require", ...) — executing arbitrary remote code as a second-stage payload. The fetch retries up to 5 times on failure. The C2 host is tomato-brunhilda-40[.]tiiny[.]site.
- analyzed by
- Leitwacht
- first seen
- Jul 12, 2026, 09:23 PM
- analyzed
- Jul 12, 2026, 09:24 PM
Related advisories
- gptcore@4.0.6
- pure-folder-three@0.7.3
- express-request-engine@3.6.3
- @kkael/baileys@8.0.8
- dotnet-runtime-base@1.0.5
- frontend-regulations@99.9.1
- sso-users-detection@99.9.1
- tinyparrot@0.4.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.