WASHINGTON — Sarah Huckabee Sanders, the White House press secretary, said on Tuesday that the Justice Department should “certainly look at” charging James B. Comey, the F.B.I. director whom President Trump fired, for what she described as leaks of classified information.

Ms. Sanders made the remarks after being asked at the White House press briefing whether the president was aware that his former chief strategist, Stephen K. Bannon, had said in an interview on “60 Minutes” that firing Mr. Comey was the biggest mistake “in modern political history.”

Ms. Sanders did not answer the question directly, but she said that Mr. Trump had been proven right in firing Mr. Comey in May. Asked whether Mr. Comey should be prosecuted, Ms. Sanders replied, “That’s not the president’s role.”

She added, “That’s the job of the Department of Justice, and something they should certainly look at.” She would not say whether the White House would like to see such an inquiry.