51 Pa.C.S. § 6028
(2) without proper authority, knowingly harbors or protects or gives intelligence to or communicates or corresponds with or holds any intercourse with the enemy, either directly or indirectly;
shall be punished as a court-martial may direct.
Any person subject to this part who: