A federal prosecutor was busted Saturday during a DWI stop in Manhattan — and wasn’t even behind the wheel.

Assistant US attorney Bianca Forde found herself needing a defense lawyer Saturday when she was arrested for trying to keep cops from administering a sobriety test to her boyfriend in Hell’s Kitchen, police and sources told The Post.

Forde, 35, was riding shotgun with her boyfriend when cops pulled over their 2020 Chevy Camaro about 12:15 a.m. at the intersection of 11th Ave. and W. 40th St., police said.

Forde — who works in the Criminal Division of the US Attorney’s Office in Washington, DC — jumped out of the car, which had Virginia plates, ignoring multiple police warnings to stay inside the vehicle.

She then began imploring her beau not to submit to the test, according to police, who said that she appeared to have been drinking.

According to prosecutors, Forde tried to use her prestigious job to intimidate officers — falsely telling them that she didn’t have to listen to them because she is an attorney.

Her 40-year-old boyfriend eventually submitted to the test — passed, and was not arrested, police said.

Instead it was Forde — who flailed her arms in the air as police attempted to cuff her — who was arrested, police said.

Forde was arraigned in Manhattan Criminal Court on Saturday night on a trio of charges: obstructing governmental administration, resisting arrest and failure to obey police officers.

Her attorney, Lance A. Clarke, objected to courtroom photography by members of the press, claiming “safety concerns.”

But Judge James Clynes overruled him and Forde was captured looking glum-faced at the bench.

During the arraignment, prosecutors revealed that Forde had told cops: “You have no right to ask him to exit the vehicle. this is against the law. I don’t have to listen to you — I’m an attorney. I’m barred in New York, I practice here. I’m A US attorney. I’m his attorney — he doesn’t have to blow.”

Clynes set a return date for January 17.

Forde has Big Apple-area connections.

She worked for a trio of private firms in the city — Dewey & LeBoeuf LLP, Winston & Strawn LLP and Milbank, Tweed, Hadley & McCloy LLP — and her mom lists her address as North Baldwin on Long Island. Records show Forde also lived in North Baldwin.

Forde investigates, indicts and tried firearms offences for the US Attorney’s Office, where she has worked for the past four years, according to her LinkedIn page.

Born in the US to Guyanese parents, Forde received her bachelor’s in political science from Duke University in 2005 .

While there, she headed the fundraising committee for the Delta Sigma Theta sorority and was a soloist and section leader for the United & Praise Gospel Choir, according to her LinkedIn page.

She went on to Boston College Law School, where she belonged to the Frederick Douglass National Moot Court Team and won the Best Oral Advocate Award.

The US District Attorney’s Office for the District of Columbia did not immediately return request for comment. Calls to Forde and her mother were not immediately returned.

A man who identified himself as Forde’s uncle declined to comment Saturday afternoon, telling The Post the family wasn’t talking to anyone.

In a glowing profile on Forde on the Duke website, she said it was ironic she had stints in law offices in Dubai, London and Paris as she chose to focus on American politics rather than international relations.

“In hindsight, my limited foresight is almost comical,” she wrote.

Additional reporting by Georgett Roberts