Securing the IoT: Keeping planes in the air and the lights on at home