Just as infectious diseases spread from one individual to another, botnets propagate by exploiting vulnerabilities in computer systems. The infection can spread through various vectors such as phishing emails, malware downloads, or even through network vulnerabilities.