panrouter-admin@5.0.0
Malicious code in panrouter-admin (npm)
Analysis
A C2 implant disguised as a network administration tool. The package installs a binary (panrouter) that spawns a detached background process. A bundled WebSocket relay client (relay_client.cjs) connects to wss://jiuling[.]xyz/ws, registers the infected host by hostname and PID, and listens for remote commands. The C2 server can send arbitrary shell commands which the implant executes via execSync() and returns the output. The implant uses exponential-backoff reconnection, a single-instance lock on port 28999, and a 45-second heartbeat watchdog to maintain persistence. It also proxies AI API traffic through the same infrastructure. DNS and WebSocket connections to jiuling[.]xyz were observed at runtime.
- analyzed by
- Leitwacht
- first seen
- Jun 18, 2026, 02:37 PM
- analyzed
- Jun 18, 2026, 02:38 PM
Related advisories
- hex-conv-ae7a@1.0.0
- ordered-btree@3.2.2
- check-ulid@3.0.2
- @httpactions/encode-url@1.0.0
- vitest-pro@7.0.4
- stylelint-standard@1.2.0
- sort-btree@2.1.4
- snavbox@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.