Article 134 of the Uniform Code of Military Justice (UCMJ) also known as the General Article of the UCMJ is an article of military law in the United States that provides for penalties by court-martial various offences that prejudice good order and discipline or bring discredit upon the armed forces, such as for "disloyal" statements made "with the intent to promote disloyalty or disaffection toward the United States by any member of the armed forces or to interfere with or impair the loyalty to the United States or good order and discipline of any member of the armed forces."
Manual for Courts-Martial
Explanation.
Certain disloyal statements by military personnel may not constitute an offense under 18 U.S.C. §§ 2385, 2387, and 2388, but may, under the circumstances, be punishable under this article. Examples include praising the enemy, attacking the war aims of the United States, or denouncing our form of government with the intent to promote disloyalty or disaffection among members of the armed services. A declaration of personal belief can amount to a disloyal statement if it disavows allegiance owed to the United States by the declarant. The disloyalty involved for this offense must be to the United States as a political entity and not merely to a department or other agency that is a part of its administration.— Manual for Courts-Martial (US Government, 2002), Chapter 4, Paragraph 72