Google says hackers have used AI to discover and exploit a previously unknown software vulnerability for the first time.