Security experts from 360 Netlab spotted a new Mozi P2P
According to the researchers, in the last months, the botnet was mainly involved in DDoS attacks, experts also noticed that the sample borrows part of code from the Gafgyt malware.
The botnet implements a custom extended Distributed Hash Table (DHT) protocol that provides a lookup service similar to a hash table ([key, value]).
“Mozi Botnet relies on the DHT protocol to build a P2P network, and uses ECDSA384 and the xor algorithm to ensure the integrity and security of its components and P2P network.” reads the analysis published by the experts. “The sample spreads via Telnet with weak passwords and some known exploits (see the list below). In terms of functions, the execution of the instructions of each node in the Mozi
This kind of implementation makes it simple to add/remove nodes with minimum workaround re- keys.
The Mozi Botnet uses its own implementation of the extended DHT protocol to build a P2P network.
The malware spreads by attempting to guess Telnet passwords of target devices and leveraging known exploits. Once gained access to the device, the bot attempt to execute a malicious payload and the bot will automatically join the Mozi P2P network.
“After Mozi establishes the p2p network through the DHT protocol, the config file is synchronized, and the corresponding tasks are started according to the instructions in the config file,” continues the analysis.
In order to avoid the botnet takeover by security experts or law enforcement
• Launch DDoS attacks (this module reuses Gafgyt’s attack code, supports HTTP, TCP, UDP, and other attacks)
• Collect and exfiltrate bot info (Bot ID, IP, PORT, filename (full path), gateway, CPU architecture)
• Execute payload from URL
• Update from the specified URL
• Execute system or bot custom commandsOpen Energy di Enel EnergiaAd by ENELSee More
The bot targets the following devices:
|Eir D1000 Router||Eir D1000 Wireless Router RCI|
|Vacron NVR devices||Vacron NVR RCE|
|Devices using the Realtek SDK||CVE-2014-8361|
|Netgear R7000 and R6400||Netgear cig-bin Command Injection|
|DGN1000 Netgear routers||Netgear setup.cgi unauthenticated RCE|
|MVPower DVR||JAWS Webserver unauthenticated shell command execution|
|Huawei Router HG532||CVE-2017-17215|
|D-Link Devices||HNAP SoapAction-Header Command Execution|
|GPON Routers||CVE-2018-10561, CVE-2018-10562|
|D-Link Devices||UPnP SOAP TelnetD Command Execution|
|CCTV DVR||CCTV/DVR Remote Code Execution|
Additional information on the Mozi P2P