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.

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
6 events from the most recent confirmed update back to the earliest known activity.
On September 7, 2018, Unit 42 found Mirai samples incorporating exploits for 16 vulnerabilities, including CVE-2017-5638 in Apache Struts. Unit 42 described this as the first known instance of Mirai targeting an Apache Struts vulnerability.
Unit 42 said Gafgyt samples exploiting CVE-2018-9866 first surfaced on August 5, 2018. The malware targeted older SonicWall GMS versions and was hosted on infrastructure later linked to localhost[.]host.
During part of August 2018, l[.]ocalhost[.]host resolved to 185[.]10[.]68[.]127. Unit 42 observed that IP hosting Gafgyt samples exploiting the SonicWall GMS vulnerability.
SonicWall published a public advisory for CVE-2018-9866, a flaw affecting older unsupported Global Management System versions. Unit 42 later tied Gafgyt exploitation activity to this vulnerability.
Unit 42 said the earliest samples they had seen supporting Blacknurse dated to September 2017. This established that the DDoS capability later found in the SonicWall-targeting Gafgyt variant had been present in related malware for at least a year.
Unit 42 said the domain l[.]ocalhost[.]host had been associated with Mirai activity as far back as November 2016. The same domain later appeared in infrastructure tied to the newly observed Mirai and Gafgyt variants.
1 reference tracked. Mallory keeps watching after this page renders.
Map 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.