Canada spy service warns of foreign attacks on artificial intelligence