– Deputy Attorney General Rod Rosenstein floated the idea of secretly recording President Donald Trump last year amid law enforcement concerns about chaos in the White House, according to people familiar with exchanges at the time. But one person who was present said Rosenstein was just being sarcastic.

The comments were first reported by the New York Times, which also said that Rosenstein raised the idea of using the 25th Amendment to remove Trump as unfit for office. The report, which Rosenstein denied, creates even greater uncertainty for him in his position at a time when Trump has lambasted Justice Department leadership and publicly humiliated both him and Attorney General Jeff Sessions.

The reported conversation took place during a tense May 2017 meeting involving acting FBI Director Andrew McCabe, another frequent target of Trump's wrath. McCabe was temporarily elevated after Director James Comey was fired, but was himself fired this year. McCabe documented conversations with senior officials, including Trump, in a series of memos that have since been provided to special counsel Robert Mueller as part of his Russia investigation.

The interactions lay bare the conflicts within the FBI and Justice Department early in the Trump administration after Rosenstein wrote a memo about Comey that the White House used as justification for firing the FBI director.

Trump, speaking at a rally in Missouri on Friday, did not explicitly mention the Rosenstein furor, but he issued an ominous warning about the Justice Department and the FBI.

"You've seen what happened in the FBI and the Department of Justice. The bad ones, they're all gone. They're all gone," Trump said. "But there is a lingering stench and we're going to get rid of that, too."

In a statement, Rosenstein called the Times story "inaccurate and factually incorrect."

"I will not further comment on a story based on anonymous sources who are obviously biased against the department and are advancing their own personal agenda. But let me be clear about this: Based on my personal dealings with the president, there is no basis to invoke the 25th Amendment."

The 25th Amendment to the Constitution spells out that a president can be declared "unable to discharge the powers and duties of his office" upon a majority vote of the vice president and Cabinet.

One of the people briefed on the conversation said it occurred during a moment of frustration between McCabe and Rosenstein. The person spoke on condition of anonymity. Rosenstein was rankled by the revelation that Comey had kept memos about his interactions with the president, while McCabe wanted a more aggressive approach toward the White House, the person said.

Rosenstein said to McCabe something to the effect of, "What do you want, you want me to wear a wire?" according to the person. Rosenstein was then asked in the meeting if he was serious, and he said yes, but he thought the question he was responding to referred to something else and he did not mean for the wire comment to be taken seriously, the person said.

McCabe's lawyer, Michael Bromwich, said that his client had drafted memos to "memorialize significant discussions he had with high level officials and preserved them so he would have an accurate, contemporaneous record of those discussions." The statement did not address the content of the memos.

Rosenstein has been a target of Trump's ire since appointing Mueller as a Justice Department special counsel to investigate potential coordination between Russia and the Trump campaign during the 2016 election.

He chose Mueller for the job one week after he laid the groundwork for the firing of Comey by writing a memo that criticized Comey's handling of the FBI's investigation into Hillary Clinton's e-mail server. The White House held up that memo as justification for Comey's firing, though Trump has said he was thinking about "this Russia thing" when he made the move.

As deputy attorney general, Rosenstein oversees Mueller's work and has announced two indictments brought by the special counsel — one against Russians accused of hacking into Democratic e-mail accounts, the other against Russians accused of running a social media troll farm to sway public opinion.