Security Breaches and Threat Prevention in the Internet of Things