Skip to main content
Mallory
Malware

KadNap

Tracked since Mar 10, 2026 · Updated 4 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK23Techniques
IOCs10Tracked
Type
Botnet
Capabilities
PersistenceDefense evasionDDOSSpoofing
Platforms
LinuxNetwork deviceIOT

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.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

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

Resource Development

2 techniques
T1584.005BotnetEvidence2

T1584.005 — Compromise Infrastructure: Botnet (Resource Development)

T1588.001MalwareEvidence1

T1588.001 — Obtain Capabilities: Malware (Resource Development)

Execution

2 techniques
T1053Scheduled Task/JobEvidence1

“…setting up persistence through scheduled tasks…”

T1053.003CronEvidence5

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

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

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
T1036MasqueradingEvidence2

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.

Defense Impairment

1 technique
T1686Disable or Modify System FirewallEvidence3

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

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 DiscoveryEvidence4

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 DiscoveryEvidence4

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

7 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.002External ProxyEvidence1

T1090.002 — Proxy: External Proxy (Command and Control)

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 TransferEvidence7

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.

Indicators of compromise

Observables

10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+9 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

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 matching10Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping23Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.