Related Rule
Ecuador
Practice Relating to Rule 107. Spies
Section B. Status of spies
Ecuador’s Naval Manual (1989) provides:
Spying during armed conflict is not a violation of international law. Captured spies are not, however, entitled to prisoner-of-war status. The captor nation may try and punish spies in accordance with its national law. Should a spy succeed in eluding capture and return to friendly territory, liability to punishment terminates. If subsequently captured during some other military operation, the former spy cannot be tried or punished for the earlier act of espionage. 
Ecuador, Aspectos Importantes del Derecho Internacional Marítimo que Deben Tener Presente los Comandantes de los Buques, Academia de Guerra Naval, 1989, § 12.8.1.
The manual also provides that “individuals captured as spies … may not be summarily executed” and that they “have the right to be fairly tried for violations of the law of armed conflict”. 
Ecuador, Aspectos Importantes del Derecho Internacional Marítimo que Deben Tener Presente los Comandantes de los Buques, Academia de Guerra Naval, 1989, § 11.8.