The TheMoon malware spread across multiple Linksys router models by exploiting an unauthenticated remote code execution flaw exposed through the HNAP interface and CGI endpoints including tmUnblock.cgi and hndUnblock.cgi on port 8080. Researchers reported that the worm queried /HNAP1/ to identify device model and firmware, then triggered command injection to launch a shell script that fetched a roughly 2 MB MIPS ELF payload. Public exploit code later showed how the flaw could write a payload to /tmp/c0d3z, mark it executable, and run it to open a bind shell on TCP port 4444, confirming the practicality of the attack path used against vulnerable routers.

See affected versions and whether adversaries are exploiting it.
5 events from the most recent confirmed update back to the earliest known activity.
Fortinet reported active detection of exploitation of CVE-2014-9583 against ASUS routers since June of that year, used to deploy a TheMoon-family bot. The infection chain downloaded nmlt1.sh and then a MIPS binary named .nttpd from 78.128.92.137.
Johannes Ullrich discovered TheMoon worm activity in the wild affecting Linksys routers. The worm abused an unauthenticated vulnerability exposed via port 8080 and vulnerable CGI functionality to spread.
Fortinet analyzed a TheMoon-family bot that used modules named clk, net, and dwl, communicated with peers over UDP port 5143, and fetched additional payloads over TCP port 4543. The analysis also found iptables rules intended to block competing exploitation attempts against both ASUS CVE-2014-9583 and a Linksys remote code execution vulnerability.
A public proof-of-concept exploit for the Linksys unauthenticated remote code execution vulnerability was published by Rew. The exploit targeted tmUnblock.cgi and hndUnblock.cgi via the ttcp_ip parameter and wrote a MIPS payload that opened a bind shell on TCP port 4444.
Researchers reported that TheMoon was spreading across multiple Linksys router models by querying /HNAP1/ on port 8080, exploiting a vulnerable CGI script without valid authentication, and downloading a roughly 2 MB ELF MIPS payload. They also published indicators including heavy outbound scanning on ports 80 and 8080 and inbound attempts to miscellaneous ports below 1024.
Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.
Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
3 references tracked. Mallory keeps watching after this page renders.
fortinet.com
Open sourceexploit-db.com
Open sourceisc.sans.edu
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.