# Cling IoT botnet masquerades as Google STUN traffic for C2, exploiting Realtek Jungle SDK CVE-2021-35394

> Nozomi Networks Labs describes Cling, a MIPS embedded-Linux botnet that spreads through CVE-2021-35394 (Realtek Jungle SDK UDPServer/MP Daemon command injection) and hides its command channel in STUN Binding traffic, carrying operator commands in the 12-byte transaction ID and spoofing the source address of stun.l.google.com. It persists through init scripts and by replacing wget, and supports scanning, proxying, TCP tunneling and DDoS.

- **Published:** 2026-10-03T00:00:00Z
- **Last reviewed:** 2026-10-08T12:43:39.050Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-2857
- **Card image:** https://intel.threadlinqs.com/og/threat/threat-intel-cling-stun-traffic-botnet-tl-2026-2857.webp?v=87982c21 (Threadlinqs threat intel: Cling Botnet STUN-Traffic Masquerade: Detection & IOCs (TL-2026-2857) — Critical severity, 57 IOCs, 9 detection rules.)
- **ID:** TL-2026-2857
- **Severity:** CRITICAL (CVSS 9.8)
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 57 (3 shown free below)
- **CVEs:** CVE-2021-35394, CVE-2014-8361, CVE-2023-26801, CVE-2024-3721, CVE-2025-34037, CVE-2016-10372, CVE-2023-41011, CVE-2016-20016, CVE-2023-1389, CVE-2024-7029, CVE-2025-34035, CVE-2024-23625, CVE-2024-23624, CVE-2019-17621, CVE-2019-7256, CVE-2021-36380, CVE-2024-21887, CVE-2023-46805, CVE-2024-46048, CVE-2024-35340, CVE-2024-32314, CVE-2024-32292, CVE-2024-32281, CVE-2022-35555, CVE-2022-26289, CVE-2022-36553, CVE-2022-37055, CVE-2024-10915, CVE-2024-10914, CVE-2026-36356, CVE-2025-67038, CVE-2026-87827

## Description

Cling was found by Nozomi Networks Labs while investigating exploitation of CVE-2021-35394, a Realtek Jungle SDK flaw (versions 2.0 through 3.4.14B) in the diagnostic 'MP Daemon', usually compiled as the 'UDPServer' binary listening on UDP 9034. Attackers send UDP datagrams beginning with 'orf;' followed by shell commands. The commands use BusyBox wget to fetch a MIPS (mipsel) binary from a loader host and execute it with an infection-method tag (for example 'realtek.selfrep') as the first argument.

On the device, the malware binds a socket with SO_REUSEADDR to TCP/UDP port 33957 as a single-instance check and exits if the bind fails. It copies itself to /root/.cling and /usr/local/bin/.cling and appends references to /etc/inittab, /etc/init.d/rcS and /etc/rc.d/rc.boot, which covers SysV and BusyBox init layouts. It also hijacks wget: the legitimate binary is moved to wget.r, its original path is stored in wget.p, and the malware takes its place, so later wget invocations re-run or reinstall the bot.

The C2 channel abuses STUN (RFC 8489). Every ~5 seconds the bot sends STUN Binding Requests to 13 hardcoded public STUN servers using an all-zero transaction ID instead of a random one. It then sends a non-standard registration datagram containing the infection tag and its mapped external ports to each server; compliant servers ignore it. The bot then listens on the mapped ports for UDP packets whose 12-byte STUN transaction ID field encodes operator commands. Nozomi identified 145.249.115.184:3478 as an operator-controlled STUN server because it answered with all-zero transaction IDs instead of echoing requests. Command packets were seen arriving from 74.125.250.129 (stun.l.google.com); Nozomi assesses this as UDP source-address spoofing, based on TTL differences.

Eight commands are encoded in the transaction ID: execute (download a payload from IP:port and pass it to system(3)), scan-and-exploit across IPv4, stop scanner, start TCP tunnel, stop TCP tunnel, proxy relay (bidirectional forwarding to a relay server), stop proxy, and flood (DDoS for a set duration). Observed DDoS targets included a South Korean ISP host (112.151.157.222:8080), a University of Chicago host (192.170.240.137:53) and two Minecraft servers (23.81.40.193:25565, 147.185.221.129:25565). Besides CVE-2021-35394, the bot embeds exploits for CVE-2014-8361 (Realtek SDK), CVE-2023-26801 (LB-LINK routers), CVE-2024-3721 (TBK DVR), CVE-2025-34037 (Linksys), CVE-2016-10372 (Eir D1000), CVE-2023-41011 (FiberHome SR1041F) and CVE-2016-20016 (MVPower CCTV DVR). No threat actor attribution is stated in the sources.

CVE-2021-35394 (CVSS 3.1 base 9.8, CWE-78) was published 2021-08-16 and is in the CISA KEV catalog. Unit 42 reported 134 million exploit attempts between August and December 2022 and counted about 190 affected device models from 66 vendors, with Mirai, Gafgyt, Mozi and RedGoBot using it. Defenders should hunt for .cling files, wget.r/wget.p artifacts, modified init scripts, repeated STUN Binding Requests with all-zero transaction IDs, and non-STUN UDP payloads sent to STUN endpoints. Source reputation alone is insufficient because the C2 spoofs a Google address.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1059.004 Unix Shell
- T1037.004 RC Scripts
- T1574 Hijack Execution Flow
- T1095 Non-Application Layer Protocol
- T1001 Data Obfuscation
- T1572 Protocol Tunneling
- T1090 Proxy
- T1046 Network Service Discovery
- T1498.001 Direct Network Flood
- T1036.003 Rename Legitimate Utilities
- T1564.001 Hidden Files and Directories
- T1562.001 Disable or Modify Tools
- T1210 Exploitation of Remote Services
- T1105 Ingress Tool Transfer
- T1001.003 Protocol or Service Impersonation
- T1057 Process Discovery
- T1584.008 Compromise Infrastructure: Network Devices

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

**Cling — .cling Persistence Copy and Init Script Modification** (`TL-2026-2857-SPL-002`)

Detects the Cling persistence mechanism: copies of the bot at /root/.cling and /usr/local/bin/.cling, and modification of /etc/inittab, /etc/init.d/rcS or /etc/rc.d/rc.boot with references to .cling so the bot restarts at boot on SysV and BusyBox init layouts.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1037.004
- **Data sources:** auditd, osquery, file_integrity_monitoring, syslog, DeviceFileEvents, DeviceProcessEvents
- **Severity:** high
- **Confidence:** high

### Splunk SPL

````spl
```Cling persistence: .cling copies plus init script edits referencing .cling```
index=linux (sourcetype=linux:audit OR sourcetype=auditd OR sourcetype=osquery:results OR sourcetype=fim OR sourcetype=syslog) (".cling" OR "/etc/inittab" OR "/etc/init.d/rcS" OR "/etc/rc.d/rc.boot") | eval path_hit=coalesce(file_path, path, name, object_path, _raw) | eval cling_artifact=if(match(path_hit, "(?i)(^|/)[.]cling($|[^a-z0-9_])"), 1, 0) | eval init_script=if(match(path_hit, "(?i)/etc/(inittab|init[.]d/rcS|rc[.]d/rc[.]boot)"), 1, 0) | where cling_artifact=1 OR (init_script=1 AND match(_raw, "(?i)[.]cling")) | stats count min(_time) as first_seen max(_time) as last_seen values(path_hit) as paths values(user) as users by host | convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
let ClingFiles = DeviceFileEvents
| where Timestamp > ago(24h)
| where FileName =~ '.cling'
| project Timestamp, DeviceName, Signal = 'cling-file', Detail = strcat(FolderPath, '/', FileName), Process = InitiatingProcessCommandLine;
let InitAppend = DeviceProcessEvents
| where Timestamp > ago(24h)
| where ProcessCommandLine contains '.cling'
| where ProcessCommandLine has_any ('/etc/inittab', '/etc/init.d/rcS', '/etc/rc.d/rc.boot')
| project Timestamp, DeviceName, Signal = 'init-script-append', Detail = ProcessCommandLine, Process = InitiatingProcessCommandLine;
union ClingFiles, InitAppend
| order by Timestamp desc
```

### Sigma

```yaml
title: Cling IoT Botnet Persistence Copy Named .cling
id: 7a2d3b5f-9c4e-4f68-8b21-3d8e6f9a2b02
status: experimental
description: Detects creation of a hidden file named .cling, the persistence copy Cling writes to /root/.cling and /usr/local/bin/.cling before wiring it into init scripts.
references:
  - https://www.nozominetworks.com/blog/a-stunning-disguise-cling-malware-masquerades-as-google-
author: Threadlinqs Team
date: 2026-10-03
tags:
  - attack.persistence
  - attack.t1037.004
  - cve.2021-35394
logsource:
  category: file_event
  product: linux
detection:
  selection:
    TargetFilename|endswith: '/.cling'
  condition: selection
falsepositives:
  - Unrelated software that happens to use a hidden file named .cling
level: high
```

**Known false positives:**

- Unrelated software using a hidden file literally named .cling
- Legitimate administrative edits to init scripts (only alert when .cling is referenced)

**Tuning notes:** Most embedded devices cannot run an agent; forward auditd or FIM events from Linux gateways, or use firmware integrity checks on exported device filesystems. The init-script branch needs command-line or content visibility; without it, rely on the .cling filename match.

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

- Cling — BusyBox wget Fetch of mipsel Loader / [indicator] Tag (locked: unlock with TL Creds)
- Cling — wget Binary Hijack ([indicator] / [indicator] Artifacts) (locked: unlock with TL Creds)
- Cling — Internal Host Fan-Out to Many Public STUN Servers (locked: unlock with TL Creds)
- Cling — IoT Scanner Fan-Out to Many Public IPv4 Hosts (locked: unlock with TL Creds)
- Cling — Outbound DDoS Flood from an Internal IoT Device (locked: unlock with TL Creds)
- Cling — Traffic to Operator STUN Server and Known Loader Hosts (locked: unlock with TL Creds)
- Cling / CVE-2021-35394 — Inbound UDP 9034 Realtek UDPServer 'orf;' Command Injection (locked: unlock with TL Creds)
- Cling — STUN Binding Request with All-Zero Transaction ID (Covert C2) (locked: unlock with TL Creds)

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

## Sample indicators (3 of 57)

Defanged, TLP:CLEAR.

- IP address: `118.45.196[.]225`
- File hash: `3b0ac6aaabb3bf8058ca14f9c8ccc613cfa3ea71`
- IP address: `120.193.219[.]210`

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

## Sources

- [Cling Malware Masquerades as Google STUN Traffic (GBHackers)](https://gbhackers.com/cling-malware-masquerades-as-google-stun-traffic/)
- [A Stunning Disguise: Cling Malware Masquerades as Google STUN Traffic (Nozomi Networks Labs)](https://www.nozominetworks.com/blog/a-stunning-disguise-cling-malware-masquerades-as-google-)
- [NVD - CVE-2021-35394](https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-35394)
- [CISA Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json)
- [Unit 42: Realtek SDK Vulnerability exploited at scale](https://unit42.paloaltonetworks.com/realtek-sdk-vulnerability/)
- [BleepingComputer: Botnets exploited Realtek SDK critical bug in millions of attacks](https://www.bleepingcomputer.com/news/security/botnets-exploited-realtek-sdk-critical-bug-in-millions-of-attacks/)
- [SentinelOne Vulnerability Database: CVE-2021-35394](https://www.sentinelone.com/vulnerability-database/cve-2021-35394/)
- [Cling IoT Malware Masquerades as Google STUN Traffic to Hide C2 Communications (CyberPress)](https://cyberpress.org/cling-iot-malware-masquerades-as-google-stun/)
- [FortiGuard Outbreak Alert: Realtek SDK Attack](https://www.fortiguard.com/cn/outbreak-alert/html/realtek-sdk-attack)

## 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): https://intel.threadlinqs.com/mcp

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