The Canadian government said it had detected unauthorized activity in its networks apparently involving artificial intelligence tools