Counterintelligence as 1 of the primary functions of state security, for decades focused primarily on protecting state secrets, countering infiltration, identifying abroad agents and neutralising spy activities. In classical terms, its task was to defend information and operational resources from penetration of the opponent.