Donald Trump has accused his own deputy attorney general of breaking the law in a series of early morning tweets railing against current and former law enforcement officials.

Mr Trump lashed out on Twitter at former FBI director Andrew McCabe, whose new book details his concerns about potential foreign influence over the president, and current deputy attorney general Rod Rosenstein, who initiated special counsel Robert Mueller’s investigation.

“Wow, so many lies by now disgraced acting FBI Director Andrew McCabe,” Mr Trump tweeted on Monday morning. “He was fired for lying, and now his story gets even more deranged. He and Rod Rosenstein, who was hired by Jeff Sessions (another beauty), look like they were planning a very illegal act, and got caught.”

In an interview with CBS’s 60 Minutes, Mr McCabe described Mr Rosenstein as having raised the prospect of invoking the 25th Amendment to remove Mr Trump from office.

Mr Trump said: “This was the illegal and treasonous ‘insurance policy’ in full action!”

Will Trump fall to the 25th Amendment? The key players in the debate Show all 7 1 /7 Will Trump fall to the 25th Amendment? The key players in the debate Will Trump fall to the 25th Amendment? The key players in the debate President Trump Donald Trump, whose firing of the FBI director James Comey in 2017 sparked concerns among senior government officials Getty Will Trump fall to the 25th Amendment? The key players in the debate James Comey The former director of the FBI, James Comey, whose firing by Mr Trump sparked the crisis in 2017 EPA Will Trump fall to the 25th Amendment? The key players in the debate James McCabe James McCabe, the former acting director of the FBI, who has made the explosive accusations in a TV interview AFP Will Trump fall to the 25th Amendment? The key players in the debate Rod Rosenstein The deputy attorney general Rod Rosenstein, who allegedly discussed which cabinet members might back invoking the 25th Amendment Reuters Will Trump fall to the 25th Amendment? The key players in the debate Lindsey Graham Republican senator Lindsey Graham, a key Trump ally who has pledged to hold an investigation into the affair AFP Will Trump fall to the 25th Amendment? The key players in the debate Christopher Wray The new director of the FBI, Christopher Wray, who took over after Mr Trump fired Mr Comey AP Will Trump fall to the 25th Amendment? The key players in the debate Mike Pence The vice-president Mike Pence, who has dismissed suggestions Mr Trump is not capable of discharging his duties AFP

The US president’s outburst comes after Mr McCabe, who was fired last year the day before his scheduled retirement, said last week Mr Rosenstein offered in May 2017 to secretly record himself in conversation with Mr Trump following the president’s firing of then-FBI director James Comey.

In an interview with 60 Minutes that aired on Sunday, Mr McCabe said a “crime may have been committed” when President Trump fired the head of the FBI and tried to publicly undermine an investigation into his campaign’s ties to Russia.

McCabe also said the FBI had good reason to open a counterintelligence investigation into whether Mr Trump was in league with Russia, and therefore a possible national security threat, following the firing.

“And the idea is, if the president committed obstruction of justice, fired the director of the of the FBI to negatively impact or to shut down our investigation of Russia’s malign activity and possibly in support of his campaign, as a counterintelligence investigator you have to ask yourself, “Why would a president of the United States do that?” Mr McCabe said.

He added: “So all those same sorts of facts cause us to wonder is there an inappropriate relationship, a connection between this president and our most fearsome enemy, the government of Russia?”

Asked whether Mr Rosenstein was onboard with the obstruction and counterintelligence investigations, Mr McCabe replied, “Absolutely.”

Support free-thinking journalism and attend Independent events

Mr McCabe also revealed that when Mr Trump told Mr Rosenstein to put in writing his concerns with Mr Comey — a document the White House initially held up as justification for his firing — the president explicitly asked the Justice Department official to reference Russia in the memo.

Mr Rosenstein did not want to, Mr McCabe said, and the memo that was made public upon Mr Comey’s dismissal did not mention Russia and focused instead on Mr Comey’s handling of the Hillary Clinton email server investigation.