A botnet is a network of compromised computers called bots that are controlled by an attacker through an IRC server. The attacker infects computers with malware that allows control, turning them into bots. These bots then recruit other computers to join the botnet. Botnets can be used to conduct DDoS attacks, spread spam and malware, and steal personal information. Defending against botnets requires education, secure systems, firewalls, antivirus software, and law enforcement efforts.