Mozi IoT Botnet Expanded Persistence and P2P Infection of Routers and Gateways
Malware Intelligence · 6 sources · Updated 4mo ago · First seen Aug 18, 2021

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.
Why it matters
Impact assessment
Mozi affects internet-exposed IoT and edge networking devices, especially routers, gateways, DVRs, NVRs, SOHO networking gear, and other 32-bit ARM Linux systems. The impact is high because compromised devices can be used for DDoS, payload delivery, arbitrary command execution, data exfiltration, and man-in-the-middle activity, and infected gateways can provide initial access into enterprise IT and OT environments.
The exposure is broad rather than narrowly targeted. Multiple sources describe global infections across at least 24 countries, continued propagation through weak Telnet or other remote-access credentials and known vulnerabilities, and lingering infections sustained by Mozi’s decentralized P2P design even after action against operators.
Supporting details
- Affected products and populations:
- Routers, gateways, DVRs, NVRs, internet-connected audiovisual systems, and SOHO networking devices
- Netgear, Huawei, and ZTE gateways were specifically cited for persistence behavior
- Linux-based IoT devices and 32-bit ARM systems are primary targets
- Business and operational consequences:
- DDoS attacks and service disruption
- Arbitrary command execution and payload download/execution
- Data exfiltration and system information collection
- DNS spoofing and HTTP session hijacking enabling man-in-the-middle attacks
- Potential lateral movement from compromised edge devices into enterprise IT and OT networks
- Potential ransomware enablement and OT safety impacts if gateways are used as footholds
- Scope and prevalence:
- 360 Netlab ranked Mozi behind Pink and Hajime but still among major active P2P botnet families in its sampled period
- Elastic reported observed Mozi activity across at least 24 countries
- Netlab reported infections continued to increase in early observations and later noted lingering bots remained active despite slowed updates and law-enforcement action
- Exploitation in the wild:
- Yes. The story describes active botnet infections and propagation using weak credentials and multiple known vulnerabilities
- Microsoft, Elastic, and 360 Netlab all describe operational malware behavior on real-world infected devices


