Preventing the next persistent attack on IoT and connected devices