Dana Perino called out the unnamed White House official Wednesday on The Five who penned a New York Times opinion piece blasting President Trump.

The piece, titled "I Am Part of the Resistance Inside the Trump Administration," is written by an anonymous senior official who said other top White House officials are "working diligently from within to frustrate parts of [President Trump's] agenda and his worst inclinations."

Perino, who served as White House press secretary under President George W. Bush, called the author of the op-ed "extremely self-indulgent."

"You should not be lapping up the benefits of being a senior administration official, no doubt while scouting for lucrative opportunities for when you leave your post."

'Tedious Spectacle': Ingraham Slams Dems for 'Coordinated Campaign of Stunts' at Kavanaugh Hearing

President Trump addressed the piece during a meeting with sheriffs from across the country at the White House, calling it "gutless."

"If I weren't here, I believe the New York Times probably wouldn't exist," he said.

Perino said that something about the release of the op-ed is suspicious, given that it was published just a day after excerpts of veteran journalist Bob Woodward's book on Trump's White House were published by The Washington Post.

"If you are this person, you really should resign tonight," she said.

White House Press Secretary Sarah Sanders tweeted a statement regarding the story Wednesday evening, agreeing with Perino's sentiment.

"This coward should do the right thing and resign," Sanders wrote.

The Post published excerpts from Woodward's "Fear: Trump in the White House" on Tuesday by The Washington Post, and the book portrayed a chaotic White House under President Trump in which he is bad-mouthed by members of his staff.

Watch more above.

Huckabee on Woodward's Book: Only a 'Gutless Coward' Uses Anonymous Sources

Former UFC Fighter, Army Ranger Joins Nike Boycott Over Kaepernick Ad

'Crazy Never Takes a Vacation' in DC: Sen. Kennedy Blasts Dems for 'Orchestrated' Outbursts at Kavanaugh Hearing