The project is focusing on building a framework of IoT security. Our main goals are: to model IoT attacks and defences in an emulated IoT networks; and to evaluate the impact of different defence techniques on IoT attacks by using multiple security metrics. \tightlist This framework can create IoT networks with different settings and configurations on IoT devices and network topologies, model malware attacks against the emulated IoT networks and evaluate relevant defences. The simulation software is built with the aim to offer flexibility and adaptability to users. Also, it can be extended with new features and functionalities to simulate recent discovered malware attacks and defences.