Former spyware head tells governments to focus on national security when it comes to AI.