The greatest AI-driven cyber threat is its ability to find weak spots in digital spaces, the CTO of the National Cyber Security Centre has said.