A computer code has been designed to hunt and destroy enemy viruses.