In recent years, we observed a growth of cybersecurity threats, especially due to the ubiquitous of connected and autonomous devices commonly defined as Internet of Things (IoT). These devices, designed to handle basic operations, commonly lacks security measurements. In this paper we want to tackle how we could, by design, apply static and dynamic security solutions for those devices and define security measurements without degrading overall the performance.