Google claims to have thwarted a significant cyberattack by state-sponsored hackers using an AI-developed zero-day exploit.