LWA-2026-6648 MAL-2026-10219 ↗ confirmed malware

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.