What is a botnet?
A botnet is a network of hacked computers and devices that one criminal controls from a distance. Each hacked device is called a bot, or sometimes a zombie. The owners usually have no idea. The person in charge, often called the bot herder, can tell thousands of devices to act at once.
So what is a botnet used for? Mostly for jobs that need a lot of machines. The best known is a DDoS attack (a flood of fake traffic that knocks a website offline). Botnets also send spam, guess passwords and fake clicks on ads.
The word comes from "robot" plus "network". Botnets can be small, with a few hundred devices. They can also be huge, with hundreds of thousands.
How a botnet works
Every botnet has the same basic parts. The steps below show how it fits together.
- Infection. The criminal breaks into a device, such as a laptop, router or security camera, and installs a small hidden program.
- Check-in. The hacked device quietly contacts a control server run by the criminal. This is called command and control, or C2.
- Waiting. The device keeps working as normal for its owner. In the background, it waits for orders.
- Orders. The criminal sends one command, and every bot carries it out at the same time.
- Spreading. Many bots also scan the internet for new devices to infect, so the botnet grows on its own.
Some botnets rent out their power. Other criminals can pay to use them for a few hours. This is why even unskilled attackers can launch large attacks.
How devices get recruited into a botnet
Criminals do not pick victims one by one. They use automated tools that scan the whole internet for easy targets. These are the most common ways in:
- Default and weak passwords. Many routers, cameras and video recorders ship with a simple username and password, such as admin and admin. If no one changes it, a bot can log straight in.
- Unpatched smart devices. IoT devices (Internet of Things, meaning everyday gadgets that connect to the internet) often run old firmware, the built-in software. Known flaws stay open for years if no one installs updates.
- Malware on computers. Malware (harmful software) can arrive through a phishing email, a fake download or a hacked website. Phishing means a fake message that tricks you into clicking or sharing a password.
- Services left open to the internet. Remote login tools, old file sharing and admin pages that anyone can reach are scanned all day long.
Smart devices are a favorite target. They are always on, rarely checked and often forgotten. A camera in a warehouse or a printer in a back office can sit in a botnet for months.
What botnets are used for
A botnet is a tool, and criminals use it for many jobs. Here are the main ones.
| Use | What happens | Who gets hurt |
|---|---|---|
| DDoS attacks | Thousands of bots send traffic to one site at once until it slows down or stops | The site owner and its customers |
| Spam and phishing | Bots send huge volumes of junk and scam email from many addresses | Anyone who gets the email |
| Credential stuffing | Bots try stolen usernames and passwords on many websites to find ones that still work | People who reuse passwords, and the sites they use |
| Ad fraud | Bots load ads and click on them to fake real visitors | Advertisers who pay for fake clicks |
| Hiding attacks | Criminals send their traffic through bots so it looks like it comes from normal homes and offices | Victims who cannot trace the attacker |
| Spreading more malware | Bots download other harmful software, sometimes ransomware | The owner of the hacked device |
Ransomware is software that locks your files and demands payment. Some criminals sell access to hacked computers in a botnet to ransomware gangs. That is one reason a single infected laptop can become a much bigger problem.
To learn more about the most common use, read our guide: what is a DDoS attack.
A real botnet example: Mirai in 2016
The best known botnet is Mirai. It showed the world how dangerous cheap smart devices can be.
According to the US Cybersecurity and Infrastructure Security Agency (CISA), Mirai scanned the internet for IoT devices. It tried a short list of 62 common default usernames and passwords. The devices it took over were mainly home routers, network cameras and digital video recorders.
In September 2016, Mirai hit the website of security journalist Brian Krebs with more than 620 gigabits per second of traffic. CISA said a later Mirai attack on French web host OVH was at least 1.1 terabits per second. Both were among the largest DDoS attacks recorded at the time.
In October 2016, a Mirai attack on Dyn, a company that runs part of the internet's address book (DNS), made many popular websites hard to reach for hours in parts of the US. The Mirai code was also posted online, so other criminals copied it. Botnets based on Mirai are still active today.
Signs a business device is part of a botnet
A bot tries hard to stay hidden, so the signs are often small. Look out for these:
- Computers or devices that are slow, hot or noisy for no clear reason
- Internet that is slow even when few people are using it
- Network traffic at night or on weekends when the office is empty
- A device talking to unknown servers in other countries
- Your email domain or IP address (your internet address) showing up on spam block lists
- Your internet provider warning you about unusual traffic from your connection
- Security software alerts that keep coming back after you clear them
None of these proves a botnet on its own. But two or three together are worth checking.
How to prevent botnet infections
Botnet prevention is mostly good basic security. Work through this list:
- Change every default password on routers, cameras, printers and other devices. Use a long, unique password for each one.
- Turn on automatic updates for computers, phones and devices. Check the maker's website for firmware updates on gadgets that do not update themselves.
- Make a list of connected devices and remove or unplug the ones you no longer use.
- Put smart devices on a separate network from the computers that hold business data.
- Close remote access you do not need. Turn off remote admin on routers and do not leave admin pages open to the internet.
- Use security software on every computer. EDR (software on each computer that spots and stops attacks) catches many bots early.
- Turn on MFA (a second login step, such as a code on your phone) so stolen passwords alone are not enough.
- Watch your network traffic, or have someone watch it for you, so odd behavior gets noticed.
When buying new smart devices, pick brands that give security updates and let you set your own password during setup.
How NextGarrison helps
We help in two ways. Our 24/7 SOC monitoring watches your network and devices for signs of a bot, such as calls to known criminal servers. A SOC is a team that watches your systems for attacks around the clock. If a botnet turns on your website, our DDoS protection service helps keep it online.
Sources

Need a hand with this?
Talk to a senior consultant. We reply within one business day with clear next steps and a scoped quote.
Prefer to just ask? Contact us and a consultant will reply.
Written by
Vince AntonioSecurity writer and consultant, NextGarrison
Vince writes NextGarrison's security news, technical vulnerability write-ups and guides. He covers actively exploited flaws, penetration testing, SOC monitoring and getting ready for SOC 2, ISO 27001 and PCI DSS, in plain English with sources for every claim.
Want the next alert like this one?
New vulnerability alerts as soon as we publish them. Free, no sign-up, works in Feedly, Outlook, Slack and Teams.
