Prime Minister Mark Carney says an unauthorized cyberattack on government networks compromised “some data,” and those affected will be contacted.

Ottawa attributed the activity, reported Monday, to outside hackers using artificial intelligence. The Office of the Chief Information Officer says it detected unauthorized activity over the past several weeks.

Carney said AI-driven attacks are likely to become more common and that systems around the world are vulnerable. Such attacks can cause online platforms to deny service while agencies, including the government, work to address vulnerabilities.

He said the government will continue to prioritize cybersecurity as part of its national security apparatus and work with international allies facing similar issues.