MON 30 NOV 2026
Home / Ransomware and Attacks

Cling Botnet Infects 5,600 Devices by Hiding Commands in Legitimate STUN Traffic

A redesigned Cling botnet variant uses encrypted STUN traffic to maintain remote access to infected Linux servers and IoT devices.

OB By
26 Nov 2026, 17:13 · 3 min read
The Cling botnet has infected 5,600 devices in mainland China by concealing its command-and-control (C&C) communications
The Cling botnet has infected 5,600 devices in mainland China by concealing its command-and-control (C&C)…

The Cling botnet has infected 5,600 devices in mainland China by concealing its command-and-control (C&C) communications inside ordinary STUN traffic, according to observations by China’s CNCERT between November 9 and November 20, 2026.

The campaign primarily targets Linux servers and Internet of Things (IoT) devices. CNCERT recorded a peak of 2,730 daily active bots during the observation period.

The malware abuses STUN, a protocol that allows devices behind network address translation (NAT) to discover their public IP address and port. Its latest variant uses the protocol’s 96-bit Transaction ID field to disguise instructions and exchange encrypted task information.

Malware hides commands inside STUN exchanges

The malware stores 13 ChaCha20-encrypted server addresses in its configuration. Twelve point to public STUN servers, while the remaining address belongs to the attackers.

It sends standard STUN Binding Requests to all 13 servers to determine its NAT-mapped port. It then transmits custom registration messages containing that port and an infection tag. Legitimate STUN servers discard the malformed messages, but the attacker-controlled server records them.

The C&C server subsequently sends commands to the mapped port. The first two bytes of the Transaction ID serve as a marker, while the remaining 10 bytes contain encrypted task parameters.

The malware also falsifies its source address to make incoming traffic appear to originate from a Google STUN server. This makes malicious communications harder to distinguish from legitimate network activity.

Updated variant prioritises persistent access

The latest version is leaner than earlier Cling releases. Its developers removed vulnerability-propagation, proxy and DDoS modules, leaving command execution, program download-and-execute, task termination and node-update capabilities.

These functions suggest the malware is being used primarily as a persistent loader that can maintain access and deliver additional malware.

CNCERT also identified changes intended to make the variant harder to detect. Earlier builds exposed the real C&C server because its Transaction IDs differed from those generated by legitimate STUN servers. The newer version encrypts sample configurations with ChaCha20 and uses a new C&C IP address.

The malware replaces the wget utility and adds startup entries to /etc/inittab, /etc/init.d/rcS and /etc/rc.d/rc.boot. It also listens on port 58346 to prevent multiple instances from running.

Another persistence measure involves writing -1000 to /proc/self/oom_score_adj, reducing the likelihood that the operating system will terminate the process when memory becomes scarce.

CNCERT’s report identifies CVE-2021-3539 4 as the main vulnerability used for propagation. The identifier appears malformed and should be verified before being used in vulnerability assessments. Earlier versions reportedly exploited CVE-2016-10372, CVE-2023-41011, CVE-2014-8361, CVE-2023-26801, CVE-2024-3721, CVE-2025-34037 and CVE-2016-20016.

Detection and mitigation recommendations

The campaign follows earlier research by Nozomi Networks, which documented Cling activity in October. That investigation found the malware contacting 13 hardcoded STUN servers approximately every five seconds, using all-zero Transaction IDs in its Binding Requests.

Fortinet tracks the malware family as ClingSTUN, describing it as a backconnect proxy backdoor that turns compromised systems into remotely controlled proxy nodes.

CNCERT recommends monitoring periodic registration traffic sent to multiple STUN servers over UDP port 3478. Defenders should also investigate Transaction IDs that appear non-random or follow a fixed structure.

Nozomi’s findings provide additional detection clues, including frequent STUN requests with all-zero Transaction IDs and non-STUN UDP messages sent to STUN endpoints. CNCERT lists 209.99.188\[.\]119 as a C&C IP address.

Administrators should patch or replace exposed routers and DVRs, restrict outbound UDP traffic from embedded devices to approved destinations, and inspect startup scripts for unexpected entries. They should also check for modified system utilities, particularly wget.

The shift away from noisy DDoS activity toward stealth and persistent access makes routine-looking STUN traffic worth investigating, especially on networks containing exposed IoT devices.

OB

Ransomware gangs, cyberattacks and emerging threat campaigns.

Related stories