Do any of the relevant laws specify needing to be at war? Both the treason clause of the Constitution and the Espionage Act specify helping "enemies," but I'm not sure they specify needing to be at war.
The Rosenberg's were executed despite the US never officially declaring war on the USSR or even North Korea.
The Rosenberg's were executed despite the US never officially declaring war on the USSR or even North Korea.