Julian Assange was spied on via a bug in the toilet at the Ecuadorian embassy at the request of "friends in America", who discussed kidnapping or poisoning the Australian, a court has heard.
Assange took refuge at the London embassy for seven years from 2012, concerned he would be pursued over the publication of thousands of classified documents.
His extradition hearing at London's Old Bailey on Wednesday heard from two anonymous witnesses who had worked for a Spanish firm with a contract at the embassy.
One of them revealed the lengths "friends" in the US considered going to in Assange's case after US President Donald Trump came to power in 2017.
UC Global boss David Morales allegedly instructed the installation of cameras with sophisticated audio capability to secretly record Assange's meetings, particularly with his lawyers, the court heard.
"On one occasion around December 2017, Morales said the Americans were desperate and suggested more extreme measures to put an end to the situation, suggesting the door in the embassy would be left open, allowing people to kidnap him from outside, and even the possibility of poisoning him was discussed," one witness told the court.
"All these considerations were under consideration with contacts in the US."
The court heard how UC Global had a contract with Ecuador from 2015.
"He (Morales) entered into arrangements with US authorities to supply them with sensitive information about Assange and the president of Ecuador," the witness said.
A second witness, employed as an IT expert from 2015, recalled Morales saying they were moving into the "premier league" having "gone to the dark side".
Once Trump won the US election in late 2016, the collection of information intensified and Morales became "obsessed with obtaining as much information as possible", the court heard.
Around June 2017, Mr Morales instructed that the cameras installed at the embassy should allow streaming so "our friends in the US would be able to gain access to the interior of the embassy in real time", it was alleged.
In 2018, the witness was told to travel to London to install microphones including a fire extinguisher in a meeting room and in a toilet at the embassy where Assange met people.
The aim of bugging the embassy was to record meetings with visitors, specifically lawyers, as "that was required by our US friends".
The witness was asked to take pictures of "decorative objects" in a meeting room that could be used to conceal bugs, the court heard.
Personnel were asked to obtain Assange's fingerprint from a glass imprint, it was also alleged.
The witness also stated they were asked by Morales to steal the nappy of a baby that regularly visited Assange, to establish paternity.
Instead, the witness revealed the plan to the child's mother.
The recordings were taken personally by Morales to the US, the court heard.
It was claimed he had increased assets, including a new home estimated to be worth one million euros ($A1.6m) and high end vehicles, and was being paid 200,000 euro ($A330,000) a month by the US.
At the end of 2018, Assange's lawyers requested material possessed by UC Global.
It was alleged Morales proceeded to remove all the material from "Operation Hotel", the name of the contract.
On Tuesday, Judge Vanessa Baraitser granted the two witnesses the same anonymity as approved by a Spanish court, amid fears for their safety.
Australian Associated Press