The Canadian government said Monday that it had detected unauthorized activity in its networks apparently involving artificial intelligence tools and warned that some public websites and services may temporarily be taken offline.

The Office of the Chief Information Officer said the activity was detected over the past several weeks. Any shutdowns would be precautionary while security patches are installed, it said.