Trust and Access Controls in IoT to Avoid Malicious Activity