By hacking viruses, scientists are unlocking ways to cure illnesses and battle threats once thought unstoppable.