Legal basis: Anti-Spy Law of the People's Republic of China.
Article 8 State security organs shall exercise their functions and powers of investigation, detention, preliminary examination and execution of arrest in anti-espionage work according to law.
Article 9 When performing their duties according to law, the functionaries of state security organs shall produce corresponding certificates in accordance with regulations, and have the right to check the identity certificates of China citizens or overseas personnel, and to investigate and inquire about relevant information from relevant organizations and personnel.