Criminal espionage is the act of revealing information to a foreign power or their agents with the intention of the information be used to cause danger to one's own country. In the time of war it is gathering, recording or communicating information of national importance to the enemy.