Skip to main content
Mallory
← Back to News
botnet-infrastructureactively-exploited-vulnerabilityembedded-device-vulnerabilityrapid-weaponization

Mirai and Gafgyt Botnets Exploit Aging IoT Flaws and Rapidly Adopt New Vulnerabilities

Active Exploitation · 2 sources · Updated 2mo ago · First seen Dec 17, 2021

Mirai and Gafgyt Botnets Exploit Aging IoT Flaws and Rapidly Adopt New Vulnerabilities

CUJO AI researchers collected 438 malicious scripts and 2,792 Linux ELF binaries during August–November 2021 monitoring of IoT botnets, with Mirai and Gafgyt variants predominating. Only 8% of the binaries contained vulnerability-exploitation functionality. Researchers identified 20 targeted vulnerabilities, characterized as command-injection flaws enabling remote code execution; most were several years old. The most frequently observed flaw, CVE-2017-17215 in Huawei routers, was commonly paired with CVE-2014-8361 in the Realtek SDK.

Alongside continued exploitation of older flaws, the Dark IoT Mirai variant incorporated CVE-2021-35395 within four days of its publication, demonstrating how quickly botnet operators could adopt newly disclosed vulnerabilities. The findings reinforce the need for strong device credentials, regular firmware updates, and rapid patching of internet-exposed IoT devices. The 8% figure does not represent the full role of exploits in infections: the analysis excluded exploitation performed before malware binaries were downloaded.

Why it matters

CUJO AI documented Mirai and Gafgyt infections affecting routers, cameras, recorders, NAS appliances, and other Linux-based IoT devices, primarily recruiting them for distributed denial-of-service attacks. Compromise can disrupt device availability, consume network capacity, and expose organizations to downstream abuse; additional samples included ransomware and cryptocurrency miners. These findings document exploitation during August–November 2021, not an active October 2026 campaign, but remain relevant to devices running vulnerable firmware or weak credentials.

  • Exposure spans consumer, small-business, and enterprise-connected IoT across Huawei, Realtek-based products, D-Link, Netgear, Linksys, Zyxel, GPON equipment, and numerous CCTV/DVR vendors.
  • CUJO AI collected 438 malicious scripts and 2,792 Linux ELF binaries from botnet-related download infrastructure observed in customer networks. These counts represent artifacts, not unique compromised devices.
  • Most targeted vulnerabilities were several years old. Dark IoT also adopted CVE-2021-35395 within four days of publication, demonstrating a short remediation window for newly disclosed flaws.
  • The reported 8% measures binaries containing exploit functionality. It does not measure the proportion of infections caused by exploitation because pre-download exploitation was excluded.
This is being exploited nowSee which actors are running it and whether you're in range.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · 2014 – 2016
  1. Reported Dec 17, 20215y ago

    CUJO AI reported 20 vulnerabilities targeted by analyzed IoT malware

    CUJO AI's analysis found vulnerability-exploitation functionality in only 8% of collected binaries, collectively targeting 20 vulnerabilities characterized as command-injection flaws enabling remote code execution. Huawei router flaw CVE-2017-17215 was the most frequently targeted, commonly paired with Realtek SDK flaw CVE-2014-8361; the analysis excluded exploitation performed before malware binaries were downloaded.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  2. Reported Dec 17, 20215y ago

    Researchers observed exploitation of GPON device flaw CVE-2020-8958

    Researchers observed exploitation of CVE-2020-8958 only at the end of November, targeting diagnostic command-injection interfaces in Guangzhou and OptiLink GPON devices. Every analyzed sample targeting this flaw also contained exploits for seven other vulnerabilities or vulnerable interfaces.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  3. Reported Dec 17, 20215y ago

    Dark IoT samples observed exploiting CVE-2021-35395

    Researchers observed Dark IoT samples exploiting CVE-2021-35395 on August 20, four days after the vulnerability was published. Dark IoT is a Mirai variant that rapidly incorporates newly published exploits.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  4. Reported Dec 17, 20215y ago

    Realtek AP-Router SDK vulnerability CVE-2021-35395 published

    CVE-2021-35395, affecting the Realtek AP-Router SDK, was published on August 16. The source does not explicitly state the year of that publication date.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  5. Reported Dec 17, 20215y ago

    CUJO AI researchers monitored IoT botnets and collected malware samples

    Gyorgy Luptak and Dorka Palotay investigated botnet activity in customer networks during an August–November monitoring period. They collected 438 malicious script files and 2,792 ELF binaries, predominantly Mirai and Gafgyt variants.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  6. 2016

    Mirai source code became publicly available

    Mirai's source code became publicly available in 2016, the same year the malware was first discovered.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  7. 2016

    Mirai botnet malware discovered

    Mirai was first discovered in 2016. Like Gafgyt, it primarily builds botnets for distributed denial-of-service attacks.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  8. 2015

    Gafgyt source code leaked

    Gafgyt's source code leaked in 2015, making the botnet malware's code publicly available.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
  9. 2014

    Gafgyt botnet malware first observed

    Gafgyt was first observed in 2014. The malware primarily recruits compromised devices into botnets used for distributed denial-of-service attacks.

    IoT Botnet Report 2021: Malware and Vulnerabilities Targeted - CUJO AI
Linked entities

Related entities

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.

Open in app →

Malware

3 linked

Affected products

5 linked
Vr-3033Dsl-2750bBlackarmor NasHg532D-Link Routers

Organizations

12 linked
Seagate TechnologyBuffaloComtrend CorporationEirZyxel CommunicationsHuawei TechnologiesLinksysD-LinkNetgearOptiLink+2 more

Observables

41 linked

Indicator values are masked on this page. View all 41 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Correlate live exploitation activity against the software you actually run, and see where you're exposed.
See Who's Exploiting This
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.