Artificial intelligence poses an "unprecedented" threat as foreign governments turn it loose to hack computer networks and critical infrastructure, Australia's cybersecurity agency warned on Tuesday.