Pluggable And Reprogrammable Architecture To Secure Iot Deployments