How to mitigate common errors that expose devices to security threats.