A Brooklyn prosecutor has been charged with forging judges’ signatures on two wiretap warrants in what a source said was her effort to keep tabs on a male cop and a female colleague who were apparently part of a personal entanglement.

Tara Lenich, 41, a Brooklyn District Attorney’s office veteran who was deputy chief of the Violent Criminal Enterprises Bureau, was released on $25,000 bail late Monday after being accused of 22 counts of eavesdropping and possession of a forged instrument.

advertisement | advertise on newsday

The criminal complaint said she forged 25 court orders for telephonic and electronic intercepts on two cellphones between June 8, 2015, and Nov. 25, 2016. The source said it wasn’t clear whether the case involved a love triangle or another type of personal matter.

Lenich was fired.

“We conducted a swift and thorough investigation, immediately terminated the employee and ordered a comprehensive review of our protocols and procedures to make sure that this abuse of authority never happens again,” said a spokesman for the Brooklyn District Attorney’s office.

Her lawyer, Gary Farrell, said Lenich was arrested when she came to work on Monday, and would respond to the accusations in court.

advertisement | advertise on newsday

“She’s a highly regarded prosecutor who is well respected by people in the Brooklyn court system,” he said. “These are serious and disturbing charges and she’s going to have to deal with them.”