Prophage-mediated defense against viral attack and viral counter-defense