How IoT security works?