National-security states, also called authoritarian or, if sufficiently repressive, totalitarian states, always have to make it a criminal offense to reveal their secrets and ruthlessly persecute those who violate those laws. From Jacob G. Hornberger at fff.org:
Inadvertently released federal documents reveal that U.S. officials have apparently secured a secret indictment against Julian Assange, the head of WikiLeaks who released secret information about the internal workings of the U.S. national-security establishment. In any nation whose government is founded on the concept of a national-security state, that is a cardinal sin, one akin to treason and meriting severe punishment.
Mind you, Assange isn’t being charged with lying or releasing false or fraudulent information about the U.S. national-security state. Everyone concedes that the WikiLeaks information was authentic. His “crime” was in disclosing to people the wrongdoing of the national-security establishment. No one is supposed to do that, even if the information is true and correct.
It’s the same with Edward Snowden, the American contractor with the CIA and the NSA who is now relegated to living in Russia. If Snowden returns home, he faces federal criminal prosecution, conviction, and incarceration for disclosing secrets of the U.S. national-security establishment. Again, his “crime” is disclosing the truth about the internal workings of the national-security establishment, not disseminating false information.
Such secrecy and the severe punishment for people who disclose the secrets to the public were among the things that came with the conversion of the federal government to a national-security state.