A botnet is a network of computers, routers or internet-connected devices infected with malware and controlled remotely by an attacker, known as a bot herder, through command-and-control infrastructure. The owners usually do not know their devices are infected. Botnets launch distributed denial-of-service attacks, send spam, steal credentials, mine cryptocurrency and rent out access to other criminals.
Key takeaways
- A botnet is a network of infected devices controlled remotely; one infected device is a bot, the whole network is the botnet.
- Botnets spread through default passwords, unpatched flaws and phishing, then take orders from command-and-control servers.
- Change default passwords, patch devices, watch outbound traffic and segment networks to stop recruitment and limit damage.
Your router, your camera or your old laptop could be working for someone else right now — sending spam, flooding a website or mining cryptocurrency — while you notice nothing at all. That is what a botnet is.
What is a botnet?
A botnet is a network of computers, routers or internet-connected devices infected with malware and controlled remotely by an attacker. The word comes from robot plus network, and each infected device is called a bot or zombie.
The owners usually do not know their devices are infected. The malware runs quietly, waits for instructions, and uses only enough resources to avoid drawing attention. That stealth is what makes botnets so hard to count and so hard to stop.
CISA describes a botnet as a group of hijacked internet-connected devices used to carry out large-scale attacks. NIST uses the same idea: a network of computers taken over after infection with Trojan-style malware and managed remotely as bots.
A botnet is not the same as a single virus. A virus may damage one machine. A botnet turns many machines into one coordinated tool that can be reused for different attacks, day after day.
| Term | What it means | Example |
|---|---|---|
| Bot | One infected device | A home router with default password |
| Botnet | The whole network of bots | Thousands of routers and cameras |
| Bot herder | The attacker who controls it | The operator sending commands |
| Command and control (C2) | The channel for instructions | A server, domain or peer network |
| DDoS attack | Flooding a target until it fails | Bots sending traffic at once |
How does a botnet work?
A botnet works in four stages: infect, connect, command and grow. Attackers first find weak devices, then infect them, then connect them to command-and-control infrastructure, and then use them to attack or to infect more devices.
Command and control, often shortened to C2, is the channel the operator uses to send instructions. It can be a central server, a set of domains, or a peer-to-peer network where bots pass messages to each other. If defenders take down one C2 server, a well-built botnet can switch to another.
Some botnets use a domain generation algorithm, known as DGA. The malware computes a list of domains and tries them until one resolves to the operator server. That makes blocking a single domain ineffective, because tomorrow list is different.
Because the operator can send new instructions to every bot, the same network can be used for a denial-of-service attack one day, spam the next, and credential theft the week after. That flexibility is why botnets are rented out as a service.
How do devices get infected?
Most botnet infections use one of three routes: a default password, an unpatched flaw, or a trick that gets the owner to install malware. The route depends on the device, but the pattern is the same — find the easy way in, then spread.
- Default passwords: routers, cameras and recorders often ship with a known login such as admin and admin. If you never change it, anyone who finds the device online can log in.
- Unpatched flaws: old software, old firmware and open services give attackers a way in without a password. Patching closes those doors.
- Phishing and malicious downloads: a fake update, a pirated program or an email attachment installs a Trojan that turns the computer into a bot.
- Drive-by and supply-chain routes: a compromised website or a bundled installer can infect many devices at once.
Mirai, the best-known IoT botnet, used the first route. CISA alert TA16-288A says the Mirai bot scanned the internet for IoT devices and logged in with a short list of 62 common default usernames and passwords, as described in the CISA Mirai alert. A reboot cleared the bot from memory, but the device was reinfected quickly if the password stayed the same.
What is a botnet attack?
A botnet attack is any attack carried out by a botnet. The most famous is a distributed denial-of-service, or DDoS, attack: many bots send traffic or requests to one target at the same time, until real users cannot reach it.
CISA, the FBI and MS-ISAC group DDoS attacks into volumetric, protocol and application attacks. Volumetric attacks flood bandwidth, protocol attacks exhaust server resources, and application attacks flood a specific app or login page. A large botnet can do all three.
Botnets do more than DDoS. They send spam and phishing at scale, stuff stolen usernames and passwords into login pages, steal data, mine cryptocurrency using your power, and rent out infected devices as proxies so other criminals can hide their traffic.
Some botnets are sold as attack-for-hire services, sometimes called booters or stressers. MITRE ATT&CK notes that adversaries can buy, lease or rent a botnet under technique T1583.005. That lets an unskilled buyer launch a large attack for a small fee.
What are the main types of botnets?
Botnets differ in how they are controlled and what they are built to do. The control model matters for defenders, because it decides where to break the chain.
| Type | How it is controlled | Strength | Weakness |
|---|---|---|---|
| Centralized | One or a few C2 servers | Fast, simple orders | Takedown of the server breaks it |
| Peer-to-peer | Bots pass orders to each other | Hard to take down | Slower, more complex |
| Hybrid | Central servers plus peer links | Resilient and fast | More infrastructure to run |
| IoT botnet | Routers, cameras, recorders | Huge numbers, always on | Weak passwords, easy to find |
| Loader / dropper | Installs other malware | Delivers ransomware or stealers | Depends on the payload |
Loader botnets deserve special attention. They exist to install other malware on machines they already control. Finding a loader on one host should prompt the question: what was it there to install next?
What are real botnet cases?
Three documented cases show the scale and the range: Mirai, 911 S5 and Emotet. Each was taken down or disrupted, and each taught defenders a different lesson.
Mirai: the IoT botnet that took sites offline
In September 2016, a Mirai botnet launched a DDoS attack of more than 620 Gbps against the Krebs on Security website, according to CISA alert TA16-288A. The next month, Mirai-related traffic helped take down Dyn, a DNS provider, and with it many popular websites for hours.
Mirai targeted home routers, cameras and digital video recorders. Its source code was published online at the end of September 2016, which let many copycat operators build their own variants. Mirai variants still spread today.
911 S5: 19 million IP addresses sold as proxies
According to the US Department of Justice, the 911 S5 operator spread malware from 2014 to July 2022 through VPN programs and pay-per-install bundles with pirated software. Infected Windows computers were linked to more than 19 million unique IP addresses, including 613,841 in the United States.
He sold access to those computers as a residential proxy service, taking in about $99 million from 2018 to July 2022. The operation seized 23 domains and more than 70 servers. The lesson: a botnet can be a business, not just an attack tool.
Emotet and Operation Endgame
Europol said in January 2021 that authorities in eight countries had taken control of Emotet infrastructure, calling it one of the most significant botnets of the past decade. Emotet spread by email and delivered other malware, including ransomware.
In May 2024, Operation Endgame targeted droppers including IcedID, SystemBC, Pikabot, Smokeloader and Bumblebee, with four arrests, more than 100 servers taken down and 2,000 domains brought under law enforcement control. Takedowns work, but new botnets replace old ones.
How do you know if a device is in a botnet?
Infected devices often show small signs, not a dramatic crash. Look for the pattern, not one symptom on its own.
- Slow performance or high data use with no clear cause, especially at night.
- Strange outbound connections in router or firewall logs, or regular check-ins to unknown addresses.
- Security warnings from your antivirus, browser or email provider.
- Accounts locked or password reset emails you did not request.
- A hot, busy router or lights flashing heavily when nobody is using the network.
For a business, the clearest sign is beaconing: infected hosts checking in at regular intervals with the same external address, or DNS requests for many odd domains. That pattern is worth investigating even if no alert fires.
If you suspect a device, do not just reboot it and hope. Mirai lived in memory, so a reboot cleared it — but only until the device was reinfected. Change the password and patch before you reconnect it.
How do you stop and prevent botnets?
Prevention is mostly hygiene, and it works. CISA recommends installing and maintaining antivirus software, configuring a firewall, and evaluating device security settings. The steps below turn that advice into a routine.
- Change every default password on routers, cameras, printers and smart devices, to a long unique password.
- Patch promptly: update routers, cameras, computers and phones when the maker offers an update.
- Turn off UPnP on your router unless something truly needs it, and disable Telnet and remote admin where you can.
- Segment your network: put IoT devices on a separate network from computers and work data.
- Watch outbound traffic: block known bad domains, and investigate regular beaconing.
- Use MFA and a password manager so a stolen password alone does not give an attacker in.
- Back up important data so a ransomware payload delivered by a botnet cannot hold you hostage.
For a business, add DDoS preparation: rate limiting, a content delivery network or DDoS mitigation service, and a rehearsed response plan. Our guide to securing your Wi-Fi covers router settings that help here.
Our small business cybersecurity checklist covers patching and backups for the same risks.
What should you do if you are infected?
Act in order: isolate, clean, change passwords, then reconnect. Do not reconnect a cleaned device with the same weak password, or it will be reinfected.
- Disconnect the device from the network so it cannot attack others or receive new orders.
- Run a full malware scan or reset the device to factory settings if you cannot trust the scan.
- Change passwords for the device and for any accounts used on it, from a clean device.
- Update firmware and software before you reconnect it.
- Check for new accounts, forwarding rules or unknown devices on your accounts and router.
- Tell your IT team or ISP if the infection spread, or if you run a business network.
Report botnet activity to your ISP and, in the US, to the FBI Internet Crime Complaint Center if money was lost. Reporting helps takedowns, even if your own device is now clean.
The bottom line
A botnet is not a distant threat. It is built from ordinary devices with default passwords and old software, and it is rented out to anyone willing to pay. The same hygiene that stops it — strong unique passwords, prompt patching and network segmentation — also stops most other malware.
Start with your router and your cameras today, then check the rest of your network. You can see what your connection looks like from the outside with the free what-is-my-IP tool.
Frequently asked questions
What is a botnet in simple terms?
A botnet is a group of hacked devices that all obey one remote controller. The devices may be computers, routers, cameras or smart devices, and their owners usually do not know they are infected.
What is the difference between a bot and a botnet?
A bot is one infected device. A botnet is the whole network of bots under one controller. The power of a botnet comes from numbers: thousands of devices acting at once.
How does a botnet work?
Attackers infect devices, connect them to command-and-control servers, and send instructions through that channel. The bots then scan for new victims, flood a target, send spam or steal data, all on command.
What is a botnet attack?
A botnet attack is any attack carried out by a botnet. The most common is a distributed denial-of-service attack, where many bots flood a website or service until real users cannot reach it. Botnets also send spam, steal logins and mine cryptocurrency.
How do I know if my device is in a botnet?
Signs include slow performance, high data use, strange outbound connections, a hot or busy router, and security warnings. Home users should check router logs and run a malware scan; businesses should watch for regular beaconing to unknown addresses.
Can a botnet infect my phone?
Yes. Phones can be infected through malicious apps, phishing links and unpatched flaws. Keep your phone updated, install apps only from official stores, and remove apps you do not recognize.
Are botnets illegal?
Yes. Building or using a botnet to attack systems, steal data or send spam is a crime in most countries, and operators have received long prison sentences. Renting a botnet to attack someone is also illegal.
How do I remove a botnet infection?
Disconnect the device, run a full malware scan or reset it to factory settings, change all passwords, and update its software before reconnecting it. For a router or camera, change the default password first, or it may be reinfected quickly.
Sources
- CISA — Heightened DDoS Threat Posed by Mirai and Other Botnets (TA16-288A)
- CISA — Understanding Denial-of-Service Attacks
- MITRE ATT&CK — Technique T1583.005: Acquire Infrastructure: Botnet
- MITRE ATT&CK — Technique T1498: Network Denial of Service
- US Department of Justice — 911 S5 Botnet Dismantled
- Europol — Emotet Takedown
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against CISA alert TA16-288A on Mirai, CISA denial-of-service guidance, MITRE ATT&CK botnet and denial-of-service techniques, and US Department of Justice and Europol takedown announcements.
How we write and fact-check →