Mirai and Gafgyt Botnets Exploit Apache Struts and SonicWall Flaws
Active Exploitation · 1 source · Updated 4mo ago · First seen Sep 7, 2018

New variants of the Mirai and Gafgyt IoT/Linux botnets were observed expanding from consumer devices to enterprise-facing systems by exploiting known vulnerabilities in Apache Struts and SonicWall Global Management System. Palo Alto Networks Unit 42 reported that a Mirai sample targeted CVE-2017-5638, the remote code execution flaw in Apache Struts tied to the Equifax breach, marking the first known case of Mirai using that exploit in the wild.
A Gafgyt variant was also seen exploiting CVE-2018-9866 in older, unsupported SonicWall GMS versions shortly after a Metasploit module for the bug became public. Researchers linked both malware families through infrastructure involving l[.]ocalhost[.]host and said the Mirai sample carried 16 exploits in total, while the Gafgyt sample included scanning and DDoS capabilities such as Blacknurse, underscoring a broader shift by IoT/Linux botnets toward outdated enterprise targets.
Why it matters
Impact assessment
Mirai and Gafgyt operators expanded from typical consumer IoT targets to enterprise-facing systems, increasing exposure for organizations running unpatched Apache Struts or legacy SonicWall GMS. The immediate impact is remote compromise leading to botnet enrollment, scanning, malware staging, and DDoS activity rather than data theft-focused intrusion, but affected organizations still face service disruption, reputational damage, and follow-on compromise risk.
Key impact facts
- Affected products include Apache Struts and SonicWall Global Management System (GMS), in addition to multiple Linux/IoT device families.
- CVE-2017-5638 in Apache Struts was exploited by a Mirai variant; Unit 42 assessed this as the first known Mirai use of that exploit in the wild.
- CVE-2018-9866 affected SonicWall GMS 8.1 and older, unsupported versions; supported versions were not affected.
- The Gafgyt variant included scanning and DDoS functionality, including Blacknurse, indicating potential operational disruption for both victims and downstream targets.
- Scope appears opportunistic and internet-wide against exposed, outdated systems rather than narrowly targeted by industry.
- Exploitation in the wild was observed for both malware families, with related samples and infrastructure documented by Unit 42.
- The story indicates a broader trend of IoT/Linux botnets shifting toward outdated enterprise assets, which raises risk for organizations with legacy internet-exposed management systems.


