Introduction

As the Internet of Things (IoT) continues to grow, so does the threat landscape. Cybercriminals are increasingly targeting IoT devices to build botnets—large networks of compromised devices used for malicious activities such as DDoS attacks, credential stuffing, and data exfiltration. For IT administrators, securing IoT devices has never been more critical. Here’s what you need to know about the threat and how to defend against it.

What are Botnets?

A botnet is a network of internet-connected devices—such as computers, smartphones, or Internet of Things (IoT) devices—that have been infected with malware and are controlled remotely by an attacker, often without the owners’ knowledge. These compromised devices, known as “bots,” can be orchestrated collectively to perform various malicious activities, including distributed denial-of-service (DDoS) attacks, data theft, and spam distribution.

The Growing Threat of IoT Botnets

IoT devices, from smart cameras to industrial control systems, often have weak security postures. Many ship with default credentials, outdated firmware, and minimal security controls, making them prime targets for attackers. Recent botnets like Mirai and Mozi have demonstrated how easily unsecured IoT devices can be hijacked and used for large-scale attacks.

Mirai Botnet

The Mirai botnet emerged in 2016, primarily targeting IoT devices like routers and security cameras by exploiting default login credentials. It orchestrated one of the most significant DDoS attacks recorded at the time, temporarily disrupting major websites and services. The Mirai botnet’s source code was later released publicly, leading to the development of various Mirai-based variants. Over 97% of IoT attacks are performed to add the IoT device into the Mirai bot collective according to research conducted by CISOMAG in 2021.

Mozi Botnet

The Mozi botnet, first identified in late 2019, is an evolution of previous IoT-targeting malware, incorporating elements from both Mirai and Gafgyt codebases. Mozi distinguishes itself by utilizing a peer-to-peer (P2P) architecture, allowing it to operate without centralized command and control servers. This design choice enhances its resilience against takedown attempts. Mozi has been responsible for a significant portion of IoT network traffic; between October 2019 and June 2020, it accounted for approximately 90% of such traffic. Mozi was almost completely stopped in 2023 by security efforts. In 2024, a new variant was introduced called Androxgh0st botnet. This botnet has incorporated IoT-focused Mozi payloads, exploiting over 20 vulnerabilities in technologies such as Cisco ASA, Atlassian JIRA, PHP frameworks, and various IoT devices. Androxgh0st enables unauthorized access and remote code execution, posing risks to global web servers and IoT networks.

Best Practices to Prevent IoT Botnet Takeovers

1. Inventory and Segmentation

Botnets often exploit unmanaged, insecure, or misconfigured devices to establish a foothold in a network. Organizations that lack visibility into their connected assets risk having vulnerable devices acting as entry points for attackers. Maintaining an up-to-date inventory of all networked devices and segmenting them appropriately helps prevent botnet propagation and limits the attack surface.

Key Steps for Effective Inventory Management

Proper asset management starts with continuous discovery, classification, and monitoring of all connected devices. Since IoT devices, printers, cameras, and other endpoints frequently operate with minimal security controls, a proactive approach is necessary to prevent them from being co-opted into a botnet.

  • Automated Asset Discovery: Many organizations struggle with shadow IT—unauthorized or undocumented devices connected to the network. Using network scanning tools like Nmap, Rumble, or Tenable OT Security, security teams can continuously map all active devices, ensuring no rogue assets are overlooked.
  • Asset Classification: Once devices are identified, they should be categorized based on function, risk, and necessity. High-risk devices, such as IoT endpoints with default credentials, should be flagged for immediate security hardening. Classification enables prioritization of security measures, ensuring that mission-critical systems receive enhanced protections.
  • Regular Audits: A device inventory is only effective if it is consistently updated and validated. Regular asset audits help detect unauthorized devices, identify new vulnerabilities, and confirm that security policies are enforced. Organizations should implement automated inventory management solutions to maintain an accurate, real-time asset register.

By implementing a structured asset management approach, organizations can reduce blind spots, detect anomalies faster, and mitigate risks associated with botnet infections before they spread.

Implementing Network Segmentation

Even with strong asset management, organizations must assume that some devices may be compromised. Network segmentation ensures that even if a botnet gains access to one part of the network, it cannot easily spread to critical systems. Without segmentation, a single infected IoT device can become a pivot point for attackers to move laterally across the network.

  • Virtual LANs (VLANs): VLANs allow organizations to isolate different types of network traffic, preventing unauthorized access between segments. For example, placing IoT devices in a dedicated VLAN separates them from corporate IT assets, limiting exposure in case of an infection.
  • Subnetting: By dividing the network into smaller, isolated subnets, organizations can restrict communication between different groups of devices. A well-designed subnet structure helps prevent attackers from using compromised devices as stepping stones to higher-value targets, such as databases or administrative systems.

Implementing effective segmentation limits the damage an attacker can inflict, reducing the risk of widespread infection or data exfiltration in the event of a botnet compromise.

2. Change Default Credentials Immediately

One of the most common and preventable ways botnets infiltrate networks is through default or weak credentials. Many IoT devices, routers, and even corporate systems ship with factory-set usernames and passwords that are well-documented and widely available in online databases used by attackers. Threat actors leverage automated scanning tools to find internet-exposed devices and attempt default logins, often gaining full control within minutes.

Why Default Credentials Are a Major Risk

  • Preloaded Credentials Are Publicly Available – Default usernames and passwords are often included in device manuals, manufacturer websites, and online forums, making them an easy entry point for attackers.
  • Botnets Use Credential-Stuffing Techniques – Malware like Mirai and its variants actively scan the internet for devices using factory-set credentials and automatically incorporate them into botnets.
  • Many Users Never Change Defaults – TechRepublic reported that NordPass found that 67% of IoT devices still use default passwords, exposing organizations to unnecessary risk.

Best Practices for Credential Security

  • Change Default Credentials During Initial Setup – Ensure that every new device, from security cameras to network routers, has its default credentials immediately replaced with strong, unique passwords.
  • Use Strong Password Policies – Enforce passwords that are at least 12–16 characters long, incorporating a mix of uppercase/lowercase letters, numbers, and special characters. Avoid easily guessable passwords like “admin123” or “password.”
  • Disable Unused or Hardcoded Accounts – Some devices come with hardcoded accounts that cannot be changed easily. Where possible, disable these accounts or apply firmware updates that allow modifications.

3. Implement Multi-Factor Authentication (MFA)

Multi-Factor Authentication (MFA) is one of the most effective security measures against botnets and credential-based attacks. Many botnets gain access to systems by leveraging compromised or weak credentials, often obtained through phishing, brute force, or leaked password databases. MFA significantly reduces the risk of unauthorized access, even if an attacker obtains valid login credentials.

Why MFA is Critical for Botnet Defense

  • Prevents Credential Stuffing Attacks – Many botnets, including Mirai and Emotet, use credential stuffing to hijack accounts with reused or weak passwords. MFA adds an additional layer of security, making these attacks much harder to execute.
  • Mitigates Phishing Threats – Cybercriminals often use phishing campaigns to trick users into revealing passwords. With MFA, even if a user’s credentials are compromised, the attacker still needs an additional authentication factor to gain access.
  • Reduces the Impact of Leaked Passwords – Massive credential dumps from previous data breaches fuel botnet operations. MFA ensures that even if credentials are leaked online, they cannot be used without the secondary authentication factor.

Best Practices for Implementing MFA

  • Require MFA for All Critical Systems – Enforce MFA for administrative accounts, remote access (VPN, RDP, SSH), cloud services, and any system handling sensitive or critical data.
  • Use Strong Authentication Factors – The best MFA implementations combine:
    • Something you know (password, PIN)
    • Something you have (hardware token, mobile authenticator app)
    • Something you are (biometrics like fingerprint or facial recognition)
  • Avoid SMS-Based MFA When Possible – While SMS-based MFA is better than no MFA, it is susceptible to SIM-swapping attacks and interception. Instead, use app-based authenticators (Google Authenticator, Microsoft Authenticator) or hardware tokens (YubiKey, Titan Security Key) for enhanced security.
  • Enable Adaptive MFA – Implement risk-based authentication that increases security requirements based on user behavior, location, or device. For example, if a user logs in from a new country or an untrusted device, require additional authentication steps.
  • Educate Users on MFA Security – Some botnets use social engineering to trick users into approving fraudulent MFA requests. Regularly train employees to recognize and report suspicious login attempts.

4. Regular Firmware Updates and Patch Management

Botnets often exploit unpatched vulnerabilities in IoT devices, servers, and applications to gain unauthorized access. Many cybercriminals rely on publicly known exploits that target outdated firmware and software. Without a structured patch management strategy, organizations risk leaving critical systems exposed to botnet infections and other cyber threats.

Why Firmware Updates and Patch Management Are Critical

  • Botnets Exploit Known Vulnerabilities – Many botnets, including Mirai, Mozi, and VPNFilter, have targeted IoT devices and routers with known security flaws that remain unpatched.
  • Manufacturers Frequently Release Security Fixes – Vendors regularly issue firmware updates to patch security holes, improve performance, and fix stability issues. However, organizations often delay applying these patches, leaving devices vulnerable.
  • Unpatched Systems Are Easy Targets – Attackers frequently scan the internet for outdated devices using Shodan, Censys, and other reconnaissance tools. Devices with known vulnerabilities are quickly compromised and assimilated into botnets.

Best Practices for Firmware Updates and Patch Management

  • Implement an Automated Patch Management System – Utilize tools like Microsoft WSUS, SCCM, Tanium, or Qualys to automate software and firmware updates across the network.
  • Prioritize Security Patches Based on Risk – Not all updates are equally critical. Use a risk-based approach by prioritizing patches for vulnerabilities with CVSS scores of 7.0+ or those actively exploited in the wild.
  • Enable Automatic Updates Where Possible – For IoT devices, routers, and security appliances, enable automatic firmware updates to ensure vulnerabilities are patched as soon as fixes become available.
  • Monitor for Unpatched Vulnerabilities – Use vulnerability scanners (Nessus, OpenVAS, Qualys, Tenable) to identify outdated software and prioritize remediation.

5. Disable Unnecessary Services and Ports

Many botnets exploit exposed services and open ports to gain access to vulnerable devices. Attackers frequently scan networks looking for services that should not be publicly accessible, such as Telnet, FTP, SMB, RDP, and outdated web interfaces. By disabling unnecessary services and closing unused ports, organizations can significantly reduce the attack surface and prevent botnet infections.

Why Open Ports and Unnecessary Services Are a Security Risk
  • Botnets Automate Port Scanning – Malware like Mirai, Mozi, and VPNFilter continuously scan for open SSH (22), Telnet (23), SMB (445), and RDP (3389) ports to exploit weak or default credentials.
  • Default Services Are Often Misconfigured – Many devices come with unnecessary services enabled by default, increasing the risk of remote code execution, unauthorized access, or information leakage.
  • Exposed Ports Increase Lateral Movement Risks – Once an attacker gains access via an open service, they can move laterally across the network, escalating privileges and deploying additional malware.

Best Practices for Disabling Unnecessary Services and Ports

  • Conduct Regular Port Scans – Use tools like Nmap, Nessus, or Shodan to identify open ports and exposed services on all internal and external-facing systems.
  • Disable Unused Services by Default – Any service that is not explicitly required should be disabled. This includes Telnet, FTP, SNMP, and legacy remote access protocols.
  • Replace Legacy Protocols with Secure Alternatives – For example:
    • Use SSH instead of Telnet
    • Use SFTP instead of FTP
    • Use HTTPS instead of HTTP
    • Use SMBv3 instead of SMBv1 (which has known vulnerabilities like EternalBlue)

6. Monitor and Log Network Activity

Effective network monitoring and log analysis are critical for detecting and mitigating botnet infections before they cause significant damage. Botnets often generate unusual traffic patterns, such as large volumes of outbound connections, communication with command-and-control (C2) servers, or sudden spikes in network activity. Without proper monitoring, these threats can go unnoticed, allowing attackers to maintain persistence in the network.

Why Network Monitoring and Logging Are Essential

  • Detects Early Indicators of Compromise (IoCs) – Botnets frequently communicate with external C2 servers. Detecting unexpected DNS queries, unusual outbound traffic, or unauthorized API calls can help identify compromised hosts.
  • Prevents Data Exfiltration – Many botnets, such as TrickBot, Emotet, and QakBot, are used to steal sensitive data. Monitoring for large outbound data transfers can help stop data breaches before they occur.
  • Identifies Lateral Movement – Once inside a network, botnets attempt to spread. Monitoring for unauthorized internal connections can reveal an infection before it escalates.
  • Aids in Incident Response and Forensics – Detailed logs provide critical evidence for investigating security incidents, identifying attack vectors, and improving defenses.

Best Practices for Monitoring and Logging Network Activity

  • Deploy Network Traffic Analysis (NTA) Tools – Use solutions like Zeek (Bro), Suricata, Argus, or Palo Alto Cortex XDR to analyze traffic in real time.
  • Implement Security Information and Event Management (SIEM) – SIEM solutions such as Splunk, ELK Stack (Elasticsearch, Logstash, Kibana), Microsoft Sentinel, or IBM QRadar aggregate and analyze logs to detect anomalies.
  • Monitor for Anomalous Behavior – Look for:
    • Unusual traffic spikes (especially from IoT devices or workstations)
    • Outbound connections to known malicious IPs/domains
    • Repeated authentication failures (possible brute force attack)
    • Unexpected encrypted traffic from devices that usually don’t use encryption
  • Set Up Automated Alerts – Configure alerts for high-risk activities, such as:
    • Connections to blacklisted C2 servers
    • Multiple login failures from the same IP
    • Unusual outbound traffic to foreign countries
    • Unexpected process executions

7. Use Firewalls and Intrusion Detection Systems (IDS)

Firewalls and Intrusion Detection/Prevention Systems (IDS/IPS) play a crucial role in blocking, detecting, and mitigating botnet infections. Firewalls help control inbound and outbound traffic, while IDS/IPS solutions analyze network activity for signs of compromise, malicious traffic, or unauthorized access attempts. Without these security measures, botnets can infiltrate networks, communicate with command-and-control (C2) servers, and spread undetected.

Why Firewalls and IDS/IPS Are Essential

  • Firewalls Prevent Unwanted Connections – Properly configured firewalls block unauthorized inbound traffic and restrict outbound connections to malicious domains and IPs.
  • IDS/IPS Detects and Stops Attacks – IDS monitors network traffic for anomalies and known attack patterns, while IPS actively blocks malicious traffic before it reaches its target.
  • Reduces Attack Surface – By blocking high-risk ports, protocols, and geolocations, organizations can significantly minimize exposure to botnet threats.

Best Practices for Using Firewalls and IDS/IPS

  • Deploy Firewalls at Multiple Levels – Use a combination of:
    • Network firewalls (e.g., Palo Alto, Fortinet, Cisco ASA) to filter inbound/outbound traffic
    • Host-based firewalls (e.g., Windows Defender Firewall, iptables) to secure individual endpoints
    • Web Application Firewalls (WAF) (e.g., AWS WAF, Cloudflare, ModSecurity) to protect web applications from botnet-driven attacks
  • Block High-Risk Ports and Services – Restrict or disable especially for any internet facing devices:
  • Use Next-Generation Firewalls (NGFWs) – NGFWs provide deep packet inspection (DPI), threat intelligence integration, and the ability to block known botnet traffic dynamically.
  • Deploy an IDS/IPS System – Popular options include:
    • Zeek (Bro) – Network traffic analysis and anomaly detection
    • Suricata – High-performance intrusion detection/prevention
    • Snort – Open-source IDS with rule-based threat detection
    • Cisco Firepower, Palo Alto Threat Prevention, or Check Point IPS for enterprise solutions
  • Use Geo-Blocking for High-Risk Regions – If your organization does not operate internationally, consider blocking traffic from countries known for botnet operations.

8. Adopt Zero Trust Principles

Traditional security models assume that threats exist outside the network perimeter, but botnets often infiltrate trusted environments through phishing, weak credentials, and unpatched vulnerabilities. The Zero Trust security model eliminates this assumption by enforcing strict access controls and continuous verification for every user, device, and system—regardless of their location.

Why Zero Trust is Crucial for Botnet Defense

  • Prevents Unauthorized Access – Every user and device must be explicitly authenticated and authorized before accessing any resource. This prevents botnets from leveraging compromised credentials.
  • Reduces Attack Surface – By implementing least privilege access, Zero Trust ensures that even if a device is infected, its ability to cause damage is limited.
  • Continuous Monitoring Detects Anomalies – Zero Trust employs real-time behavioral analytics to detect suspicious activity and block potential threats before they escalate.

Best Practices for Implementing Zero Trust

  • Verify Every User and Device – Use strong authentication methods such as:
    • Multi-Factor Authentication (MFA) (especially phishing-resistant methods like FIDO2 keys)
    • Biometric authentication
    • Device attestation (ensuring only trusted devices can connect)
  • Enforce Least Privilege Access – Implement Role-Based Access Control (RBAC) or Attribute-Based Access Control (ABAC) to restrict access to only what is necessary.
  • Monitor and Analyze Behavior Continuously – Deploy User and Entity Behavior Analytics (UEBA) to identify deviations in normal activity, such as:
    • Unusual login times or locations
    • Unrecognized devices attempting to access sensitive systems
    • Rapid access attempts across multiple resources (possible botnet automation)
  • Use Strong Identity and Access Management (IAM) – Implement:
    • Single Sign-On (SSO) with conditional access policies
    • Zero Trust Network Access (ZTNA) solutions (e.g., Cloudflare Access, Zscaler, Palo Alto Prisma Access)
  • Monitor and Log All Access Requests – Maintain audit trails and access logs for compliance and forensic analysis in case of a security incident.

9. Conduct Third-Party Penetration Testing

Even with strong security measures in place, botnets can exploit overlooked vulnerabilities in networks, applications, and IoT devices. Third-party penetration testing (pen testing) is a proactive security assessment that simulates real-world attacks to uncover weaknesses before cybercriminals exploit them. Unlike automated vulnerability scans, pen tests provide deeper insights by identifying chained exploits, misconfigurations, and business logic flaws that could lead to a botnet compromise.

Why Third-Party Penetration Testing is Critical for Botnet Defense

  • Identifies Network Weaknesses – External and internal penetration tests expose unsecured entry points, such as:
    • Open and misconfigured ports (e.g., Telnet, RDP, SMB)
    • Weak authentication mechanisms
    • Poorly segmented networks that allow lateral movement
  • Simulates Real-World Botnet Attacks – Ethical hackers replicate botnet tactics, including:
    • Compromising IoT devices
    • Exfiltrating sensitive data
  • Validates the Effectiveness of Security Controls – Ensures that firewalls, IDS/IPS, Zero Trust policies, and access controls are working as intended.
  • Ensures Compliance with Security Frameworks – Many regulatory and industry standards require regular penetration testing.
  • Engage an Experienced Third-Party Firm – Choose a qualified penetration testing company with expertise in:
    • Network security
    • Cloud infrastructure testing
    • IoT and OT security assessments
  • Review and Act on Findings Promptly – Implement a remediation plan to address discovered vulnerabilities, prioritizing:
    • Critical misconfigurations
    • Unpatched exploits
    • Weak authentication methods
  • Schedule Regular Tests (At Least Annually) – Cyber threats evolve quickly, so annual or biannual penetration tests are recommended. High-risk industries may require quarterly assessments.

Final Thoughts

Implementing these best practices significantly reduces the risk of IoT devices being hijacked into botnets. However, IoT security is an ongoing process that requires continuous monitoring, timely updates, and proactive defenses. To stay ahead of emerging threats, organizations need expert guidance, rigorous security audits, and professional penetration testing.

At Tandem Cyber Solutions LLC, we specialize in vulnerability assessments, penetration testing, and security audits to help organizations identify and eliminate risks before attackers exploit them. Our team works closely with trusted partners to provide compliance consulting, IT management, and end-to-end cybersecurity solutions tailored to your industry’s unique needs.

Take Action Today

Don’t wait until a security breach exposes your network! Partner with Tandem Cyber Solutions LLC to:

  • Assess and secure your IoT infrastructure before threats emerge
  • Strengthen your IT security posture with expert-led audits and penetration testing

Contact us today to schedule a security assessment and take a proactive step toward protecting your organization from cyber threats.

Categories: BotnetsIOT

Keith Small

Keith Small is a retired professional law enforcement officer. Having sharpened an inquisitive mindset over almost three decades in criminal investigations and police work, he is now focused on applying his craft to protecting businesses from cyber criminals. Focusing on analysis and forensics, he relentlessly pursues knowledge in current tactics and cyber-criminal behaviors.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *