Massachusetts Sen. Elizabeth Warren, arguably the most outspoken Democratic critic of secret money in politics, last month sent a plea to donors to help counter “buckets of right-wing dark money” spent by “the Koch brothers and their shady network of outside groups” to unseat leftist giants like her.

But now, in a fit of hypocrisy, a top protégé of Warren is using secret money to protect her and President Barack Obama’s anti-business brainchild, the Consumer Financial Protection Bureau, from duly coming under the control of the Trump administration and its regulatory reforms.

Before stepping down as CFPB’s overzealous first director over Thanksgiving, Obama appointee Richard Cordray hand-picked a successor, Leandra English, to preempt an appointment by President Trump.

Undeterred, Trump installed his budget director, Mick Mulvaney, to temporarily run the powerful agency, which has the authority to determine the “fairness” of virtually every financial transaction in America.

But English, who previously served in the White House as a senior Obama adviser, insisted she was the “rightful” acting director, and filed a temporary restraining order against Trump to block Mulvaney from taking over. A federal judge denied the order Tuesday, but her legal team has vowed to continue fighting, arguing Trump is attempting an “end-run” on the bureau.

English is represented by Gupta Wessler, known inside the Beltway as the “anti-Trump law firm” for its many other lawsuits against the president. Only, she’s not paying the firm. And the bureau isn’t picking up the legal tab; its general counsel sides with the president.

So who’s funding this extraordinary legal battle with the White House? English’s lead attorney, Deepak Gupta, refuses to say.

“I’m not going to describe [the financial] arrangements,” he said Tuesday in a tense exchange with CNBC anchor Michelle Caruso-Cabrera. “I don’t think it’s appropriate for me to be talking about that on TV right now.”

All he’d disclose is that they had set up a “structure” similar to a “legal defense fund” to cover his fees, but he wouldn’t name any of the donors contributing to the fund.

Hmm. Anonymous donors. Mysterious funding. Shady network of outside groups. Sounds a lot like the “dark money” Gupta’s former boss Warren complains is “unduly influencing our political system” and “destroying democracy.”

Gupta worked directly under Warren, who was tapped by Obama to set up the CFPB in 2011 and who is now publicly backing English’s claim to control the bureau. Before founding his law firm in 2012, Gupta served as CFPB’s senior litigation counsel and senior counsel for enforcement strategy.

Gupta sits on the board of several left-wing groups. Warren worked directly with Americans for Financial Reform, a cabal of anti-Wall Street progressives, to help draft the legislation that created the CFPB.

They’re protecting not just their grip on a powerful agency but also a little-known but massive slush fund set up to fund leftist groups like theirs.

The agency — whose apparatchiks have given nearly all donations to Democrats — forces financial institutions it prosecutes to donate to third-party community organizers. Penalties in such cases are deposited into the bureau’s now-$170 million-plus Civil Penalty Fund, which has, in turn, channeled almost $30 million to “consumer advocacy” groups.

Which groups? The agency won’t say. The fund has avoided independent audit.

This is the fiefdom Democrats are hypocritically protecting with their own dark money.

All those complaints about “big secret funding” were just to vilify GOP donors, and all that talk about the “rule of law” was empty rhetoric. Democrats don’t want the rule of law, they want to make their own law — through unconstitutional entities like CFPB, which is simply social engineering masquerading as consumer protection.

Paul Sperry is a former Hoover Institution media fellow and author of several nonfiction books.