A reserve officer in the Israeli army has been charged with offering to supply classified information to Iran, Russia and the Palestinian group Hamas.
Mr Shamir alleged actions were motivated by greed, say police
David Shamir, a psychiatrist, is accused of offering information on command centres and civilian evacuation plans in exchange for payment.
Court documents indicate Mr Shamir's repeated alleged attempts to offer his services were unsuccessful.
Mr Shamir has not formally responded to the charges yet.
Police say he has cited greed as a motive.
'Join the struggle'
Mr Shamir, 45, e-mailed Iran's foreign ministry in April to offer his services, according to the court indictment released on Friday.
The indictment suggests the ministry refused his offer.
He is then accused of faxing the Iranian consulates in London and Istanbul with a similar offer.
Earlier this month, Mr Shamir is alleged to have e-mailed a university in the Gaza Strip known to be a stronghold of the governing militant group Hamas - offering to "join the struggle" in exchange for money.
Mr Shamir also allegedly contacted the Russian intelligence service FSB, inquiring about the recruitment process for spies.
He is also being charged with contact with a foreign agent and obstruction of justice.
Classified documents were found at his house, as well as records of his attempts to contact hostile sources, reported Israel's Haaretz newspaper.
He was also reported to be in possession of marijuana.