Espionage
https://en.m.wikipedia.org/wiki/Espionage
Espionage is a crime under the legal code of many nations. In the United States it is covered by the Espionage Act of 1917. The risks of espionage vary. A spy breaking the host country's laws may be deported, imprisoned, or even executed. A spy breaking their own country's laws can be imprisoned for espionage or/and treason (which in the USA and some other jurisdictions can only occur if they take up arms or aids the enemy against their own country during wartime), or even executed, as the Rosenbergs were. For example, when Aldrich Ames handed a stack of dossiers of U.S. Central Intelligence Agency (CIA) agents in the Eastern Bloc to his KGB-officer "handler", the KGB "rolled up" several networks, and at least ten people were secretly shot. When Ames was arrested by the U.S. Federal Bureau of Investigation (FBI), he faced life in prison; his contact, who had diplomatic immunity, was declared persona non grata and taken to the airport. Ames' wife was threatened with life imprisonment if her husband did not cooperate; he did, and she was given a five-year sentence. Hugh Francis Redmond, a CIA officer in China, spent nineteen years in a Chinese prison for espionage—and died there—as he was operating without diplomatic cover and immunity.[11]
In United States law, treason,[12] espionage,[13] and spying[14] are separate crimes. Treason and espionage have graduated punishment levels.
The United States in World War I passed the Espionage Act of 1917. Over the years, many spies, such as the Soble spy ring, Robert Lee Johnson, the Rosenberg ring, Aldrich Hazen