s.478.1(1) Criminal Code—unauthorised access to, or modification of, restricted data;
s.474.17 Criminal Code—using a carriage service to menace, harass or cause offence
The AI knew it was doing this illegally. OpenAI is owner of the AI. Therefore they are liable.