When rogue AI launches a cyberattack, who is legally responsible?

Cyberattacks carried out by two OpenAI artificial intelligence models acting autonomously raise a novel legal question: Who is responsible when AI goes rogue?