State Senate candidate Julia Salazar claimed on Tuesday that she was sexually assaulted by David Keyes, the spokesperson for Israel’s Prime Minister Benjamin Netanyahu.

Salazar, a Democratic Socialist running for a seat in Brooklyn whose campaign has generated a string of controversies, said she was revealing the assault accusation to pre-empt the publication of a piece that casts doubt upon her and other women’s accusations against Keyes.

She did not identify the publication or reveal the time frame when the alleged assault took place.

“There’s a reason women don’t often come forward after a traumatic experience — because of the triggering and vicious responses that follow,” she wrote on Twitter. “I strongly believe sexual assault survivors should not be outed in this way, and am saddened by the effect this story may have on other women.”

An email to Keyes and the prime minister’s press office wasn’t immediately returned.

A spokesman for Salazar didn’t respond to a request for comment on the contents of her tweet.

Earlier in the day, the government watchdog group Citizens Union rescinded its endorsement of Salazar in Thursday’s Democratic primary against incumbent state Sen. Martin Malave Dilan.

The group cited recent revelations that she’s embellished her biography — including claims that she graduated from Columbia University, .

“Salazar recently admitted that the information she originally provided to Citizens Union about her academic credentials was not correct, so Citizens Union has decided to express no preference in this race,” said Randy Mastro, chairperson of the group.

Salazar has come under fire for making since-challenged claims that she was a “proud immigrant” from Colombia and grew up in an economically distressed, working-class family.

Her brother and mom have disputed those claims, saying Salazar was born in Florida and grew up in an economically stable household.

A spokesman for her campaign attributed the Citizens Union move to an “error” in Salazar’s paperwork to the group.

“Julia regrets that an error in her endorsement application led to Citizens Union rescinding its endorsement, but remains committed to working with Citizens Union and others opposed to Albany corruption if elected to take money out of politics and clean up Albany,” said Salazar spokesman Michael Kinnucan.

Salazar’s roller-coaster campaign also drew scrutiny when court papers were unearthed in which she claimed she had been falsely accused of having an affair with New York Mets legend Keith Hernandez — and of stealing cash and booze from his ex-wife’s house. Salazar got a $20,000 settlement in that case. The information was included in a since-settled defamation case she filed against Hermandez’s ex-wife, Kia Hernandez.