In this June 7, 2017, file photo, then-acting FBI Director Andrew McCabe appears before a Senate Intelligence Committee hearing about the Foreign Intelligence Surveillance Act, on Capitol Hill in Washington. Credit: Alex Brandon | AP

CNN announced Friday that it had hired former FBI acting Director Andrew McCabe as a contributor, drawing a swift backlash from conservatives, including President Donald Trump’s eldest son and a representative of Trump’s reelection campaign.

McCabe, who authorized an investigation into Trump for alleged ties to Russia and possible obstruction of justice, was fired in March 2018 after the Justice Department inspector general found he made an unauthorized disclosure to the media and lied to investigators about it.

Earlier this month, McCabe filed a lawsuit against the FBI and the Justice Department, alleging he was illegally demoted and fired as part of a plot by Trump to remove those who were not politically loyal to him.

Allies of Trump seized on McCabe’s hiring Friday to take aim at CNN, a news organization that the president has repeatedly denigrated as “fake news.”

“REMINDER: Andrew McCabe was fired by the FBI for leaking and getting caught lying about it,” Donald Trump Jr. tweeted. “ANOTHER REMINDER: @CNN ceased being a ‘news organization; a long time ago. They’re now a fully integrated anti-Trump propaganda network and they don’t even try hiding it anymore.”

In a subsequent tweet, Trump Jr. called McCabe and CNN “truly a match made in #FakeNews heaven.”

Matt Wolking, the deputy director of communications for Trump’s reelection campaign, also weighed in on Twitter. “Andrew McCabe was fired by the FBI for leaking to the media and lying to the FBI about it,” he wrote. “I guess crime does pay.”

Sen. Josh Hawley, R-Mo., leveled similar criticism, writing on Twitter, “Good work, CNN. Love to see that commitment to serious journalism.”

Asked for comment Friday, a CNN spokeswoman pointed to McCabe’s resume, which included two decades at the FBI and a book of his that was published last year, “The Threat: How the FBI Protects America in the Age of Terror and Trump.”

Other networks that have hired prominent government officials as analysts and commentators have also draw criticism.

Earlier this week, Fox News announced that it had hired former White House press secretary Sarah Sanders as a contributor. Among the critics of that move was Frank Figliuzzi, a former FBI assistant director who is now an NBC News contributor.

“Confessed liar earns salary increase: Sarah Sanders to join Fox News as a contributor,” Figliuzzi wrote on Twitter.

He was referring to an episode documented in the report of former Special Counsel Robert Mueller. In the aftermath of Trump’s firing of FBI Director James Comey in 2017, Sanders told reporters that “countless” FBI officials had reached out to her in support of the move.

Sanders later told Mueller’s investigators that her characterization was a “slip of the tongue.”

The Washington Post’s Matt Zapotosky contributed to this report.