A botnet is a collection of internet-connected gadgets, which may include computers, smart devices, IoT gadgets, that are contaminated and managed by a typical type of malware. Botnets can be used to perform a vast array of destructive activities, including dispersed rejection of service (DDoS) attacks, click fraud, and spam.