December 23, 2015 5:10 PM EST
The penalty for that is worse if you're military. Specifically, if a military member commits treason by giving away any kind of classified information to a foreign body (government, ISIS, etc.), it's classified as espionage under the UCMJ. The penalty for espionage is up to and including the possibility of death.