treason is defined in the united states constitution in article iii, section 3. however, congress has made laws that punish other actions that hurt national security. some examples are the 1798 alien and sedition acts, or the 1917 espionage act.