LWA-2026-5764 MAL-2026-6220 ↗ confirmed malware

chai-as-uphelded@6.11.4

Malicious code in chai-as-uphelded (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

chai-as-uphelded is a combosquat package that clones the pino logging library and adds a remote-code-loading implant. When required, index.js spawns a detached background node process (child.unref(), stdio:ignore) executing lib/caller.js. That file fetches arbitrary JavaScript from a hardcoded C2 JSON storage endpoint (api[.]jsonstorage[.]net/v1/json/2ef8c758-a96f-459e-b036-b3b90379a165/a179ea35-b962-4722-b3f1-e28316d1a44a) authenticated with header x-secret-key: X, reads the 'cookie' field from the response, and executes it via new Function.constructor('require', code) — enabling arbitrary remote code execution with full Node.js require access. The C2 endpoint is hosted on a free JSON storage service (jsonstorage[.]net) for easy payload updates.

analyzed by
Leitwacht
first seen
Jun 19, 2026, 10:11 AM
analyzed
Jun 19, 2026, 10:12 AM

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.