I'm no expert on Tor, but IIRC the story is precisely that spies operating from hostile territory would have a red target painted on them from using encrypted communications...unless a whole lot of people in that hostile territory were also using encrypted communications. This is why Tor was released open source and wide adoption was encouraged.