In the realm of cybersecurity, artificial intelligence is both introducing new forms of peril into government systems, as well as arming IT teams with powerful new defenses.