You've successfully subscribed to Geoffrey Huntley
Great! Next, complete checkout for full access to Geoffrey Huntley
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.
COVIDSafe: Australia’s digital contact tracing failure

COVIDSafe: Australia’s digital contact tracing failure

I'm here all by myself reading actual peer-reviewed publications from other countries where appropriate technology was rolled out to assist medical professionals whilst Australia remains in shambles.

ghuntley
ghuntley

2020 was a year that I will never forget. Early February I was camping in the woods with a bunch of hippies without a care in the world meanwhile on the outside everyone in Babylon was starting to lose their collective shit.

It's now 2021 and I find myself wanting to scream into a paper bag about just how badly Australia has fucked up our response to COVID19. Vaccinations could have been done sooner if they were ordered.

Our two largest cities (Sydney and Melbourne) right now are in a continued state of lockdown, with the various states pursuing a COVID19 eradication strategy which has caused immense social and financial damage to our society. We could be united as country drinking beers right now and I could be with my kids but instead haunting images of police officers assaulting unarmed civilians are traversing through social media.

Were lockdowns the correct choice? I don't know. I'm just a nerd but what I do know is above is not how a functional liberal society should operate or respond to protests.

Currently, more than 38,000 Australians are stranded overseas and nobody can leave the country unless you have a rarely granted exemption. The prime minister of Australia threatened jail-time for anyone returning back from India due to concerns about the transmissibility of the Delta strain yet the New South Wales government when there was an outbreak of Delta strain was like "nah, she will be alright mate" and did nothing for weeks.

Every couple of days various state health departments of Australia are pushing out press releases about how their contact tracers are overwhelmed and I'm here all by myself reading actual peer-reviewed publications from other countries where this is not an issue because the appropriate technology was rolled out to assist medical professionals.

This topic is personal. I started authoring this article on Fathers Day and it was too upsetting to finish. Due to the lockdowns, my very young children haven't seen their father in 13 weeks and by the time lockdowns are over it's likely going to be six months since they last saw me. The borders are shut and my family unit is separated by two state governments who can't get their shit into gear. I'm going to miss both of their birthdays and the upcoming school holiday period once again.

If you think these lockdowns are not a concern, I'm going to flat out say it here - you are sitting in an immense position of privilege. Our country is divided between those who can work remotely (the laptop class) and those who cannot. Those who have financial means and those who do not. Those whose family units have not been personally affected and those who have.

https://www.9news.com.au/national/coronavirus-update-border-queensland-new-south-wales-frydenberg-urges-states-to-open-up/4250dda8-b524-4b07-aaae-3222afbd0958
Three-year-old boy granted exemption to cross NSW-Queensland border and return home
A toddler separated from his parents in Queensland after the borders closed while he was with his grandpare...

It's at this point of the story you are probably thinking, oh god. Who are you Geoff, why should I even listen to you and what is your point? In short, I'm an open-source software engineer who formed a community of researchers around digital contact tracing and our work earned us the LinuxConf Australia community recognition award:

2020 Community Recognition Award
Vanessa Teague, Geoffrey Huntley, Jim Mussared, Richard Nelson and the COVID-Safe Analysis team: For advocating for a better solution for All Australians and upholding Linux Australia’s Values.

https://linux.org.au/about-us/awards/

Greg Hunt, the Minister for Health and Aged Care was also quite a big fan of my work, well that is until I started speaking with the media and publicly retracted my support for the application due to breaches in the privacy legislation that underpinned the entire program of work were ignored.

"I've seen overnight some of the best technical minds in the country have been independently going through the #covidsafe app"
- Greg Hunt

From that point onwards, a dirty game of cat-and-mouse appeared where my previous vouch of the application was used against me by the DTA every time I spoke with the media. As the saga evolved accredited members of the media also received the same disdain and form letter responses.

As this post continues I hope you identify the recurring theme here that there have been fundamental problems with how the Australian government has engaged with its citizens, industry experts, journalists and where we are now (and our future privacy nightmares) can be in part traced back to the bungling of COVIDSafe.

what is COVIDSafe?

COVIDSafe is a digital contact tracing app announced by the Australian Government on 14 April 2020 to help combat the ongoing COVID-19 pandemic. The app was based on the BlueTrace protocol, originally developed by the Singaporean Government, and was first released on 26 April 2020.

The app was intended to augment traditional contact tracing by automatically tracking encounters between users and later allowing a state or territory health authority to warn a user they have come within 1.5 metres was completely ineffective at doing due to inappropriate technology choices, technical implementation flaws and failure to develop a social license.

A crisis is not an excuse
Community engagement, social licence, and digital contact tracing

at first, it was just me and matthew

On the 26th of April, I started dissecting the application and it quickly rose to the top of HackerNews and Mike Cannon Brookes (Co-founder of Atlassian) posted his first-ever comment on the website in response:

[snip] They won’t get it all right - and we as a tech community can help them. Find a bug & help get them closed.
- Mike Cannon Brookes

Meanwhile, my friend Mathew Robbins also was pulling apart the application in search of answers:

Both Michael and I were perplexed that a piece of technology was being launched at a press conference by ministers of the Australian government and there was no one made available to answer questions about the technology. Not a single technologist was in sight.

As there was no technologist provided to answer questions from the media, sourcing of experts was left up to the media and the result was chaos where the experts were spouting assumptions or what they heard in the press conference.  

No one who was speaking with the press had actually looked inside the application and the applications source code was not made available so without consideration of legalities I published the decompiled source code of the application on GitHub

GitHub - covidsafewatch/covidsafe-android-decompiled: The actual software that runs on Android phones.
The actual software that runs on Android phones. Contribute to covidsafewatch/covidsafe-android-decompiled development by creating an account on GitHub.

and with the help of others we called our own press conference:

then came community

The biggest piece of advice I can share with anyone getting involved with Australian politics is to not be a single person. I'm forever grateful to the unnamed academic who pulled me aside in the early days to teach me this lesson. Form a community, be the lone dancing idiot at first but when smarter people turn up do everything you can to support and focus the spotlight that was once on you on them instead.

As a result of running our own press conference three heavy hitters turned up in the newly formed discord server and from that point onwards my role changed from being the lone dancing person to the person who was declining media interviews so that Jim, Richard and Vanessa would get air-time.

Jim Mussared

Jim is a hybrid hardware and software developer, with current professional experience with open-source development and designing/developing BLE-based products for George Robotics. Formerly worked in programming/electronics education at Grok Learning, and before that at Google Australia as a tech lead in the SRE team as well as some time working with the Android team.

Jim's Bluetooth research into contact tracing has received worldwide praise. Jim discovered a Bluetooth security vulnerability (CVE-2020-12856) which requires governments to modify their technological approaches and programs of work

Richard Nelson

Richard is a professional software engineer of 16 years, 8 of which have been in mobile app development and leadership where he managed 6 squads, consisting of 32 developers at Qantas. Richard has a strong interest in InfoSec, and his research into the iPhone application background behaviour identified a coding error as a contributing factor preventing COVIDSafe from working effectively. Richard also discovered a denial of service vulnerability (CVE-2020–12717) in COVIDSafe.

Vanessa Teague

Vanessa Teague is an Australian cryptographer, known for her work on secret sharing, cryptographic protocols, and the security of electronic voting. She is Associate Professor (Adj.) at the Australian National University. Her work has uncovered serious errors and security problems in e-voting and e-counting systems in Western Australia, New South Wales and Switzerland. The problems identified allowed for undetectable privacy breaches or election manipulation.

#AusOpenTech

The topic of COVIDSafe is pretty much done and dusted these days but it served as a melting point that brought us four together. These days you'll often find us and others publishing research as AusOpenTech:

AusOpenTech
AusOpenTech has 6 repositories available. Follow their code on GitHub.

our latest publication

In response to the heavily redacted report released by the Australian government last month, we released our own report which used factual information presented in the Government’s report, along with known technical capabilities and limitations of the application in order to make recommendations for future work.

Experts call for rethink of COVIDSafe app
Offer frank assessment in wake of govt report.
In the wake of last week's government report into COVIDSafe, software developers Richard Nelson, Jim Mussared and Geoffrey Huntley and cryptographer Vanessa Teague have released their own assessment of the app’s operation and effectiveness.

We also compared more thoroughly with other technical solutions used globally, in particular Google and Apple’s collaboration on their Exposure Notification Framework (GAEN). The intended audience of the report are people who want to have an understanding of the history and issues that the COVIDSafe app faced with regards to functionality, security and privacy, and those who wish to learn from these challenges that the development of the COVIDSafe application faced.

Early Epidemiological Evidence of Public Health Value of WA Notify, a Smartphone-based Exposure Notification Tool: Modeling COVID-19 Cases Averted in Washington State
Background Secure and anonymous smartphone-based exposure notification tools are recently developed public health interventions that aim to reduce COVID-19 transmission and supplement traditional public health suriveillance. We assessed the impact of Washington State’s exposure notification tool, WA…

find a bug & help get them closed

The initial problems that were discovered by the community ranged from identifying misconfigured firewalls that inhibited people from completing registration in the application if they were connected to WiFi (yes, seriously) to missing telecommunication infrastructure:

‘It’s not an unknown issue’: Remote farmer calls for Telstra to rectify SMS flaw
While Australians debate privacy issues around the new COVIDSafe app, those in rural areas are being forced to go to great lengths just to activate the app before even being able to use it.

We identified a screen in the application that would likely cause panic:

When a user taps the "upload my data" button the next screen asserts "You have tested positive for COVID-19" which may be a false assertion and cause confusion. This text needs changing. Since the user is only supposed to upload data when asked to by a health official (see the previous screen), this statement should reiterate that data should not be uploaded UNLESS you have tested positive. It’s possible that uploading data without having tested positive will result in unnecessary and false notifications being sent to other users

This problem was reported to the DTA on launch night and on the 28th of April it happened:

Melbourne woman panics after confusing COVIDSafe app message
Confusion and privacy concerns have grown over the federal government’s COVIDSafe app, with one Melbourne w...

breach of privacy legislation

As days went past, we discovered that the application had a number of issues that allowed a malicious person to track any user for an indefinite period of time and the application was in breach of the privacy legislation that underpinned the program of work.  

After numerous attempts by the community to contact the federal department of health, the digital transformation office and 1300 CYBER1 we turned to the media as there was (and continues to be) no vulnerability disclosure program.  

Before this interview, I tried numerous times contacting the DTA, the Minister of Services Australia, the media/privacy departments and the Australian Signals Directorate.

As a result of ABC Radio National broadcast and Isobel Roe's help the DTA finally picked up the phone and called us. We now had a direct line to a public servant in leadership that we could speak directly with if we need to escalate (eg security research that's wormable) and discussions were had with assurances provided that the privacy problems would be resolved.

the first software update

I was in the middle of driving my kids back home across the QLD / NSW border when the update was released. The team quickly decompiled the application and uploaded it on top of the existing source code on GitHub to generate a diff.

Comparing apks/COVIDSafe_v1.0.11.apk...apks/COVIDSafe_v1.0.15.apk · covidsafewatch/covidsafe-android-decompiled
The actual software that runs on Android phones. Contribute to covidsafewatch/covidsafe-android-decompiled development by creating an account on GitHub.

The update was visual changes only - a new coat of paint.

It was at this point I publically retracted my support for the application. This is not how an agile software delivery project should be done. The application only exists thanks to the privacy legislation and to remain in breach was unacceptable.

None of the privacy flaws were resolved and we had been waiting weeks for this update.  COVIDSafe was caching a characteristic value that was read by a remote device using the MAC address of the remote device. Due to a logic error, this cache was only cleared when a successful transaction takes place (i.e. the remote device subsequently writes its own payload back to the characteristic).

Importantly, the cache entry was not removed when:

  • The two-hour expiry finishes for the TempID
  • After any sort of short time limit.

This meant that a remote device using a static address that never completed the transaction will always see the same cached TempID. This cached value lasted until the app is restarted (likely due to a phone reboot). This flaw also existed in the version of the OpenTrace source code that was shared with the Australian team and was been inherited by the Australian app.

The issue was first reported to the Singapore OpenTrace team at 12:38 am on 30/04/2020 and was fixed in this commit to the opentrace-android repository at 7:11pm on the same day.

The issue was first reported to privacy@health.gov.au at 1:19 am on 27/04/2020, and subsequently by in-app feedback later that day. It was also reported to asd.assist@defence.gov.au at 4:52 pm on 27/04/2020 and was finally fixed seventeen days later on 14/05/2020

remote control of mobile phones

On May 5th, 2020 both Jim Mussared (George Robotics) and Alwen Tiu (The Australian National University) responsibility disclosed a critical security vulnerability to the Australian government and put themselves under a self-imposed embargo due to the severity.

GitHub - alwentiu/COVIDSafe-CVE-2020-12856: A bluetooth-related vulnerability in some contact tracing apps
A bluetooth-related vulnerability in some contact tracing apps - GitHub - alwentiu/COVIDSafe-CVE-2020-12856: A bluetooth-related vulnerability in some contact tracing apps

This vulnerability enabled permanent tracking of people even after they had uninstalled the COVIDSafe application and remote control of mobile phones whilst it was installed.

On the 19th of June 2020, the prime minister of Australia called a mysterious presser that Australia was under cyber attack. At the time details were scarce but we now know it was related to unpatched Telerik controls.

Australian PM says nation under serious state-run ‘cyber attack’ – Microsoft, Citrix, Telerik UI bugs ‘exploited’
Won’t say who the attackers are working for – just don’t mention 中国

This presser is memorable for the AUSOpenTech community because the government and corporates were pushing for Australians to "download the app" and in doing so was exposing 6 million Australians who had installed the application to be remotely controlled and audio intercepted if the attacker was in Bluetooth proximity. For all the hoo haa about a cyber attack, the government and corporations were pushing people to install software onto their phones which enabled cyber attacks. 🤦

During the self-imposed embargo by Jim and Alwen, they continued their research and were madly sending messages via LinkedIn to government employees in other countries which had also adopted the Singapore application. Countries affected included: Singapore, Australia, Morocco, Alberta and Poland to name a few.

Here's how the exploit worked:

  • COVIDSafe runs both as a client and server on your handset.
  • The client aspect of the application searches for servers around you and connects to them.
  • The client asks if the server is COVIDSafe and trusts the server is not hostile.
  • A malicious attacker says "hell yeah, I'm COVIDSafe" and then COVIDSafe does full Bluetooth device pairing.
  • Now that the victim is paired with the malicious attacker the Bluetooth profile is then switched to become either a network adapter (intercept network traffic), a keyboard/mouse (enter input/remote control) or an audio device (hijack audio and microphone).

It's that simple. COVIDSafe trusted client input. Security exploits are rated out of a scale of 10 - this one came in at a whopping 9.8:

NVD - CVE-2020-12856

bluetooth used incorrectly

This vulnerability and the privacy flaws discovered by the community existed because Australia is using Bluetooth in a way it was never designed to be used. Google and Apple because they designed the handsets that we use day-to-day knew this and collaborated by releasing the Exposure Notification Framework (GAEN).

One of the fundamental differences between GAEN and the Bluetooth pairing approach used by Australia is that GAEN is constant in space and time whereas Bluetooth pairing is quadratic in space in time.

Fundamentally this means that the more people that you are around the more that the effectiveness of COVIDSafe degrades. Yes, that's right the approach taken by Australia means contact tracing becomes more ineffective the more people you are around whereas the GAEN approach hums along without a hitch.

The application would not have worked at a footy match. At all.

In addition to this most mobile phones when scanning for devices to pair to (other COVIDSafe users) cannot maintain existing connections when doing a scan. Thus fundamentally explaining why people were experiencing dropouts with their Bluetooth headphones, disconnects from their Apple Watches

and why diabetes Australia put out that warning...

COVIDSafe may interfere with diabetes-monitoring apps
Diabetes Australia has warned users of the government’s new COVID-19 tracing app to keep an eye on their continuous glucose monitoring systems.

These problems would not have existed had Australia chosen the Exposure Notification Framework (GAEN) path.

iPhone

There's too much to say on this topic. The application was never going to work because fundamentally the client and server aspects of COVIDSafe run as part of the userland and on iOS user applications terminate when they move into the background. The only reason the application even got to a semi-workable level is thanks to the work done by Richard.

The Unbroken iOS COVIDSafe application
The source code for COVIDSafe version 1.2 has been posted, and it contains two very important updates:

Again this problem would not have existed had Australia chosen the Exposure Notification Framework (GAEN) path.

senate

I submitted multiple submissions to the Australian Senate but they were rejected. Jim submitted to the Australian Senate but it was not accepted until the findings of the senate were concluded thus it is likely no senators read his research even though he is the #1 expert in Australia on how the application works.  

the daily presser

One of the most fundamentally annoying frustrating things about how the Australian government has responded to the COVID19 pandemic is the over-reliance on pressers.  The daily presser has become a meme in itself.

Instead of putting the information that people need on peoples phones in the COVIDSafe application everyone in Australia has had to tune into regularly scheduled  TV broadcasts. What if instead, the COVIDSafe application had actual utility and provided reasons for people to open it:

  • Amount of daily cases in your local area.
  • A map displaying where known cases are.
  • Information about border restrictions.
  • Directives if you need to isolate.
  • Provided a way to book vaccinations.
  • A map displaying places where you can get vaccinated.

research the Netherlands

Pictured: A dutchie in Germany showing their application which displays everything a citizen needs to know

If you are an academic reading this page then I highly recommend researching the drama in the Netherlands. Initially, the Dutch government started heading down a path similar to Australia but managed to do a massive course correction and ended up being the international north star in digital contact tracing.

The Dutch government ditched giving away free pizzas at hackathons (and getting submissions containing pirated intellectual property from companies) and instead turned to and enabled their technology community. The mastermind behind turning towards and enabling the hacker community was Ron Roozendaal:

The Dutch minister of health did a public AMA and committed the source code of their application to GitHub! 😍
https://github.com/minvws/nl-covid19-notification-app-website/commit/ce16c03

further reading

If you want to dig deeper into COVIDSafe then I recommend reading the following:

final remarks

I recently had the privilege of doing a guest lecture at an Australian university on COVIDSafe and it goes without saying that I'm always happy to chat with anyone about anything technology related so if you are wondering, the answer is yes. Just ask.

I got involved with COVIDSafe ultimately because I deeply believe that:

Medical professionals (contact tracers) deserve technical tools that work. Forcing them (via political pressure) to use ineffective tools robs them of precious time which could be better spent contact tracing.

These days I don't think much about the COVIDSafe application anymore as it's dead in the eyes of politicians and the Australian public. Each state now has their own check-in application and the information collected is not protected by the excellent federal legislation that governs the COVIDSafe application.

I guess I'll close by saying all of the QR code functionality that is being rolled out right now could have been deployed into the COVIDSafe application and we wouldn't have had these privacy issues:

Police using QR check-in data to solve crimes
MPs and the privacy watchdog say authorities have breached public trust.

The contact tracers in Australia's state health departments of Australia's contact tracers didn't need to be overwhelmed and if leadership had chosen the correct technology they would have been able to be more effective:

Experts call for rethink of COVIDSafe app
Offer frank assessment in wake of govt report.
Early Epidemiological Evidence of Public Health Value of WA Notify, a Smartphone-based Exposure Notification Tool: Modeling COVID-19 Cases Averted in Washington State
Background Secure and anonymous smartphone-based exposure notification tools are recently developed public health interventions that aim to reduce COVID-19 transmission and supplement traditional public health suriveillance. We assessed the impact of Washington State’s exposure notification tool, WA…

Thanks for reading.

ps. The Australian Government needs a Vulnerability Disclosure Policy. I would love nothing more than to be able to deal directly with engineers and have sound knowledge that critical problems will be fixed vs having to interface with the media to get problems resolved.

The need for an Australian Government Vulnerability Disclosure Policy
Recently, I found a weakness in the Express Plus Medicare application’s COVID-19 digital certificate: