Automated Security Assessment for the Internet of Things