The process of detecting and countering efforts by foreign intelligence services to gain access to sensitive information.