Over the years Bacteria and Achaea have been using a family of DNA sequences which contain scraps of DNA, left behind by various viruses and phages. This junk is utilized to recognize and destroy similar viruses during future attacks. This mechanism is now being exploited and is the base of the CRISPR-Cas9 technology.