Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Malware

KadNap

KadNap is a botnet malware family targeting ASUS routers and other edge networking devices, primarily SOHO/edge devices, and converting them into proxies for malicious traffic. Black Lotus Labs at Lumen reported tracking the botnet since August 2025, with growth to more than 14,000 infected devices; the majority of victims were ASUS routers, and over 60% of observed infections were in the United States, with additional concentrations reported in Taiwan, Hong Kong, and Russia. The malware is linked by Lumen and Spur to the Doppelganger proxy service, which researchers assess is likely a rebrand or successor of the defunct Faceless service previously associated with TheMoon malware. Access to infected devices is described as being monetized for malicious traffic routing and abuse including anonymous DDoS activity, credential stuffing, brute-force attacks, and targeted exploitation campaigns.

The infection chain described in the reporting begins with retrieval of a shell script named aic.sh from 212.104.141[.]140. That script establishes persistence via a cron job scheduled for the 55-minute mark of every hour, renames the fetched script to .asusrouter, and executes it from /jffs/.asusrouter. KadNap then downloads and executes a malicious ELF payload renamed kad, with samples identified for ARM and MIPS architectures. On execution, the malware forks, redirects standard streams to /dev/null, determines the device’s external IP address, and queries NTP servers for current time and uptime-related values.

KadNap uses a custom implementation of the Kademlia distributed hash table protocol to conceal command-and-control infrastructure within peer-to-peer traffic. It uses BitTorrent bootstrap nodes for peer discovery, derives values from NTP data and host uptime, generates custom hashes to locate peers, and decrypts peer-delivered payloads using a hardcoded key before using SHA-1-derived keys and encrypted communications for later stages. Researchers reported retrieval of additional payloads including fwr.sh, likely used to apply firewall rules such as closing port 22, and /tmp/.sose, which contained command-and-control IP:port pairs and configuration data. The malware’s parent process reads filenames from a pipe and executes the referenced files.

Although KadNap uses a P2P/Kademlia design intended to complicate C2 discovery and takedown, Black Lotus Labs found a weakness in the implementation: the same two persistent final-hop/intermediary nodes, 45.135.180[.]38 and 45.135.180[.]177, repeatedly appeared before C2 contact, indicating attacker-maintained persistent nodes rather than a fully decentralized design. Lumen reported KadNap typically used three to four active C2 servers on average and stated it had blocked traffic to and from the identified control infrastructure and planned to publish indicators of compromise.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

MITRE ATT&CK

Techniques & procedures

21 distinct techniques documented for this family, organized by ATT&CK tactic.

Resource Development

1 technique
T1584.005BotnetEvidence1

Threat actors may also seek to take persistent control of IoT devices to form botnets. An IoT botnet is a network of compromised IoT devices that attackers remotely manipulate to launch large-scale cyber attacks.

Execution

2 techniques
T1053Scheduled Task/JobEvidence1

“…setting up persistence through scheduled tasks…”

T1053.003CronEvidence4

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.

Persistence

2 techniques
T1053Scheduled Task/JobEvidence1

“…setting up persistence through scheduled tasks…”

T1053.003CronEvidence4

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.

Privilege Escalation

3 techniques
T1053Scheduled Task/JobEvidence1

“…setting up persistence through scheduled tasks…”

T1053.003CronEvidence4

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.

T1068Exploitation for Privilege EscalationEvidence1

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.

Stealth

3 techniques
T1036MasqueradingEvidence1

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.

T1070.004File DeletionEvidence1

One was named fwr.sh (likely a firewall rule) which also closed port 22 on the infected device.

T1218System Binary Proxy ExecutionEvidence2

The first function readCommandFromPipe2AndExecute reads a filename sent on the pipe and executes it.

Credential Access

2 techniques
T1110Brute ForceEvidence3

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...

T1110.003Password SprayingEvidence1

Protect cloud assets from communicating with bots that attempt to perform password spraying attacks and begin blocking IoCs with Web Application Firewalls.

Discovery

3 techniques
T1016System Network Configuration DiscoveryEvidence3

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.

T1083File and Directory DiscoveryEvidence1

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.

T1124System Time DiscoveryEvidence2

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.

Lateral Movement

1 technique
T1210Exploitation of Remote ServicesEvidence1

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.

Command and Control

6 techniques
T1001Data ObfuscationEvidence1

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.

T1071Application Layer ProtocolEvidence4

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.

T1090ProxyEvidence5

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.003Multi-hop ProxyEvidence3

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”.

T1095Non-Application Layer ProtocolEvidence7

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.

T1105Ingress Tool TransferEvidence5

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.

Impact

1 technique
T1498Network Denial of ServiceEvidence2

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.

Other

1 technique
T1562.004Disable or Modify System FirewallEvidence1

“…downloads additional payloads such as scripts that modify firewall rules or open new communication channels.”

INDICATORS OF COMPROMISE

IOCs tracked for this family

6 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
6 tracked

IPs, domains, and DNS infrastructure linked to this family.

TypeValueLatest sighting
ip.v4●●●●●●●●●●●●View more in app3 months ago
ip.v4●●●●●●●●●●●●View more in app3 months ago
ip.v4●●●●●●●●●●●●View more in app3 months ago
domain●●●●●●●●●●●●View more in app3 months ago
domain●●●●●●●●●●●●View more in app3 months ago
domain●●●●●●●●●●●●View more in app3 months ago
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching6

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping21

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.