The oldest known classified document was a report made by a spy disguised as a diplomatic envoy in the court of King Hammurabi, who died in around 1750 BC.
In the Middle Ages European states excelled at what has later been termed counter-subversion when Catholic inquisitions were staged to annihilate heresy.
Western espionage changed fundamentally during the Renaissance when Italian city-states installed resident ambassadors in capital cities to collect intelligence.
Renaissance Venice became so obsessed with espionage that the Council of Ten, which was nominally responsible for security, did not even allow the doge to consult government archives freely.
[7] The novelist and journalist Daniel Defoe (died 1731) not only spied for the British government, but also developed a theory of espionage foreshadowing modern police-state methods.
Mata Hari, who obtained information for Germany by seducing French officials, was the most noted espionage agent of World War I.
The Russian Empire and its successor, the Soviet Union, have had a long tradition of espionage ranging from the Okhrana to the KGB (Committee for State Security), which also acted as a secret police force.
During the Cold War, many Soviet intelligence officials defected to the West, including Gen. Walter Krivitsky, Victor Kravchenko, Vladimir Petrov, Peter Deriabin, Pawel Monat and Oleg Penkovsky of the GRU.
U.S. acknowledgment of its U-2 flights and the exchange of Francis Gary Powers for Rudolf Abel in 1962 implied the legitimacy of some espionage as an arm of foreign policy.
Codebreaking (cryptanalysis or COMINT), aircraft or satellite photography (IMINT), and analysis of publicly available data sources (OSINT) are all intelligence gathering disciplines, but none of them is considered espionage.
Black's Law Dictionary (1990) defines espionage as: "... gathering, transmitting, or losing ... information related to the national defense".
Spies may also be used to spread disinformation in the organization in which they are planted, such as giving false reports about their country's military movements, or about a competing company's ability to bring a product to market.
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.
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.
This was true right up until the era of World War II; for example, Josef Jakobs was a Nazi spy who parachuted into Great Britain in 1941 and was executed for espionage.
For example, Aldrich Hazen Ames is an American CIA analyst, turned KGB mole, who was convicted of espionage in 1994; he is serving a life sentence without the possibility of parole in the high-security Allenwood U.S.
[27] Ames was formerly a 31-year CIA counterintelligence officer and analyst who committed espionage against his country by spying for the Soviet Union and Russia.
In the early 21st century, the act was used to prosecute whistleblowers such as Thomas Andrews Drake, John Kiriakou, and Edward Snowden, as well as officials who communicated with journalists for innocuous reasons, such as Stephen Jin-Woo Kim.
[30][31] As of 2012[update], India and Pakistan were holding several hundred prisoners of each other's country for minor violations like trespass or visa overstay, often with accusations of espionage attached.
[citation needed] The BBC reported in 2012 on one such case, that of Mohammed Idrees, who was held under Indian police control for approximately 13 years for overstaying his 15-day visa by 2–3 days after seeing his ill parents in 1999.
Generally, the body involved should be issued with some form of warrant or permission from the government and should be enacting their procedures in the interest of protecting national security or the safety of public citizens.
However, Article 31 provides that if a spy successfully rejoined his own military and is then captured by the enemy as a lawful combatant, he cannot be punished for his previous acts of espionage and must be treated as a prisoner of war.
[37][38] Soldiers who are wearing enemy uniforms or civilian clothes simply for the sake of warmth along with other purposes rather than engaging in espionage or similar military operations while so attired are also excluded from being treated as unlawful combatants.
[39][40] For example, during World War II, eight German agents entered the U.S. in June 1942 as part of Operation Pastorius, a sabotage mission against U.S. economic targets.
Under the Hague Convention of 1907, these Germans were classified as spies and tried by a military tribunal in Washington D.C.[41] On August 3, 1942, all eight were found guilty and sentenced to death.
This provides a mandatory death sentence if a person captured in the act is proven to be "lurking as a spy or acting as a spy in or about any place, vessel, or aircraft, within the control or jurisdiction of any of the armed forces, or in or about any shipyard, any manufacturing or industrial plant, or any other place or institution engaged in work in aid of the prosecution of the war by the United States, or elsewhere".
[43] An early example of espionage literature is Kim by the English novelist Rudyard Kipling, with a description of the training of an intelligence agent in the Great Game between the UK and Russia in 19th century Central Asia.
[44] Johnny Fedora achieved popularity as a fictional agent of early Cold War espionage, but James Bond is the most commercially successful of the many spy characters created by intelligence insiders during that struggle.
Other fictional agents include Le Carré's George Smiley, and Harry Palmer as played by Michael Caine.