Tengu
- Type
- Botnet
- Capabilities
- Initial accessBrute forceDDOSPersistenceDefense evasionReconnaissanceScanningExfiltration
- Delivery
- USB
- Platforms
- LinuxIOT
Tengu is a Mirai-derived botnet malware family targeting Linux servers, IoT devices, and embedded systems. It spreads through Telnet credential brute-forcing, using a shell-script dropper to retrieve and execute architecture-specific payloads. Samples support x86, x86-64, MIPS, ARM, PowerPC, and m68k architectures. Tengu is distinct from the ransomware operation using the same name.
Tengu supports 25 denial-of-service methods, including network-layer floods and application-specific attacks. It also provides SOCKS5 proxying, authenticated HTTP CONNECT proxying, arbitrary shell-command execution, self-updating, and additional payload delivery. It collects and exfiltrates system and network information, including hardware characteristics, running processes, interface configuration, and routing details. Its SSH functionality includes banner probing and key-exchange handshakes; these functions do not establish SSH credential attacks. Server-to-bot commands and updates use authenticated encryption, while registration, heartbeat traffic, and command output can remain plaintext.
Persistence mechanisms include systemd services, init and startup scripts, shell startup modifications, and guardian processes that relaunch the main executable. Tengu can mark its binary immutable and masquerade as legitimate system processes or kernel workers. It abuses the system watchdog so that terminating its main process can trigger a device reboot, after which startup persistence can restore the infection. It also corrupts the executable headers of shutdown and reboot utilities, interfering with normal administrative recovery, and can terminate competing malware. Additional evasion features include runtime string decoding, memory-backed execution, anti-debugging checks, and code-integrity monitoring. No specific threat actor has been reliably attributed to the botnet.
Techniques & procedures
41 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
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.
Execution
5 techniques
Execution
"[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.
Persistence
11 techniques
Persistence
...добавляет 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.
Privilege Escalation
10 techniques
Privilege Escalation
...добавляет 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.
Stealth
8 techniques
Stealth
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...
Defense Impairment
2 techniques
Defense Impairment
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."
Credential Access
1 technique
Credential Access
Исследователи пишут, что ханипоты компании обнаружили дроппер Tengu, когда тот брутфорсил учетные данные Telnet.
Discovery
7 techniques
Discovery
"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...
Lateral Movement
1 technique
Lateral Movement
Исследователи пишут, что ханипоты компании обнаружили дроппер Tengu, когда тот брутфорсил учетные данные Telnet.
Collection
1 technique
Collection
Tengu ... supports 25 DDoS methods, a SOCKS5 proxy, shell command execution, and data collection.
Command and Control
7 techniques
Command and Control
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.
Impact
4 techniques
Impact
“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.
Observables
14 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.