Automated detection and containment of worms and viruses into heterogeneous networks: a simple network immune system