Threat reportMalwareTL-2026-6846
New Cling Remote-Access Botnet Variant Hides C2 in STUN Transaction IDs, Targets Linux Servers and IoT Devices (CVE-2021-35394)
NSFOCUS reports that CNCERT detected widespread propagation of a new, streamlined Cling botnet variant targeting Linux servers and IoT devices. It hides C2 among public STUN services, carrying commands in the 12-byte STUN Transaction ID, and keeps only command execution and download/execute functions to serve as a long-term launchpad for other malware.
Key facts
| Identifiers | TL-2026-6846, CVE-2021-35394, CVE-2021-3539 |
|---|---|
| Also known as | Cling, ClingSTUN |
| Severity | HIGH |
| Exploitation status | Linked CVE exploited in the wild; Listed in CISA KEV: CVE-2021-35394 (added ) |
| EPSS | CVE-2021-35394: 99.8% (99.9th percentile) |
| Affected products | Various (Linux servers and IoT devices) Linux servers and IoT devices (multiple architectures: x86, x86_64, i486, mips, mipsel, arc, m68k, sparc, powerpc); Realtek Jungle SDK (rtl819x) MP Daemon / UDPServer (inferred entry vector, CVE-2021-35394) |
| Weaknesses (CWE) | CWE-78 |
| MITRE ATT&CK techniques | T1001.003 Data Obfuscation: Protocol or Service Impersonation, T1027 Obfuscated Files or Information, T1037.004 Boot or Logon Initialization Scripts: RC Scripts, T1059.004 Command and Scripting Interpreter: Unix Shell, T1095 Non-Application Layer Protocol, T1190 Exploit Public-Facing Application, T1573.001 Encrypted Channel: Symmetric Cryptography |
| Motivation | UNKNOWN |
| Target regions | china |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-11-25, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-6846 across Splunk SPL, Microsoft KQL and Sigma, covering 28 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Cling Botnet STUN C2 Fan-Out: Single Host Contacting 10+ STUN Servers on UDP/3478
Cling sends STUN Binding Requests followed by custom non-STUN registration messages to all 13 embedded servers (12 public STUN servers plus one attacker C&C) over UDP/3478, and receives commands in the 12-byte Transaction ID of spoofed Google-source packets. Detects internal hosts reaching 10+ distinct STUN servers in a 15 minute window (T1095, T1001.003, T1573.001, T1027 encrypted config).
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1095, T1001.003, T1573.001, T1027
- Data sources: zeek:conn, firewall, defender_for_endpoint DeviceNetworkEvents
- Severity: high
- Confidence: medium
Splunk SPL
index=network sourcetype="zeek:conn" proto=udp id.resp_p=3478 | rename id.orig_h as src_ip, id.resp_h as dest_ip | where cidrmatch("10.0.0.0/8",src_ip) OR cidrmatch("172.16.0.0/12",src_ip) OR cidrmatch("192.168.0.0/16",src_ip) | bin _time span=15m | stats dc(dest_ip) as stun_servers count as conns avg(orig_bytes) as avg_orig_bytes values(dest_ip) as servers by src_ip, _time | where stun_servers>=10 | sort - stun_serversMicrosoft KQL
DeviceNetworkEvents
| where Timestamp > ago(24h)
| where RemotePort == 3478 and Protocol =~ "Udp"
| summarize StunServers = dcount(RemoteIP), Servers = make_set(RemoteIP, 20), Conns = count() by DeviceName, bin(Timestamp, 15m)
| where StunServers >= 10
| order by StunServers descSigma
title: Cling Botnet STUN Connection (Base Rule for Fan-Out Correlation)
name: cling_stun_conn
id: 8d2b4c30-5e76-4f0a-9c93-7a4f0e6b3c03
status: experimental
description: Base rule matching outbound UDP/3478 STUN connections from internal hosts; consumed by the fan-out correlation rule for Cling botnet C2 registration.
references:
- https://nsfocusglobal.com/risk-alert-widespread-spread-of-a-new-variant-of-the-cling-remote-access-botnet/
author: Threadlinqs Team
date: 2026-11-25
tags:
- attack.command-and-control
- attack.t1095
- attack.t1001.003
- attack.t1573.001
logsource:
category: firewall
detection:
selection:
dst_port: 3478
src_ip|cidr:
- '10.0.0.0/8'
- '172.16.0.0/12'
- '192.168.0.0/16'
condition: selection
falsepositives:
- VoIP, WebRTC, video conferencing and gaming clients
level: informational
---
title: Cling Botnet STUN Fan-Out to 10+ Servers (Correlation)
id: 9e3c5d41-6f87-4a1b-8da4-8b5a1f7c4d04
status: experimental
description: Correlates STUN connections so a single internal host contacting 10 or more distinct UDP/3478 servers within 15 minutes alerts, matching Cling's registration to 13 embedded STUN servers.
author: Threadlinqs Team
date: 2026-11-25
tags:
- attack.command-and-control
- attack.t1095
- attack.t1001.003
correlation:
type: value_count
rules:
- cling_stun_conn
group-by:
- src_ip
timespan: 15m
condition:
gte: 10
field: dst_ip
falsepositives:
- VoIP or WebRTC clients probing multiple STUN servers
level: high
Known false positives:
- Workstations running VoIP/WebRTC/conferencing clients querying many STUN servers
- Network diagnostic tools probing STUN endpoints
Tuning notes: Scope to server and IoT subnets where STUN is not expected and exclude user VLANs. Raise or lower the stun_servers threshold (default 10 of 13). Pivot to periodicity and constant small orig_bytes for registration traffic.
- Cling Botnet alya.* Payload Download via wget/curl/tftp (TCP/800) · unlock with TL Creds
- Cling Botnet wget Hijack (wget.r / wget.p) and Hidden .cling/.alya Copies · unlock with TL Creds
- Cling Botnet C2 IOC Contact: [indicator] / [indicator] on UDP/3478 · unlock with TL Creds
- Cling Botnet Payload Delivery: TCP/800 Connections to alya Download Servers · unlock with TL Creds
- Cling Botnet Hardening: oom_score_adj -1000 and Local Port 58346 Single-Instance Lock · unlock with TL Creds
- Cling Botnet Outbound UDP/3478 STUN to Non-Allowlisted Servers from Internal Hosts · unlock with TL Creds
- Cling Botnet (CVE-2021-35394) Realtek Jungle SDK MP Daemon UDP/9034 Exploit Attempt · unlock with TL Creds
- Cling Botnet Persistence via inittab / rcS / rc.boot Modification · unlock with TL Creds
Indicators of compromise
As of 2026-11-25, Threadlinqs Intelligence tracks 28 indicators of compromise for TL-2026-6846.
Sample indicators (3 of 28)
- IP address:
209.99.188[.]119 - File hash:
84ced85e53bc326f8b11115ae4bc24a7 - IP address:
202.110.70[.]60
Defanged, TLP:CLEAR. Full set of 28 indicators: unlock with TL Creds.
Technical analysis
Between Nov 9-20, 2026 CNCERT observed a daily active peak of 2,730 bots and 5,600 cumulative infected devices, all in mainland China.
Cling (also reported as ClingSTUN by Nozomi Networks Labs in October 2026) is a Linux/IoT botnet that abuses the STUN protocol for command and control. NSFOCUS, citing CNCERT detections, describes a new variant observed spreading from early November 2026. The sample embeds 13 ChaCha20-encrypted STUN server addresses: 12 public STUN servers and one attacker-controlled C&C server. The bot periodically sends standard STUN Binding Requests to all 13 servers to learn its NAT-mapped port, then sends non-STUN-compliant custom registration messages (mapped port plus an infection tag) to all of them. Legitimate servers discard the malformed messages; the attacker's server records them. The operator later sends commands back to the mapped port inside the STUN Transaction ID field of packets whose source address is spoofed as a Google STUN server. The 12-byte Transaction ID carries a 2-byte identification marker followed by 10 bytes of encrypted task parameters.
The variant is deliberately stripped down relative to earlier Cling versions: scanning, vulnerability-exploitation, proxy and DDoS modules were removed, the earlier flaw where the C&C returned anomalous Transaction IDs was fixed, embedded configuration, C&C parameters and remote commands are protected with ChaCha20, and the C&C moved to a new IP address. It retains four capabilities: command execution, program deployment (kill any task with the same task ID, download from a supplied server, chmod and run), task termination by task ID, and node-list update. NSFOCUS assesses the goal as long-term host control and delivery of other malware rather than DDoS. Download servers observed host per-architecture payloads named alya.* (x86, x86_64, i486, mips, mipsel, arc, m68k, sparc, powerpc) on TCP port 800.
Persistence and hardening: the malware appends execution entries to /etc/inittab, /etc/init.d/rcS and /etc/rc.d/rc.boot, replaces the wget utility, listens on local port 58346 as a single-instance lock (a technique NSFOCUS notes is common in Mirai-family botnets), and writes -1000 to /proc/self/oom_score_adj to resist the OOM killer. NSFOCUS refers to process-hiding techniques but gives no detail. Nozomi's analysis of the earlier version (cyberpress summary) adds copies at /root/.cling and /usr/local/bin/.cling, a wget hijack (original moved to wget.r with its path recorded in wget.p), and an exploit delivered as UDP datagrams beginning with 'orf;' followed by shell commands.
VULNERABILITY NOTE: NSFOCUS states the variant spreads by exploiting 'CVE-2021-3539 4' while also stating the exploit module was removed. NVD shows CVE-2021-3539 is an unrelated EspoCRM XSS (<=6.1.6), which does not fit a Linux/IoT botnet. The text most plausibly corresponds to CVE-2021-35394 (Realtek Jungle SDK 2.0-3.4.14B MP Daemon/UDPServer command injection, CVSS 9.8, listed with a CISA KEV add date of 2021-12-10 in NVD), which Nozomi reports Cling exploits. This is an analyst inference, not stated by NSFOCUS; verify before relying on it. Earlier Cling versions per NSFOCUS exploited CVE-2016-10372 (Eir D1000), CVE-2023-41011 (FiberHome SR1041F), CVE-2014-8361 (Realtek SDK), CVE-2023-26801 (LB-LINK), CVE-2024-3721 (TBK DVR), CVE-2025-34037 (Linksys) and CVE-2016-20016 (MVPower DVR). No threat actor attribution has been published. BeaconBeagle returned no record (HTTP 404) for 209.99.188.119 or 202.110.70.60.
MITRE ATT&CK techniques by tactic:
Command and Control
T1001.003 Data Obfuscation: Protocol or Service Impersonation; T1095 Non-Application Layer Protocol; T1573.001 Encrypted Channel: Symmetric Cryptography
Defense Evasion
T1027 Obfuscated Files or Information
Persistence
T1037.004 Boot or Logon Initialization Scripts: RC Scripts
Execution
T1059.004 Command and Scripting Interpreter: Unix Shell
Initial Access
Remediation
Patches
- Apply vendor fixes/firmware for exposed Realtek Jungle SDK devices (CVE-2021-35394) and other IoT flaws listed in the description
Immediate actions
- Block the C&C IP 209.99.188.119 and the alya download servers (202.110.70.60, 58.211.144.243, 118.45.196.225, 120.193.219.210) at the perimeter
- Hunt for startup entries referencing .alya (or .cling) in /etc/inittab, /etc/init.d/rcS and /etc/rc.d/rc.boot
- Check for a process listening on local port 58346 and for a replaced wget binary (wget.r / wget.p side files)
- Isolate and remediate infected hosts, determine the intrusion vector, and report to the competent local authority
Workarounds
- Use strong, unique device passwords of at least 16 characters and rotate them regularly
- Restrict outbound UDP 3478 from IoT/server segments to approved STUN endpoints only
Longer-term hardening
- Maintain an up-to-date asset inventory and update IoT firmware
- Deploy endpoint protection with regular full scans and monitor for suspicious processes and unusual outbound connections
- Monitor for anomalous STUN traffic: periodic registration traffic to multiple STUN nodes over UDP 3478 and Transaction IDs that are non-random or follow a fixed structure
Affected and fixed versions
- Various (Linux servers and IoT devices) — Linux servers and IoT devices (multiple architectures: x86, x86_64, i486, mips, mipsel, arc, m68k, sparc, powerpc)
- Realtek — Jungle SDK (rtl819x) MP Daemon / UDPServer (inferred entry vector, CVE-2021-35394)
Vulnerable versions: 2.0 through 3.4.14B
Timeline
- CVE-2021-35394 (Realtek Jungle SDK MP Daemon command injection, likely Cling entry vector) published in NVD
- NVD records a CISA KEV add date of 2021-12-10 for CVE-2021-35394
- Cyberpress reports Nozomi Networks Labs analysis of Cling malware abusing STUN Transaction IDs for C2
- CNCERT begins observation window of the new Cling variant propagating widely (early November detection)
- End of CNCERT window: daily active peak of 2,730 bots and 5,600 cumulative infected devices, all in mainland China
- NSFOCUS publishes risk alert describing the stripped-down variant, ChaCha20 config, IOCs and mitigations
Sources cited
- NVD - CVE-2021-35394 (Realtek Jungle SDK RCE) NVD (NIST) · Advisory · 2021-08-16
- CISA Known Exploited Vulnerabilities Catalog CISA · Government advisory · 2021-12-10
- NVD - CVE-2021-3539 (EspoCRM XSS; cited by NSFOCUS, appears mis-transcribed) NVD (NIST) · Advisory · 2021-08-04
- Risk Alert: Widespread Spread of a New Variant of the Cling Remote-Access Botnet (NSFOCUS) nsfocusglobal.com · Research · 2026-11-25
- Cling IoT Malware Masquerades as Google STUN Traffic to Hide C2 Communications (Cyberpress, summarizing Nozomi Networks Labs) cyberpress.org · News · 2026-10-03
- ClingSTUN Turns Vulnerable IoT Devices Into Proxy Nodes (Dark Reading) Dark Reading · News
- ClingSTUN Botnet Abuses STUN Protocol for C2, Exploits Dozens of Flaws (Daily Security Review) dailysecurityreview.com · News
Other reports on CVE-2021-35394
- ClingSTUN Linux Backdoor Turns Unpatched IoT Devices Into Proxy Nodes via Public STUN Infrastructure
- Cling IoT botnet masquerades as Google STUN traffic for C2, exploiting Realtek Jungle SDK CVE-2021-35394
- Fodcha — Cross-Architecture DDoS Botnet Spreading via N-Day Exploits (CVE-2021-22205, CVE-2021-35394) and Telnet/SSH Brute-Force, Later Adding Ransom DDoS
Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.