If a device is connected to the internet, it’s vulnerable but there are steps you can take against hacking.