China has released a draft intelligence law aimed at providing a legal foundation for the country’s spy operations, the latest legislative effort by Beijing to fortify national security against perceived threats at home and abroad. The draft law, published on the website of top legislature the National People’s Congress on Tuesday to solicit public feedback, stipulates that China’s public security, state security and military are in charge of the country’s intelligence services. It authorises them to conduct intelligence activity “both within and outside national borders” and to investigate foreign and domestic individuals or institutions deemed harmful to national security. Beijing laying groundwork for mass DNA testing in Xinjiang Since President Xi Jinping took power four and a half years ago, a slew of new laws have been passed to deal with security challenges, including a national security law, an anti-terrorism law in 2015 and a counter-espionage law in 2014. Xi himself chairs the powerful national security committee he founded in 2013, which oversees issues ranging from cybersecurity to unrest in Xinjiang. The latest intelligence law is formulated to “strengthen and ensure state intelligence work and safeguard national security and interests”, according to the draft on the NPC’s website. “The new laws reinforce the centrality and supremacy of the Party in matters of preserving Communist Party rule and to ensure the stability of China’s domestic environment,” said Benjamin Ho, a expert on national security and intelligence at the at the S. Rajaratnam School of International Studies in Singapore. The draft law did not specify what falls under the scope of “state intelligence work”, but said it should provide intelligence support for protecting national security, and safeguard national interests like “state power, sovereignty, independence and territorial integrity, the well-being of the people and sustainable development of the economy and society”. US diplomat charged over lying about contact with Chinese intelligence agents The Ministry of State Security is widely known as the country’s top civilian spy agency. However, in recent years, the Ministry of Public Security – effectively the national police force – has taken on a more assertive role in domestic intelligence and counter-espionage, according to testimony from a US specialist on China’s intelligence services that was given to a congressional commission last year. The draft law allows intelligence officials to adopt secret investigative measures such as wiretapping, electronic surveillance and clandestine filming. Intelligence officials can also enter “restricted access areas”, skip customs and border inspections and seize vehicles owned by individuals or institutions. How a powerful tycoon had a Chinese spy master in his pocket Spy agencies could also establish “cooperative relationships” with individuals and organisations, the draft law said. But it also warned intelligence officials against overstepping their authority, abusing their power, or leaking state or commercial secrets, saying that these infractions would be punished by law. The country’s former deputy spy chief, Ma Jian, is facing prosecution for corruption. In a video posted online last month, Ma said he had abused his power to help businessman Guo Wengui in exchange for benefits.