Towards a Secure Internet of Things