Tengu Botnet Evades Detection with Self-Rebooting Persistence
A new Mirai-based botnet, dubbed Tengu, employs sophisticated persistence mechanisms, including automatically rebooting infected IoT devices when its processes are terminated, making it exceptionally difficult to remove.

A novel variant of the Mirai botnet, named Tengu, has emerged, posing a significant challenge to cybersecurity professionals due to its unique and aggressive persistence techniques. This botnet specifically targets internet-exposed Internet of Things (IoT) devices, particularly those running embedded Linux systems that leave Telnet or other remote administration services accessible. By exploiting weak credential practices and the common oversight of securing these devices, Tengu aims to maintain a persistent presence for malicious activities.
The primary innovation of Tengu lies in its ability to thwart cleanup attempts. When an administrator or security tool tries to terminate its malicious processes, the botnet triggers an automatic reboot of the infected device. This action not only disrupts the cleanup process but also can erase volatile evidence that might be crucial for forensic analysis. Furthermore, Tengu actively monitors its own code for any signs of tampering. It achieves this by calculating a baseline SHA-256 hash of its core code and continuously comparing it against the current state, using memory-mapping information from the Linux proc filesystem. It also scrutinizes memory for writable mappings that could indicate analysis or modification attempts.
This self-preservation mechanism makes standard incident response procedures, such as simply restarting a device, ineffective and potentially misleading. Organizations that assume a reboot has cleaned the system could remain unknowingly compromised, leaving their networks vulnerable to further attacks or exploitation. The threat landscape for IoT devices has long been plagued by botnets like Mirai, which leverage the vast number of insecure devices available online. However, Tengu's advanced evasion tactics represent a notable escalation in the sophistication of these threats.
Researchers at Nozomi Networks, who identified the malware, highlighted that Tengu's design prioritizes maintaining access post-compromise. This persistence is achieved through multiple vectors, including checks on systemd services, init scripts, shell startup files, and cron jobs. These are common locations where Linux malware establishes long-term foothold, ensuring that even if initial infection vectors are closed, the botnet can re-establish control.
The implications for defenders are substantial. Incident responders must adopt a more thorough approach, meticulously examining all potential persistence locations before declaring a device clean and returning it to service. The risk is amplified by the fact that these compromised IoT devices can be used for a wide range of malicious activities, including distributed denial-of-service (DDoS) attacks, proxying malicious traffic, or serving as pivot points for further network intrusion.
To mitigate the threat posed by Tengu and similar botnets, organizations are advised to reduce the public exposure of their IoT devices, disable any unnecessary remote access services, and enforce strong, unique credentials. Keeping device firmware up-to-date is also critical, as many exploits target known vulnerabilities in older software. Furthermore, segmenting IoT devices from critical enterprise networks can limit the potential damage of a successful compromise.
The continuous evolution of botnets like Tengu underscores the ongoing arms race in cybersecurity. As defenders develop new detection and eradication methods, threat actors respond with increasingly sophisticated evasion and persistence techniques, making the security of the vast IoT ecosystem a persistent and growing concern.