Skip to main content
ThreatsSIEMXDRFirewall

What is Botnet?

A botnet is a network of compromised computers, routers or IoT devices that an attacker controls remotely through command-and-control (C2) infrastructure, without the owners noticing. Botnets send spam, launch DDoS attacks, stuff credentials and rent out victims' IP addresses as proxies. From a SOC, an infected host looks like a machine that checks in with a server on a schedule.

Definition

Botnet
A botnet is a network of compromised computers, routers or IoT devices that an attacker controls remotely through command-and-control (C2) infrastructure, without the owners noticing. Botnets send spam, launch DDoS attacks, stuff credentials and rent out victims' IP addresses as proxies. From a SOC, an infected host looks like a machine that checks in with a server on a schedule.

How Botnet Works

NIST's glossary entry, quoted in SP 1800-15B from Kaspersky, explains the name: robot plus network. MITRE ATT&CK looks at it from the attacker's side. Under Acquire Infrastructure: Botnet (T1583.005), adversaries buy, lease or rent a network of compromised systems, for example through a subscription to a booter or stresser service; Compromise Infrastructure: Botnet (T1584.005) covers building one. For a SOC the subject splits in two: your machines being recruited into someone's botnet, and someone's botnet aimed at you. The cases below cover both.

Mirai is the reference case for recruitment. CISA's October 2016 alert (TA16-288A) describes a bot that kept scanning the Internet for IoT devices and logged in with a short list of 62 common default usernames and passwords. That was enough to take over home routers, network cameras and DVRs by the hundreds of thousands. It hit Brian Krebs' site with more than 620 Gbps on 20 September 2016, and a separate attack on the French host OVH reached at least 1.1 Tbps. The source code went public at the end of that month. CISA's advice was concrete: monitor 23/TCP and 2323/TCP for Telnet login attempts, change default passwords, and reboot infected devices (Mirai lives in memory), but only reconnect them once the password is changed, or they are reinfected quickly.

911 S5 was a proxy business. According to the Justice Department's May 2024 announcement, its operator spread malware from 2014 to July 2022 through VPN programs he ran, MaskVPN and DewVPN, and through pay-per-install bundles with pirated software. The infected Windows computers were associated with more than 19 million unique IP addresses, 613,841 of them in the United States, and he sold access to them 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. If a network like this is pointed at you, a login from a residential IP address in the user's own country does not prove the user typed it.

Emotet and the droppers hit by Operation Endgame worked as delivery services. Europol announced on 27 January 2021 that authorities in eight countries had taken control of Emotet's infrastructure, calling it one of the most significant botnets of the past decade. In May 2024 Operation Endgame went after droppers (IcedID, SystemBC, Pikabot, Smokeloader and Bumblebee), with four arrests, more than 100 servers taken down and 2,000 domains brought under law enforcement control. A dropper exists to install other malware on machines it already controls, so a loader detection on one host raises the next question: what was it there to install?

On your own network, a bot gives itself away through how it talks to its controller. The first sign is beaconing: regular check-ins with the same external address. Operators add jitter, a random variation in the interval, but a 60-second beacon with 20% jitter still produces gaps between 48 and 72 seconds, and the spread stays small next to the average. This Defender XDR query measures that ratio for every device and public IP pair over a day:

DeviceNetworkEvents | where Timestamp > ago(1d) and RemoteIPType == "Public" | project Timestamp, DeviceName, RemoteIP, RemotePort | sort by DeviceName asc, RemoteIP asc, Timestamp asc | extend Gap = datetime_diff("second", Timestamp, prev(Timestamp)), Same = DeviceName == prev(DeviceName) and RemoteIP == prev(RemoteIP) | where Same | summarize Beats = count(), AvgGap = avg(Gap), StdGap = stdev(Gap) by DeviceName, RemoteIP, RemotePort | where Beats > 100 and StdGap < AvgGap * 0.2 | order by Beats desc

Software that polls on purpose (update agents, monitoring, chat clients) will show up too. Add InitiatingProcessFileName to the projection and the by clause to see which process is calling out, and check the destination's reputation and registration date before you allowlist it. A C2 channel that holds one long connection open produces no gaps at all, which is why this is one detection among several.

The second sign is in DNS. With a domain generation algorithm (ATT&CK T1568.002), the malware computes a list of domains and tries them until one resolves to the operator's server, so blocking yesterday's C2 domain achieves nothing. Most of the names were never registered, which produces a burst of NXDOMAIN responses from one client. In Splunk, against CIM-mapped DNS data:

tag=dns reply_code=NXDOMAIN earliest=-24h | bin _time span=10m | stats dc(query) AS nx_names BY _time src | where nx_names > 50 | sort - nx_names

Then look at the names that did resolve for that client in the same ten minutes; one of them is probably the live C2. Misconfigured software and DNS suffix search lists also cause NXDOMAIN bursts, but they repeat the same few names, while DGA output is random strings that rarely repeat.

The third sign is fast flux (T1568.001). One domain resolves to a constantly changing set of IP addresses through round-robin records with short TTLs. In the single-flux variant ATT&CK describes, addresses join and leave the A record list with an average lifespan of about five minutes; double flux applies the same churn to the zone's name server records, putting extra hosts in front of the real C2 server as proxies. Counting distinct answers per name finds candidates:

tag=dns record_type=A earliest=-24h | stats dc(answer) AS distinct_ips dc(src) AS clients BY query | where distinct_ips > 30 | sort - distinct_ips

CDNs and large SaaS platforms rotate addresses as well, so the list needs triage. Flux addresses tend to sit in consumer broadband ranges spread across many networks and countries, while a CDN's come from a handful of its own networks.

Botnet in SOC Operations

When a host looks like a bot, start with time. Pull its connection history to the suspect destination as far back as retention allows; the first beacon is closer to the infection date than the alert is. Then scope sideways: the same destination, domain or process hash on any other host, and the same NXDOMAIN pattern from other clients. Contain by isolating the host through EDR and blocking the C2 domain and addresses at the firewall or with a DNS sinkhole, which also stops infected machines you have not found yet from completing their check-in. Before closing, find the way in: a phishing attachment, a cracked installer of the kind 911 S5 travelled in, or a default password on an IoT device. The other direction needs a different reflex. When a botnet is aimed at you, as credential stuffing from thousands of residential addresses or as a DDoS, per-IP rate limits and IP blocklists barely help. Count failures per account and per target application, watch the login success rate, and hand volumetric attacks to whoever runs your upstream DDoS protection.

Free

Practice Botnet in a Real SOC

SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating botnet scenarios with zero consequences, free.

Frequently Asked Questions

How are botnets created?
One infection at a time, then automated. Mirai scanned the Internet and logged into IoT devices with 62 default credentials; 911 S5 travelled inside VPN apps and pirated software bundles; others arrive as malicious email attachments or exploits against exposed services. Once infected, each device contacts the C2 server and waits for instructions. Some attackers skip the building and rent capacity on an existing botnet instead.
What are botnets used for?
DDoS attacks, spam and phishing at volume, credential stuffing spread over thousands of source addresses, residential proxy services that hide criminals' real locations (the 911 S5 business), cryptomining, and installing other malware, which was the job of the droppers taken down in Operation Endgame. ATT&CK also documents attackers renting botnet capacity through booter and stresser services.
How can you tell if a computer is part of a botnet?
Slowness and crashes are weak signals. Network evidence is stronger: regular outbound connections to the same external address with a small, steady spread in the interval, bursts of NXDOMAIN responses for random-looking domains, or traffic to C2 infrastructure listed in threat intelligence. On the endpoint, find the process that opens those connections and how it starts at boot. In a company, EDR and DNS logs answer the question faster than any symptom checklist.
What is the difference between a bot and a botnet?
A bot is one infected device running the malware; the botnet is all of them together, plus the C2 infrastructure that sends them instructions. The difference shows in response. Cleaning one bot fixes one host, while taking a botnet down means seizing or taking control of its C2, which is what law enforcement did with Emotet in 2021 and with 911 S5 in 2024.

Sources

More Threats Terms

Career Path

Threat Hunter Career Guide: Salary & Skills

Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…

Read more
Career Path

Incident Responder Career Guide: Salary & Skills

Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Comparison

SOCSimulator vs Hack The Box: Comparison

Different tools for different career paths. SOCSimulator trains defensive analysts. Hack The Box trains offensive securi…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Tool

Firewall Training Console: SOCSimulator

The Firewall console in SOCSimulator replicates the log analysis experience of enterprise platforms like Palo Alto Netwo…

Read more
Technique

MITRE ATT&CK® Techniques: Detection Training Library

Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.

Read more
Career Path

Cybersecurity Career Paths: 2026 Guide

Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.

Read more
Playbook

SOC Investigation Playbooks: Step-by-Step Guides

Practitioner investigation playbooks with decision trees and real SIEM queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more