GBHackers

CJDoor Malware Could Let Hackers Take Control of Linux Devices While Hiding Network Traffic


CJDoor, a Linux backdoor that abuses the open-source cjdns mesh networking suite. It gives attackers encrypted, inbound-only control of compromised devices, so infected hosts never beacon to a fixed command server.

In July 2026, Cisco Talos documented UAT-7810, an actor that builds Operational Relay Box (ORB) networks.

Its work includes expanding the LapDogs ORB network, using malware such as LONGLEASH, DOGLEASH, and JARLEASH. SecurityScorecard first published on LapDogs in June 2025.

Infections are concentrated in the United States and Southeast Asia, with additional devices in Japan, South Korea, Hong Kong and Taiwan.

JPCERT/CC found CJDoor while reviewing the distribution servers named in the Talos report. Two of them exposed open directories. The sample is a 64-bit MIPS ELF binary, which points to routers and embedded devices.

Open directories on malware distribution servers used by UAT-7810 (Source : JPCERT/CC).

cjdns builds an encrypted IPv6 overlay network. Node addresses fall in the fc00::/8 range and are derived from each node’s public key.

CJDoor Malware Attack

JPCERT/CC observed that, CJDoor does not call out to a C2 server. It listens on a random UDP port and joins the attacker’s mesh after the operator initiates peering.

Setup runs in two stages. The –init mode generates a key pair. It collects system details, including interface names, IP and MAC addresses, and iptables and TUN availability.

It writes them to sys.dat and netd.dat and sends them in an HTTP GET request to a hardcoded IP address, with no domain or HTTPS support.

CJDoor's execution flow (Source : JPCERT/CC).
CJDoor’s execution flow (Source : JPCERT/CC).

The –conf mode then loads netd.dat and deletes sys.dat, netd.dat and the executable itself. Each infected device has a unique cjdns identity.

CJDoor prepares the host for the overlay. It looks for /dev/net/tun, /dev/tun or /tmp/tun. If none exists, it runs mknod ./tun c 10 200, then creates a TUN interface named pp1000 and enables IPv6.

It can also launch /tmp/ud, which looks like a port forwarder. It can launch ./ts, which looks like a SOCKS-style tunneling tool.

The local files are encrypted with XSalsa20. The key is the SHA-256 hash of the bytes 31 73 37 13 00 00 00 00, with an all-zero 24-byte nonce.


Excerpt of the decryption code (Source : JPCERT/CC).
Excerpt of the decryption code (Source : JPCERT/CC).

Peer traffic uses cjdns CryptoAuth, which combines Curve25519 key exchange with XSalsa20-Poly1305. Because the encryption is cjdns’s own, payload inspection reveals little.

The code is based on cjdns v20, while the current release is v22. The authors changed it in several ways. Responses carry an extra 16-byte prefix that must be stripped before standard cjdns can talk to the implant.

A LinkCommandSender module adds 14 commands, including runCommand for shell execution and rs for a reverse shell. Another 24 commands were added across existing modules.

Parameters are Bencode-encoded. Command traffic sets the Control_Header.type field to 0x1F, a value standard cjdns does not use, and frames carry the markers lnkq for queries and lnkr for responses. These are the best network-level fingerprints.

The same directories held a Rekoobe backdoor and a TUN/TAP kernel module, both built for 64-bit MIPS. They were the only three 64-bit MIPS files there, so they were probably deployed together.

The kernel module likely supplies TUN support on devices that lack it. Rekoobe listens on 7896/TCP and supports file transfer, a PTY shell and command execution.

Defenders should hunt on the device rather than the wire. Useful artifacts are a pp1000 interface, an unexpected ./tun node, ud and ts processes, and unauthorized tun.ko loading.

IOCs

ContentFilenameHash (SHA256)
CJDoornetd597ed061ac707ed539f7a30d5edca5149bfe50f4dcb736e34fec29e4f139f702
Rekoobet324911d9f045eaca8fc5ee292e75416e9f9af91f2833245600926ef0bea8edc6
TUN Kernel Moduletun.ko42d8ff0f14d117edc01c307f4277f5661565678b068edfb75854b7fe265d6dbc

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Stops Cyber threats before impact with 21 min faster MTTR. Integrate ANYRUN’s Sandbox in your SOC.



Source link