Torii
- Type
- Botnet
- Capabilities
- Brute forcePersistenceDefense evasionReconnaissanceExfiltrationPost exploitation
- Platforms
- LinuxIOT
Torii is a multi-architecture IoT botnet and backdoor platform active since at least December 2017. It compromises Internet-exposed devices through Telnet credential attacks against weak passwords, then uses an architecture-discovery shell script and multiple download utilities to retrieve a suitable ELF payload. Torii supports MIPS, ARM, x86, x86-64, PowerPC, SuperH, and other embedded Linux architectures. Its staged deployment installs a persistent second-stage bot that survives reboots through multiple mechanisms, including shell-profile modification, cron, systemd and init configuration, SELinux-policy modification, and inittab changes. The bot employs delayed execution, runtime string decryption, stripped binaries, and randomized process names to impede analysis and detection. Torii communicates through encrypted, non-TLS traffic over TCP/443, supports C2 failover, fingerprints compromised devices, exfiltrates host and system information, transfers and manages files, downloads content, migrates C2 configuration, and executes arbitrary commands. No clear DDoS or cryptomining functionality was established in observed versions. The operator and ultimate operational purpose remain unattributed; Torii has been assessed as a persistent backdoor and orchestration service for compromised IoT devices.
Techniques & procedures
14 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
Automatic execution via “@reboot” clause in crontab
capabilities include exfiltration and, command execution... it can be used to run any command on the infected device.
Persistence
6 techniques
Persistence
Automatic execution via /etc/inittab
Automatic execution via injected code into ~\.bashrc
Automatic execution via “@reboot” clause in crontab
Automatic execution as a “System Daemon” service via systemd
Automatic execution via /etc/init and PATH. Once again, it calls itself "System Daemon"
Automatic execution via modification of the SELinux Policy Management
Privilege Escalation
5 techniques
Privilege Escalation
Automatic execution via /etc/inittab
Automatic execution via injected code into ~\.bashrc
Automatic execution via “@reboot” clause in crontab
Automatic execution as a “System Daemon” service via systemd
Automatic execution via /etc/init and PATH. Once again, it calls itself "System Daemon"
Defense Impairment
1 technique
Defense Impairment
Automatic execution via modification of the SELinux Policy Management
Credential Access
2 techniques
Credential Access
Torii infects systems that have Telnet exposed and protected by weak credentials.
Automatic execution via modification of the SELinux Policy Management
Discovery
1 technique
Discovery
The information exchanged this way helps fingerprint the device, as the malware exfiltrated hostname, process ID, MAC addresses and system-related details.
Lateral Movement
1 technique
Lateral Movement
He noticed that the attack was on port 23 specific to Telnet, but the communication was tunneled through the Tor network.
Command and Control
3 techniques
Command and Control
He noticed that the attack was on port 23 specific to Telnet, but the communication was tunneled through the Tor network, a detail that inspired Avast for the botnet name.
It executes a sophisticated script that determines the architecture of the device, and uses multiple commands - 'wget,' 'ftpget,' 'ftp,' 'busybox wget,' or 'busybox ftpget' - to ensure delivery of binary payloads.
Communication with the command and control (C2) servers is encrypted... While the traffic to the C2 server is encrypted and carried through the TLS-specific port 443, the malware does not use the TLS protocol.
Exfiltration
1 technique
Exfiltration
The information exchanged this way helps fingerprint the device, as the malware exfiltrated hostname, process ID, MAC addresses and system-related details.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.