Tengu is a Mirai-derived botnet malware family targeting Linux servers, routers, and embedded IoT devices. It spreads through Telnet credential brute-forcing, with a shell-script dropper downloading and executing architecture-specific payloads. Identified builds support x86, x86-64, MIPS, ARM, PowerPC, and m68k architectures. Its functionality combines distributed denial-of-service attacks, remote command execution, system and network reconnaissance, traffic proxying, and additional payload delivery.
Tengu supports 25 denial-of-service methods, including UDP, TCP, ICMP, HTTP, and other protocol-specific attacks. It provides SOCKS5 and authenticated HTTP CONNECT proxy services, allowing compromised hosts to relay operator traffic. It collects and exfiltrates host and network configuration information, executes shell commands and returns their output, updates itself, and retrieves additional executable payloads. Server-to-bot commands and updates use authenticated encryption, while registration, heartbeat messages, and command output are transmitted in plaintext. Tengu can also retrieve and attempt to install Android packages, although confirmed Android infections have not been established.
Tengu employs extensive persistence and self-defense mechanisms. These include systemd services, initialization scripts, shell startup modifications, and a detached guardian process that restarts its main component. It masquerades as legitimate system processes or kernel worker threads and can mark its executable immutable. On devices with a suitable watchdog, it maintains keepalive signals only while its main process remains active; terminating that process can trigger a forced reboot, after which persistence mechanisms relaunch the malware. Tengu also corrupts the executable headers of shutdown and reboot utilities to obstruct normal administrative recovery, terminates competing malware, and supports memory-backed re-execution to reduce its on-disk footprint.
41 distinct techniques documented for this family, organized by ATT&CK tactic.
Tengu, observed by Nozomi Networks Labs, spreads through Telnet credential brute-forcing
It targets internet-facing embedded Linux systems, particularly devices that leave Telnet or other remote administration services exposed.
"[Tengu] attempts to survive reboots through ... scheduled tasks..."
Besides persistence through systemd and init.d... Tengu tries to use cron, the tool for scheduling recurring tasks, though Nozomi found this method doesn’t work as intended.
Эта малварь поддерживает 25 видов DDoS-атак, может развертывать SOCKS5-прокси, выполнять шелл-команды...
It also adds a SOCKS5 proxy, shell command execution, system and network reconnaissance...
T1106 – Native API: Uses memfd_create, raw sockets, and ioctl.
...добавляет init- и rc-скрипты, меняет стартовые файлы оболочки...
T1037.004 – RC Scripts: Modifies init.d, procd, rc.local, and rc*.d.
"[Tengu] attempts to survive reboots through ... scheduled tasks..."
Besides persistence through systemd and init.d... Tengu tries to use cron, the tool for scheduling recurring tasks, though Nozomi found this method doesn’t work as intended.
Tengu, observed by Nozomi Networks Labs, spreads through Telnet credential brute-forcing
It targets internet-facing embedded Linux systems, particularly devices that leave Telnet or other remote administration services exposed.
Также для закрепления в системе Tengu создает фиктивный systemd...
"[Tengu] attempts to survive reboots through systemd services..."
"[Tengu] attempts to survive reboots through ... SysV and OpenWrt startup scripts..."
"[Tengu] attempts to survive reboots through ... local startup files."
Its unique persistence strategy involves a guardian process that monitors the main malware and relaunches it if stopped. Critically, it can also leverage the hardware watchdog timer; if the main process is killed, the watchdog is left unfed, causing a device reboot, which then allows Tengu's other persistence methods to reactivate.
...добавляет init- и rc-скрипты, меняет стартовые файлы оболочки...
T1037.004 – RC Scripts: Modifies init.d, procd, rc.local, and rc*.d.
"[Tengu] attempts to survive reboots through ... scheduled tasks..."
Besides persistence through systemd and init.d... Tengu tries to use cron, the tool for scheduling recurring tasks, though Nozomi found this method doesn’t work as intended.
Tengu, observed by Nozomi Networks Labs, spreads through Telnet credential brute-forcing
Также для закрепления в системе Tengu создает фиктивный systemd...
"[Tengu] attempts to survive reboots through systemd services..."
"[Tengu] attempts to survive reboots through ... SysV and OpenWrt startup scripts..."
"[Tengu] attempts to survive reboots through ... local startup files."
Its unique persistence strategy involves a guardian process that monitors the main malware and relaunches it if stopped. Critically, it can also leverage the hardware watchdog timer; if the main process is killed, the watchdog is left unfed, causing a device reboot, which then allows Tengu's other persistence methods to reactivate.
To reduce the chance of detection, Tengu decrypts its strings only during execution...
...один из компонентов Tengu создает отдельный фоновый процесс, который маскируется под системный поток [kworker/0:0]...
Malware can emulate that appearance in two ways. It can overwrite its own argv[0] ... or it can call prctl(PR_SET_NAME).
It overwrites their ELF headers with the string ELFOOD, which can interfere with the normal commands defenders may use to restart or safely power down a compromised device.
Tengu, observed by Nozomi Networks Labs, spreads through Telnet credential brute-forcing
...looks for environment variables associated with hooking tools, measures instruction timing to detect emulation and periodically verifies the integrity of its own code.
Tengu monitors its own running state and checks whether its code has been changed. The malware reads memory-mapping information from the Linux proc filesystem, calculates a baseline SHA-256 value for part of its code, and repeatedly compares the result to identify tampering. It also checks for writable memory mappings that may indicate analysis or modification activity.
...checks whether a debugger is attached to it...
T1222.002 – Linux File Permissions Modification: Applies chattr +i to make the installed binary immutable.
"It also writes a protective value to the operating system’s out-of-memory control, reducing the chance that memory pressure will terminate the task. It then silences normal standard streams and continues quietly in the background."
Исследователи пишут, что ханипоты компании обнаружили дроппер Tengu, когда тот брутфорсил учетные данные Telnet.
"It can gather basic host and network details..."
Эта малварь поддерживает 25 видов DDoS-атак, может развертывать SOCKS5-прокси, выполнять шелл-команды, собирать информацию о системе и сети...
Another process repeatedly scans running processes and terminates competing botnets.
"It can gather basic host and network details..."
...looks for environment variables associated with hooking tools, measures instruction timing to detect emulation and periodically verifies the integrity of its own code.
Tengu monitors its own running state and checks whether its code has been changed. The malware reads memory-mapping information from the Linux proc filesystem, calculates a baseline SHA-256 value for part of its code, and repeatedly compares the result to identify tampering. It also checks for writable memory mappings that may indicate analysis or modification activity.
...checks whether a debugger is attached to it...
Исследователи пишут, что ханипоты компании обнаружили дроппер Tengu, когда тот брутфорсил учетные данные Telnet.
Tengu ... supports 25 DDoS methods, a SOCKS5 proxy, shell command execution, and data collection.
Registration, heartbeat traffic, and command output are sent in plaintext, while server commands and updates use a custom ChaCha20/Poly1305-like authenticated encryption scheme.
Также обнаружилось, что Tengu мог получать идентификаторы дополнительных файлов с управляющего сервера злоумышленников...
"[Tengu can] build authenticated HTTP CONNECT and SOCKS5 proxy functions" and "infected hosts can also be used to relay traffic."
...including an encrypted channel for issuing commands, the ability to relay an operator’s traffic through the infected device... It also adds a SOCKS5 proxy...
Эта малварь поддерживает 25 видов DDoS-атак... а также обновляться и загружать дополнительные файлы ELF или APK.
T1568.002 – Dynamic Resolution: Domain Generation Algorithms: Contains DGA-style generation logic, although this capability was not observed being used in practice.
T1573 – Encrypted Channel: Uses a custom AEAD-based C2 protocol.
“With data secured, the attackers deploy the encryptor across as many systems as possible.”
"The DDoS component has two UDP modes. One creates raw IPv4 packets with attacker-controlled header fields and checksums... The other sends traffic through ordinary datagram sockets."
"[Tengu can] issue HTTP GET, POST, and HEAD requests with randomized forwarding headers" and "performs SSH banner and key-exchange handshakes."
Researchers at Nozomi identified the malware’s unusual ability to reboot an IoT device when someone attempts to terminate its malicious process... When the bot detects that an operator has tried to stop or alter it, it can trigger a reboot of the infected device.
14 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.