Open this photo in gallery:

Prime Minister Mark Carney spoke with reporters on Parliament Hill about the incident on Tuesday.Adrian Wyld/The Canadian Press

Prime Minister Mark Carney says some government-held data was compromised in a recent cyberattack by hackers using AI-enabled tools.

Mr. Carney said the federal government is “applying remedial actions” and will contact organizations and individuals whose data was accessed.

“We’ll take additional steps in order to tighten the defenses,” Mr. Carney said.

“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,” he added.

Federal government detects AI-assisted cyberattack, warns some public services may go offline

The Office of the Chief Information Officer said on Monday that the government has detected activity within its networks over the past several weeks that appears to be the work of cyber threat actors using AI-enabled tools, and that some websites and services would be taken offline temporarily while security patches are applied.