The Chinese spies wanted more. In meetings during the pandemic with Chinese technology contractors, they complained that surveillance cameras tracking foreign diplomats, military officers and intelligence operatives in Beijing’s embassy district fell short of their needs.
The spies asked for an artificial intelligence program that would create instant dossiers on every person of interest in the area and analyze their behavior patterns. They proposed feeding the A.I. program information from databases and scores of cameras that would include car license plates, cellphone data, contacts and more.
The A.I.-generated profiles would allow the Chinese spies to select targets and pinpoint their networks and vulnerabilities, according to internal meeting memos obtained by The New York Times.
The spies’ interest in the technology, disclosed here for the first time, reveals some of the vast ambitions of the Ministry of State Security, China’s main intelligence agency. In recent years, it has built itself up through wider recruitment, including of American citizens. The agency has also sharpened itself through better training, a bigger budget and the use of advanced technologies to try to fulfill the goal of Xi Jinping, China’s leader, for the nation to rival the United States as the world’s pre-eminent economic and military power.
The Chinese agency, known as the M.S.S., once rife with agents whose main source of information was gossip at embassy dinner parties, is now going toe-to-toe with the Central Intelligence Agency in collection and subterfuge around the world.
Today the Chinese agents in Beijing have what they asked for: an A.I. system that tracks American spies and others, said U.S. officials and a person with knowledge of the transaction, who shared the information on the condition that The Times not disclose the names of the contracting firms involved. At the same time, as spending on China at the C.I.A. has doubled since the start of the Biden administration, the United States has sharply stepped up its spying on Chinese companies and their technological advances.
This article is based on interviews with more than two dozen current and former American officials, most of whom spoke on condition of anonymity, and a review of internal Chinese corporate documents and public M.S.S. documents.
The competition between the American and Chinese spy agencies harks back to the K.G.B.-versus-C.I.A. rivalry of the Cold War. In that era, the Soviets built an agency that could pilfer America’s most closely held secrets and run covert operations while also producing formidable political leaders.
But there is a notable difference. Because of China’s economic boom and industrial policies, the M.S.S. is able to use emerging technologies like A.I. to challenge American spymasters in a way the Soviets could not. And those technologies are top prizes in espionage efforts by China and the United States.
“For China in particular, exploiting the existing technology or trade secrets of others has become a popular shortcut encouraged by the government,” said Yun Sun, director of the China program at the Stimson Center, a Washington-based research institute. “The urgency and intensity of technological espionage have increased significantly.”
The M.S.S. has intensified its intelligence collection on American companies developing technology with both military and civilian uses, while the C.I.A., in a change from even a few years ago, is pouring resources into collecting data on Chinese companies developing A.I., quantum computing and other such tools.
Though the U.S. intelligence community has long collected economic intelligence, gathering detailed information on commercial technological advances outside of defense companies was once the kind of espionage the United States avoided.
But information about China’s development of emerging technologies is now considered as important as divining its conventional military might or the machinations of its leaders.
David Cohen, the agency’s deputy director, said that under President Biden, the C.I.A. was making investments and reorganizing to meet the challenge of collecting on Chinese advances. The agency has started both a China mission center and a technology intelligence center.
“We’ve been counting tanks and understanding the capability of missiles for longer than we have been as sharply focused on the capability of semiconductors or A.I. algorithms or biotech equipment,” Mr. Cohen said in an interview.
But some policymakers say privately that the effort is still falling short, and that Chinese companies and the military are surprising the U.S. government with their advances.
In China, the status of the Ministry of State Security has only grown under Mr. Xi, who prizes bold intelligence action and a powerful security state.
In October 2022, the Communist Party promoted the ministry’s head, Chen Wenqing, to be the party’s top security official and a member of the 24-member Politburo, the first spy chief in decades to ascend to that body. His replacement, Chen Yixin, a longtime aide to Mr. Xi, has raised the public profile of the M.S.S. He has also been given a broad mandate, which encompasses leading a crackdown on American and other foreign companies that conduct corporate investigations of Chinese firms, including for military ties and human rights violations.
The ministry has the foreign responsibilities of the C.I.A. and the domestic mandate of the F.B.I., combined with an authoritarian edge. The M.S.S. is charged with carrying out intelligence collection and operations overseas, as well as limiting foreign influence within China and clamping down on so-called subversive activities. Its mission is avowedly political: to defend the Communist Party against all perceived threats.
The current minister, Mr. Chen, has repeatedly emphasized loyalty to Mr. Xi. In June, he told officers to “wholeheartedly embrace” Mr. Xi’s “core” status.’’
Under Mr. Chen, the ministry is embracing social media to spread messages about threats. “The United States’ multifaceted obstruction, containment and suppression will only make China more battle hardened and self-reliant,” it said on a new WeChat account.
In August, the ministry made separate announcements asserting that it had caught two Chinese citizens spying for the C.I.A., one recruited by an American agent in Japan and the other in Italy. In October, the ministry and Chinese state television announced a case in which a researcher at a defense industry institute had been recruited by a U.S. agent while he was a visiting scholar at an American university. He then transferred copies of secret documents to the Americans after he returned to China, before being detained in 2021.
The announcements suggested the C.I.A. had been rebuilding a network within China that Chinese counterintelligence officers decimated more than a decade ago.
The C.I.A. does not say whether people detained overseas on espionage charges are spies for the United States. But at least some of the Chinese citizens detained were working for the United States, according to people briefed on American intelligence reports. There is no evidence, however, that the M.S.S. has cracked the network, they said, and the Italy case is more than a year old.
The M.S.S. is making its own aggressive moves abroad, including recruiting a far-right Belgian politician and harassing ethnic Chinese critics of the party. One agent hired a local private investigator to physically attack a Chinese American candidate for U.S. Congress on Long Island, according to a Justice Department indictment. Another man is accused of helping to set up an organization in New York that lured in dissidents.
The central government in Beijing established the Ministry of State Security in 1983 during a reshuffling of security units. For decades, the agency struggled to win favor with party leaders. Its Chinese rival, the intelligence services of the People’s Liberation Army, had greater resources and better tradecraft, especially in cyberespionage.
The Ministry of State Security gradually improved its tactics, got bigger budgets and even built business expertise. Some M.S.S. officers who would be working under cover as business people were sent to private sector offices for training, said Peter Mattis, a former C.I.A. analyst and co-author of a book on Chinese espionage.
Chinese agents also expanded their foreign recruitment targets, including among U.S. citizens.
U.S. intelligence agencies were alarmed after discovering that the Shanghai M.S.S. had recruited an American student in China, Glenn Duffie Shriver, and got him to apply to the C.I.A. and State Department. Mr. Shriver was sentenced in 2011 to four years in prison. “It was a big sign of improved tradecraft from M.S.S., for the first time targeting non-Chinese Americans and attempting penetration of the U.S. intelligence community,” said John Culver, a former U.S. intelligence analyst.