JERUSALEM (AP) — U.S and British intelligence cracked the codes of Israeli drones operating in the Middle East and monitored their surveillance feeds for almost 20 years, according to documents leaked by an American whistleblower and published in international media on Friday.

Reports by the German magazine Der Spiegel and the investigative website The Intercept said the details emerged from documents leaked by Edward Snowden, the former National Security Agency contractor who leaked millions of documents about U.S. government surveillance in 2013.

The reports said the intelligence agencies were able to watch information that the drones and other aircraft broadcast back to their handlers. The project codenamed "Anarchist" has operated since 1998 and was based near the highest point in Cyprus. Israel was the focus of the program but it also hacked into systems in Egypt, Turkey, Iran and Syria, the reports said.

In one instance in 2008, an NSA internal newsletter boasted of the Anarchist program successfully collecting video from the cockpit of an Israeli F-16 fighter, the Intercept report said. It said the hacking granted intelligence agencies a "virtual seat in the cockpit" as Israeli aircraft hit targets.

It also showed footage of what it said appeared to be armed drones. Israel neither denies nor confirms use of weaponized drones.

There was no official comment on the reports In Israel. However, Israeli Cabinet minister Yuval Steinitz, who has held the post of minister of intelligence affairs, said, "We are not surprised; we know that the Americans spy on every country in the world and on us as well, on their friends."

"It is nevertheless disappointing because among other reasons, we haven't been spying or collecting intelligence or cracking codes in the United States for decades," he told Army Radio.

The White House declined to comment on alleged U.S. intelligence activities but said the U.S. commitment to Israel's security remained "sacrosanct."

"We do not conduct any foreign intelligence surveillance activities unless there is a specific and validated national security purpose," said White House spokesman Josh Earnest.

Britain's Foreign Office said: "We don't comment on intelligence matters."

___

Associated Press writers Jill Lawless in London and Josh Lederman in Washington contributed to this report

___

This story has been corrected to show that Der Spiegel is a magazine, not a daily and to show that intelligence agencies were granted a "virtual seat in the cockpit" as Israeli aircraft hit targets, not as drones hit targets.