Yeah, the first amendment essentially protects all of that, because it’s clearly not the intention of the first amendment to protect speech, except speech the government says threaten it. If anything, speech is protected specifically from the government trying to decide what is ok.
Also, I’m pretty sure that this does not only apply to the press. It applies to everyone.
The reason that the NDA you sign when you get clearance is important, is that you are intentionally agreeing to certain rules, and are forfeiting any normally held first amendment rights in that narrow regard.
EDIT:
Upon further reflection, i suspect that in certain cases, you could be prosecuted under things like the espionage act, if the information you leaked didn’t really constitute any actual expression.
The first amendment protections are generally held as more important than virtually anything, including national security, according to NYT v US. However not all speech constitutes an expression.
In the case of nuclear codes, you wouldn’t really be making any sort of meaningful expression. You would simply be releasing data.
In cases like the Pentagon papers, they released classified data with the purpose of drawing attention to what the government was doing, which elevated it to an act of expression.
Still though, for people with clearance, they have signed away those rights. So the actual whistleblowers are absolutely able to be prosecuted under those statutes. Folks like Snowden, even if he was trying to shine light on what the government was doing, was directly violating agreements he had made.