What Is a Botnet? A Simple Guide to How Botnets Work

A botnet is a group of hacked devices that one attacker controls from far away. The term combines “robot” and “network.” NIST, a US standards body, defines a botnet as a collection of compromised, connected devices controlled remotely.

Here is the part that surprises people: the owner of an infected device may not know anything is wrong. Your computer, router, or smart TV could be taking orders from a stranger. But what is a botnet, exactly, and how does it work? This guide explains how botnets operate, what attackers use them for, and what you can do if you suspect one.

How Does a Botnet Work?

Think of a botnet as an army of hijacked devices. Each device is called a bot or a zombie. The attacker who runs the army is called a botmaster or bot-herder.

Here is a simple example. Say an attacker takes over 1,000 devices. With one command, all 1,000 can act at the same time. This is only an example, not a real botnet count.

How Devices Become Infected

Attackers use a few common ways to get botnet malware onto a device. Malware is software designed to harm devices, steal information, spy on users, or gain unauthorized access. These are the main paths:

  • Phishing emails. These are fake messages that trick you into clicking a bad link or opening a bad file.
  • Malicious downloads. A file or app looks normal but carries harmful code.
  • Software vulnerabilities. These are flaws in software that attackers can use to break in.
  • Weak or default passwords. Some devices still use the password they shipped with, and attackers try those first.

How Hackers Control Infected Devices

After a device is infected, it needs orders. Attackers send them through a system called command and control, or C2. It works like a radio channel between the botmaster and the bots.

The bots listen for instructions. Then they carry them out, often without any sign on the screen.

Centralized vs. Peer-to-Peer Botnets

Attackers can set up C2 in two main ways. Security companies such as CrowdStrike describe both.

TypeHow it works
CentralizedBots take orders from a main server. The attacker controls that server.
Peer-to-peer (P2P)Infected devices share commands and information with one another. The network does not depend on one central command server.

What Is a Botnet Used For?

A botnet gives an attacker a lot of power, because many devices can work together. Here are the main uses.

Distributed Denial-of-Service (DDoS) Attacks

A DDoS attack floods a website or server with traffic from many sources. The target gets so busy that real visitors cannot get through. The FBI’s Internet Crime Complaint Center describes a botnet as one way to send that flood.

Spam and Phishing Campaigns

A botnet can send huge amounts of junk email. Some of those messages are phishing emails that try to spread more malware.

Password and Account Theft

Attackers can use botnets to steal login details or test stolen passwords across other websites. The second method is called credential stuffing.

Click Fraud and Fake Traffic

Some botnets create fake clicks and fake visits. This is click fraud. It tricks websites and advertisers into counting traffic that is not real.

Data Theft and Cryptojacking

A botnet can also collect private information from infected devices. Some botnets use the device’s power to mine digital money for the attacker. This is called cryptojacking.

Botnet vs. DDoS Attack: What Is the Difference?

People often mix these two up. The FBI’s Internet Crime Complaint Center treats them as different things.

BotnetDDoS attack
A network of hijacked devices.An attack that floods a server with traffic from many sources.
The attacker controls the devices.The target gets too much traffic.
Can be used for several crimes.One possible use of a botnet.

In short, the botnet is the tool. The DDoS attack is one job the tool can do.

What Are Some Real Botnet Examples?

Mirai Botnet

Mirai shows how ordinary gear can join an attack network. India’s government-run Cyber Swachhta Kendra says Mirai went after printers, video cameras, routers, and smart TVs. It mostly hit devices that used default or hardcoded passwords. A hardcoded password is built into a device’s software or firmware. Users may not be able to change it through normal settings.

On October 21, 2016, the Mirai botnet helped launch a DDoS attack against Dyn, a major DNS provider. DNS is the system that helps your browser find websites. The attack disrupted access to websites such as Twitter, Reddit, Netflix, and Amazon.

A Documented Modern Botnet Operation

On September 18, 2024, the FBI, the NSA, and the Cyber National Mission Force shared a joint advisory. It described a botnet made of hacked routers, firewalls, network-attached storage devices, and other internet-connected gear. Network-attached storage, or NAS, is a device connected to a network that lets people store and share files from one central location.

The advisory says the botnet linked to Integrity Technology had more than 260,000 compromised devices as of June 2024. That number is from June 2024. It is not a count for today.

BADBOX 2.0 Botnet

On June 5, 2025, the FBI published an advisory about BADBOX 2.0. It described a botnet of millions of infected devices. The warning includes streaming devices, digital projectors, vehicle infotainment systems, and digital picture frames. These connected products became part of the network.

What Devices Can Become Part of a Botnet?

Botnets are not just about computers anymore. Many internet-connected devices can become botnet targets if attackers find a security weakness or gain unauthorized access. Here are the main ones:

  • Desktop and laptop computers
  • Smartphones
  • Home routers
  • Security cameras
  • Smart TVs
  • Printers
  • Firewalls and NAS devices

Internet-connected devices like cameras, TVs, and printers are called the Internet of Things, or IoT. Many of them have weak passwords or old built-in software. That makes them easier to break into. One Reddit user in the r/cybersecurity group asked how devices like printers, fridges, and smart TVs can be compromised. Weak passwords, exposed services, and old firmware came up in the replies. Firmware is the built-in software that runs a device.

What Are the Signs of a Botnet Infection?

Security sources list a few warning signs. Any one of them can have another cause.

  • Unusual network activity
  • Unexpected CPU or memory use, meaning the device works hard for no clear reason
  • Slow device performance
  • Traffic leaving your network that you cannot explain
  • A warning from your internet provider about suspicious activity

Watch for unexplained internet usage, unusual outgoing traffic, and unfamiliar network activity. These signs can suggest a problem, but they do not confirm a botnet infection.

One sign does not prove infection. One Reddit user in r/computers suspected a botnet after very slow internet and blocked websites. They later found that their VPN was the problem and marked the issue resolved. Look for a pattern, and rule out simple causes first.

How to Remove Botnet Malware

If you think a device is infected, work through these steps in order.

Step 1: Run a Trusted Security Scan

Scan your computer with a security program you trust. This can find and remove some malware. A clean scan on one device does not prove that every device on your network is clean.

Also take these steps:

  • Avoid logging into banking and other sensitive accounts on a suspected infected device.
  • Change exposed passwords using a clean device.
  • Turn on two-factor authentication.
  • Contact a trusted technician if malware remains.

Step 2: Check Your Router and Connected Devices

Review your router’s connected-device list. Investigate unfamiliar entries, but remember that an unknown device name does not prove an infection. A router, camera, or smart TV can be infected even when your computer is fine.

Step 3: Update Firmware and Change Passwords

Update the firmware on your router and other devices. Then change every default password to a strong, unique one. These steps can close common security weaknesses, but they do not guarantee malware removal. Scan affected computers and follow the device maker’s recovery instructions.

The FBI recommends isolating affected devices, reimaging compromised computers, and resetting exposed credentials.

Do not rely on restarting alone. The Cyber Swachhta Kendra alert on Mirai says a restart can allow reinfection if the weakness is still there.

Step 4: Ask Your ISP for Help

An ISP is your internet provider. If it contacts you, or if problems continue, ask it or a qualified technician for help.

What to Do If Your ISP Reports Botnet Activity

One homeowner on Reddit’s r/HomeNetworking group got this kind of warning. Their ISP said Mirai botnet activity was tied to their IP address. They did not know which device was to blame. Here is a plan for that situation:

  1. Read the alert and note the date and time it gives.
  2. Review every device connected to your router.
  3. Update your router’s firmware.
  4. Change default router and device passwords.
  5. Disconnect any device that looks suspicious.
  6. Contact your ISP or a qualified technician if the problem continues.

How to Protect Yourself From Botnets

Most botnet defense comes down to a few habits. The FBI and NSA advisory and the Mirai alert both point to updates and stronger settings.

  • Keep your operating system and apps up to date.
  • Use strong, unique passwords.
  • Change default passwords on your router and smart devices.
  • Avoid suspicious links and downloads.
  • Keep your router’s firmware current.
  • Remove devices and software you no longer use.

Current Checks

ItemWhat to knowWhen to recheck
FBI/NSA botnet sizeMore than 260,000 compromised devices as of June 2024When new official data appears
FBI BADBOX 2.0 warningThe FBI reported millions of infected devices in its June 5, 2025 advisory.When new official data appears
Government advisoriesNew botnet warnings can appear at any timeEvery 3 months
Router and IoT adviceVendor support and firmware change over timeEvery 6 months

Frequently Asked Questions

What is an example of a botnet?

Mirai is a well-known example. It used infected devices like routers, cameras, printers, and smart TVs. On October 21, 2016, the Mirai botnet helped launch a DDoS attack against Dyn, a major DNS provider.

Are botnets illegal?

Creating a botnet by accessing devices without permission can violate US computer crime laws. Legitimate distributed computing is different because participating devices are not secretly hijacked.

What is the difference between a botnet and a DDoS attack?

A botnet is a network of hijacked devices. A DDoS attack is one thing a botnet can do. It floods a target with traffic from many sources.

Can a smartphone become part of a botnet?

Yes. Smartphones can become part of botnets too. In October 2026, Bitdefender researchers reported Android devices containing preinstalled malware that could turn them into botnet nodes. Updates and careful downloads help lower the risk.

Does slow internet mean I have a botnet?

No. Slow internet has many possible causes. One Reddit user found their slow speeds came from their VPN, not from malware. Slow speed is only one possible sign.

Can antivirus remove botnet malware?

Sometimes. It depends on the malware and on which device is infected. A clean scan on one device does not prove your router and other devices are clean. Update firmware and change passwords too.

You May Find These Interesting:
What Is NFC Technology?
How Does eSIM Work? A Beginner’s Guide