Foreign embassies and consulates belonging to the US, the UK, Canada, and Australia have been used to collect signals intelligence, with the spy installations often hidden within the buildings.