A botnet is a large group of computers or connected devices that have been infected with malicious software and can be controlled remotely, as one network, by an attacker.
Botnets are built with malware, so this page sits under Malware for Beginners. It is written for newcomers, students, career changers and managers. It explains how a botnet is put together and controlled, a worked example, common mistakes and first steps to keep your own devices out of one. It stays at concept level and focuses on spotting, preventing and responding.
By the end of this guide you will be able to:
- Explain what a botnet is and how it is controlled.
- Identify the kinds of devices most often recruited into botnets.
- Describe simple steps that make your devices harder to recruit.
Key takeaways
- A botnet is many infected devices acting together. MITRE ATT&CK describes it as a network of compromised systems that can be instructed to perform coordinated tasks.[1]
- Neglected devices are the usual recruits. Routers, cameras, storage boxes and other internet-connected devices with old software or default passwords are common targets.[2]
- Botnets do more than flood websites. They are used for distributed denial of service (DDoS) attacks, large-scale phishing and hiding an attacker's real location.[1][2]
- Basic hygiene keeps devices out. Updating firmware, changing default passwords, turning off unused features and replacing unsupported kit reduce the chance of recruitment.[2]
What it is, in plain English
The word botnet joins "robot" and "network". Each infected device is a bot (sometimes called a zombie). The bots stay in touch with a control system called command and control (C2), which the attacker uses to send instructions and receive information back. MITRE ATT&CK tracks this kind of communication as tactic TA0011.[3] The person or group running the botnet is often called a bot herder.
An everyday comparison: imagine thousands of unattended radios that someone has secretly rewired so they all tune in to one hidden station. When the station gives an order, every radio acts at once. Where the analogy breaks down: the owners of the infected devices usually notice nothing, because a bot can keep doing its normal job, such as recording camera footage, while also doing the attacker's work in the background.
Why it matters: botnets give attackers huge combined computing power and many internet addresses spread around the world. That makes their attacks larger and harder to block by source alone. If your own devices are recruited, your network becomes part of someone else's attack, and the botnet may give the attacker a way into your network too.
How it works, step by step
At concept level, a botnet usually grows and operates like this:
- Find weak devices. Automated scanning looks for internet-connected devices with known software flaws or default passwords.[2]
- Infect them. A weak device is broken into and made to download and run the botnet's malware.[2]
- Check in. The malware connects the device to the command and control server and reports information about it, and the device joins the botnet.[2]
- Wait for orders. The bot sits quietly until it receives instructions.
- Act together. On command, many bots perform the same task at once, such as sending traffic, sending spam or relaying the attacker's connections.[1]
Some attackers build their own botnet; others rent access to an existing one, or take over someone else's by redirecting its bots to their own C2 servers.[1]
| What botnets are used for | In plain words |
|---|---|
| Distributed denial of service (DDoS) | Many bots send traffic at a target at once to overwhelm it and make it unavailable.[1][4] |
| Large-scale phishing and spam | Bots send huge volumes of deceptive messages from many addresses.[1] |
| Hiding the attacker | Bots relay the attacker's traffic so it appears to come from ordinary homes and businesses.[1][2] |
A real-world scale check: in September 2024 the FBI, the US Cyber National Mission Force and the NSA reported a botnet of over 260,000 compromised devices as of June 2024, made up of home and small office routers, firewalls, network storage and devices such as webcams and IP cameras.[2] The infected devices ran a variant of Mirai, a well-known family of malware that targets connected devices.[2]
A worked example
Oakfield Veterinary Clinic is a fictional single-site clinic. Years ago a contractor installed four security cameras and a video recorder, then left. Nobody changed the recorder's default password, and its remote viewing feature was left open to the internet.
The clinic's internet provider contacts the practice manager, Ellie, to say that a device on the clinic's connection appears to be sending unusual traffic linked to a botnet. Ellie asks the clinic's IT support company for help. Their technician, Ravi, checks the router and finds the video recorder is sending large amounts of outbound traffic at night.
Ravi disconnects the recorder from the internet, restarts it and applies the latest firmware from the manufacturer's website. He sets a strong, unique password, turns off remote viewing and Universal Plug and Play (UPnP), and moves the cameras onto a separate network segment that cannot reach the clinic's practice management system. He notes that a restart can clear some malware but does not fix the weakness that let it in, which is why the update and password change matter.[2]
The recorder is near the end of its support life, so Ellie adds a replacement to next year's budget. The provider confirms the unusual traffic has stopped. The clinic also asks Ravi to list every other connected device on the premises.
Common mistakes
| Mistake | What to do instead |
|---|---|
| Leaving default passwords on routers, cameras and recorders | Change them to strong, unique passwords when the device is installed.[2] |
| Never updating device firmware | Apply updates promptly, using automatic updates from trusted sources where available.[2] |
| Leaving remote management, file sharing and UPnP switched on "just in case" | Turn off features you do not need.[2] |
| Putting connected devices on the same network as business systems | Segment the network so devices only reach what they need.[2] |
| Keeping devices the manufacturer no longer supports | Replace end-of-life equipment with supported devices.[2] |
| Watching only incoming traffic | Monitor for unusual outbound traffic volumes too, using firewall or intrusion detection logs.[2] |
Key terms
- Botnet
- A collection of compromised devices that an attacker can remotely coordinate to carry out an attack.
- Command and control (C2)
- The channel and systems an attacker uses to send instructions to compromised devices and receive data back, tracked in ATT&CK as tactic TA0011.
- Bot herder
- An operator who controls a fleet of compromised devices or automated accounts.
- IoT device
- A network-connected physical device, such as a camera or sensor, that collects, sends or acts on data, often with limited built-in security.
- Default password
- The password a manufacturer ships with a device before the owner sets their own.
- Sinkholing
- Redirecting malicious traffic, such as bots contacting their C2 server, to a destination defenders control.
First steps
Three actions for this week:
- Walk round your office and list every connected device: routers, cameras, printers, storage boxes, smart TVs and door entry systems.
- For each device, check that the default password has been changed and the firmware is current.
- Ask whoever runs your network whether outbound traffic is logged and who would notice a sudden increase.
Checklist
Checklist:
- Connected devices are listed with an owner.
- No device still uses its default password.
- Firmware updates are applied, automatically where possible.
- Unused features such as UPnP and remote management are off.
- Connected devices sit on a separate network segment from business systems.
- Unsupported devices have a replacement date.
- Outbound traffic is monitored for unusual volumes.
Suggested learning pathway
- Malware for Beginners: the umbrella topic botnets belong to.
- IoT Security for Beginners: securing the devices botnets most often recruit.
- DDoS Attacks for Beginners: the attack botnets are best known for.
- Botnets Guide: the practitioner guide to detection, hardening and framework mapping.
- Mirai and IoT Botnet Families Guide: the malware family behind many device botnets.
Standards and references
- Compromise Infrastructure: Botnet, Technique T1584.005 (and Acquire Infrastructure: Botnet, T1583.005). MITRE ATT&CK Enterprise, version 20. https://attack.mitre.org/techniques/T1584/005/, accessed 27 Nov 2026.
- People's Republic of China-Linked Actors Compromise Routers and IoT Devices for Botnet Operations, joint cybersecurity advisory. FBI, Cyber National Mission Force and NSA with partners, 18 September 2024. https://www.ic3.gov/CSA/2024/240918.pdf, accessed 27 Nov 2026.
- Command and Control, Tactic TA0011. MITRE ATT&CK Enterprise, version 20. https://attack.mitre.org/tactics/TA0011/, accessed 27 Nov 2026.
- Network Denial of Service, Technique T1498. MITRE ATT&CK Enterprise, version 20. https://attack.mitre.org/techniques/T1498/, accessed 27 Nov 2026.
Related NHI Mgmt Group resources: Botnets Guide · IoT Security for Beginners · Mirai and IoT Botnet Families Guide