Is it illegal for the lawyer to ask the prisoner's confession and then tell the police station?

If it is a general criminal case, it does not involve special circumstances such as state secrets and personal privacy. Judging from the actual situation, what lawyers do is to ask for transcripts, mainly to understand the case; There is no question of principle in communicating with the police station or public security bureau for the benefit of the suspect afterwards.

Code of practice for lawyers

Article 6 Lawyers shall be honest and trustworthy, diligent and conscientious, based on facts and laws, safeguard the legitimate rights and interests of clients, and correctly implement laws and social fairness and justice.

Article 8 A lawyer shall keep the state secrets and business secrets he knows in his practice, and shall not disclose the privacy of his clients.

Lawyers should keep confidential the information and materials that their clients and others are unwilling to disclose in their practice activities. However, criminal facts and information that endanger national security, public safety and other serious personal and property safety of others are not included.

Article 68 In the course of handling a case, a lawyer shall not have private contact with the judicial and arbitration personnel involved in the case he undertakes.

There is no violation of the lawyer's professional standards.