N.Y. Comp. Codes R. & Regs. tit. 22, § 100.5
(1) Neither a sitting judge nor a candidate for public election to judicial office shall directly or indirectly engage in any political activity except (i) as otherwise authorized by this section or by law, (ii) to vote and to identify himself or herself as a member of a political party, and (iii) on behalf of measures to improve the law, the legal system or the administration of justice. Prohibited political activity shall include:
(2) A judge or non-judge who is a candidate for public election to judicial office may participate in his or her own campaign for judicial office as provided in this section and may contribute to his or her own campaign as permitted under the Election Law. During the window period as defined in section 100.0(Q) of this Part, a judge or non-judge who is a candidate for public election to judicial office, except as prohibited by law, may:
(4) A judge or a non-judge who is a candidate for public election to judicial office:
(iii) knowingly make any false statement or misrepresent the identity, qualifications, current position or other fact concerning the candidate or an opponent; but
(6) A judge or a non-judge who is a candidate for public election to judicial office may not permit the use of campaign contributions or personal funds to pay for campaign-related goods or services for which fair value was not received.
(B) Judge as candidate for nonjudicial office.
A judge shall resign from judicial office upon becoming a candidate for elective nonjudicial office either in a primary or in a general election, except that the judge may continue to hold judicial office while being a candidate for election to or serving as a delegate in a state constitutional convention if the judge is otherwise permitted by law to do so.
(C) Judge's staff.
A judge shall prohibit members of the judge's staff who are the judge's personal appointees from engaging in the following political activity:
(A) Incumbent judges and others running for public election to judicial office.