Military organizations have their own counterintelligence forces, capable of conducting protective operations both at home and when deployed abroad.
The term counter-espionage is really specific to countering HUMINT, but, since virtually all offensive counterintelligence involves exploiting human sources, the term "offensive counterintelligence" is used here to avoid some ambiguous phrasing.