The organized systems of individuals and agencies involved in gathering information about the enemy and in countering their espionage activities.