Canada says it will take some of its public webpages offline. The government said it had detected unauthorised activity and suspected hackers had used artificial intelligence. The federal Office of the Chief Information Officer said on Monday that the interruptions would be a precaution while officials install security patches. It said the government would notify affected people and organisations as soon as possible.

Foreign Minister Anita Anand said on Tuesday that her department learned of the threat on 25 November. The threat involved New Export Controls, Canada’s online system for managing export permits and certificates. Anand said her department’s work to contain the threat had restored all services by 28 November. Writing on X, she said she took the breach seriously and understood the concern it had caused those affected.

Suspected attacks on government institutions have become more frequent as AI tools capable of exploiting security flaws have spread. The Canadian Centre for Cyber Security says more hackers are using AI and automation. The tools can help hackers find weaknesses faster and link several stages of an attack so they can repeat them automatically across many targets.

Recent attacks have hit Ukraine’s air raid alert app and FBI databases in the US. Security researchers have also used AI to find a flaw in a programming language. Several government websites went offline temporarily after the researchers alerted them to the flaw.

UK Prime Minister Andy Burnham said attackers likely used AI in last week’s attack on the Department for Work and Pensions website. He told the House of Commons Liaison Committee that the speed of the attack, the way it unfolded and what investigators later found all pointed to AI involvement. The UK government took its online pensions and benefits systems offline as a precaution, leaving millions of people unable to use them.