In such a context, security & privacy represent critical require- ments, which can hinder the large scale adoption and diffusion of IoT applications . Traditional security countermeasures and privacy solutions cannot be directly applied to IoT scenarios due to various reasons, including, but not limited to, energy and com- changes in the operational environ- ment. Accordingly, privacy and security issues should be treated with a high degree of flexibility . Together with the conven- tional security solutions, there is also the need to provide built-in security in the devices themselves (i.e., embedded) in order to pur- sue dynamic prevention, detection, diagnosis, isolation and coun- termeasures against successful breaches .