Mozi IoT Botnet Expanded Persistence and P2P Infection of Routers and Gateways
Malware Intelligence · 6 sources · Updated 3mo 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.


