execfences@5.0.2
Malicious code in execfences (npm)
Analysis
execfences is a combosquat of the legitimate execfence supply-chain security tool. It ships the original source tree with an injected obfuscated backdoor in lib/cli.js that activates when the CLI binary runs. The payload fetches remote code via HTTP, communicates with a C2 server using JSON-RPC, XOR-decodes the response, and evals the result. It also spawns a hidden detached child process (windowsHide: true, stdio: 'ignore') to execute the fetched payload. The backdoor rate-limits itself to once per 30 seconds. The C2 host and URL paths are obfuscated in the injected code.
- analyzed by
- Leitwacht
- first seen
- Jul 2, 2026, 02:40 PM
- analyzed
- Jul 2, 2026, 02:42 PM
Related advisories
- compose-logger-stand@1.0.126
- chalk-plus-ts@1.0.4
- assertcoreutils@2.3.2
- pino-zod@1.0.121
- zod-pino@1.0.122
- panrouter-admin@5.0.0
- hex-conv-ae7a@1.0.0
- ordered-btree@3.2.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.