FortiGuard Labs has identified ClingSTUN, a Linux backdoor that exploits unpatched devices and abuses public STUN servers to support covert communications.
The malware turns compromised systems into remotely controlled proxy nodes while using legitimate network services to help its traffic blend with normal activity.
STUN, short for Session Traversal Utilities for NAT, helps discover external IP addresses and port mappings. ClingSTUN uses this information to support connections through network address translation, making infected devices more accessible to remote operators.
ClingSTUN Abuses STUN Servers
Researchers first observed attackers delivering ClingSTUN from 124[.]163[.]212[.]119 through CVE-2022-36553, a command injection vulnerability in Hytec Inter HWL-2511-SS routers. This initial delivery phase lasted only two days.
The campaign then shifted to 222[.]223[.]152[.]97 and expanded its exploitation methods.
Targets included EnGenius services through CVE-2025-34035 and D-Link UPnP interfaces through CVE-2024-23625. Later attacks also targeted Realtek, TP-Link, AVTECH, Linear, and other devices.
The latest identified download source was 118[.]145[.]196[.]225. Download scripts retrieved malware builds for ARM, Intel 80386, MIPS, PowerPC, and AMD x86-64 systems.
A newer downloader inspected mounted directories, unmounted selected entries associated with process IDs, and killed related processes. It also terminated processes whose executable paths were located in /tmp.
ClingSTUN disables watchdog timers through /dev/watchdog and /dev/misc/watchdog. It scans /proc for competing processes, checks executable locations, and terminates processes when their command lines differ from their executable names.
For persistence, it copies itself to /root/.cling and /usr/local/bin/.cling. It modifies /etc/inittab, /etc/init.d/rcS, and /etc/rc.d/rc.boot to launch those copies during startup.
The malware clears its command-line arguments to reduce visibility. When running as root, it copies selected information from /proc/1/ into /tmp and mounts that directory over its own process directory, disguising its metadata.
ClingSTUN opens a UDP socket on a random local port and sends standard 20-byte STUN binding requests. One analyzed version contacted 24 public endpoints and required at least half to respond successfully. A later version used 13 endpoints and required successful responses from all.
After these exchanges, the malware periodically sends its group identifier and mapped-port list to the same endpoints.
However, researchers did not identify a separate coordination-server registration mechanism in this communication path. How operators obtain the mappings and deliver control traffic through NAT remains unverified.
A 20-byte operator packet can trigger additional functions. For remote execution, command 1 opens an outbound TCP connection to a supplied endpoint, receives a command, and executes it. Seven embedded exploits also support self-propagation, Fortinet said.
Indicators of Compromise
| Type | Indicator |
|---|---|
| Download host | 124[.]163[.]212[.]119 |
| Download host | 222[.]223[.]152[.]97 |
Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team
