2. It is illegal. The Criminal Procedure Law stipulates that "any unit or individual has the right and obligation to report to the public security organ, the people's procuratorate or the people's court when discovering criminal facts and criminal suspects." Lawyers are obviously bound by this provision.
From the legal point of view, it is not illegal for a lawyer to conceal the facts if he accepts the entrustment and signs the entrustment agreement. Jurisprudence requires that special law is superior to general law, and special law is superior to general law. Article 84 of the Criminal Procedure Law is a general provision for this situation, while the Lawyers Law is a special provision for the identity of lawyers. Therefore, in the application of the special law, the above provisions of the Lawyers Law should be superior to those of the Criminal Procedure Law. In other words, if the case is not an exceptional case stipulated in the Lawyers Law, and the suspect does not want to be known by others, the lawyer has the obligation to keep it confidential.
On the other hand, those who have not accepted the entrustment or become agents are obliged to report the case or report it. If in doubt, you can search "Yunfa. com" or other regular websites for consultation.