NEW YORK, NY - JANUARY 12: Former New York City Mayor Rudy Giuliani speaks to reporters at Trump Tower, January 12, 2017 in New York City. President-elect Trump continues to hold meetings Trump Tower. (Photo by Drew Angerer/Getty Images)
Drew Angerer/Getty Images/FILE
NEW YORK, NY - JANUARY 12: Former New York City Mayor Rudy Giuliani speaks to reporters at Trump Tower, January 12, 2017 in New York City. President-elect Trump continues to hold meetings Trump Tower. (Photo by Drew Angerer/Getty Images)
Now playing
01:44
Rudy Giuliani explains why Trump fired Comey
Getty Images
Now playing
01:12
Trump: I didn't fire Comey because of Russia
Ousted FBI director James Comey listens during a hearing before the Senate Select Committee on Intelligence on Capitol Hill June 8, 2017 in Washington, DC.
BRENDAN SMIALOWSKI/AFP/Getty Images
Ousted FBI director James Comey listens during a hearing before the Senate Select Committee on Intelligence on Capitol Hill June 8, 2017 in Washington, DC.
Now playing
01:20
Memos add new details to Comey's story
Conway Cuomo 04162018
CNN
Conway Cuomo 04162018
Now playing
01:48
Conway: All Comey had to do was keep mouth shut
Now playing
01:22
Toobin: Comey's account devastating for Trump
Rick Santorum
Rick Santorum
Now playing
01:29
Santorum rips Comey's 'tell-nothing' book
Team Coco
Now playing
03:50
Comey on Conan: Trump spy claims are made up
photo illustration: getty images/flatiron books/allie schmitz/cnn
Now playing
01:44
Trump unloads on Twitter at Comey
Now playing
04:46
Cooper questions Trump's respect for the law
Kellyanne Conway newday 04162018
CNN
Kellyanne Conway newday 04162018
Now playing
02:01
Conway: Comey's FBI was a hot mess
comey abc 2
ABC
comey abc 2
Now playing
02:49
Comey: Briefing Trump felt like out-of-body experience
WASHINGTON, DC - JUNE 08: Former FBI Director James Comey leaves a closed session with the Senate Intelligence Committee in the Hart Senate Office Building on Capitol Hill June 8, 2017 in Washington, DC. Comey said that President Donald Trump pressured him to drop the FBI's investigation into former National Security Advisor Michael Flynn and demanded Comey's loyalty during the one-on-one meetings he had with president. (Photo by Drew Angerer/Getty Images)
Drew Angerer/Getty Images
WASHINGTON, DC - JUNE 08: Former FBI Director James Comey leaves a closed session with the Senate Intelligence Committee in the Hart Senate Office Building on Capitol Hill June 8, 2017 in Washington, DC. Comey said that President Donald Trump pressured him to drop the FBI's investigation into former National Security Advisor Michael Flynn and demanded Comey's loyalty during the one-on-one meetings he had with president. (Photo by Drew Angerer/Getty Images)
Now playing
00:52
White House: Comey a 'disgraced partisan hack'
ABC
Now playing
02:04
Comey: Trump unfazed by Russian meddling
CNN
Now playing
01:20
Clapper: Comey accounts are accurate
CNN Illustration/Getty Images
Now playing
02:08
Comey details 2017 meeting with Trump in book
WASHINGTON, DC - JANUARY 22: U.S. President Donald Trump (L) shakes hands with James Comey, director of the Federal Bureau of Investigation (FBI), during an Inaugural Law Enforcement Officers and First Responders Reception in the Blue Room of the White House on January 22, 2017 in Washington, DC. Trump today mocked protesters who gathered for large demonstrations across the U.S. and the world on Saturday to signal discontent with his leadership, but later offered a more conciliatory tone, saying he recognized such marches as a "hallmark of our democracy." (Photo by Andrew Harrer-Pool/Getty Images)
Pool/Getty Images North America/Getty Images
WASHINGTON, DC - JANUARY 22: U.S. President Donald Trump (L) shakes hands with James Comey, director of the Federal Bureau of Investigation (FBI), during an Inaugural Law Enforcement Officers and First Responders Reception in the Blue Room of the White House on January 22, 2017 in Washington, DC. Trump today mocked protesters who gathered for large demonstrations across the U.S. and the world on Saturday to signal discontent with his leadership, but later offered a more conciliatory tone, saying he recognized such marches as a "hallmark of our democracy." (Photo by Andrew Harrer-Pool/Getty Images)
Now playing
02:21
Trump and Comey's ups and downs
Ousted FBI director James Comey listens during a hearing before the Senate Select Committee on Intelligence on Capitol Hill June 8, 2017 in Washington, DC.
BRENDAN SMIALOWSKI/AFP/Getty Images
Ousted FBI director James Comey listens during a hearing before the Senate Select Committee on Intelligence on Capitol Hill June 8, 2017 in Washington, DC.
Now playing
02:25
Timeline of Trump firing James Comey
(CNN) —  

Former FBI Director James Comey defended the bureau on Thursday after Rudy Giuliani compared FBI agents to “stormtroopers” over last month’s raid on President Donald Trump’s personal attorney, Michael Cohen.

“I know the New York FBI. There are no ‘stormtroopers’ there; just a group of people devoted to the rule of law and the truth. Our country would be better off if our leaders tried to be like them, rather than comparing them to Nazis,” Comey wrote in a tweet.

The term “stormtroopers” originated during World War I to describe German assault troops, but it’s also been applied to enforcers of the early Nazi Party during the rise of Adolf Hitler. In modern times, it’s become known for describing enemy infantrymen in the “Star Wars” universe.

In a Wednesday interview with Fox News’ Sean Hannity, Giuliani revealed that Trump had reimbursed Cohen for a $130,000 payment to adult film actress Stormy Daniels. In discussing the transaction, Giuliani criticized an FBI raid on Cohen that took place last month.

After Giuliani referred to the $130,000 payment as a “settlement payment,” and described it as “a very regular thing for lawyers to do,” he said, “the question there was – the only possible violation there would be, was it a campaign finance violation, which usually would result in a fine by the way not this big, stormtroopers coming in and breaking down his apartment, and breaking down his office.”

CNN has previously reported that the FBI raid – which was prompted by search warrants that had been executed by the US Attorney’s Office for the Southern District of New York – included a search for information related to the agreement with Daniels. Giuliani’s remark on Wednesday was particularly notable, as he was once a US attorney for the district.

Giuliani, like Trump, has offered up scathing criticism of Comey. At one point during his interview with Hannity, Giuliani said of the former FBI director, “this is a very perverted man.” He also called Comey “a disgraceful liar.”

CNN’s Eli Watkins contributed to this report.