KadNap is a Linux-based botnet malware family that primarily compromises ASUS routers and other edge networking devices, converting them into a distributed proxy network used to relay malicious traffic. Active since at least August 2025, it has been observed at scale with roughly 14,000 infected devices, with a strong concentration in the United States. The malware is associated with the Doppelganger proxy service, which has been assessed as a likely successor or rebrand of the Faceless proxy ecosystem previously linked to TheMoon-infected devices.
KadNap establishes persistence on compromised devices through a shell-script stage that schedules recurring execution and then deploys an ELF payload compiled for ARM and MIPS architectures. Once running, it suppresses visible I/O, profiles the host, obtains timing data via NTP, and joins a peer-to-peer network built on a custom implementation of the Kademlia distributed hash table protocol. This design is used to obscure command-and-control discovery by embedding infrastructure lookup within peer communications rather than relying solely on static, directly reachable controllers. KadNap also leverages BitTorrent bootstrap mechanisms during peer discovery and uses encrypted communications and peer-delivered payloads to extend functionality.
Observed follow-on payloads indicate operational hardening and controller coordination, including firewall-rule changes and retrieval of configuration data used to reach command infrastructure. Analysis has shown that KadNap’s supposedly decentralized design is imperfect: infected devices repeatedly traverse persistent intermediary nodes before reaching active controllers, suggesting attacker-maintained choke points and partial centralization. Telemetry also indicates infrastructure segmentation by device type or model.
KadNap’s primary role is to conscript compromised edge devices into a proxy botnet that supports anonymous malicious operations. Access to infected nodes has been linked to abuse patterns including traffic relaying, brute-force activity, credential-stuffing operations, targeted exploitation, and support for anonymous DDoS campaigns through the surrounding proxy ecosystem. The malware is notable for combining router-focused infection, Linux ELF payloads, persistence on embedded devices, and Kademlia-based command concealment in service of a commercialized criminal proxy operation.
23 distinct techniques documented for this family, organized by ATT&CK tactic.
T1584.005 — Compromise Infrastructure: Botnet (Resource Development)
T1588.001 — Obtain Capabilities: Malware (Resource Development)
“…setting up persistence through scheduled tasks…”
The file sets up a cron job to pull the malicious shell script from the server at the 55-minute mark of every hour, rename it to .asusrouter and then run it from /jffs/.asusrouter location.
“…setting up persistence through scheduled tasks…”
The file sets up a cron job to pull the malicious shell script from the server at the 55-minute mark of every hour, rename it to .asusrouter and then run it from /jffs/.asusrouter location.
“…setting up persistence through scheduled tasks…”
The file sets up a cron job to pull the malicious shell script from the server at the 55-minute mark of every hour, rename it to .asusrouter and then run it from /jffs/.asusrouter location.
A newly identified botnet dubbed 'KadNap' compromised more than 14,000 routers and edge networking devices... targeting primarily Asus routers and other small office, home office devices by exploiting unpatched vulnerabilities.
The file sets up a cron job to pull the malicious shell script from the server at the 55-minute mark of every hour, rename it to .asusrouter and then run it from /jffs/.asusrouter location. After the persistence was initialized, it would then pull down a malicious ELF file for the Asus routers, rename it to kad, and then execute it.
One was named fwr.sh (likely a firewall rule) which also closed port 22 on the infected device.
The first function readCommandFromPipe2AndExecute reads a filename sent on the pipe and executes it.
“…downloads additional payloads such as scripts that modify firewall rules or open new communication channels.”
KadNap’s bots are sold through Doppelganger, a service whose users leverage these hijacked devices for a range of malicious purposes, including brute-force attacks...
Protect cloud assets from communicating with bots that attempt to perform password spraying attacks and begin blocking IoCs with Web Application Firewalls.
Each sample begins initialization by forking, setting STDIN, STDOUT and STDERR to /dev/null, determining the external IP address, and storing into an initialized struct.
The above function, labeled tmpSose, will check for the presence of the file /tmp/.sose and if it exists, it will read ten bytes from the file.
Next it will cycle through a list of NTP servers until it makes a connection, retrieves the current time and stores it along with the host uptime. These values are used later in the network communications to create a hash used to “phone friends” and find other peers in the network.
A newly identified botnet dubbed 'KadNap' compromised more than 14,000 routers and edge networking devices... targeting primarily Asus routers and other small office, home office devices by exploiting unpatched vulnerabilities.
It will connect to the peer and receive a buffer 0x1000 bytes in size and uses a hardcoded key to decrypt it. It then SHA-1 hashes the decrypted payload and uses the hash as the key to encrypt/decrypt follow on traffic... This hash is used as the key to AES encrypt/decrypt follow on traffic.
KadNap employs a custom version of the Kademlia Distributed Hash Table (DHT) protocol, which is used to conceal the IP address of their infrastructure within a peer-to-peer system to evade traditional network monitoring. Infected devices use the DHT protocol to locate and connect with a command-and-control (C2) server.
This threat primarily targets Asus routers, conscripting them into a botnet that proxies malicious traffic... Once added to the network, bots are then marketed by a proxy service called “Doppelganger.”
T1090.002 — Proxy: External Proxy (Command and Control)
This threat primarily targets Asus routers, conscripting them into a botnet that proxies malicious traffic... Once added to the network, bots are then marketed by a proxy service called “Doppelganger”.
Infected devices use the DHT protocol to locate and connect with a command-and-control (C2) server, while defenders cannot easily find and add those C2s to threat lists.
Our investigation into these C2s uncovered a malicious file which was used to download a shell script from a server at 212.104.141[.]140, in a file called aic.sh... After the persistence was initialized, it would then pull down a malicious ELF file for the Asus routers, rename it to kad, and then execute it.
An IoT botnet is a network of compromised IoT devices that attackers remotely manipulate to launch large-scale cyber attacks, typically in the form of distributed denial of service (DDoS) attacks. In October 2025, Microsoft Azure was hit with a record-breaking multi-vector, cloud DDoS attack that peaked at 15.72 Tbps and 3.64 billion packets per second.
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.