Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
MalwareUsed by 1 actorExploits 10 CVEs

Mozi

Mozi is an IoT-focused peer-to-peer botnet and malware family, first observed in 2019, that reuses some Gafgyt code but is distinct in using a DHT-based P2P architecture similar in concept to Hajime. It targets routers, DVRs, NVRs, and other embedded Linux devices, spreading via Telnet brute-forcing with weak credentials and by exploiting known vulnerabilities in internet-exposed devices. Reported exploited weaknesses include Eir D1000 Wireless Router RCE, Vacron NVR RCE, CVE-2014-8361 (Realtek SDK), Netgear command injection flaws affecting R7000/R6400 and DGN1000 routers, JAWS Webserver command execution on MVPower DVR, CVE-2017-17215 (Huawei HG532), HNAP/UPnP command execution issues on D-Link devices, CVE-2018-10561 and CVE-2018-10562 (GPON routers), and CCTV/DVR RCE. Mozi uses infected nodes to provide malware download locations over HTTP, and can directly exploit targets or log in over Telnet, drop a downloader, and fetch the bot binary. Its configuration is protected with XOR obfuscation and ECDSA384 signature verification to preserve integrity in the untrusted P2P environment. Documented capabilities include DDoS attacks, bot information collection, downloading and executing payloads from URLs, self-update, and execution of system or custom commands. Analysis cited an ARM ELF v2 sample (MD5 eda730498b3d0a97066807a2d98909f3) and an earlier packed sample (MD5 849b165f28ae8b1cebe0c7430f44aff3). Multiple reports describe Mozi as a prevalent botnet abusing compromised routers and embedded devices, including infrastructure tracking that associated it with 9,427 unique C2 IP addresses in Chinese hosting environments, making it one of the most prevalent observed botnet deployments in those datasets. Additional reporting notes Mozi payloads being deployed by other botnet activity, including claims that Androxgh0st C2 logs showed Mozi IoT-focused payloads being used. Mozi is commonly discussed alongside Mirai and Gafgyt in automated campaigns targeting PHP servers, IoT devices, and cloud gateways through known vulnerabilities and misconfigurations.

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.

EXPLOITED CVES

Vulnerabilities exploited

10 CVEs Mallory has correlated with this family across public research and vendor advisories. Each row links to the full Mallory page for that vulnerability.

10 CVES
CVE-2017-17215RCE in Huawei HG532 via port 37215Exploited in the wild

The sample represents a brand new P2P botnet implemented based on the DHT protocol, the last botnet which uses DHT is the Hajime, and we call it Mozi according to the characteristics of its propagation sample file name Mozi.m , Mozi.a . | The vulnerabilities used by Mozi Botnet are shown in the following table: ... CVE-2017-17215 ... Huawei Router HG532

via netlab 360blog.netlab.360.com
CVE-2018-10561Dasan GPON Router Authentication Bypass via ?images ParameterExploited in the wild

The vulnerabilities used by Mozi Botnet are shown in the following table: ... CVE-2018-10561, CVE-2018-10562 ... GPON Routers | The sample represents a brand new P2P botnet implemented based on the DHT protocol, the last botnet which uses DHT is the Hajime, and we call it Mozi according to the characteristics of its propagation sample file name Mozi.m , Mozi.a .

via netlab 360blog.netlab.360.com
CVE-2018-10562Command Injection in Dasan GPON Home Routers diag_FormExploited in the wild

The sample represents a brand new P2P botnet implemented based on the DHT protocol, the last botnet which uses DHT is the Hajime, and we call it Mozi according to the characteristics of its propagation sample file name Mozi.m , Mozi.a . | The vulnerabilities used by Mozi Botnet are shown in the following table: ... CVE-2018-10561, CVE-2018-10562 ... GPON Routers

via netlab 360blog.netlab.360.com
CVE-2014-8361Realtek SDK miniigd UPnP SOAP Command InjectionExploited in the wild

The vulnerabilities used by Mozi Botnet are shown in the following table: ... CVE-2014-8361 ... Devices using the Realtek SDK | The sample represents a brand new P2P botnet implemented based on the DHT protocol, the last botnet which uses DHT is the Hajime, and we call it Mozi according to the characteristics of its propagation sample file name Mozi.m , Mozi.a .

via netlab 360blog.netlab.360.com
CVE-2024-3721OS Command Injection in TBK DVR-4104 and DVR-4216Exploited in the wild

Widely known Internet of Things device vulnerabilities including the Spring Cloud Gateway RCE, tracked as CVE-2022-22947, the TBK DVR-4104 and DVR-4216 command injection bug, tracked as CVE-2024-3721, and an MVPower DVR misconfiguration were also abused in botnet attacks.

via scworldscworld.com
CVE-2022-22947Spring Cloud Gateway Actuator Code Injection RCEExploited in the wild

Widely known Internet of Things device vulnerabilities including the Spring Cloud Gateway RCE, tracked as CVE-2022-22947, the TBK DVR-4104 and DVR-4216 command injection bug, tracked as CVE-2024-3721, and an MVPower DVR misconfiguration were also abused in botnet attacks.

via scworldscworld.com
CVE-2017-9841PHPUnit eval-stdin.php Remote Code ExecutionExploited in the wild

Botnet attacks aimed at PHP servers involved the exploitation of PHPUnit, Laravel, and ThinkPHP Framework remote code execution flaws, tracked as CVE-2017-9841, CVE-2021-3129, and CVE-2022-47945, respectively.

via scworldscworld.com
CVE-2022-47945ThinkPHP lang parameter LFI to RCEExploited in the wild

Botnet attacks aimed at PHP servers involved the exploitation of PHPUnit, Laravel, and ThinkPHP Framework remote code execution flaws, tracked as CVE-2017-9841, CVE-2021-3129, and CVE-2022-47945, respectively.

via scworldscworld.com
CVE-2021-3129Ignition debug mode RCE in LaravelExploited in the wild

Botnet attacks aimed at PHP servers involved the exploitation of PHPUnit, Laravel, and ThinkPHP Framework remote code execution flaws, tracked as CVE-2017-9841, CVE-2021-3129, and CVE-2022-47945, respectively.

via scworldscworld.com
CVE-2021-35394Unauthenticated RCE in Realtek Jungle SDK UDPServer (MP Daemon)Exploited in the wild

“...most of the malware samples are from well-known malware families like Mirai, Gafgyt and Mozi.”

via palo alto networks unit 42 blogunit42.paloaltonetworks.com
THREAT ACTORS

Groups observed using it

1 distinct threat actor attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
RondoDox

"...alongside NETGEAR-MOZI and other router-related flaws. This pattern suggests that the actor was focused on building or expanding botnets..."

via f5f5.com
MITRE ATT&CK

Techniques & procedures

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

Initial Access

1 technique
T1190Exploit Public-Facing ApplicationEvidence1

Or use a vulnerability to exploit the target... The vulnerabilities used by Mozi Botnet are shown in the following table... CVE-2014-8361... CVE-2017-17215... CVE-2018-10561, CVE-2018-10562

Execution

1 technique
T1059.004Unix ShellEvidence1

"A script executes a shell command on the targeted server... downloads and executes malware"; "An injected command directly writes the binary payload to a file and then executes it"

Stealth

3 techniques
T1027.002Software PackingEvidence1

It is worth mentioning that in the first version Mozi... used upx packing. But instead of using the common upx magic number to defeat unpacking, it used a novel method...

T1036MasqueradingEvidence1

Change the process name to sshd or dropbear to confuse the victim

T1218System Binary Proxy ExecutionEvidence1

Execute system or custom commands

Credential Access

1 technique
T1110Brute ForceEvidence1

The sample spreads via Telnet with weak passwords... Mozi infects new devices through weak telnet passwords and exploits.

Discovery

3 techniques
T1046Network Service DiscoveryEvidence1

“Aisuru rapidly compromises predictable device models… infecting thousands of devices within hours.” / “Spread: Automated scanning and exploitation of vulnerable IoT devices”

T1082System Information DiscoveryEvidence1

The main instructions include: ... Collecting Bot Information ... [idp] report bot info

T1083File and Directory DiscoveryEvidence1

The bot also actively kills competing botnet processes : mirai. sora. bot. dark. hilix. rakitin. neon. owari. aqua. boatnet. mozi.

Lateral Movement

2 techniques
T1021Remote ServicesEvidence1

The current Bot node logs in to the target device with a weak password, writes the downloader file in echo mode and runs it...

T1210Exploitation of Remote ServicesEvidence2

"attacks attempting to exploit a Realtek Jungle SDK remote code execution vulnerability (CVE-2021-35394)... Remote unauthenticated attackers could leverage this vulnerability to achieve arbitrary command execution"

Command and Control

4 techniques
T1071Application Layer ProtocolEvidence4

C2 Tracker is a free-to-use-community-driven IOC feed that uses Shodan and Censys searches to collect IP addresses of known malware/botnet/C2 infrastructure.

T1071.001Web ProtocolsEvidence1

"Advanced URL Filtering and DNS Security can block the command and control (C2) domain and malware hosting URLs"; "The botnet client can accept the following command and control (C2) channel commands"

T1090.003Multi-hop ProxyEvidence1

The sample represents a brand new P2P botnet implemented based on the DHT protocol... join the Mozi P2P network to become the new Mozi Bot node

T1105Ingress Tool TransferEvidence2

Provides a sample download address for future infected targets... downloads the sample file from the sample download address provided by the current Bot node.

Impact

1 technique
T1498Network Denial of ServiceEvidence3

The main instructions include: DDoS attack

Other

1 technique
T1562Impair DefensesEvidence1

The bot also actively kills competing botnet processes : mirai. sora. bot. dark. hilix. rakitin. neon. owari. aqua. boatnet. mozi. — the standard "this device is mine" routine.

INDICATORS OF COMPROMISE

IOCs tracked for this family

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

View more in app
Network
33 tracked

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

Other
6 tracked

Other indicator types observed in public reporting.

TypeValueLatest sighting
ip.v4●●●●●●●●●●●●View more in app9 days ago
uri●●●●●●●●●●●●View more in app9 days ago
ip.v4●●●●●●●●●●●●View more in app14 days ago
uri●●●●●●●●●●●●View more in app14 days ago
ip.v4●●●●●●●●●●●●View more in app1 month ago
uri●●●●●●●●●●●●View more in app1 month 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 matching39

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

Threat actor attribution1

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

Exploited vulnerabilities10

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 mapping17

Every documented technique, ranked by evidence weight.

Researcher chatter

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