Threat of foreign spies 'big wake up call'