Security updates for IoT devices