In a previously undisclosed secret mission in 2017, the United States successfully extracted from Russia one of its highest-level covert sources inside the Russian government, multiple Trump administration officials with direct knowledge told CNN.

A person directly involved in the discussions said that the removal of the Russian was driven, in part, by concerns that President Donald Trump and his administration repeatedly mishandled classified intelligence and could contribute to exposing the covert source as a spy, the report said.

The decision to carry out the extraction occurred soon after a May 2017 meeting in the Oval Office in which Trump discussed highly classified intelligence with Russian Foreign Minister Sergey Lavrov and then-Russian Ambassador to the US Sergey Kislyak. The intelligence, concerning ISIS in Syria, had been provided by Israel.

The disclosure to the Russians by the President, though not about the Russian spy specifically, prompted intelligence officials to renew earlier discussions about the potential risk of exposure, according to the source directly involved in the matter.

At the time, then-CIA Director Mike Pompeo told other senior Trump administration officials that too much information was coming out regarding the covert source, known as an asset. An extraction, or “exfiltration” as such an operation is referred to by intelligence officials, is an extraordinary remedy when US intelligence believes an asset is in immediate danger.

The source was considered the highest level source for the US inside the Kremlin, high up in the national security infrastructure, according to the source familiar with the matter and a former senior intelligence official, the report said.

According to CNN’s sources, the spy had access to Putin and could even provide images of documents on the Russian leader’s desk.

The covert source provided information for more than a decade, according to the sources, and an initial effort to extract the spy, after exposure concerns, was rebuffed by the informant.

CNN is reporting the additional information about the covert source who was extracted from Russia in 2017. The information, which adds further understanding to the value of the informant, was initially withheld by CNN but was subsequently reported by the New York Times.

Asked for comment, Brittany Bramell, the CIA director of public affairs, told CNN: “CNN’s narrative that the Central Intelligence Agency makes life-or-death decisions based on anything other than objective analysis and sound collection is simply false. Misguided speculation that the President’s handling of our nation’s most sensitive intelligence—which he has access to each and every day—drove an alleged exfiltration operation is inaccurate.”

A spokesperson for Secretary of State Mike Pompeo declined to comment. White House press secretary Stephanie Grisham said, “CNN’s reporting is not only incorrect, it has the potential to put lives in danger.”

The removal happened at a time of wide concern in the intelligence community about mishandling of intelligence by Trump and his administration. Those concerns were described to CNN by five sources who served in the Trump administration, intelligence agencies and Congress.

Those concerns continued to grow in the period after Trump’s Oval Office meeting with Kislyak and Lavrov. Weeks after the decision to extract the spy, in July 2017, Trump met privately with Russian President Vladimir Putin at the G20 summit in Hamburg and took the unusual step of confiscating the interpreter’s notes. Afterward, intelligence officials again expressed concern that the President may have improperly discussed classified intelligence with Russia, according to an intelligence source with knowledge of the intelligence community’s response to the Trump-Putin meeting.

Knowledge of the Russian covert source’s existence was highly restricted within the US government and intelligence agencies. According to one source, there was “no equal alternative” inside the Russian government, providing both insight and information on Putin.

The secret removal of the high-level Russian asset has left the US without one of its key sources on the inner workings of the Kremlin and the plans and thinking of the Russian president at a time when tensions between the two nations have been growing.

At the end of the Obama administration, US intelligence officials had already expressed concerns about the safety of this spy and other Russian assets, given the length of their cooperation with the US, according to the former senior intelligence official.