Skip to main content
Mallory
← Back to News
botnet-infrastructureembedded-device-vulnerabilitydefault-credential-exposurecommand-and-control-method

Mozi IoT Botnet Expanded Persistence and P2P Infection of Routers and Gateways

Malware Intelligence · 6 sources · Updated 3mo ago · First seen Aug 18, 2021

Mozi IoT Botnet Expanded Persistence and P2P Infection of Routers and Gateways

The Mozi botnet infected routers, gateways, DVRs, NVRs, and other IoT devices through weak Telnet credentials and known vulnerabilities, then used a DHT-based peer-to-peer architecture to spread malware and maintain command-and-control without relying on centralized servers. Researchers said Mozi reused some Gafgyt code but stood apart for its decentralized design, XOR obfuscation, and ECDSA384 signature checks that protected botnet configuration integrity. Infected devices could be directed to launch DDoS attacks, download and execute payloads, collect system information, and run arbitrary commands, while compromised nodes also hosted malware for further propagation over HTTP on random ports.

Later analysis showed Mozi evolving beyond basic botnet activity by adding persistence mechanisms on Netgear, Huawei, and ZTE gateways, including startup-script changes, credential modification, service disabling, and port blocking. Microsoft reported the malware could also support man-in-the-middle activity such as DNS spoofing and HTTP session hijacking, raising the risk that compromised edge devices could become entry points into enterprise IT and OT networks. Netlab and other researchers found that even after action against its operators and a slowdown in updates, Mozi’s decentralized network continued to sustain lingering infections, while newer variants added Mirai-style C2 logic for DDoS coordination, UPnP port mapping, and additional node roles tied to mining activity.

Hunt this familyPull IOCs and campaign context straight into your stack.
Get the IOCs
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · Sep 3, 2019 – Nov 2022
  1. Nov 2022

    360 Netlab characterizes Mozi in broader P2P botnet tracking

    360 Netlab included Mozi in an overview of actively tracked P2P botnets and described it as a DHT-based botnet that began with DDoS-for-profit activity and later added mining. In the sampled period, Mozi ranked behind Pink and Hajime in observed size.

    P2P Botnets: Review - Status - Continuous Monitoring
  2. Jun 2022

    Elastic publishes operational analysis of Mozi threat data

    Elastic Security Labs published a case study on collecting and operationalizing Mozi intelligence from open sources, including ThreatFox and Malware Bazaar. The analysis described repairing Mozi's corrupted UPX header, extracting DHT and firewall indicators, and visualizing globally distributed activity across at least 24 countries.

    Collecting and operationalizing threat data from the Mozi botnet - Elastic Security Labs
  3. Aug 18, 20215y ago

    QiAnxin and Sangfor publish WorkMiner findings

    QiAnxin and Sangfor published reports describing WorkMiner as a mining trojan that spreads through weak SSH passwords and exhibits P2P behavior. Later analysis linked WorkMiner to the Mozi ecosystem as the Mozi_ssh node type.

    The Mostly Dead Mozi and Its’ Lingering Bots
  4. Aug 2021

    360 Netlab identifies Mozi_ftp and Mozi_ssh node roles

    360 Netlab reported newly identified Mozi node types, including Mozi_ftp and Mozi_ssh, both mining trojans that propagate via weak credentials while participating in the same Mozi P2P network. The report said shared XOR keys and configuration-signing public keys indicated they likely came from the same author as Mozi_bot.

    The Mostly Dead Mozi and Its’ Lingering Bots
  5. Aug 2021

    360 Netlab reports Mozi authors taken into custody

    360 Netlab stated that Mozi's authors had been taken into custody by law enforcement agencies and that it had provided technical assistance during the action. The same report noted that lingering infected devices could continue spreading because of Mozi's decentralized P2P design.

    The Mostly Dead Mozi and Its’ Lingering Bots
  6. Aug 2021

    Microsoft documents Mozi persistence and MITM evolution

    Microsoft researchers reported that Mozi had evolved persistence techniques for Netgear, Huawei, and ZTE gateways and added man-in-the-middle capabilities such as DNS spoofing and HTTP hijacking. The report highlighted the risk that compromised gateways could provide initial access into enterprise IT and OT environments.

    How to proactively defend against Mozi IoT botnet | Microsoft Security Blog
  7. Sep 2020

    Mozi backend telemetry shows additional node types

    Backend statistics observed in September 2020 showed reporting entries beyond standard Mozi_bot nodes. This later supported identification of additional Mozi roles such as Mozi_ftp and Mozi_ssh within the same P2P ecosystem.

    The Mostly Dead Mozi and Its’ Lingering Bots
  8. Dec 2019

    360 Netlab publicly discloses the Mozi botnet

    360 Netlab published research describing Mozi as a DHT-based peer-to-peer IoT botnet that spreads via weak Telnet credentials and multiple known device vulnerabilities. The report documented its propagation methods, configuration system, and botnet capabilities including DDoS and payload execution.

    Mozi, Another Botnet Using DHT
  9. Sep 3, 20197y ago

    Researchers first observe a suspicious Mozi sample

    360 Netlab identified a suspicious malware sample on September 3, 2019 that many VirusTotal engines initially flagged as Gafgyt. The researchers later determined it was a distinct botnet they named Mozi.

    Mozi, Another Botnet Using DHT
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

1 linked

Organizations

3 linked
Huawei TechnologiesZTE CorporationNetgear

Observables

19 linked

Indicator values are masked on this page. View all 19 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Pull the IOCs, campaigns, and victimology behind this family, ready to push into your SIEM and EDR.
Hunt This Malware
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.