Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

Two web server directory listings captured by JPCERT/CC on malware distribution servers used by UAT-7810, one showing numbered folders such as 5298, 7093 and 8582 alongside files named netd and tun.ko, the other showing a longer list of numbered folders.
Image: JPCERT/CC (fair use). Figure 1 from "CJDoor: A Backdoor Abusing cjdns," December 4, 2026.

Threat Intel

Japan's JPCERT Finds a Router Backdoor That Joins an Attacker's Encrypted Mesh Network Instead of Calling Home, on Servers Tied to a China-Nexus Relay Network Builder

CJDoor, a 64-bit MIPS implant found in open directories on servers linked to UAT-7810, turns an infected device into a node on a cjdns overlay network, listens on a random UDP port, deletes its own files and adds 14 remote-control commands, including a shell and a reverse shell. JPCERT/CC says traffic alone may not give it away, but the device will.

Priya Shah, Threat IntelSingapore6 min read

TOKYO - Japan's national computer emergency response team has found a Linux backdoor that does not call home to a command server at all. Instead, it makes the infected device a member of an encrypted peer-to-peer network that the attacker runs, then waits for the attacker to connect.

JPCERT/CC analyst Yuma Masubuchi described the malware, which the team calls CJDoor, in a report published Friday. JPCERT/CC found it while examining servers that Cisco Talos had tied in July to UAT-7810, a group that builds operational relay box networks, the chains of hijacked routers and other devices that espionage crews use to hide where their traffic comes from. Two of those servers had open directories, and CJDoor was among the files on them.

Talos said in July that it assesses "with high confidence that UAT-7810 is a China-nexus threat actor," and that the group most likely builds relay networks for other actors to use against high-value targets. JPCERT/CC wrote that infected devices in the group's LapDogs network have been identified mainly in the United States and Southeast Asia, as well as in Japan, South Korea, Hong Kong and Taiwan. JPCERT/CC did not attribute CJDoor itself beyond where it was found, and it said "the scale of CJDoor infections and the extent of its use in actual attacks remain unclear."

A backdoor that listens

CJDoor is a 64-bit MIPS program, the kind of binary that runs on routers and other embedded gear. It is built on cjdns, open-source software that gives each node an IPv6 address derived from its public key in the fc00::/8 range and links nodes into an encrypted mesh carried over UDP. Most backdoors connect out to a fixed server on a schedule. "CJDoor, by contrast, listens for inbound connections to join the cjdns network," the report says.

Setup happens in two steps. Run with --init and an address, CJDoor generates a key pair, picks a random listening port, collects system details, interface names, IP and MAC addresses and whether iptables and a TUN device are present, and sends the encrypted results as query parameters in a plain HTTP GET request to an IP address the attacker supplies. JPCERT/CC notes that domain names and HTTPS are not supported. Run again with --conf netd.dat, it loads its configuration, deletes sys.dat, netd.dat and its own executable, and starts listening on the UDP port it picked. The attacker uses the uploaded details to peer with the device, which then joins the attacker's network with its own unique key pair.

JPCERT/CC's decrypted contents of CJDoor's two configuration files, with netd.dat on the left holding a private key, a password, a bind address of 0.0.0.0:40308 and an admin bind of 127.0.0.1:11234, and sys.dat on the right listing a network interface, a private IP address, a MAC address and timestamps.
Image: JPCERT/CC (fair use).Figure 5, decrypted netd.dat (left) and sys.dat (right).

The files are encrypted with XSalsa20 using a key derived from the SHA-256 hash of a fixed byte sequence, 31 73 37 13 00 00 00 00, and an all-zero nonce, so a responder who recovers them can decrypt them. Traffic between nodes uses cjdns's own CryptoAuth protocol.

Commands cjdns never had

JPCERT/CC says CJDoor is based on cjdns version 20, two versions behind the current release, with changes. Its response packets carry an extra 16-byte prefix that standard cjdns does not, and a module called LinkCommandSender adds 14 commands, among them runCommand to execute shell commands and rs to open a reverse shell. That command traffic sets the cjdns Control_Header.type field to 0x1F, a value standard cjdns does not use, and tags messages lnkq for queries and lnkr for responses. The authors added 24 more commands to other cjdns modules to control interfaces, sessions and routing.

A decompiled code excerpt from CJDoor showing a nested chain of string comparisons against command names including rmUseBeginWith, addPwd, rmPwd, backlink, connTo, disconnFrom, disConnAll, runCommand, speedTest and stopKeepAlive.
Image: JPCERT/CC (fair use).Figure 7, the code that parses CJDoor's command strings.

The implant also prepares the device. It looks for /dev/net/tun, /dev/tun or /tmp/tun and, if none is usable, runs mknod ./tun c 10 200 to create one, then configures a TUN interface named pp1000, re-enables IPv6 by setting disable_ipv6 values to 0 and lists the iptables NAT table. JPCERT/CC confirmed it can launch two external tools it did not recover: /tmp/ud -s -l 0.0.0.0:55555 -r 127.0.0.1:<port>, which appears to be a port forwarder, and ./ts -g -i 10.0.0.1 -n 255.0.0.0 -R 1080:127.0.0.1:10800, which appears to be a tunneling tool with a SOCKS-like setting.

The same open directories held a Rekoobe backdoor and a TUN/TAP kernel module, tun.ko, built from the Linux tun.c driver source. They and CJDoor were the only three files there compiled for 64-bit MIPS, which JPCERT/CC said suggests they were meant to be used together on the same device.

What hunters should look for

JPCERT/CC is blunt about the network view. "Because the listening port is randomly selected and cjdns traffic is encrypted, detecting the malware from traffic content alone may be difficult," the report says. The device is the better place to look.

  • On Linux-based routers and embedded devices, look for a TUN interface named pp1000, a ./tun character device created with major 10 and minor 200, files named ud or ts, and a process listening on an unexpected UDP port.
  • Treat IPv6 suddenly enabled on a device that had it disabled, or fc00::/8 addresses on an interface, as a lead worth chasing.
  • Where you can inspect UDP payloads between edge devices, cjdns control traffic with Control_Header.type 0x1F and lnkq or lnkr strings is not standard cjdns.
  • Watch for plain HTTP GET requests from network devices to bare IP addresses with long encoded query strings, the CJDoor registration step.
  • Check the SHA-256 hashes JPCERT/CC published: CJDoor (netd) 597ed061ac707ed539f7a30d5edca5149bfe50f4dcb736e34fec29e4f139f702, Rekoobe (t) 324911d9f045eaca8fc5ee292e75416e9f9af91f2833245600926ef0bea8edc6 and tun.ko 42d8ff0f14d117edc01c307f4277f5661565678b068edfb75854b7fe265d6dbc.
  • Because CJDoor deletes its own binary and configuration after startup, capture memory and the running process list before rebooting a suspect device.

About the Author

Priya Shah

Priya Shah covers threat intelligence, intrusion analysis, and adversary tradecraft for SOCtember from Singapore.

Related stories

Threat Intel desk