# 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. 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.

- **Published:** 2026-11-25T10:11:44Z
- **Last reviewed:** 2026-11-25T10:11:44Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6846
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6846.png
- **ID:** TL-2026-6846
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 28 (3 shown free below)
- **CVEs:** CVE-2021-35394, CVE-2021-3539

## Description

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

- T1190 Exploit Public-Facing Application
- T1059.004 Command and Scripting Interpreter: Unix Shell
- T1037.004 Boot or Logon Initialization Scripts: RC Scripts
- T1027 Obfuscated Files or Information
- T1095 Non-Application Layer Protocol
- T1001.003 Data Obfuscation: Protocol or Service Impersonation
- T1573.001 Encrypted Channel: Symmetric Cryptography

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Cling Botnet STUN C2 Fan-Out: Single Host Contacting 10+ STUN Servers on UDP/3478** (`TL-2026-6846-SPL-003`)

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

```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_servers
```

### Microsoft KQL

```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 desc
```

### Sigma

```yaml
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.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Cling Botnet alya.* Payload Download via wget/curl/tftp (TCP/800) (locked: unlock with TL Creds)
- Cling Botnet wget Hijack (wget.r / wget.p) and Hidden .cling/.alya Copies (locked: unlock with TL Creds)
- Cling Botnet C2 IOC Contact: [indicator] / [indicator] on UDP/3478 (locked: unlock with TL Creds)
- Cling Botnet Payload Delivery: TCP/800 Connections to alya Download Servers (locked: unlock with TL Creds)
- Cling Botnet Hardening: oom_score_adj -1000 and Local Port 58346 Single-Instance Lock (locked: unlock with TL Creds)
- Cling Botnet Outbound UDP/3478 STUN to Non-Allowlisted Servers from Internal Hosts (locked: unlock with TL Creds)
- Cling Botnet (CVE-2021-35394) Realtek Jungle SDK MP Daemon UDP/9034 Exploit Attempt (locked: unlock with TL Creds)
- Cling Botnet Persistence via inittab / rcS / rc.boot Modification (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 28)

Defanged, TLP:CLEAR.

- IP address: `209.99.188[.]119`
- File hash: `84ced85e53bc326f8b11115ae4bc24a7`
- IP address: `202.110.70[.]60`

Full set of 28 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Risk Alert: Widespread Spread of a New Variant of the Cling Remote-Access Botnet (NSFOCUS)](https://nsfocusglobal.com/risk-alert-widespread-spread-of-a-new-variant-of-the-cling-remote-access-botnet/)
- [Cling IoT Malware Masquerades as Google STUN Traffic to Hide C2 Communications (Cyberpress, summarizing Nozomi Networks Labs)](https://cyberpress.org/cling-iot-malware-masquerades-as-google-stun/)
- [NVD - CVE-2021-35394 (Realtek Jungle SDK RCE)](https://nvd.nist.gov/vuln/detail/CVE-2021-35394)
- [CISA Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
- [NVD - CVE-2021-3539 (EspoCRM XSS; cited by NSFOCUS, appears mis-transcribed)](https://nvd.nist.gov/vuln/detail/CVE-2021-3539)
- [ClingSTUN Turns Vulnerable IoT Devices Into Proxy Nodes (Dark Reading)](https://darkreading.com/iot/clingstun-vulnerable-iot-devices-proxy-nodes)
- [ClingSTUN Botnet Abuses STUN Protocol for C2, Exploits Dozens of Flaws (Daily Security Review)](https://dailysecurityreview.com/resources/clingstun-botnet-abuses-stun-protocol-for-c2-exploits-dozens-of-flaws/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6846
