counterspy: a spy who works against enemy espionage
spy: (military) a secret agent hired by a state to obtain information about its enemies or by a business to obtain industrial secrets from competitors