Bacteria use enzymes to defend against infection