WEBVTT

00:00.000 --> 00:02.560
All right, we'll start.

00:02.560 --> 00:04.420
Sorry for the delay.

00:04.540 --> 00:13.400
The main reason being that this work was mostly done by my student and he couldn't get a visa for the US, so he's not here.

00:13.640 --> 00:15.300
We did record a video.

00:15.980 --> 00:26.620
We also had a longer version of this whole thing yesterday on main stage, so you can still find this at some point online if you're interested in all of the details.

00:26.620 --> 00:31.640
However, since the audio is not working for the video, you will have to do it with me.

00:31.880 --> 00:38.000
I can't provide you with all the technical details, but I should be able to get you through it.

00:38.000 --> 00:47.940
And if you have any specific questions on attacks and the toolkit we built and everything, I can direct you to my student.

00:47.940 --> 00:50.540
So yeah, let's start.

00:50.900 --> 00:52.340
It's fine.

00:52.880 --> 00:55.900
Who are we?

00:55.900 --> 01:01.120
So first, that's my student, Vladislav, also known as ESO.

01:01.120 --> 01:03.300
He's a bug bounty hunter.

01:03.300 --> 01:14.260
He did his master in cybersecurity at ETH Zurich, where he came to us and asked, hey, what cool systems could we hack?

01:14.260 --> 01:17.680
What do you have for us and ideas for a master thesis?

01:18.120 --> 01:22.340
We said, okay, here, my background is all sorts of bug bounty stuff.

01:24.220 --> 01:30.880
I have super cool skills, really the wizard behind all this stuff, and he's looking for new opportunities.

01:30.880 --> 01:34.680
So if you're convinced by the stuff he built, contact him.

01:35.600 --> 01:36.460
Who are we?

01:36.460 --> 01:37.420
Who am I?

01:37.460 --> 01:38.660
My name is Martin.

01:38.660 --> 01:42.580
I'm a security researcher and a scientist at the Swiss Cyber Defense Campus.

01:42.580 --> 01:50.200
The cyber defense campus is the procurement arm or part of the procurement arm of the Swiss Department of Defense.

01:50.440 --> 02:01.360
I've done a lot of systems work, hacking, mostly transportation systems, aviation, you find a lot of stuff from us in the aerospace village here.

02:01.440 --> 02:05.320
I've done space, cars, trains, everything, basically.

02:05.640 --> 02:14.920
I've never looked at Bluetooth before, neither had Vlad, but I've done some stuff in cars, for example, hacking electric charging systems.

02:14.920 --> 02:17.440
You can find that under brokenwire.fail.

02:19.540 --> 02:21.980
So what's the motivation for this research?

02:21.980 --> 02:23.240
Why are we doing this?

02:23.660 --> 02:30.340
Well, if you're in the procurement arm of federal government, you buy a lot of stuff.

02:31.140 --> 02:37.640
Broadly, you can break this up in the pre-tender stage and the actual tender, where you buy stuff, and a post-tender stage.

02:38.200 --> 02:46.940
And basically, when you do security testing, pen testing, only after you buy stuff, it's generally too late.

02:46.960 --> 02:53.300
Like, you have these systems, you have deployed them, they're insecure, that's very late.

02:53.300 --> 03:04.460
So we might still do this, and we have a lot of systems where we don't have these processes in place, older systems, but in general, we try to be as early as possible.

03:06.500 --> 03:12.240
The idea, obviously, buys a lot of IT systems, but also other systems, such as cars, which we will get into.

03:12.540 --> 03:18.700
And because we buy a lot of things, we have a decent negotiation leverage with the manufacturers.

03:18.700 --> 03:25.020
I mean, they want to sell us stuff, so they should follow some requirements that we put in tenders.

03:26.600 --> 03:32.560
One other thing we also do is do vulnerability research on standards, on systems.

03:32.560 --> 03:36.000
We've done this a lot in aviation and in space.

03:36.000 --> 03:54.000
But the problem is, if the systems have very long life cycles, even if you can demonstrate flaws and protocols and standards, and show that it's unsafe, unsecure, until something is changed and deployed in the long run, it will take up to decades.

03:54.000 --> 04:02.580
So that doesn't help us even in our procurement system, because everyone is using the same standards, and we don't have the alternatives.

04:03.380 --> 04:06.600
This brings me to today's concrete case study.

04:07.020 --> 04:09.240
Vehicles and the Army and Bluetooth.

04:09.320 --> 04:14.440
So we apparently already heard some Bluetooth insecurities in the previous talk, which is nice.

04:15.960 --> 04:21.800
But we are not talking about Bluetooth low-energy, we're only talking about standard classic Bluetooth.

04:22.380 --> 04:25.200
As alluded, DoD buys a lot of stuff.

04:25.340 --> 04:29.460
That's probably the first thing you think of when you think of Department of Defense.

04:30.220 --> 04:36.340
Luckily, these don't have Bluetooth, as far as I know, at least the ones I've looked at.

04:36.360 --> 04:39.480
But probably that comes very soon.

04:40.560 --> 04:45.720
Boringly, however, we buy mostly box-standard, run-of-the-mill cars, a lot of them.

04:46.180 --> 04:47.860
And these all have Bluetooth.

04:48.000 --> 04:51.700
You can't really buy a modern car without it, even if you want it.

04:51.700 --> 05:01.120
Even if you put that in a tender, basically nobody would sell you a car or offer you to sell a car without Bluetooth.

05:01.860 --> 05:04.680
That brings me to the scope of the present research.

05:04.880 --> 05:08.720
Cars are fairly complex systems, so Bluetooth is not the only interface.

05:09.240 --> 05:17.260
We counted at least 19 interfaces in those cars, from wired ODB ports to the key fob.

05:17.260 --> 05:24.200
If there's an issue with any of them, traditionally the only way for the manufacturer to do anything is to do a recall.

05:24.200 --> 05:32.760
That's very expensive and pretty much only done for big safety problems.

05:33.600 --> 05:36.980
For security, that rarely happens.

05:36.980 --> 05:47.200
And that leaves us with a very complex attack surface that is rarely patched when a car has been shipped and is out there.

05:49.660 --> 05:59.060
However, despite this, and despite Bluetooth being known and secure, this hasn't been really addressed on any larger scale.

05:59.220 --> 06:14.240
There have been a couple of papers looking at maybe one single exploit in one single car, but nobody has looked at the whole breadth of Bluetooth exploits that exist out there in different cars and from different manufacturers.

06:14.440 --> 06:22.520
And that was the gap that we saw here, because there's an estimated more than 1 billion cars with Bluetooth, Bluetooth Classic.

06:23.400 --> 06:34.180
Pretty much all of new cars have Bluetooth, and it's certainly an insecurity that we wanted to examine, because no one has done it at scale.

06:35.720 --> 06:41.160
So that brings me to the standard Bluetooth technology stack.

06:41.160 --> 06:45.340
Bluetooth, as you will be aware, is a wireless communication standard.

06:45.340 --> 06:51.120
It has a very complex tech stack, because you have a lot of shared responsibility.

06:51.920 --> 07:02.360
And of course, it has to fulfill a lot of different use cases, and that makes it very, very complex.

07:03.900 --> 07:07.700
To fulfill these different use cases, Bluetooth has a lot of different profiles.

07:07.700 --> 07:24.340
I'm not going through all of them in the interest of time here, but you can choose different profiles, for example, to make calls, of course, to listen to music, but also some profiles can have full access to your SIM card in the car, or extract messages.

07:24.820 --> 07:31.580
That's how you can, in your car, in your car system, communicate hands-free using your phone.

07:32.900 --> 07:42.880
The security models, you basically have these four options to pair to a Bluetooth system with another one, in our case, a car.

07:44.200 --> 07:47.940
Depends on the capabilities of the thing you want to pair.

07:47.940 --> 07:50.060
You have display yes, no.

07:50.060 --> 07:52.820
You have something that only has a display, but no input.

07:52.940 --> 07:57.200
You have something that has a keyboard, but no display.

07:57.200 --> 08:01.840
And you have even something like headphones that has no input or no output whatsoever.

08:01.840 --> 08:07.080
And these all need to be somehow connected with different means.

08:07.940 --> 08:11.320
So that's the Bluetooth security model.

08:12.400 --> 08:13.920
It's very binary.

08:13.920 --> 08:15.960
Either you're connected or you're not.

08:15.960 --> 08:20.860
And if you're connected, then you have access, basically.

08:21.000 --> 08:23.460
We have classic legacy pairing.

08:23.700 --> 08:27.420
There's basically no security in this.

08:27.420 --> 08:34.520
We have just works, which enables quite easy man-in-the-middle attacks.

08:35.300 --> 08:45.060
We have passkey entry, which is a bit more secure, but there have been method confusion attacks shown against this recently.

08:45.060 --> 08:50.120
And the only known secure option at the moment is numeric comparison.

08:52.600 --> 08:54.740
There's prior art, of course.

08:54.800 --> 09:02.420
So we went through at the beginning to check how many Bluetooth vulnerabilities, exploits, and attacks are around.

09:02.420 --> 09:07.760
So this is, we found more than 108 in March.

09:07.920 --> 09:17.040
And as of 2022, we found almost 650 CVEs just related to Bluetooth devices.

09:17.140 --> 09:38.700
The categories we've been looking at are critical exploits, so remote code execution and memory leakage, man-in-the-middle, denial of service, or chaining attacks, which are not vulnerabilities in and by itself, but they can lead to further exploitation if the environment is right.

09:39.780 --> 09:52.900
So the goal for our procurement was to build a Bluetooth test kit for basically all the security and vulnerabilities on the market.

09:53.360 --> 10:01.020
Because that didn't exist at the moment, and it was very difficult to build, because there's no database of these.

10:01.020 --> 10:20.020
You will have academic papers, you will have talks at DEF CON elsewhere, you will have some code released on GitHub, you will have some people who have no code released, you have code that's developed on obsolete platforms where you can't get the hardware anymore or have to update software.

10:20.020 --> 10:25.420
All of these things are big problems and a lot of work to put this into one toolkit.

10:28.420 --> 10:31.180
So that's the general problem.

10:31.180 --> 10:39.240
On the testing, well, Bluetooth testing has some black box issues, of course.

10:39.820 --> 10:47.900
You have kind of false positives, false negatives, and automation, at least of the denial of service stuff, can be quite difficult.

10:47.900 --> 11:06.340
Because if you basically crash the entertainment system of your car, or the Bluetooth system of your car, you want to restart the whole thing, we found some cars where you have to get out of the car, lock the car, and not just walk away, walk away for 20 minutes,

11:06.340 --> 11:09.700
because only then the car actually shuts off and restarts.

11:10.100 --> 11:18.040
And at that point, yeah, it's quite extensive, the time that you need, obviously, to test several vulnerabilities.

11:20.380 --> 11:28.380
No matter, we built this toolkit, it exists, has been online on GitHub for a few months now.

11:29.060 --> 11:32.120
Link is here, will also be on the last slide.

11:32.360 --> 11:40.040
Goals were collecting all these exploits that we can find and reproduce, 44 all in all.

11:40.520 --> 11:52.280
We tried to automate as much as possible, but yeah, we have some completely automated stuff, some semi-automated, and some where you have to do something manual.

11:54.820 --> 11:58.340
That's just the general architecture.

11:58.340 --> 12:00.800
So we have some YAML files.

12:00.840 --> 12:07.740
If you have new exploits, it's modular, you can add these files to the toolkit.

12:08.100 --> 12:20.300
And from there, you need the basic setup that I will show, and can go to the car, connect to it and see which other vulnerabilities are present.

12:23.040 --> 12:30.940
So after building the toolkit, the second part was really, let's check a lot of cards, as many as we can find.

12:31.700 --> 12:41.600
We set up the toolkit, as you see here, with just any Ubuntu based box and a laptop or VM, need some cables.

12:42.340 --> 12:55.580
For the full toolkit to be useful, you will need, for example, not only, but also a Nexus 5 phone, a fairly old phone, it's cheap, but maybe not so trivial to get it on the market.

12:55.960 --> 13:04.780
Because there, some other researchers have built frameworks where you can really control the Bluetooth stack in detail.

13:05.120 --> 13:08.180
And you can also get the ESP-ROAR kit.

13:09.360 --> 13:14.380
If you don't have one of them, you can't test everything, but at least partly you can do it.

13:14.700 --> 13:19.780
Overall, we found that with all the problems, it takes us one to three hours per car.

13:19.920 --> 13:29.540
You need to start the engine to do most of the tests, which can also be a problem if you're testing in garage and somewhere underground, right?

13:29.540 --> 13:31.640
You don't want to run the engine for three hours.

13:32.200 --> 13:34.140
That would not be safe.

13:34.760 --> 13:36.920
Easier to test for electric cars.

13:37.120 --> 13:38.980
That's definitely a bonus.

13:40.920 --> 13:43.120
How did we procure cars?

13:43.160 --> 13:45.480
You see the different manufacturers here.

13:45.840 --> 13:47.380
That was our job.

13:47.380 --> 13:50.580
As I said, we have a lot of different cars manufacturers.

13:50.660 --> 14:00.980
So we took all our own cars, brought us our army logistics, took some of our own cars as researchers, as our friends.

14:01.080 --> 14:13.240
Overall, 22 different cars, most of them fully tested, four only partially because we had them at the beginning of our research and there were more exploits coming on later.

14:13.540 --> 14:18.140
Price range, everything from very cheap to fairly upmarket.

14:18.320 --> 14:27.540
And the manufacturers or the Bluetooth systems at least covering our estimate roughly 60% of the global market by sales.

14:28.080 --> 14:32.760
Roughly 12 out of 15 of the top manufacturers selling cars last year.

14:32.940 --> 14:37.400
The tests are non-invasive, it's just connecting Bluetooth basically.

14:37.880 --> 14:40.760
So let's get to the results.

14:40.760 --> 14:44.760
Overall, it took us 40-ish hours.

14:45.440 --> 14:50.620
We found 73 vulnerabilities in these cars.

14:50.720 --> 14:58.300
So remember, most of these exploits are known, but they're still all present in these cars.

14:58.800 --> 15:01.160
Not everything can be solved.

15:01.760 --> 15:10.760
So we reported everything that was relevant and could be solved to the manufacturers and reported them responsibly.

15:11.860 --> 15:14.360
This shows part of the reason, right?

15:14.500 --> 15:17.800
Cars lack very much an adoption of standards.

15:17.800 --> 15:19.800
There's never the news Bluetooth version.

15:19.800 --> 15:29.300
We found that it takes roughly, or the median age of a Bluetooth version in a car is seven years behind the actual release Bluetooth standard.

15:30.100 --> 15:33.460
Full results of our car tests, they're also on the GitHub.

15:34.260 --> 15:43.660
You see different range, like, you know, you'd think very new cars should have no to fewer vulnerabilities.

15:43.660 --> 15:45.480
That was true for these two.

15:45.560 --> 15:51.060
Not true for many others that were also fairly new from 2022, 2023.

15:51.060 --> 15:56.100
We found a lot of vulnerabilities, even critical ones in those.

15:59.220 --> 16:02.600
There's just another look at this, right?

16:02.600 --> 16:12.060
Average number of vulnerabilities per car, per manufacturer, different ones here can focus on critical vulnerabilities.

16:12.060 --> 16:18.140
We found them, as you can see here, mostly Renault, Opel, and Volkswagen.

16:18.760 --> 16:26.540
A few ones, denial of service vulnerabilities, prevalent in several manufacturers.

16:27.140 --> 16:29.680
But we don't have a lot of time.

16:29.680 --> 16:33.140
You can look up the details for that on the GitHub.

16:33.260 --> 16:38.760
We did found two novel exploits and novel attacks during our research.

16:39.580 --> 16:45.860
The details on that are really extensively covered in the main stage talk yesterday.

16:45.860 --> 16:55.200
Still briefly going over it, there's one way you can connect to cars and extract the contacts.

16:55.200 --> 16:57.300
So if you have a shared threat model, right?

16:57.720 --> 17:09.380
You rent a car or have one of these car sharing systems that exist in many countries, right?

17:09.380 --> 17:11.740
You just rent a car for a couple hours.

17:11.940 --> 17:16.880
Somebody connected their Bluetooth phone to that, the contacts will be saved.

17:16.880 --> 17:22.540
Later on, you can go there and extract the contacts that were on the car.

17:23.820 --> 17:32.500
So we can see here on the left, should say, no contacts available if you connect with your phone.

17:32.740 --> 17:44.160
But if you run this new vulnerability, this new exploit, then you can, as you see on the right, actually extract the contacts that we had on our phone before.

17:46.300 --> 17:54.860
The second one is another way to establish a man in the middle position, even with a system that has numeric comparison.

17:55.700 --> 17:59.180
And I'll get to what that can do for you.

17:59.180 --> 18:03.620
Here's just the proof of concept that it worked with four different cars.

18:03.620 --> 18:06.140
Hyundai, Renault, Audi, and BMW.

18:06.460 --> 18:09.220
It's a relatively widespread issue.

18:10.020 --> 18:12.060
What can we do with these things, right?

18:12.060 --> 18:19.120
If you wonder, man in the middle on Bluetooth and denial of service, how is that a problem?

18:19.120 --> 18:20.360
Why do we care?

18:20.680 --> 18:26.560
As I said, cars are very complex systems, so one thing is we can obviously do some lateral movement.

18:26.560 --> 18:32.100
We can get in through Bluetooth and get into other systems of the car.

18:32.820 --> 18:36.440
We can, as I said, establish man in the middle positions.

18:36.780 --> 18:40.820
And then that's something we discussed extensively yesterday.

18:40.820 --> 18:46.820
We can really get your two-factor tokens if they're sent by SMS.

18:48.200 --> 18:57.360
Or, yeah, get these tokens and then obviously exploit whatever account two-factor you have set up.

18:57.600 --> 18:59.820
So that's quite workable.

18:59.820 --> 19:05.140
We've reported this also to the phone manufacturers, so Apple and Google.

19:05.140 --> 19:10.120
There were some difference in opinions whether this is a big problem or not.

19:10.340 --> 19:11.820
Google did patch it.

19:11.820 --> 19:14.220
Apple did not patch it.

19:14.900 --> 19:19.200
You can basically build your own opinion on this.

19:19.580 --> 19:21.140
Brings me to takeaways.

19:21.140 --> 19:25.220
I hope you realize much of Bluetooth is fundamentally insecure.

19:25.220 --> 19:26.400
This has been well known.

19:26.400 --> 19:28.240
There's so many exploits for this.

19:28.380 --> 19:32.480
This is both in the standards, in the protocol, and in the implementations.

19:32.940 --> 19:39.600
Even the newest cars, new systems are shipped with protocol-level Bluetooth vulnerabilities.

19:39.600 --> 19:41.500
We can't really fix this easily.

19:42.300 --> 19:51.000
You need to securely pair, but even that doesn't help because the repairing of the system might also be malicious.

19:51.680 --> 20:00.840
And we built this toolkit, so if you want to know what your own car, how vulnerable that is on the Bluetooth level, please use that.

20:01.080 --> 20:06.000
If you're a car manufacturer, car part manufacturer, please also use it.

20:06.000 --> 20:09.560
Check your security poster with regards to Bluetooth.

20:09.760 --> 20:15.940
Any questions, look at the GitHub and come to me afterwards.

20:15.940 --> 20:20.660
But also please contact Vlad, who did really most of the technical work here.

20:20.660 --> 20:21.680
Thank you.

