Home Botnet Cling Botnet Encodes C2 Commands in STUN Traffic to Evade Network Detection

Cling Botnet Encodes C2 Commands in STUN Traffic to Evade Network Detection

0
Cling Botnet Weaponizes STUN

Nozomi Networks Labs has uncovered Cling, a botnet that infects exposed IoT and networking devices while hiding command traffic inside exchanges resembling legitimate STUN activity.

Published on October 1, 2026, the research shows how attackers blend malicious instructions with traffic normally used by communication applications.

Researchers discovered the malware while investigating increased exploitation of CVE-2021-35394, a remote code execution flaw in the Realtek Jungle SDK diagnostic component.

This component appears in routers, access points, repeaters, and other appliances. Unpatched devices remain vulnerable years after the flaw became public.

Some exploitation attempts downloaded and launched Cling instead of malware showing familiar Mirai-like communication patterns. Analysis focused mainly on a MIPS sample, which supports scanning, exploitation, proxying, TCP tunneling, and denial-of-service attacks.

Cling Botnet Weaponizes STUN

STUN helps devices discover their public IP address and mapped network port when communicating through network address translation. Applications including Microsoft Teams, Zoom, Cisco Webex, and browser-based communication tools commonly generate this traffic.

Cling contacts 13 hardcoded STUN servers approximately every five seconds. Its Binding Requests use transaction IDs containing only zeros, rather than the random values expected by the protocol.

After receiving responses, the malware sends custom UDP registration messages containing its infection method and mapped ports. These messages fall outside the STUN specification but travel to the same server endpoints.

Operator commands arrive inside the 12-byte STUN transaction ID field. Instead of identifying a normal request, these bytes carry instructions and parameters for the infected device.

Researchers identified 145.249.115[.]184 as a server controlled by, or cooperating with, the operator. A test client supplied different port details to each server. Commands later reached a port advertised only to the suspicious endpoint.

Command packets appeared to originate from 74.125.250[.]129, an address associated with Google’s stun.l.google.com service.

Nozomi believes attackers spoofed this source address, rather than using Google to relay commands. Differences in packet time-to-live values supported that explanation.

During monitoring, researchers received instructions to spread the malware and flood four targets, a South Korean internet provider, a University of Chicago cluster, and two Minecraft servers. These observations describe issued commands, not confirmed disruption.

Cling includes exploits targeting additional Realtek, LB-LINK, TBK DVR, Linksys, Eir, FiberHome, China Mobile, and MVPower devices. Its propagation capability lets infected systems search for more vulnerable hosts.

For persistence, the malware copies itself to /root/.cling and /usr/local/bin/.cling and modifies startup scripts.

It also replaces wget while preserving the original binary as wget.r and recording its location in wget.p. Future wget executions can restart the malware.

Nozomi recommends patching affected devices, reducing internet exposure, restricting inbound access, and separating appliances into segmented networks, industrialcyber said.

Defenders should investigate frequent STUN requests with all-zero transaction IDs, non-STUN UDP messages sent to STUN endpoints, and unexpected communication from embedded devices. Searches should also cover .cling files, altered startup entries, and wget replacement artifacts.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Exit mobile version