Jan. 23 (UPI) -- A judge in Spain's highest court accused Israel of refusing to cooperate with a long-running investigation into the use of Israeli-developed Pegasus spyware to bug the phones of Prime Minister Pedro Sanchez and members of his government.

Jose Luis Calama, a judge in the criminal division of the National Criminal and Administrative Court, said Thursday that Jerusalem had ignored five requests for cooperation with the probe after it uncovered preliminary evidence of illegal gathering of classified information that "jeopardized" Spain's national security.

Israeli authorities' refusal to engage was in breach of international treaties and violated "the principle of good faith" between nations, he said.

The investigation, launched in 2022, into alleged hacking against Sanchez and Defense Minister Margarita Robles found that Sanchez's phone was infected with the spyware developed by Israel's NSO Group five times between 2020 and 2021, with more than 2.5 gigabytes of files stolen.

Related