Open this photo in gallery:

Prime Minister Mark Carney said Tuesday that the threat of AI-powered cyberattacks will only increase.Adrian Wyld/The Canadian Press

Hours after the federal government attributed unauthorized activity in its networks to outside hackers using artificial intelligence, Prime Minister Mark Carney says that such attacks will only become more common.

Carney says the attack, first reported Monday, did compromise “some data” and those affected will be contacted.

The Office of the Chief Information Officer said Monday the unauthorized activity has been detected over the past several weeks.

More to come