Botnets are commonly used in DDoS attacks and are a collection of any type of internet-connected device that an attacker has compromised. Botnets take advantage of the combined computing power to send large amounts of spam, to steal credentials at a high scale, or to spy on people and organizations.