; (4) the Chairman or a member of the Privacy and Civil Liberties Oversight Board or any employee of the Board designated by the Board, in accordance with such procedures as the Board may establish; (5) the Chairman or a commissioner of the Federal Trade Commission or any employee of the Commission designated by the Commission, in accordance with such procedures as the Commission may establish; (6) the Chairman or a commissioner of the Federal Communications Commission or any employee of the Commission designated by the Commission, in accordance with such procedures as the Commission may establish; or (7) any other person or entity authorized to receive disclosures containing classified information pursuant to any applicable law, regulation, or executive order regarding the protection of whistleblowers. . (d) Testimony of purpose (1) In general Chapter 37 of title 18, United States Code, is amended by adding at the end the following: 799A. Testimony of purpose A defendant charged with an offense under section 793 or 798 shall be permitted to testify about their purpose for engaging in the prohibited conduct. 799B. Affirmative defense It is an affirmative defense to a charge under section 793 or 798 that the defendant engaged in the prohibited conduct for the purpose of disclosing to the public— (1) any violation of any law, rule, or regulation; or (2) gross mismanagement, a gross waste of funds, an abuse of authority, or a substantial and specific danger to public health or safety. . (2) Clerical amendment The table of sections for chapter 37 is amended by adding at the end the following: 799A. Testimony of purpose. 799B. Affirmative defense. .