The Uniform Code of Military Justice Article 88 - Contempt Toward Public Officials states:
Any commissioned officer who uses contemptuous words against the President, the Vice President, Congress, the Secretary of Defense, the Secretary of a military department, the Secretary of Transportation, or the Governor or legislature of any State, Territory, Commonwealth, or possession in which he is on duty or present shall be punished as a court-martial may direct.
Here’s another:
Article 134- False Swearing
Paragraph 79 of the Manual for Court Martial concerns the offense of false swearing. It is one of many offenses under Article 134, which is a general article. The text of Article 134 says that all neglects and disorders which are adverse to the discipline and good order of the armed forces and all conducts which bring discredit to the armed forces, will be punished by a court martial.
The elements of this offense
The defendant has taken an oath or its equivalent.
The oath or its equivalent was given to the defendant in relation to a matter where such an oath or its equivalent is authorized or required by law.
The oath or its equivalent was administered to the defendant by an individual who had the authority to do so.
The defendant took the oath or its equivalent and later subscribed or made a given statement.
The statement made by the defendant was false.
The accused did not believe that the oath he was making was true.
Under the circumstances, the defendant’s conduct was against the discipline and good order expected from armed forces personnel or the nature of the act brought discredit to the armed forces.