A Spanish defense and security company that was spying on Julian Assange during his political asylum was sharing their server containing profiles and information about the WikiLeaks founder’s guests, including doctors, lawyers, and journalists, with the CIA.

The company, Undercover Global SL, also recorded audio and video of all his visits in London’s Ecuadorian embassy and shared them with the American spy agency, Spanish newspaper El Pais reports.

Undercover Global SL’s owner, David Morales, had reportedly directed his staff to classify Russian and American citizens who visited Assange as “top priority targets,” according to documents obtained by El Pais.

The newspaper described UG Global SL’s headquarters as a “kind of ‘Big Brother’ where all the data was deposited in an orderly manner,” the data gathered on Assange and his visitors. The information was sorted by the guest’s nationality, and included doctors, lawyers, journalists and diplomats.

TRENDING: HERE SHE COMES! Judge Amy Coney Barrett Seen Leaving Her House with Her Seven Kids and Husband! -- Announcement at 5 PM ET

One of the company’s primary objectives was to photograph the IMEI number of visitor’s phones, which is one of the most valuable pieces of information to hack a phone. When visitors arrived at the embassy they were forced to leave any computers or phones at the front desk. The company then took apart the phones to photograph the number.

The Spanish article says that their study of the reports prepared for years by this company demonstrates that international news and the events surrounding the publisher modified the objectives of the company and its “North American clients.”

Video cameras with microphones were placed in the embassy in late 2017 and recorded the publisher 24 hours a day. Following each visit, a report with the date of the appointment, copy of the guest’s passport, and video of the visit were logged by the company.

During my last visit with Assange prior to his arrest, the staff of the embassy locked this reporter in a room while their ambassador got into a fight with the publisher. The embassy had been refusing to let him meet with me unless he, and his lawyer, went through a full body search prior to being allowed into the room where I was.

In the fireworks that followed, Assange accused the ambassador of being an agent of the United States government.

Just like my previous visit, since new rules for visitors were enacted, I couldn’t take my phone into the meeting without giving the Ecuadorian officials a swathe of data. If you want to take it in with you, they request its brand, model, serial number, IMEI number, and telephone number. I was also advised that Ecuador could not be trusted to hold my phone while I met with Assange, so I left it behind and walked to the embassy phoneless.

The new protocol also stated that the embassy would keep a record of all visits made to Assange and the data that they provide. This information will be sent to the Ecuadorian Ministry of Foreign Affairs and other “undisclosed agencies,” which we know now included the CIA.

A few moments after my arrival at the embassy, just weeks before his arrest, Assange walked by the door, but could not enter. Embassy staff demanded that he submit to a full-body scan with a metal detector before allowing him in the room. They had not done this with any other visitor in the nearly seven years that he has lived there, including during my previous visits.

“I don’t want to do the body scan. It is undignified and not appropriate,” I heard Assange say. “I am just trying to have a private meeting with a journalist.”