Prohibits interference with military operations and prevents the support of US enemies during wartime. Espionage Act. The Espionage Act, enacted in 1917, is a law that makes it illegal to share information that could harm the US military or help its enemies.