Ottawa says unauthorised activity was detected on one of its web-based systems last week, prompting fresh precautions.
Canadian Foreign Minister Anita Anand said she was made aware of a cyber-security threat last week
The Canadian government has warned it will be taking some public-facing webpages offline in response to threats from hackers using artificial intelligence to aid their attacks.
It said it had "detected unauthorised activity" that seemed to be the result of "malicious cyber threat actors using AI-enabled tools".
Foreign Minister Anita Anand said on Tuesday that her department had become aware of a threat on 25 November, and that efforts to "contain and mitigate" it meant all services had been restored three days later.
It is the latest in a series of suspected cyber-attacks on government institutions, which have become more common with the expansion of AI able to exploit weaknesses in IT systems.
Why Canada is embracing AI data centres while the US pushes back
DWP cyber attack likely carried out using AI, says Burnham
The Canadian Office of the Chief Information Officer stressed in its statement on Monday that the taking of any government webpages offline was "as a precaution" while security patches were applied.
Any affected organisations or individuals would be notified "as quickly as possible", it added.
Anand said the initial threat had involved Canada's New Export Controls web-based system - a service that manages export permits and certificates.
She wrote on X: "I am taking this cyber breach extremely seriously, recognising the concern it causes for those affected."
The Canadian Centre for Cyber Security says that an increasing number of hackers are using automated and AI-enabled tools to carry out malicious activity.
These tools can link, automate and repeat multiple stages of an attack across many targets, and they can help threat actors find vulnerabilities in systems more quickly.
Canada's Prime Minister Mark Carney warned on Tuesday that attacks of this nature will become "more prevalent".
"This type of threat to our national security, to our security, is only going to increase because of the developments in AI. It's something that we're working on, of course, internally within Canada across agencies," Carney told reporters.
Attacks like this have been observed in other countries, Canada's Defence Minister David McGuinty said.
"This is not just a Canadian phenomenon. This has been happening in the United States. It's been happening in Europe, and it is part and parcel of seemingly a new approach to the utilization of AI, which is disturbing," McGuinty said.
Canada's announcement comes after UK Prime Minister Andy Burnham said a separate cyber-attack on the Department for Work and Pensions website last week had likely been carried out using AI tools.
Burnham told the House of Commons Liaison Committee the "speed and nature of the activity" and subsequent investigations suggested that AI aided the attack.
It left millions of people without access to the online pensions and benefits systems after the government was forced to take the platforms offline as a precautionary measure.
Hackers have also recently launched successful attacks on Ukraine's air raid alert app and FBI databases in the US, while several government websites were temporarily taken offline after cyber-security researchers alerted them to a flaw with a programming language they had found using AI.
