The process of detecting and neutralizing foreign intelligence activities that pose a threat to national security.