Bio-inspired security analysis for IoT scenarios