During the presidential transition, Obama National Security Adviser Susan Rice boasted publicly she had her replacement Gen. Michael Flynn’s back, but apparently, the whole time she’d been stabbing him in the back instead.

“General Flynn, I am rooting hard for you,” she said in remarks delivered at a Jan. 10 conference on the transition.

“While it’s no secret that this administration has profound disagreements with the next one, I intend to make myself available to him, just as my predecessors have for me,” Rice said. “We are all patriots first and foremost. Threats to our security and democracy should be above partisanship.”

Speaking at the “Passing the Baton” forum hosted by the US Institute of Peace, in Washington, Rice waxed on about how helpful she’d been to her successor, Flynn, even though White House computer logs recently uncovered by congressional investigators reportedly indicate her office secretly spied on him and other Trump figures during the transition period.

“As part of the transition, I’ve had constructive meetings with General Flynn, and my team has met extensively with his,” Rice chirped. “I’m very proud of the professional manner in which we have conducted this transition. This was a tough and hard-fought election. But, our national security is — and must always remain — above the fray.”

“This goes beyond party or politics,” she added.

Rice, however, is now suspected of having led a political witch hunt against Flynn, who resigned as National Security Council director after several officials within the Obama administration illegally leaked raw intelligence reports about contacts he had with the Russian ambassador in December. Though there is no evidence Flynn promised anything to the Russians, his failure to disclose the contacts proved an embarrassment to the Trump White House.

While playing nice, Rice reportedly kept tabs on the incoming Trump team and its transition plans. She is said to have repeatedly asked for the “unmasking” of the protected identities of Trump officials and associates who were intercepted by US intelligence in the course of foreign surveillance.

Flynn was one of the individuals whose name was unmasked.

After initially denying the unmaskings, Rice has now admitted not only making such requests, but escalating them after the election — though she insisted they were made for national security reasons and “not for any political purposes.”

Was she the NSC official who requested the unmasking of Flynn? “I don’t want to talk about any individuals,” she demurred.

Rice flatly denied leaking classified information about Flynn to the media.