Legally speaking: Breaking and entering a federal government building, stealing information, conspiring with a foreign national to sell the information to a foreign state intelligence service.
I think life sentences have been handed out for smaller forms of treason...