Espionage and foreign interference represent "one of the most complex and evolving threats" to Australia's national security, but only two people have been sentenced in the past eight years.