A vice minister of public security and close confidant of President Xi Jinping is tipped to take over as China's spy master, five sources said, as the country looks to clean up its security apparatus and plug intelligence gaps.

China has poured billions of yuan into domestic security, but the secretive Ministry of State Security and the Ministry of Public Security in recent years have been hit with high-level corruption scandals and intelligence failings.

Wang Xiaohong, 60, a vice minister of public security, will replace Chen Wenqing as minister of state security during the session of parliament that will begin on Monday, three sources with ties to the leadership and two foreign diplomats said.