For any reasonably big operation, there would statistically be a lot more opportunities for the secret to “leak”. So this sort of control over complete departments is highly unlikely.
In order to leak that way, the scope of the compromise would have to be known to the bulk of the conspirators. But only <1% of them could have the complete list of all of their spies, and the other country/countries would be pretty dumb to do otherwise.