A top ethics lawyer during President George W. Bush's administration says FBI Director Christopher Wray needs to tell President Trump Donald John TrumpSteele Dossier sub-source was subject of FBI counterintelligence probe Pelosi slams Trump executive order on pre-existing conditions: It 'isn't worth the paper it's signed on' Trump 'no longer angry' at Romney because of Supreme Court stance MORE and other Republicans to stop targeting his agency or resign.

“FBI Director Chris Wray [is] allowing himself and the FBI to be humiliated by Trump and by political hacks in Congress,” Richard Painter, a White House ethics lawyer in Bush's second term, tweeted Tuesday.

“Wray needs to do his job and tell all of them to cut it out. If Wray can’t do that he should resign.”

FBI Director Chris Wray in allowing himself and the FBI to be humiliated by Trump and by political hacks in Congress. Wray needs to do his job and tell all of them to cut it out. If Wray can’t do that he should resign. — Richard W. Painter (@RWPUSA) December 26, 2017

Wray was nominated by Trump to lead the FBI after the president fired its previous director, James Comey James Brien ComeySteele Dossier sub-source was subject of FBI counterintelligence probe Judge will not dismiss McCabe's case against DOJ Democrats fear Russia interference could spoil bid to retake Senate MORE, earlier this year.

ADVERTISEMENT

Trump has stepped up his attacks on the FBI in recent weeks, saying the agency’s reputation was “in tatters” and targeting officials like Deputy Director Andrew McCabe.

The president sent multiple tweets over the holiday weekend going after McCabe, while he called the FBI “tainted” in a tweet earlier Tuesday.

WOW, @foxandfrlends “Dossier is bogus. Clinton Campaign, DNC funded Dossier. FBI CANNOT (after all of this time) VERIFY CLAIMS IN DOSSIER OF RUSSIA/TRUMP COLLUSION. FBI TAINTED.” And they used this Crooked Hillary pile of garbage as the basis for going after the Trump Campaign! — Donald J. Trump (@realDonaldTrump) December 26, 2017

Wray sent an email to FBI staffers defending the agency earlier this month after Trump went after the bureau.

The FBI director wrote that he was “inspired by example after example of professionalism and dedication to justice demonstrated around the bureau. It is truly an honor to represent you.”

Some GOP lawmakers have accused the FBI and Justice Department of being biased against Trump, especially after it was revealed that special counsel Robert Mueller removed an FBI agent from his team investigating Russian election meddling after the department discovered anti-Trump text messages that the agent sent during the election.

McCabe appeared before lawmakers for hours behind closed doors last week amid probes into Russia's interference in the 2016 presidential election and the FBI's handling of the investigation into Hillary Clinton Hillary Diane Rodham ClintonFox News poll: Biden ahead of Trump in Nevada, Pennsylvania and Ohio Trump, Biden court Black business owners in final election sprint The power of incumbency: How Trump is using the Oval Office to win reelection MORE's use of a private email server while she was secretary of State.

GOP lawmakers have defended their questioning of McCabe, saying it was part of an existing probe into the Justice Department's actions during the 2016 campaign.

However, Democrats have criticized the move as an attempt to undermine Mueller’s investigation into Moscow's election meddling and ties between Trump campaign associates and Russia.