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

When rogue AI launches a cyberattack, who is legally responsible?
Under U.S. civil and criminal law, unauthorized access to a computer system is an offense.