Software:BlueTrace

From HandWiki
Revision as of 08:18, 9 February 2024 by HamTop (talk | contribs) (change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: COVID-19 contact tracing software
BlueTrace
BlueTrace Logo.svg
Developed bySingapore Government Digital Services
IntroducedMarch 24, 2020 (2020-03-24)
IndustryDigital contact tracing
Compatible hardwareAndroid & iOS smartphones
Physical range~10 m (33 ft)[1]

BlueTrace is an open-source application protocol that facilitates digital contact tracing of users to stem the spread of the COVID-19 pandemic.[2] Initially developed by the Singaporean Government, BlueTrace powers the contact tracing for the TraceTogether app.[3][4] Australia and the United Arab Emirates have already adopted the protocol in their gov apps,[5][6][7] and other countries were considering BlueTrace for adoption.[8][9] A principle of the protocol is the preservation of privacy and health authority co-operation.[10]

Overview

Preservation of user privacy was one of the core considerations around which BlueTrace was designed. To achieve this, personal information is collected only once at the point of registration and is only used to contact potentially infected patients. Additionally, users can opt-out at any time, clearing all personal information and rendering any recorded data untraceable. Contact tracing is done entirely locally on a client device using Bluetooth Low Energy, storing all encounters in a contact history log chronicling encounters for the past 21 days. Users in the contact log are identified using anonymous time-shifting "temporary IDs" issued by the health authority. This means a user's identity cannot be ascertained by anyone except the health authority with which they are registered. Additionally, since temporary IDs change on a regular basis, malicious third parties cannot track users by observing log entries over time.

Once a user tests positive for infection, the health authority requests the contact log. If the user chooses to share their log, it is sent to the health authority where they match the temporary ID with contact information. Health authorities are not able to access log entries about foreign users, so those entries are sent to the appropriate foreign health authority to be processed there. Once a log has been processed, the health authority contacts the user identified by the record.

Technical specification

Sequence diagram describing the BlueTrace protocol

The protocol is focused on two areas: locally logging registered users in the vicinity of a device and the transmission of the log to the operating health authority, all while preserving privacy. To achieve this, the protocol can be divided into the areas of device to device communication (DDC), and device to reporting server communication (DRSC).

The DDC component operates on top of the existing Bluetooth Low Energy protocol, defining how two devices acknowledge each other's presence.[10]:p. 2 The DRSC component uses HTTPS to communicate a timeline of visits to a centralized server owned by a health authority once a user has tested positive for an infection. The health authority can then, using the log, notify the users who came in contact with the infected patient.[10]:p. 2

Device to reporting server communication protocol

Each app implementing the BlueTrace protocol has a corresponding central reporting server operated by a health authority. The reporting server is responsible for handling initial registration, provisioning unique user identifiers, and collecting contact logs created by the DDC part of the protocol. When the user first launches a BlueTrace app, they will be asked for their internationally formatted phone number and are assigned a static UserID.[10]:section. 4 This phone number is later used if the user has registered an encounter in an infected patient's contact log.

Once registered, users are provisioned Temporary IDs (TempID) uniquely identifying them to other devices. Each TempID has a lifetime of 15 minutes to prevent malicious parties from performing replay attacks or tracking users over time with static unique identifiers.[10]:section. 4.2 TempIDs are generated from a user's UserID, the TempID start time, and the TempID expiry time, which is encrypted and turned into a Base64 encoded string by the server using a secret symmetric encryption key. To ensure devices have a constant supply of TempIDs, even in an unstable network environment, TempIDs are transmitted to devices in forward dated batches.[10]:section. 4.2 The composition of a TempID is shown below:

Once a user has been tested positive for infection, the health authority generates a PIN authenticating the user to upload their contact log to the reporting server. As part of the log, metadata about each encounter is included; the most important of which being the timestamp and health authority identifier (HAI).

The HAI identifies to which health authority the logged contact reports. If the HAI represents a foreign health authority the log entry is transmitted to the identified authority to be processed there.

Once a health authority has filtered log entries to only include home clients, they decrypt the TempID to reveal the UserID, start time, and expiry time. The start and expiry date are compared with the encounter timestamp to ensure validity, and the UserID is matched to a phone number. The health authority can then contact the phone number to inform a user of potential contact with an infected patient.

Device to device communication protocol

The DDC part of the protocol defines how two devices communicate and log their contact. Each device is in one of two states, Central or Peripheral, on a duty cycle of around 1:4, respectively.

In Peripheral mode, a device advertises its presence, and in Central mode, it scans for advertising devices. Additionally, certain devices are incapable of operating in Central mode and thus operate purely in Peripheral mode.[11] Once two devices have discovered each other, they communicate a characteristic packet containing information about themselves. The packet is formed as a JSON file, containing the device's TempID, device model, HAI, and BlueTrace protocol version.

When operating in Central mode, the device additionally sends the strength of the signal, allowing the approximate distance between the two devices to be calculated later. Below is an example Central characteristic packet:

{
	"id": "FmFISm9nq3PgpLdxxYpTx5tF3ML3Va1wqqgY9DGDz1utPbw+Iz8tqAdpbxR1 nSvr+ILXPG==", // TempID
	"md": "iPhone X", // Device model
	"rc": -60, // Signal strength
	"o": "IJ_HAI", // Health authority identifier
	"v": 2 // Protocol version
}

These characteristics are then added to a local database on the device where they are stored for 21 days and can be sent to the reporting server later. The contacted device is also added to a local blacklist for two duty cycles in order to stop two devices repeatedly contacting each other, saving power and storage.

Health authority cooperation

BlueTrace Health Authority Cooperation

The cooperation between separate health authorities is a core component of the BlueTrace protocol, and it is designed such that multiple authorities can work together without revealing personal information to foreign authorities with which a user is not registered. Since each authority maintains its separate encryption key and user records, a health authority can't decrypt and see a foreign user's data.

To ensure log entries are sent to the correct authority, part of the DDC handshake contains a health authority identifier (HAI), a unique string assigned to registered health authorities. Once a foreign health authority's log entry is identified, the receiving health authority transmits the log entry to the foreign authority's reporting server where it is verified, and a static PseudoID is returned.

The PseudoID is a salted cryptographic hash of the UserID, designed to allow foreign health authorities to perform statistical analysis on contact logs and communicate about a specific user without revealing unnecessary personal information. Once the PseudoID is assessed to have been in close contact with the infected patient, the foreign health authority that issued the PseudoID is informed and can follow up as necessary.

Withdrawal of consent

The ability of users to withdraw consent to the use and collection of their data at any time was an important consideration in the design of the protocol.[10]:section. 3; point. 4 To allow this, personally identifiable information is excluded from the DDC component of the protocol. This means the only place personal information is stored is on the reporting server, where it is associated with an anonymous static UserID. This UserID (encrypted in a TempID) is what is used for identification in the DDC part of the protocol. If a user withdraws consent, the user record is deleted from the reporting server, meaning UserIDs obtained through contact logs can no longer be matched to a phone number.

Controversy

One of the largest privacy concerns raised about protocols such as BlueTrace or PEPP-PT is the usage of centralised report processing.[12][13][14][15][16][17] In a centralised report processing protocol, a user must upload their entire contact log to a health authority administered server, where the health authority is then responsible for matching the log entries to contact details, ascertaining potential contact, and ultimately warning users of potential contact.[18]

Alternatively, decentralised report processing protocols, while still having a central reporting server, delegate the responsibility to process logs to clients on the network. Protocols using this approach, such as TCN and DP-3T, have the client upload a number from which encounter tokens can be derived by individual devices. Clients then check these tokens against their local contact logs to determine if they have come in contact with an infected patient.[19] Inherent in the fact the protocol never allows the government access to contact logs, this approach has major privacy benefits. However, this method also presents some issues, primarily the lack of human in the loop reporting, leading to a higher occurrence of false positives;[18] and potential scale issues, as some devices might become overwhelmed with a large number of reports. Decentralised reporting protocols are also less mature than their centralised counterparts.[20][21][22]

OpenTrace

OpenTrace is the open-source reference implementation of BlueTrace released under the GPL-3.0 license.[23][24][25] The DRSC side of the protocol is implemented using the Firebase platform,[26] using Firebase functions, a serverless computing framework, for all client calls; and Firebase Secret Manager[27]:lines 29–37 and Storage[28]:line 22 for storing the encryption key and contact logs respectively. For the app/DDC side of the protocol, a modified version of the TraceTogether app for Android and iOS devices is included.[29][30]

COVIDSafe

Main page: Software:COVIDSafe

COVIDSafe[31][32] is a digital contact tracing app announced by the Federal Australian Government based on OpenTrace/BlueTrace, announced on 14 April 2020 to help combat the ongoing COVID-19 pandemic.[33] On 26 April 2020, the Australian federal government publicly released the first version of the app.[6][5] Within the first 24 hours after release, over 1 million people downloaded the app,[34] and within 48 hours, over 2 million.[35] By the second week, over 4 million users had registered.[36] Accompanying the release, Peter Dutton, the Minister for Home Affairs, announced new legislation that would make it illegal to force anyone to hand over data from the app, even if they had registered and tested positive.[37][38] The app source code was also released on 8 May 2020,[39][40] after delays[41] until a review by the Australian Signals Directorate had been completed.[42]

See also

References

  1. Sponås, Jon Gunnar. "Things You Should Know About Bluetooth Range" (in en-gb). https://blog.nordicsemi.com/getconnected/things-you-should-know-about-bluetooth-range. 
  2. "Singapore government to open source contact-tracing protocol" (in en). https://www.computerweekly.com/news/252480501/Singapore-government-to-open-source-contact-tracing-protocol. 
  3. "TraceTogether - behind the scenes look at its development process" (in en). 25 March 2020. https://www.tech.gov.sg/media/technews/tracetogether-behind-the-scenes-look-at-its-development-process. 
  4. "APAC leads in open source adoption" (in en). https://www.computerweekly.com/news/252497326/APAC-leads-in-open-source-adoption. 
  5. 5.0 5.1 "The coronavirus tracing app has been released. Here's what it looks like and what it wants to do" (in en-AU). 26 April 2020. https://www.abc.net.au/news/2020-04-26/coronavirus-tracing-app-covidsafe-australia-covid-19-data/12186068. 
  6. 6.0 6.1 "Privacy concerns as Australia's controversial coronavirus tracing app nears launch" (in en). https://www.sbs.com.au/news/privacy-concerns-as-australia-s-controversial-coronavirus-tracing-app-nears-launch. 
  7. "BlueTrace: The tech that many want govt to incorporate in Aarogya Setu" (in en-US). 25 May 2020. https://www.financialexpress.com/industry/technology/bluetrace-the-tech-that-many-want-govt-to-incorporate-in-aarogya-setu/1969496/. 
  8. "Govt eyes Singapore COVID-19 tracking app" (in en-US). 27 March 2020. https://www.innovationaus.com/govt-eyes-singapore-covid-19-tracking-app/. 
  9. Keall, Chris (12 April 2020). "Covid 19 coronavirus: As NZ considers TraceTogether, a Kiwi in Singapore gives his verdict on the tracking app" (in en-NZ). NZ Herald. ISSN 1170-0777. https://www.nzherald.co.nz/business/news/article.cfm?c_id=3&objectid=12324262. 
  10. 10.0 10.1 10.2 10.3 10.4 10.5 10.6 Jason Bay, Joel Kek, Alvin Tan, Chai Sheng Hau, Lai Yongquan, Janice Tan, Tang Anh Quy. "BlueTrace: A privacy-preserving protocol for community-driven contact tracing across borders". https://bluetrace.io/static/bluetrace_whitepaper-938063656596c104632def383eb33b3c.pdf. 
  11. Mokhtari, Fares Othmane (20 September 2018). "bluetooth low energy on Android device (central side)" (in en). https://medium.com/fdevtech/bluetooth-low-energy-on-android-device-central-side-5838dd9b1123. 
  12. Surman, Mark. "Privacy Norms and the Pandemic" (in en-US). https://blog.mozilla.org/blog/2020/04/22/privacy-norms-and-the-pandemic. 
  13. "Das gefährliche Chaos um die Corona-App" (in de). Der Tagesspiegel Online. https://www.tagesspiegel.de/wissen/welche-technologie-soll-es-sein-das-gefaehrliche-chaos-um-die-corona-app/25755338.html. 
  14. "ZEIT ONLINE | Lesen Sie zeit.de mit Werbung oder imPUR-Abo. Sie haben die Wahl.". https://www.zeit.de/zustimmung?url=https%3A%2F%2Fwww.zeit.de%2Fdigital%2Fdatenschutz%2F2020-04%2Fcorona-app-initiative-pepp-pt-datenschutz-warnung-forscher. 
  15. SPIEGEL, DER (20 April 2020). "Projekt Pepp-PT: Den Tracing-App-Entwicklern laufen die Partner weg - DER SPIEGEL - Netzwelt" (in de). Der Spiegel. https://www.spiegel.de/netzwelt/apps/pepp-pt-in-corona-krise-den-tracing-app-entwicklern-laufen-die-partner-weg-a-017f50eb-c1e2-4097-8182-53708ca6db59. 
  16. Zeitung, Süddeutsche (20 April 2020). "Corona-App: Streit um Pepp-PT entbrannt" (in de). https://www.sueddeutsche.de/digital/coronavirus-pepp-pt-dp-3t-smartphone-app-streit-1.4882612. 
  17. Alex, Hern (20 April 2020). "Digital contact tracing will fail unless privacy is respected, experts warn" (in en-GB). The Guardian. ISSN 0261-3077. https://www.theguardian.com/world/2020/apr/20/coronavirus-digital-contact-tracing-will-fail-unless-privacy-is-respected-experts-warn. 
  18. 18.0 18.1 Jason Bay, Joel Kek, Alvin Tan, Chai Sheng Hau, Lai Yongquan, Janice Tan, Tang Anh Quy. "BlueTrace: A privacy-preserving protocol for community-driven contact tracing across borders". https://bluetrace.io/static/bluetrace_whitepaper-938063656596c104632def383eb33b3c.pdf. 
  19. "DP-3T whitepaper". https://github.com/DP-3T/documents/blob/master/DP3T%20White%20Paper.pdf. 
  20. "TraceTogether - behind the scenes look at its development process" (in en). 25 March 2020. https://www.tech.gov.sg/media/technews/tracetogether-behind-the-scenes-look-at-its-development-process. 
  21. "Initial commit · TCNCoalition/TCN@1b68b92" (in en). https://github.com/TCNCoalition/TCN/commit/1b68b920db1fb42709c7c8eb28c3d5e10c76fc3c. 
  22. "DP-3T whitepaper". https://github.com/DP-3T/documents/blob/master/DP3T%20White%20Paper.pdf. 
  23. "opentrace-community/opentrace-cloud-functions/blob/master/LICENSE.md" (in en). https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/LICENSE.md. 
  24. "opentrace-community/opentrace-android/blob/master/LICENSE.md" (in en). https://github.com/opentrace-community/opentrace-android/blob/master/LICENSE.md. 
  25. "opentrace-community/opentrace-ios/blob/master/LICENSE.md" (in en). https://github.com/opentrace-community/opentrace-ios/blob/master/LICENSE.md. 
  26. "opentrace-community/opentrace-cloud-functions/README.md" (in en). https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/README.md. 
  27. "opentrace-community/opentrace-cloud-functions/blob/master/functions/src/opentrace/utils/getEncryptionKey.ts" (in en). https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/functions/src/opentrace/utils/getEncryptionKey.ts. 
  28. "opentrace-community/opentrace-cloud-functions/blob/master/functions/src/config.example.ts" (in en). https://github.com/opentrace-community/opentrace-cloud-functions/blob/master/functions/src/config.example.ts. 
  29. opentrace-community/opentrace-android, OpenTrace, 12 April 2020, https://github.com/opentrace-community/opentrace-android, retrieved 12 April 2020 
  30. opentrace-community/opentrace-ios, OpenTrace, 12 April 2020, https://github.com/opentrace-community/opentrace-ios, retrieved 12 April 2020 
  31. jasoncartwright (26 April 2020). "The Government's COVID-19 tracking app is called CovidSafe and is launching today!" (in en-AU). https://techau.com.au/the-governments-covid-19-tracking-app-is-called-covidsafe-and-is-launching-today/. 
  32. "COVIDSafe - Apps on Google Play" (in en). https://play.google.com/store/apps/details?id=au.gov.health.covidsafe&hl=en_US. 
  33. Probyn, Andrew (14 April 2020). "The Government wants to track us via our phones. And if enough of us agree, coronavirus restrictions could ease" (in en-AU). https://www.abc.net.au/news/2020-04-14/coronavirus-app-government-wants-australians-to-download/12148210. 
  34. "COVIDSafe app reaches five-day download goal within five hours" (in en-AU). 27 April 2020. https://www.abc.net.au/news/2020-04-27/coronavirus-tracing-app-covidsafe-one-million-downloads/12187806. 
  35. "More than two million Australians download COVIDSafe contact tracing app" (in en). https://www.sbs.com.au/news/more-than-two-million-australians-download-covidsafe-contact-tracing-app. 
  36. Bourke, Sarah Keoghan, Mary Ward, Latika (4 May 2020). "Coronavirus updates LIVE: Australians download COVIDSafe app more than 4.5 million times, global COVID-19 cases climb past 3.5 million as nation's death toll stands at 96" (in en). https://www.smh.com.au/national/coronavirus-updates-live-global-covid-19-cases-surpass-3-4-million-western-sydney-nursing-home-under-investigation-as-australia-s-death-toll-stands-at-95-20200503-p54pg9.html. 
  37. "Coronavirus app comes with privacy guarantee: Dutton". https://www.theaustralian.com.au/nation/coronavirus-app-comes-with-privacy-guarantee-dutton/news-story/d87860b1780ac4b57cfe1eca4b558c7d. 
  38. "Coronavirus Australia live updates" (in en). 25 April 2020. https://www.news.com.au/world/coronavirus/australia/coronavirus-australia-live-updates/live-coverage/85ae03fa23ab5dbbb41967a9837c2e37. 
  39. "COVIDSafe" (in en). https://github.com/AU-COVIDSafe. 
  40. "Scott Morrison Is Now Saying Australia's Coronvirus Tracing App Won't Be Mandatory" (in en). 18 April 2020. https://www.gizmodo.com.au/2020/04/australia-coronavirus-tracking-app-mandatory-scott-morrison/. 
  41. "Health minister now unsure if source code for COVID contact tracing app is safe to release". https://www.itnews.com.au/news/health-minister-now-unsure-if-source-code-for-covid-contact-tracing-app-is-safe-to-release-546981. 
  42. Department of Health (25 April 2020). "COVIDSafe Privacy Impact Assessment – Agency Response". https://www.health.gov.au/sites/default/files/documents/2020/04/covidsafe-application-privacy-impact-assessment-agency-response.pdf. 

External links