LWA-2026-11611 confirmed malware

chai-as-otc@1.0.5

Malicious code in chai-as-otc (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1552.001 · Credentials In FilesT1041 · Exfiltration Over C2 ChannelT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

chai-as-otc@1.0.5 is a combosquat of the "chai" testing library that runs a malicious loader on require. Its main entry (index.js) loads lib/initializeCaller.js, which base64-decodes the endpoint hxxps://ipcheck-hashed[.]vercel[.]app/api/auth/6c1d60d35852ef0c05df, POSTs the entire process environment (all env vars, tokens, and secrets) to that endpoint, and then executes the response body as JavaScript via the Function constructor with require in scope — giving the remote server arbitrary code execution on the victim's machine. The package's stated purpose (a logging/transport library) is unrelated to this behaviour.

analyzed by
Leitwacht
first seen
Aug 25, 2026, 12:50 PM
analyzed
Aug 25, 2026, 12:51 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.