I'm not sure about the "executed" part, but I have to agree that outing spy methods is not in the national interest and it actually harms the ability of these agencies to protect its citizens.

What is missing in all of this is any evidence (whatsoever) that the CIA is using these methods improperly.  If that were the evidence, then perhaps a leak was morally appropriate.  But absent such evidence, this action just harms national security and unnecessarily furthers conspiratorial and paranoid beliefs.