Self-Protection Through Dynamic Reconfigurations