chai-as-uphelded@6.11.4
Malicious code in chai-as-uphelded (npm)
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
- chai-as-forgeted@9.24.6
- ts-escro@0.0.6
- panrouter@5.0.0
- panrouter-admin@5.0.0
- chai-as-attested@6.0.3
- assert-kit@4.3.2
- ordered-btree@3.2.2
- buffer-wrap-67d7@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.