Botnets and How Devices Get Recruited
See how everyday routers, cameras and PCs are drafted into botnets, what they are used for and how to keep yours out.
Key takeaways
- A botnet is many compromised devices controlled remotely and used together for attacks, spam, fraud or as relays.
- Routers, cameras, video recorders and other neglected smart devices are attractive because they are always on and rarely updated.
- The usual ways in are default or weak passwords, unpatched firmware, exposed management services and malware run on computers or phones.
- A compromised device often works normally, so prevention matters more than waiting for symptoms.
- Changing default passwords, updating firmware, turning off remote access and retiring unsupported hardware block most recruitment.
A botnet is a collection of internet-connected devices that have been compromised and now take orders from someone other than their owners. Each member is a "bot". Individually a home router or camera is unimpressive, but many thousands acting together can knock websites offline, send floods of spam or disguise criminal traffic as ordinary household browsing.
Devices are recruited mostly by automation. Programs scan the internet around the clock for gadgets with default passwords or unpatched flaws, and computers join when their owners run infected software. You can usually stay out with a few habits that take an evening to set up.
The parts of a botnet
Three roles make up the system. The bots are the infected devices. The operator, sometimes called a botmaster or herder, decides what they do. The command and control channel, often shortened to C2, carries instructions between them.
In the simplest design, every bot connects out to a central server and asks for work. That is easy to build and easy to disrupt: seize the server or its domain name and the bots lose their leader. Operators respond with backups.
- Rotating domain names. A domain generation algorithm produces a changing list of names from a shared recipe, so defenders cannot block just one.
- Peer-to-peer control. Bots pass instructions among themselves, with no single server to take down.
- Hiding in popular services. Instructions are placed on ordinary platforms whose traffic few networks block.
Because bots connect outward, a typical home router's refusal of unsolicited inbound connections does nothing to stop an already infected device from calling home.
How recruitment happens
The most mechanical route is scanning. A bot probes random addresses looking for a login prompt or a vulnerable service. When it finds one, it tries a short list of factory usernames and passwords, or sends a request that exploits a known flaw, then installs a copy of itself. The new bot starts scanning too.
The Mirai botnet of 2016 made this method famous. It took over large numbers of cameras, recorders and routers using default credentials and used them in very large denial-of-service attacks. Its source code was published, and many descendants have followed.
Other routes include:
- Malware on computers, delivered through phishing, pirated software or fake updates
- Unpatched flaws in internet-facing devices, including business equipment such as VPN appliances and firewalls
- Preinstalled malicious software on some very cheap, uncertified smart devices
- "Free" apps that quietly sell use of your connection, sometimes with consent buried in the terms
- Compromised websites and servers, often through outdated plugins
Why smart devices make such good bots
Embedded devices often run a small version of Linux, stay powered all day and have a decent upload connection. Nobody watches their screens because they have none. Many receive firmware updates rarely or never, and some lose support while still working perfectly.
Weak defaults compound this. Older products shipped with the same administrator password on every unit, left management services listening, or opened ports on the router automatically using UPnP (Universal Plug and Play). Newer rules in several places and better vendor practice have pushed toward unique passwords, but plenty of older hardware remains in service.
Some malware lives only in memory on these devices, so a reboot removes it. If the weakness remains, the device can be reinfected quickly.
What botnets are used for
- Denial-of-service attacks. Bots flood a target until legitimate users cannot get through. See DDoS attacks explained.
- Spam and phishing. Mail sent from many addresses is harder to block.
- Residential proxies. Customers pay to route traffic through your connection so it looks like it came from a normal household. This can leave your address associated with other people's activity.
- Credential attacks. Spreading login attempts across many addresses defeats simple per-address limits, which helps credential stuffing.
- Ad and click fraud. Fake visits and clicks earn advertising money.
- Cryptomining on borrowed processors.
- Delivering other malware, including data thieves and ransomware, to machines the operator already controls.
Access is frequently rented, so the same device may serve different customers over time.
Signs a device may be enrolled
Symptoms can be subtle or absent. Possible clues include unexplained upload traffic, a router that runs hot or reboots, a connection that slows when nobody is doing much, changed router settings such as unfamiliar DNS servers, new port forwarding rules, websites showing you more CAPTCHA challenges than usual, or a notice from your internet provider.
You can look at the router's connected-device list and, where offered, per-device traffic. On a computer, netstat -ano in Windows or ss -tunap on Linux lists open connections with the owning process (some details need administrator rights). The guide to netstat and ss explains the output. A long list is normal; look for processes you cannot account for.
A quick audit of your own network
You can find most weak spots in one sitting, using only your own equipment.
Start with the router's list of connected devices and name each one. Anything you can't identify deserves a look; the first part of a hardware (MAC) address often points to the manufacturer, which the MAC assignment lookup can show. Many phones randomize this address, so an unknown entry is sometimes just your own handset.
Next, open the port forwarding and UPnP pages. Each forwarding rule is a door from the internet to something inside. If you don't remember why it exists, remove it and see whether anything you care about stops working.
Then check the DNS server settings against what you or your provider intended, review which administrator features are reachable from outside, and note the firmware version of the router and each smart device. For anything that can't be updated, decide whether to isolate it or retire it.
Finally, change the Wi-Fi password if it has been shared widely over the years, and put visitors on the guest network afterward. Repeat the review a couple of times a year, or whenever you add new hardware.
Keeping your devices out
- Change default passwords on the router and every smart device, using a unique one for each.
- Update firmware, and enable automatic updates where offered. Here is how to update router firmware.
- Turn off remote administration from the internet unless you truly need it.
- Disable UPnP if nothing important depends on it, and delete port forwarding rules you no longer use.
- Put smart devices on a separate network, such as a guest or IoT network, away from computers with sensitive files.
- Replace unsupported hardware. A device that no longer gets security fixes is a standing risk.
- Buy carefully. Prefer vendors that state how long they provide updates, and be wary of unbranded streaming boxes that promise free premium content.
- Keep computers and phones updated and install software only from reliable sources.
More device-by-device advice is in securing smart home devices.
If you find one
Disconnect the suspect device. Factory-reset it, update the firmware before putting it back to ordinary use if the process allows, set a new unique password and disable exposed features. If the router itself was compromised, reset it, update it and reconfigure from scratch without restoring an old settings file you can't trust. If no update exists for a known flaw, recycle it.
For computers, run a full scan and consider a clean reinstall. Then change passwords used on that machine.
How botnets get taken down
Disrupting a botnet usually takes cooperation among researchers, hosting providers, domain registries, internet providers and law enforcement, often with court orders. They may seize control servers, redirect bot traffic to a harmless "sinkhole" and notify owners of infected addresses. This can cripple a network, but the vulnerable devices are still out there until someone patches or replaces them, which is the part only owners can do.
Notices from an internet provider deserve attention. They usually mean that traffic from your address matched known botnet behavior. Confirm the message is genuine by contacting the provider through a number or account page you already trust, since fake infection warnings are a common scam, then ask what was seen and when.
Common questions
Could I be held responsible if my device attacked someone?
Rules differ by country, and an owner of a hijacked device is generally a victim. Still, your connection may be blocked or flagged, so fix a known infection promptly. Ask a lawyer about any specific legal concern.
Does my router's firewall prevent this?
It helps against unsolicited inbound connections. It doesn't protect a service you have deliberately or automatically exposed, a flaw in the router's own internet-facing software, or malware that is already inside and connecting outward.