IoT Security: How to Prevent Vulnerabilities in the Connected World