Botnets and Command-and-Control
You'll learn how malware authors coordinate armies of compromised computers into powerful, centralized attack networks.
What Is a Botnet?
A botnet is a network of infected computers (called "bots" or "zombies") controlled remotely by an attacker. Think of it like a puppet master controlling hundreds or thousands of marionettes simultaneously—each compromised system waits for instructions from a central authority.
The key component is the Command-and-Control (C2 or C&C) infrastructure: the communication channel and servers that allow attackers to issue commands to all infected machines at once.
How Botnets Operate
Once malware like a backdoor or RAT (which you learned earlier) successfully infects a system, it "phones home" to a C2 server. The attacker then has a loyal army ready to execute commands:
- Launch Distributed Denial-of-Service (DDoS) attacks by flooding targets with traffic from thousands of sources
- Send massive spam email campaigns to distribute phishing or malware
- Mine cryptocurrency using victims' computing resources
- Steal credentials or sensitive data at scale
- Host illegal content or launch further attacks
C2 Communication Patterns
Attackers use various techniques to maintain control:
- Centralized C2: All bots connect to a single server (easy to disrupt if discovered)
- P2P botnets: Bots communicate peer-to-peer, making takedown harder
- Domain generation algorithms (DGA): Bots generate new domain names daily to find C2 servers
- Encrypted channels: Hide commands in HTTPS or DNS traffic
Botnets represent the industrialization of cybercrime—turning individual infections into coordinated, large-scale operations.
Key Takeaway: Botnets transform scattered compromised systems into unified attack platforms controlled via Command-and-Control infrastructure, enabling mass-scale malicious activities like DDoS attacks and spam campaigns.