A Spanish security firm that worked for the Ecuadorean embassy in London is being investigated on suspicion it spied on WikiLeaks founder Julian Assange for US secret services.

Spain's National Court says it is investigating whether David Morales and his Undercover Global SL security agency invaded Assange's privacy and that of his lawyers by installing hidden microphones and other devices in the embassy.

It said the information gathered appeared to have been passed on to Ecuadorean and US bodies.

Assange is jailed in London, fighting extradition to the US on espionage charges.

AAP

He was given asylum in the embassy for some seven years after jumping bail in 2012 when Sweden sought his extradition on sexual misconduct allegations.

Court documents said Morales and his firm, based in the southern Spanish town of Jerez de la Frontera, were also under investigation for bribery and money laundering.

The court opened the investigation in August following a complaint by Assange and his defence team but did not release the information until Wednesday as it had placed a secrecy order on the case.

A court official confirmed Morales was arrested last month but is on conditional release.

Spanish newspaper El Pais, which first reported the story several weeks ago, said on Wednesday that police arresting Morales confiscated computer hard disks and documents as well as two guns with erased identification numbers.

It said Morales had his passport confiscated, financial accounts blocked and must report to the court every two weeks.