The Mirai botnet exploited poorly secured IoT devices to perform the largest ever distributed denial-of-service attack.