← INCIDENTS

ClingSTUN Linux backdoor turns routers and DVRs into proxies via public STUN servers

FortiGuard Labs found ClingSTUN, a Linux backdoor that turns infected devices into back-connect proxies coordinated through public STUN servers. Its operators indiscriminately exploit about two dozen flaws in Avtech, D-Link, Ivanti, TP-Link, Tenda and other devices for initial access. The malware also carries hardcoded exploits for seven more vulnerabilities to spread itself, kills competing malware, and persists through system startup scripts.

FortiGuard Labs, Fortinet's threat research team, has detailed ClingSTUN, a Linux backdoor that turns compromised internet-facing devices into remotely controlled proxy nodes. Its operators break in by indiscriminately exploiting known, often old vulnerabilities in routers, cameras, DVRs and other equipment from vendors including Avtech, D-Link, EnGenius, Hytec, Ivanti, Lantronix, Linear, Realtek, Tenda and TP-Link, and appear to keep adding new exploits.

What makes it unusual is how it stays reachable without dedicated command-and-control infrastructure. ClingSTUN sends standard binding requests to legitimate public STUN servers, the same NAT-traversal service that video-calling apps use, to learn its external IP address and port mappings and keep NAT bindings open. It then periodically reports its group identifier and mapped ports to those same endpoints, and listens for specific packets that let its operators run commands and trigger spreading.

The malware also carries hardcoded exploits for seven more vulnerabilities, in China Mobile, KGUARD, Linksys, LB-LINK, MVPower, Realtek and TBK devices, so infected machines can compromise others. Downloaders fetch builds for ARM, MIPS, PowerPC, x86 and x86-64. Across three variants, FortiGuard saw the same behavior: killing competing malware, disabling the watchdog timer, copying itself to two hidden files and appending startup commands to three system initialization scripts so it survives reboots.

FortiGuard cautions that the public STUN servers involved are third-party services and shouldn't automatically be treated as attacker infrastructure; defenders should look at STUN traffic together with suspicious processes, unexpected UDP connections and recurring keepalive traffic. It recommends keeping an accurate inventory of internet-facing devices, patching known exploited flaws quickly, limiting internet exposure and replacing unsupported devices.

Sources

  1. FortiGuard Labs: ClingSTUN Linux Backdoor Abuses Public STUN Infrastructure fortinet.com
← More INCIDENTS news