A lawyer can report the client if he knows that the client has violated the law

Legal analysis: Unless the client has committed acts that endanger national security, it is against the professional ethics of lawyers to report the client.

Lawyers have a duty of confidentiality. This is the basic professional ethics and they must keep the facts they hear confidential. However, this does not apply if the parties or other persons have prepared or are currently committing crimes that endanger national security, public safety, or other criminal facts and information that seriously endanger the personal and property safety of others. "Materials and opinions proving that criminal suspects and defendants are innocent, guilty of minor crimes, or mitigated or exempted from criminal liability shall be presented based on facts and law to safeguard the legitimate rights and interests of criminal suspects and defendants. No defense that is detrimental to criminal suspects shall be put forward Opinions and speeches.

Legal basis: Article 38 of the Lawyers Law of the People's Republic of China shall keep state secrets and commercial secrets learned in the course of professional activities and shall not disclose the privacy of clients. If a lawyer becomes aware of circumstances and information about the client or others that are unwilling to be made public during his practice activities, he shall keep it confidential. However, the facts and information that the parties or other persons are preparing or are committing crimes that endanger national security, public security, or other crimes that seriously endanger the personal and property safety of others are excluded.