Homeland Security Secretary Gen. John Kelly took a shot at the mainstream media during the U.S. Coast Guard's graduation ceremony in New England.

At the commencement in New London, Conn., a group of cadets gave President Trump a ceremonial saber.

Trump nodded and thanked the men, then took a seat next to Kelly.

JD Hayworth: Media Now Marketing 'The Lynching of the President'

Gohmert: I'm 'Amazed Comey Appears to Be Confessing to a Crime'

Rep. Duncan Hunter: 'Nothing Wrong' With Trump's Comments to Comey

A hot microphone caught Kelly joking with Trump: "You could use that on the press, sir."

"Yeah, I know," Trump responded.

Trump has weathered several breaking reports from mainstream media outlets over the past several weeks, including coverage of a controversial memo and an offer of confidential information to the Russians.

Watch the clip above.

Report: Obama Told Friends Trump 'Nothing But a Bulls**ter'

Goldberg Pens Letter to Pence: 'You're the One Person Trump Can't Fire'

Sen. Strange: Media Is 'Hyperventilating' Over Comey Memo