Yes, espionage is illegal under United States federal law. The core offenses sit in Chapter 37 of Title 18 of the U.S. Code, and the penalties climb steeply with the seriousness of the conduct: up to 10 years in prison for gathering or mishandling national defense information, and up to life in prison or the death penalty for delivering that information to a foreign government. Related statutes make it a federal crime to disclose classified communications intelligence, expose the identity of a covert intelligence officer, or steal trade secrets to benefit a foreign power.
What Counts as Espionage Under Federal Law
Espionage law does not require a trench coat or a dead drop. It centers on “national defense information,” a deliberately broad category that reaches well beyond battlefield plans or missile blueprints. Information closely held by the government and unavailable to the public, which could injure the United States or advantage a foreign nation if disclosed, falls within the statute’s reach. A formal classification marking is not required. What matters is the nature of the information and whether the government was actively protecting it.
The format is also irrelevant. A handwritten note, an electronic file, a photograph on a phone, or knowledge carried in someone’s head can all qualify. Weapons specifications, strategic asset locations, infrastructure blueprints supporting the armed forces, maps and photographs of installations, and models or prototypes of defense technology are all covered.1Office of the Law Revision Counsel. 18 USC 793 – Gathering, Transmitting or Losing Defense Information
Gathering, Sharing, or Losing Defense Information
Under 18 U.S.C. § 793, it is a federal crime to collect, copy, share, or even negligently lose national defense information when the person acts with intent or reason to believe the information could harm the United States or help a foreign nation. The statute reaches a wide range of conduct: entering a restricted military facility to gather information, copying sensitive documents, receiving defense materials known to have been improperly obtained, or sharing them with anyone not authorized to have them.1Office of the Law Revision Counsel. 18 USC 793 – Gathering, Transmitting or Losing Defense Information
One provision catches people off guard. If you are entrusted with defense information and allow it to be removed from its proper storage or lost through carelessness, you can face the same federal charge even if you never intended to help a foreign government. The gross negligence standard asks whether you failed to protect information you knew was sensitive, not whether you meant to cause harm.1Office of the Law Revision Counsel. 18 USC 793 – Gathering, Transmitting or Losing Defense Information
Delivering Defense Information to a Foreign Government
Section 794 targets the classic act of spying: actually passing defense information to a foreign government, its representatives, or a foreign military force. It covers anyone who communicates or delivers national defense information, or attempts to, with intent or reason to believe it will be used to injure the United States or benefit a foreign power.2Office of the Law Revision Counsel. 18 USC 794 – Gathering or Delivering Defense Information to Aid Foreign Government
The distinction between the two statutes matters enormously at sentencing. Mishandling defense information under § 793 carries up to 10 years per count. Delivering that same information to a foreign power under § 794 can result in life imprisonment or death.
The Intent the Government Must Prove
Espionage prosecutions turn on the defendant’s mental state, and the required level varies by statute. For most charges under § 793, the government must prove the defendant acted “with intent or reason to believe” the information could injure the United States or advantage a foreign nation. The second half is the key phrase: prosecutors do not need to show the defendant specifically wanted to cause harm, only that a reasonable person in that position would have understood the risk. The gross negligence provision goes further still, requiring no intent to harm at all.1Office of the Law Revision Counsel. 18 USC 793 – Gathering, Transmitting or Losing Defense Information
Section 794 demands a higher mental state because it targets deliberate acts of spying. Prosecutors must show the defendant meant to benefit a foreign government or had reason to believe the information would be used that way.2Office of the Law Revision Counsel. 18 USC 794 – Gathering or Delivering Defense Information to Aid Foreign Government In practice, intent is often proven circumstantially: whether the defendant received training on handling classified materials, whether documents were clearly marked, whether the person took steps to conceal their actions, and whether they had contact with foreign agents.
Other Conduct Treated as Espionage
Beyond §§ 793 and 794, several other federal statutes criminalize specific categories of unauthorized disclosure.
Classified Communications Intelligence
Section 798 of Title 18 provides heightened protection for a narrow category of secrets. It makes it a crime to knowingly and willfully disclose classified information about U.S. or foreign code systems, devices used for secure communications, the communication intelligence activities of the United States, or information obtained by intercepting foreign communications. Violations carry up to 10 years in prison. The government does not have to prove potential injury; disclosing the classified information to an unauthorized person is enough.3Office of the Law Revision Counsel. 18 USC 798 – Disclosure of Classified Information
Exposing a Covert Agent
The Intelligence Identities Protection Act, codified at 50 U.S.C. § 3121, makes it a crime to reveal the identity of a covert intelligence officer. Penalties scale with how the person learned the agent’s identity:
- Someone with authorized access to classified information identifying a covert agent who intentionally discloses it faces up to 15 years in prison.
- Someone who learned an agent’s identity through their access to classified information and intentionally discloses it faces up to 10 years.
- Someone engaged in a deliberate pattern of activities to identify and expose covert agents, with reason to believe it would impair U.S. intelligence operations, faces up to 3 years.
Any prison sentence under this statute runs consecutively to other sentences rather than at the same time.4Office of the Law Revision Counsel. 50 USC 3121 – Protection of Identities of Certain United States Undercover Intelligence Officers, Agents, Informants, and Sources
Trade Secret Theft for a Foreign Government
Espionage law extends beyond military and diplomatic material. Under 18 U.S.C. § 1831, part of the Economic Espionage Act, stealing a trade secret with the intent or knowledge that it will benefit a foreign government, foreign entity, or foreign agent carries up to 15 years in prison and a fine of up to $5 million for individuals. Organizations face fines of up to $10 million or three times the value of the stolen trade secret, whichever is greater.5Office of the Law Revision Counsel. 18 USC 1831 – Economic Espionage
When the same conduct is motivated by ordinary commercial gain rather than foreign government benefit, 18 U.S.C. § 1832 applies, with individuals facing up to 10 years and organizations fined up to $5 million or three times the value of the stolen secret.6Office of the Law Revision Counsel. 18 USC 1832 – Theft of Trade Secrets The gap in penalties shows how seriously federal law treats the foreign government angle.
Penalties Beyond Prison
Federal espionage penalties are among the harshest in the criminal code, and they extend well past time behind bars.
Prison Terms
Section 793 violations carry up to 10 years in prison per count. Because defendants are often charged with multiple counts (one for each document or transmission), the effective exposure can be far longer.1Office of the Law Revision Counsel. 18 USC 793 – Gathering, Transmitting or Losing Defense Information Delivering defense information to a foreign government under § 794 carries imprisonment for any term of years up to life.2Office of the Law Revision Counsel. 18 USC 794 – Gathering or Delivering Defense Information to Aid Foreign Government
When the Death Penalty Applies
The death penalty is available under § 794, but only when the jury or court makes an additional finding that one of these conditions is met:
- The espionage resulted in a foreign power identifying a U.S. agent, and that agent was killed as a consequence.
- The offense directly concerned nuclear weaponry, military spacecraft or satellites, early warning systems, war plans, communications intelligence or cryptographic information, or any other major weapons system or major element of defense strategy.
The statute is written broadly enough that most significant espionage cases involving classified military or intelligence programs could in theory qualify, not just those involving nuclear secrets.2Office of the Law Revision Counsel. 18 USC 794 – Gathering or Delivering Defense Information to Aid Foreign Government
Fines
The general federal sentencing statute sets fines for felonies at up to $250,000 per count for individuals. An alternative provision allows the court to impose a fine of up to twice the defendant’s gross gain from the crime or twice the gross loss it caused, whichever is greater.7Office of the Law Revision Counsel. 18 USC 3571 – Sentence of Fine
Mandatory Asset Forfeiture
Anyone convicted under § 794 must forfeit to the United States all property derived from the offense, including any payments received from a foreign government, along with any property used to carry out the crime. Forfeiture is mandatory; the court has no discretion to waive it. Forfeited proceeds are deposited into the Crime Victims Fund rather than general government coffers.2Office of the Law Revision Counsel. 18 USC 794 – Gathering or Delivering Defense Information to Aid Foreign Government
Loss of Federal Retirement Benefits
A conviction under any of the core espionage statutes (§§ 792, 793, 794, or 798) triggers forfeiture of all federal retirement annuities and retired pay earned through government service. This applies to the convicted individual and extends to their survivors and beneficiaries, so a spouse’s survivor annuity can also be lost.8Office of the Law Revision Counsel. 5 USC 8312 – Conviction of Certain Offenses For career government employees or military retirees, pension forfeiture can represent millions of dollars in lifetime benefits lost on top of prison and fines.
How Long the Government Has to Charge You
Most federal crimes must be charged within five years. Espionage gets a longer runway. Non-capital violations of §§ 792, 793, and 794 can be prosecuted within 10 years of the offense.9Office of the Law Revision Counsel. 18 USC Ch 37 – Espionage and Censorship Capital espionage offenses, those eligible for the death penalty, have no statute of limitations at all under general federal law. Someone who passed satellite defense plans to a foreign intelligence service 20 years ago can still be indicted today.
Reporting Wrongdoing Is Not Espionage, But Only Through the Right Channels
Disclosing classified information to the press, posting it on social media, or sharing it with anyone outside the approved process is not protected whistleblowing and can be prosecuted under the same espionage statutes above. The Intelligence Community Whistleblower Protection Act does provide a legal pathway for intelligence community employees and contractors to report fraud, waste, abuse, or “urgent concerns” to the Inspector General of the Intelligence Community or to the congressional intelligence committees. An urgent concern includes a serious violation of law related to an intelligence activity involving classified information, a false statement to Congress about such an activity, or retaliation against someone who reported through these channels.10Office of the Director of National Intelligence. Making Lawful Disclosures The line between whistleblower and defendant runs entirely through which door you use.