Hacking incidents by AI agents are creating a legal minefield. The developers and deployers of rogue bots could be held liable.