Red Team

CJDoor backdoor turns hijacked routers into an encrypted mesh

JPCERT/CC details CJDoor, a China-nexus router backdoor that abuses the cjdns mesh to hide in the LapDogs relay network. What it means for UK edge kit.

Abstract network of linked router nodes representing a China-nexus operational relay box network

Japan’s national CERT has taken apart CJDoor, a Linux backdoor that turns hijacked routers into silent nodes on an attacker-run encrypted mesh network. It was found on servers belonging to UAT-7810, the China-nexus group behind the LapDogs relay network, and it shows why edge devices nobody watches remain a serious blind spot.

What happened

On 4 December 2026 JPCERT/CC published its analysis of CJDoor, a backdoor built for 64-bit MIPS Linux devices, the chip family found inside many consumer and small-business routers. JPCERT/CC researcher Yuma Masubuchi found it in browsable open directories on two malware distribution servers that Cisco Talos had tied to UAT-7810 in July 2026.

Talos assesses with high confidence that UAT-7810 is a China-nexus actor. Its job appears to be building operational relay box (ORB) networks that other groups then use, including one Talos tracks as UAT-5918. Its LapDogs network was first exposed by SecurityScorecard in June 2025. Talos later reported LONGLEASH, a newer version of the group’s ShortLeash backdoor. It said the group mainly gets in through known, unpatched vulnerabilities in Ruckus wireless routers, including CVE-2023-25717, and has also tried ASUS AiCloud routers.

The disclosure came a day after Help Net Security reported research from Adam Dorian Wong and Cody Welu of Dakota State University. They found that LapDogs had been rebuilt on new servers within about a month of its previous infrastructure going dark. The trail was picked up again because the operators recycled file names seen on infrastructure that had previously been burned. According to JPCERT/CC, devices tied to the wider campaign sit mainly in the US and South-East Asia, plus Taiwan, Hong Kong, South Korea and Japan. How widely CJDoor itself has been deployed is not yet known.

The technical picture

What makes CJDoor unusual is that it is built on cjdns, a legitimate open-source project that creates an encrypted IPv6 mesh network between peers. Most backdoors call home to a command server on a schedule, and that beaconing is what defenders usually spot. CJDoor does the reverse. After a one-time setup it waits quietly for inbound UDP traffic on a randomly chosen port, then lets the operator peer with it and join the device to the attacker’s private overlay network.

When it is first set up, the malware creates its own key pair, which gives it a unique identity on the mesh. It records basic details about the device, such as network interfaces, IP and MAC addresses, and whether iptables and a TUN device are available. It reports these details once over plain HTTP to an IP address supplied at set-up. On its next start it reads its encrypted configuration and then deletes that configuration and its own executable. It also creates a virtual interface called pp1000 and re-enables IPv6.

JPCERT/CC says the code is based on cjdns version 20, two releases behind the current version 22. Traffic between nodes is protected by the project’s own CryptoAuth scheme (Curve25519 key exchange with XSalsa20-Poly1305), so the payload cannot be read on the wire. The authors added a custom module with 14 commands, including arbitrary shell execution and a reverse shell, and bolted 24 more commands onto existing cjdns components for managing peers, sessions and routing. The same open directories held a MIPS build of Rekoobe, a long-known Linux backdoor, and a TUN/TAP kernel module. JPCERT/CC notes these were the only three 64-bit MIPS files there, which suggests they may have been intended for use together on one device.

Flow diagram showing six stages of a CJDoor infection, from router compromise to remote control over an encrypted cjdns mesh

Why it matters for UK organisations

None of the reporting names UK victims, and I will not suggest otherwise. The UK relevance comes from how these networks are used. In April 2026 the NCSC led a joint advisory with partners across the Five Eyes, Europe and Japan on China-nexus covert networks of compromised devices. It warned that most China-linked actors now route operations through hijacked small office and home office routers, cameras and other edge kit, much of it end-of-life. Traffic arriving at a UK target can therefore come from an ordinary-looking broadband address, sometimes in the same country, rather than from a suspicious data-centre range.

CJDoor makes that problem harder in two ways. First, a passive implant on a random port, with encrypted traffic and no regular beacon, leaves very little for network monitoring to catch. Second, the Dakota State findings show that these networks recover quickly after exposure. The authors concluded that adversaries “treat IP addresses as ephemeral”. The NCSC-led advisory makes the same point, describing how fixed indicator lists lose value as nodes are swapped out. UK organisations whose remote access, VPN or cloud admin portals trust connections purely by source address or country are the ones most exposed.

There is also a duty-of-care angle. An unpatched access point or forgotten branch router in your estate may never be used against you; it may be used against someone else, with your IP address in their logs.

Expert view

In my experience, edge devices are where asset registers fall apart. When we test, we regularly find wireless controllers, branch routers and management interfaces that nobody owns, running firmware years out of date. Nobody watches those devices, and that is exactly what an ORB operator wants. CJDoor’s design reflects that.

The good news is that the artefacts are specific. A TUN interface called pp1000, unexpected IPv6 being enabled on a device that should not use it, an unknown process listening on a high UDP port, or MIPS binaries in temporary directories are all things a firmware integrity check or a careful live triage can turn up. The harder lesson is strategic. Blocking the IP addresses in a vendor report is housekeeping, not defence, because the infrastructure will have moved on by the time you read it.

What to do now

  1. Find your edge. Build or refresh an inventory of every router, wireless controller, VPN appliance and IoT gateway, including those at branch sites and supplied by ISPs. This underpins the Cyber Essentials requirements on firewalls and secure configuration.
  2. Patch or retire. Prioritise Ruckus kit against the CVEs Talos lists, and replace end-of-life devices that no longer get security updates. Cyber Essentials expects unsupported devices to be removed from scope or isolated.
  3. Close management interfaces. Remove internet exposure of admin panels, change default credentials and restrict management to a dedicated network or VPN with multi-factor authentication.
  4. Stop trusting addresses. Follow the NCSC-led advisory: baseline normal remote-access connections, question logins from consumer broadband ranges, and move towards allow lists, device certificates and conditional access rather than geographic blocking alone.
  5. Hunt on devices, not just wires. Where you can get a shell or a firmware image, look for the pp1000 interface, unexplained listening UDP services and the JPCERT/CC file hashes. Rebuild suspect devices from known-good firmware rather than cleaning them.

Bottom line

CJDoor is a well-engineered piece of tradecraft. Its authors turned a legitimate encrypted mesh project into a quiet control layer for hijacked routers. There is no UK victim in the reporting, but every unmanaged edge device in a UK estate is the raw material these networks are built from. Know what sits on your perimeter, keep it patched, and stop treating a familiar-looking IP address as proof of trust.

Sources