WEBVTT

00:00.600 --> 00:05.940
All right, yeah, the problem is at the end of the day, apparently the good stuff is empty.

00:07.120 --> 00:08.380
But it's all right.

00:09.860 --> 00:15.000
Hello, welcome to our talk, exploiting Bluetooth from your card to the bank account.

00:15.660 --> 00:20.640
To get this out of the way, first, the main speaker sadly cannot be here tonight.

00:20.640 --> 00:22.740
He didn't receive a visa in time.

00:23.000 --> 00:25.140
We still don't have to do without him.

00:25.140 --> 00:32.220
But the second part of the video with all the technical details of the talk will be given via video.

00:32.340 --> 00:43.780
So if you have questions at the end, afterwards, I'll do my best to answer them online or offline or connect you with Vlad, who's the main wizard behind this talk, really.

00:46.300 --> 00:54.350
To prove this, I'll let Vlad introduce himself.

00:54.550 --> 00:56.390
And I hope this works.

00:58.250 --> 00:59.210
Do we have sound?

01:13.090 --> 01:14.370
Do we have any sound?

01:24.310 --> 01:27.170
Otherwise I can introduce him, but...

02:07.750 --> 02:09.150
The volume's up all the way?

02:09.490 --> 02:11.610
Yeah, on this it is.

02:11.610 --> 02:12.670
On here, I don't know.

02:12.850 --> 02:14.730
Can we check the volume on your computer?

02:14.790 --> 02:15.530
That is up all the way?

02:15.530 --> 02:16.270
It's on.

04:26.470 --> 04:27.710
See you recording.

04:27.710 --> 04:31.690
My name is Vladislav, but some of you might know me as Weiser and Schmitz.

04:31.690 --> 04:36.810
I'm a bug bounty hunter and primarily focus on web mobile infrastructure when it comes to pen testing.

04:36.810 --> 04:40.230
I also focus on code reviews and development of the tools and frameworks.

04:40.230 --> 04:44.150
I'm currently open to the new opportunities, so feel free to reach out.

04:44.150 --> 04:47.650
I also have additional certifications, awards, and masters.

04:47.830 --> 04:57.810
But the most important fact is that I have never attacked booters or cars before, and I applied some of the bug bounty hunting techniques to it and got some interesting results for you.

05:00.580 --> 05:03.060
All right, yeah, sorry for this.

05:03.060 --> 05:06.400
Apparently, this was the first talk today with audio.

05:09.070 --> 05:11.450
So let's move on.

05:12.130 --> 05:15.170
After Vlad introduced himself, who am I?

05:15.170 --> 05:16.350
My name is Martin.

05:16.350 --> 05:25.150
I'm a security researcher and a scientist at the Swiss Cyber Defense Campus, which is the procurement agency of the Swiss military.

05:25.270 --> 05:42.930
I have a background in wireless security, been publishing in all the major academic systems security conference, and I've been leading research efforts, not just on cars, but on all sorts of transportation security at our campus.

05:42.970 --> 05:53.270
That includes aviation, so I've just done a talk at the aerospace village, so you can always check that out, but also space, cars, and trains.

05:53.510 --> 06:05.590
I have never looked at bluetooth before this work, but we've done work on cars, so you can also check out brokenwire.fail, where we've hacked electric charging processes.

06:07.090 --> 06:12.170
So let me first introduce you to the motivation for this research.

06:12.170 --> 06:19.430
One of our main jobs at the campus is to support procurement for the Swiss military and for the federal government.

06:19.430 --> 06:25.650
So we want to really make sure that the government and the military buy secure systems.

06:25.750 --> 06:33.230
As you can imagine, the DoD buys quite a lot of IT systems, but also other systems such as cars.

06:33.790 --> 06:40.130
If you buy that in high volume, you have quite decent negotiation leverage with manufacturers.

06:40.270 --> 06:44.670
In general, public procurement, if you don't know, is done with tenders.

06:44.670 --> 06:59.290
You can basically broadly divide it into a pre-tender stage, then the actual tender contract, and the time after actually having procured the systems, and even received and deployed the systems.

06:59.810 --> 07:07.270
Doing simple pen testing after you have bought these things, that's often too late for us.

07:07.270 --> 07:14.670
The leverage you have in negotiations, it's partly gone, and the systems, they're already in operation.

07:14.670 --> 07:17.870
I mean, at that point, you run insecure systems.

07:18.030 --> 07:20.750
So that's not ideal.

07:20.770 --> 07:24.890
Something else we do is, we do a lot of standards.

07:25.890 --> 07:28.170
That works.

07:28.370 --> 07:37.770
If you look at aviation, for example, you find a lot of flaws, and in principle, you can try to change that in the long run.

07:37.770 --> 07:41.930
The problem is, most of these areas have very long life cycles.

07:41.930 --> 07:51.630
So even if you find and demonstrate major flaws in protocols and technologies being used there, it will take decades until that is being changed in practice.

07:51.630 --> 07:56.510
So again, not too helpful for our case here.

07:56.950 --> 08:03.210
So what do we want to concretely do here to support our procurement?

08:04.310 --> 08:09.230
We want to do concrete vulnerability research as early as possible.

08:09.530 --> 08:16.850
We want to really help shape the security requirements during the process and in the final contenders.

08:17.050 --> 08:30.070
To do that, we work with the manufacturers, but we also use support from academia in Switzerland and outside to bring everyone together to make the systems more secure, and not just do this for us, but for everyone.

08:30.150 --> 08:35.210
So concretely, if we do research, we follow a responsible disclosure process with the manufacturers.

08:35.210 --> 08:45.610
If we find anything, we publish at conferences, also come to hacker cons now, and we also release our code wherever possible, just as in this case.

08:47.430 --> 08:53.170
That brings me then to today's concrete case study, vehicles and the army and Bluetooth.

08:53.590 --> 09:02.170
As alluded earlier, the DoD buys a lot of vehicles, not just these that you can see here, probably the ones you think of first.

09:03.870 --> 09:12.130
Luckily, these don't have Bluetooth, or at least I think, I mean I haven't checked all of them, you don't really know.

09:12.190 --> 09:16.170
They might exist these days as well, but in general they don't.

09:17.010 --> 09:28.790
But honestly, boringly, by far the most vehicles being procured by our DoD are box standard, run of the mill civilian cars.

09:28.790 --> 09:30.770
And they all have Bluetooth.

09:30.850 --> 09:34.830
You basically cannot buy a car without it, even if you want it.

09:34.830 --> 09:37.310
So, even we can't get that without.

09:38.030 --> 09:42.130
That brings me off the scope of this research now.

09:42.910 --> 09:47.690
Bluetooth, of course, is not the only interface you find in the car.

09:47.690 --> 09:50.090
Cars are super complex systems.

09:50.830 --> 10:01.730
When doing a count, we found at least 19 interfaces in modern cars, from wired OBD ports to the key fob.

10:01.730 --> 10:14.950
If there's an issue with any of these interfaces, these systems, the only way traditionally for a manufacturer to do anything and to deal with it in that car and that model, is to do a recall.

10:14.950 --> 10:25.110
And recalls, typically for safety problems, they're expensive and rarely done, really just for very important safety problem.

10:25.110 --> 10:31.250
For security reasons, this rarely happens, to be honest.

10:31.870 --> 10:42.110
So, that leaves us with a very complex attack surface, much of which actually has been discussed at DEF CON, also at the Car Hacking Village.

10:42.110 --> 10:54.890
They specialize in that, of course, but just an illustration here, don't have to check all of this, but it's a very big complex attack surface you have in modern cars.

10:56.570 --> 10:59.770
So, why are we looking now specifically at Bluetooth?

10:59.770 --> 11:03.990
Well, most importantly, nobody had done it yet.

11:03.990 --> 11:17.210
So, there's a lot of Bluetooth research, of course, but nobody has really checked on a large scale all the exploits that exist in Bluetooth with a reasonable amount of cars.

11:17.630 --> 11:21.350
So, that sort of Bluetooth security in cars hasn't been addressed.

11:21.830 --> 11:34.110
That felt to us like an oversight, not just from the procurement perspective, but over 1 billion cars have Bluetooth and, as mentioned, you can't do anything about that if you buy a new car.

11:34.110 --> 11:39.610
That overall makes the research very impactful, not just for us, but really for anyone with a car.

11:40.010 --> 11:57.310
And we're very happy also with the outcomes that we had from this research, which was led by Vlad, who will now present the technical details and I will come back afterwards for any questions or any information.

12:09.480 --> 12:18.800
Bluetooth is a short-range wireless communication standard and it is not a specific protocol, but multiple different protocols that work on top of each other and that are maintained by different entities.

12:18.800 --> 12:26.560
Due to this complexity, there are different errors and misunderstandings that arise and these are the primary source of the vulnerabilities that we keep filing.

12:26.560 --> 12:31.940
We're only going to talk about the Bluetooth classic here, we're not going to talk about the Bluetooth technology at all.

12:31.980 --> 12:38.140
So what you have to remember about the Bluetooth is that it is transport plus additional functionality on top of it.

12:38.140 --> 12:48.680
And when I refer to the functionality, I refer to the Bluetooth profiles that allow you to make calls, stream audio, share context messages, and even have the whole internet stack on top of the Bluetooth.

12:49.020 --> 12:53.920
So Bluetooth is reaching the functionality and we have to secure it and for that we have pairing.

12:53.980 --> 12:59.820
When it comes to pairing, it depends on the capabilities of the device and the security options.

12:59.880 --> 13:05.780
So when it comes to the capabilities themselves, they depend on the input and output capabilities of the device.

13:05.780 --> 13:10.040
So if the device has both of them, then we call such device Display Yes, No.

13:10.040 --> 13:14.580
If the device has only output capabilities, then we call such device Display Only.

13:14.580 --> 13:20.820
When it comes to the devices that only has input capabilities, we call such devices Keyboard Only devices.

13:20.820 --> 13:28.040
And when the device doesn't have any of the capabilities, so we call such devices No Input, No Output capability device.

13:28.420 --> 13:33.740
We can also summarize the security model of the Bluetooth as everything or nothing as pass-pairing.

13:33.740 --> 13:41.960
We can access almost all functionality that is available to us on this IoT device without any further authorization in most of the cases.

13:42.320 --> 13:48.700
That's why we have to be sure and confident in the pairing process and for that we have different pairing modes.

13:48.700 --> 14:06.680
So when one of the devices doesn't have doesn't support security options, then for example it doesn't have simple secure pairing or and secure connections, then legacy pairing is used and from its name you can infer that it's legacy and ideally shouldn't be used at all.

14:06.680 --> 14:19.760
To give you some reasons it's vulnerable to the non-branded XXX and also the link, the security of the link depends on the four-digit pin which you can easily brute force.

14:20.180 --> 14:41.400
So then when it comes to devices that doesn't have input capabilities, if one of the devices doesn't have input capabilities, then just works pairing mode is used and for this pairing mode there are no guarantees that you are actually pairing with the device that you want to pair with and that's why it is intrinsically vulnerable to the man-in-the-middle attacks.

14:41.520 --> 14:55.700
When it comes to the pass-key entry, it was recently discovered that it's vulnerable to the message confusion when the middle attack which is not remediated yet in the latest version, it might be there for a few years at least.

14:56.120 --> 15:01.480
So it leaves us with only one pairing mode which is actually secure and is an American version.

15:01.480 --> 15:09.160
It is executed only for the devices that have this way as no capabilities and they both want to pair with each other.

15:09.920 --> 15:22.020
Then when it comes to when we are pass-pairing, most of the firmwares or all of the firmwares do not differentiate between the pairing modes used, so whether or not you use the secure pairing mode or not.

15:22.260 --> 15:29.020
And that means that legacy pairing is the same as the American version at least in the eyes of the firmware.

15:29.500 --> 15:38.740
So boosters have been there for more than 23 years and we have found that there are more than 108 different attacks on the booster standards themselves as of March 2024.

15:38.820 --> 15:49.400
Also, SANS provided statistics that there are approximately 650 different CVEs related to the boosters devices as of 2022 and even more right now.

15:49.400 --> 15:56.500
So for the presentation, we are going to differentiate between four different categories of the exploits.

15:56.500 --> 16:18.100
So when I refer to the critical exploits, I refer to the remote code execution, memory leakage, information leakage, but then in the middle the nano-source categories are actually self-explanatory, while the chaining category describes not specifically vulnerabilities or exploits,

16:18.100 --> 16:31.760
but rather weaknesses that one can use to make the attacks possible or they actually allow or make some of the attacks to be executed easily.

16:32.120 --> 16:46.360
We actually tried to, even though there are, sorry, even though boosters have been there for 22 years and been subject to the extensive security research, there are still challenges involved into testing it.

16:46.520 --> 16:51.380
So it's like the common database of religious vulnerabilities, it's like the framework for testing it.

16:51.520 --> 16:57.420
And in general, the attacks are being shared, but the proof of concepts are not.

16:57.420 --> 17:07.560
And if they are shared, they are generally shared on the sites that are not quite well indexed, so it's quite challenging to find such proof of concept.

17:07.560 --> 17:16.620
And if you find the proof of concept, there is also, there is a high chance that the proof of concept will be based on the old hardware that you cannot buy anymore.

17:16.660 --> 17:23.580
And this also applies to the recently recently publicized exploits, for example, it's 123.

17:23.860 --> 17:42.480
When it comes to testing, intrinsic false positives and false negatives, when you test in the black box fashion for the null-source-based attacks, then it's a bit tricky to automate the null-source attacks in some cases, especially for some of the devices,

17:42.480 --> 17:53.320
because the null-source attacks are quite powerful in these cases, and it requires rebooting the device, but it's quite difficult to do.

17:53.320 --> 18:02.460
For example, in case of the cars, in some cases it requires to wait for 10, 20, or 30 minutes, so it's a bit tricky.

18:02.940 --> 18:15.200
We tried to solve some of these problems, and that's why we came up and open-sourced a framework for vulnerability testing framework for Blitzware Classic, like access and redevelop 44 different exploits.

18:15.220 --> 18:20.700
Also, the main goal is reproducibility of the past and future research.

18:20.700 --> 18:31.320
There is also a balance between automation, semi-automation, and manual tests, so even though the attacker side is automated, the victim side is not.

18:31.320 --> 18:37.540
It's infeasible to do so, so you still have to do some of the manual actions, for example, on the infotainment screen.

18:37.660 --> 18:51.920
I also evaluated half of the exploits on the non-vulnerable devices, while for the other half, I ensured that the exploits write to some deep payload, but as there were no non-vulnerable devices for them, we used them as is.

18:52.140 --> 19:00.700
But still, these exploits found the real vulnerabilities in the cars, so I'm quite confident in them.

19:00.700 --> 19:03.000
The tool itself works pretty straightforward.

19:03.000 --> 19:19.760
The tester executes the command, then the engine loads the redefined exploit profile, then checks for the vulnerability of the target device without requiring any interactions from the tester, then executes the exploit, and after that, depending on the exploit type,

19:19.760 --> 19:27.180
it either compares the value, or it checks the variability and availability of the target device once again.

19:27.180 --> 19:30.760
After that, the toolkit reports back to the tester.

19:31.040 --> 19:49.680
So I used this toolkit to attack different cars, and the result was pretty minimalistic, or you could have used a virtual machine, USB cables, a development board, and a Nexus 5 phone for denial-of-service attacks and internal war attacks.

19:49.680 --> 20:07.320
Then I spent approximately one to three hours per car, as different issues arose, and for some of the cars, especially the internal combustion cars, you have to test them outside as they require the engine to be started to access the infotainment system,

20:07.320 --> 20:09.860
and because of that, you have to test them outside.

20:10.640 --> 20:20.080
If you can connect to the infotainment system and observe the logs, please do that as it would help to remediate some of the false positives and false negatives.

20:20.580 --> 20:27.180
So all of the cars were provided by SAP Defense Campus, Amuno Logistics, and some were provided by friends and acquaintances.

20:27.180 --> 20:29.100
In total, we had 22 cars.

20:29.100 --> 20:32.940
Only four were partially tested.

20:33.100 --> 20:55.560
You might think that the sample size is quite small, but it is the biggest out there, and we tried to focus on different categories of the cars, monetary-wise, and also focusing on the top manufacturers, so that we would have a notion of the state-of-the-art bluetooth security in the automotive industry.

20:55.920 --> 21:03.720
And finally, all of the bluetooth tests are non-invasive, so we didn't have any problems with the cars afterwards.

21:04.800 --> 21:11.560
I spent approximately 40 hours throughout a few weeks and found 73 different vulnerabilities.

21:11.620 --> 21:20.600
Some issues were not reportable because they are inherent issues, and that's why I was able to report only 64 vulnerabilities.

21:20.720 --> 21:37.840
All of the vulnerabilities that were reported were reported responsibly, and all manufacturers and vendors had time to fix them, but you already guessed that not all of them did that, but we still are releasing as there have been more time, they had a lot of time to do so.

21:38.160 --> 21:47.800
So, generally, the first thing that I wanted to share is that the cars are generally lacking in adoption of the newest bluetooth standards.

21:47.800 --> 21:59.360
So, for example, you wanted to buy a 2023 car, you would expect that the hardware used in it would be rather recent, but in fact what you get is the bluetooth version from 2014.

21:59.720 --> 22:06.620
And the difference is 9 years in this case, on average it's 7 years, and mean is also 7 years.

22:06.760 --> 22:32.480
So, in the time frame of 9 years, there have been a lot of research done into the bluetooth, so there are more than 10 different attacks on the car specification itself, which also affects your bluetooth version, and that's why you're in risk, because there are existing vulnerabilities that could be exploited in your car.

22:32.480 --> 22:36.220
First, you might think that you can remediate them with the firmware update.

22:36.220 --> 22:41.200
Here's the first problem, most of the cars still don't provide the firmware updates.

22:41.200 --> 22:59.900
And the second problem is that you cannot remediate the car specification attacks with the firmware updates, as they generally require fixing the standards first, then a few years will pass as the new hardware will be developed and be available on the market.

22:59.900 --> 23:11.480
After that, you'll be able to actually swap the hardware in your car for the newest, but no one is going to do that for you, and manufacturers most likely won't be doing that.

23:11.480 --> 23:16.760
And this is required because you can change the bluetooth version only by swapping the hardware.

23:16.860 --> 23:19.480
You cannot do that in the firmware.

23:19.780 --> 23:31.340
So we've been testing for the known vulnerabilities, and we actually expected that we won't find known vulnerabilities in the cars produced in 2022 and 2023.

23:31.340 --> 23:47.200
That were our expectations, but in fact we still found a lot of cars that had them, and for example Tesla cars, they had a specific man-in-the-middle vulnerability that also shouldn't really exist in other models.

23:47.560 --> 23:49.280
You can check it for yourself.

23:49.600 --> 24:02.780
But the most interesting view is actually on the average number of vulnerabilities found per car manufacturer, as you can see here the differences between them and also the similarities.

24:02.960 --> 24:11.320
So when it comes to the critical vulnerabilities, there were only three manufacturers that had them, Renault and Volkswagen.

24:11.740 --> 24:20.440
So these vulnerabilities were rather old, and they could have been fixed with the firmware update, but there were no firmware updates for these vulnerabilities for these cars.

24:20.860 --> 24:35.940
Then when it comes to the denial of service and man-in-the-middle attacks, you have to notice that if one of the manufacturers doesn't have man-in-the-middle attacks, they would generally have denial of service attacks or vice versa.

24:36.040 --> 24:40.320
So these types are omnipresent and they can be swapped.

24:41.180 --> 24:51.040
Both of them can be used to establish the man-in-the-middle position, so you can use both denial of service attacks and man-in-the-middle attacks to aid you in establishing the man-in-the-middle position.

24:51.260 --> 24:56.320
So this knowledge would be very helpful in the future, so try to remember it.

24:56.540 --> 25:06.160
And as we've been talking for the known vulnerabilities you already guessed that we found some new ones, especially some new attacks actually.

25:06.220 --> 25:09.280
So the first attack is the contact extractor attack.

25:09.280 --> 25:27.240
Here the victim establishes the bluetooth connection with the car, then shares the contacts via phonebook exit profile and leaves the car without impairing the phone, for example, by switching off the bluetooth or just walking away.

25:27.240 --> 25:35.460
Then we will be able to spoof the MAC address to the MAC address of the victim, establish the bluetooth connection and extract the contacts.

25:35.480 --> 25:50.920
But it would have been an ideal case, but unfortunately we cannot do that because both the attacker and the car run the phonebook exit profile client service and only the servicers can serve the contacts.

25:51.000 --> 25:58.160
So this specific attack applies in the car sharing context and due to that fact we would have to get into the car.

25:58.320 --> 26:05.080
We do not need to start the car, we just need to access the infotainment system and it is accessible without starting the engine.

26:05.260 --> 26:14.920
So we would have to search for the password number on the infotainment screen and if the car is vulnerable it would show us the contacts.

26:15.740 --> 26:27.940
So here you can see that we connected to the Renault car, we do not have any contacts on the left, but when we switch to the dial pad and search for the password number, then the contacts are shown to us.

26:28.500 --> 26:38.980
The second attack is very similar to the non-bluetooth equipment attack with some caveats that are applied to the automotive industry.

26:39.460 --> 26:55.520
So some of the cars actually deny connections or pairing to be initiated from the non-bluetooth capability devices, but there are also the cars that allow the connection to be initiated from the user's smartphone and also from the car.

26:55.520 --> 27:17.340
So in case the connection is being initiated from the car, there are some cars that actually forget that they deny access to the non-bluetooth capability devices and thus it might be possible to get the connections from the car to the attacker, for example by self-deletion or pre-committing or using other techniques,

27:17.340 --> 27:21.900
so that we might be able to get the man-in-the-middle position.

27:22.660 --> 27:28.420
So the third attack is actually the attack on the numerical person man-in-the-middle.

27:28.420 --> 27:31.040
This is an insecure numerical person man-in-the-middle attack.

27:31.040 --> 27:35.700
In this case, it is a mutation-specific attack.

27:35.700 --> 27:43.720
So in this case, the car either has the design problem or they have a state problem.

27:43.720 --> 27:54.700
In case of the state, we'd have to check the connection with different capabilities, while for the design, we'd have to just resolve the pairing process.

27:54.700 --> 28:09.720
So in case the car is vulnerable, it wouldn't need any confirmation of the pairing on the infotainment screen or show non-bluetooth-like confirmation without showing the pairing number, or it will show you a static number across different pairing attacks.

28:10.440 --> 28:18.080
So due to this fact, we'd have all the pieces to establish the man-in-the-middle position or just the connection to the car.

28:18.820 --> 28:32.880
So to give you some of the examples in case of the Hyundai cars, they show you the pairing number, they show you the button to cancel the pairing or the connection, but they show you the button to accept the pairing.

28:32.880 --> 28:38.040
And this is a problem because the whole logic is on the attacker side.

28:38.080 --> 28:46.220
In case of the Audi cars, they show you non-bluetooth-like confirmation window, they don't show you the pairing number, and if you click accept, the pairing would be done.

28:46.500 --> 28:53.580
After that, they will show you the window with the pairing number and the button to cancel pairing or unpair.

28:53.800 --> 28:57.520
But in this case, there are two possibilities.

28:57.520 --> 29:11.620
So in case of the first one, if the user clicks yes or pair on their phone first, then we might be able to get the man-in-the-middle position.

29:11.680 --> 29:18.360
If they don't, then they might spot the attack and ask them to wait 5-10 seconds to execute it.

29:18.360 --> 29:22.120
When it comes to the BMW cars, they had a state problem.

29:22.120 --> 29:29.440
Some of them still might have, but it should be fixed in the newer versions, in the newer firmware versions.

29:29.440 --> 29:45.240
So in this case, you can force the state problem by using the capabilities other than display as null, and it will show you the specific number that you see on the screen.

29:45.760 --> 29:51.900
After that, you'll be able to establish the man-in-the-middle position or adjust the connection to the user or to the car.

29:51.900 --> 29:59.160
In case of the Renault cars, they didn't give the user any control whatsoever, so anyone could connect to it.

29:59.500 --> 30:11.960
So you've seen that I've found many different vulnerabilities in the car, specifically primarily denial-of-service attacks and man-in-the-middle attacks, but you still might have a question, what can we do with them?

30:12.060 --> 30:14.900
And this is what we are going to explore now.

30:14.980 --> 30:20.460
So first thing, we have to establish the man-in-the-middle position, and for that we have three different options.

30:20.460 --> 30:23.020
First one is to do selective jamming.

30:23.080 --> 30:27.560
In case of this active jamming, it's relatively difficult to do, but it's still possible.

30:27.560 --> 30:33.620
So in this case, we would have to spoof the MAC address of the car and then selectively jam it.

30:33.640 --> 30:41.740
After that, you might be able to get the connection request or pairing request from the user, or do it vice versa.

30:42.140 --> 30:54.680
The second option is to use denial-of-service attacks and deny user source to the car and then spoof the MAC address again and get the connection from the user or vice versa.

30:55.080 --> 31:01.820
The third option is actually to procure it with different MAC addresses, but the same names as those the car and the user would expect.

31:01.820 --> 31:14.980
So in this case, if we connect to the car, we would have the name of a user, and if we connect to the user, we would have the name of the car, so that the user would be lured into pairing.

31:15.660 --> 31:22.160
You might actually have a question or a problem with discovering the MAC addresses.

31:22.160 --> 31:28.280
You might think it is difficult, but in fact, it's rather easy, and it became easy as of recently.

31:28.280 --> 31:30.320
So for example, you have at least two options.

31:30.320 --> 31:38.620
The first option is to simply listen for the MAC addresses, for discoverable MAC addresses with your laptop hardware.

31:38.620 --> 31:47.660
You would be able to find only discoverable MAC addresses, so the sample size won't be big, but it might be enough for the attacks.

31:47.700 --> 32:02.360
And the second option is to use blue squares attack to actually get the MAC address, almost all MAC addresses in the Bluetooth classic space, with the help of USRP and Ubertooth, so it's approximately two thousand dollars worth of the equipment.

32:02.960 --> 32:13.380
So with that, you'll be able to discover the MAC addresses that are in non-discoverable mode for almost all the attacks that we are going to show you.

32:13.560 --> 32:28.160
So then, with this specific part, you'll be able to get your first click, or the first seamless click, and after that, you might have a question, what can we do with the man-in-the-middle position?

32:28.160 --> 32:45.360
So in this case, we would have to escape the Bluetooth sandbox, because we're in, so to say, Bluetooth sandbox, as we cannot execute the code, we cannot execute arbitrary code on this other device, and because of that, we'd have to switch to the phones rather than,

32:45.360 --> 32:47.920
and look for the functionality that we can exploit.

32:47.920 --> 32:51.520
So in this case, generally, phones have the phone functionality.

32:51.520 --> 33:02.800
They allow you to make calls, play music, or stream audio without any authorization, while when it comes to sharing context messages, they require the authorization in some cases.

33:02.800 --> 33:11.700
Then they also allow you to emulate the SIM card of the victim or user, and get access to the SMS messages and phone calls.

33:12.100 --> 33:24.500
While this might seem very interesting, the specific SIM access profile, this is actually deprecated, and it's only available on the Android devices, and it has a lot of warnings.

33:24.700 --> 33:42.260
It's not like users would not dismiss the warnings, but still, it's only available on the Android device, and in fact, the most interesting one is the message access profile, which allows you to extract different messages, for example, SMS messages and emails.

33:42.260 --> 33:46.360
In case of the emails, it's only available according to the specification.

33:46.360 --> 33:55.960
I haven't been able to find any implementation that actually factors the emails, so you might find that, might not.

33:55.960 --> 34:06.980
I'm not sure in case of the emails, but what I know for the fact is that you can extract the SMS messages that were ever delivered to the phone, and also you can send the SMS messages.

34:07.180 --> 34:19.120
So additionally, the user experience is very helpful, as on the iOS devices, functionality is called notifications, while on the Android devices, it's called messages.

34:19.320 --> 34:23.480
So there is no mentioning of SMS messages at all.

34:24.180 --> 34:40.600
So we come to the generic attack that you can execute, and the first thing that you need is the man-in-the-middle position, which requires one click from the user, and then you will be able to ask for the message access profile access, which will require another click from the user.

34:40.600 --> 34:55.880
Once granted, you will be able to instruct the user's phone to send the SMS message or call a specific number that you control, so that you will be able to link the phone number to yourself, and then use it in the open source intelligence flow, automatic flow,

34:55.880 --> 35:17.260
so that you will be able to discover the login names or email addresses, or just use the phone number directly on the services of interest, and then trigger the SMS-based LTP for the accounts that are associated with the victim's phone number, and then the LTP would be delivered to the victim's phone,

35:17.260 --> 35:25.660
which we can always retrieve as we have the message profile access, and then relay back to the backend and hijack the accounts.

35:26.000 --> 35:30.760
If this sounds all quite complicated and unlikely to you, I actually have some good news.

35:30.760 --> 35:37.120
So first, we do not need to have the man-in-the-middle position at all, we just need the connection to the phone.

35:37.240 --> 35:51.920
Secondly, we can link the phone numbers while accessing the metadata of the SMS messages that were previously delivered, and I guess almost all of us have some SMS messages that were delivered to the phone numbers that we use.

35:52.040 --> 36:07.820
Then we can also look for the content into the contents of the SMS messages and look for the emails and the login names, or alternatively, we could use the phone number or the data that we found in the open-source intelligence for them.

36:07.820 --> 36:22.200
Finally, we do not need to ask for the message access profile authorization for some of the phones, especially Xamarin 22 and older phones, but also this applies to the latest phones as well.

36:22.200 --> 36:27.080
So this is a one-to-two-click generic health takeover attack.

36:27.860 --> 36:39.220
With this attack, we can bypass MFA, we can hijack accounts for the services that primarily rely on the SMS-based OTPs, for example, meta-services.

36:39.660 --> 36:51.840
But the most interesting services that we want to hijack or potential perpetrators we want to hijack are the ones for which we can trigger the SMS-based OTP by knowing some information.

36:51.840 --> 36:57.300
In most of the cases, it's knowing the email address or the login name.

36:57.340 --> 37:07.820
So by knowing this information, you would be able to trigger the SMS-based OTP and to know this information, you can use the open-source intelligence form.

37:07.820 --> 37:16.760
Then you'll be able to hijack PayPal, Coinbase, Google account in case the user is not logged into the Google account on the Android phone.

37:17.200 --> 37:22.080
Then you'll be also able to, for example, hijack the apps to control the vehicles.

37:23.080 --> 37:26.320
But for some of these services, it's rather difficult to do.

37:26.340 --> 37:36.380
So in case of the Apple ID, you have to resort to phishing only as the victim is constantly notified and it's infeasible to you the recovery in the timely fashion.

37:36.380 --> 37:50.300
Then when it comes to the Google account, if the user is logged on the Android device, then we would have to know the browser type and operating system type so that we can forge it.

37:50.300 --> 37:58.900
And as we'll be close to the victim and have similar IP and location, we'll be able to bypass all the checks done by Google and hijack the account.

37:59.020 --> 38:03.080
To give you some examples, we would first start with the Android phone.

38:03.080 --> 38:06.820
In this case, this is Samsung S23 for which I did the attack.

38:06.840 --> 38:12.360
So almost all of the Android phones are actually always bearable and discoverable.

38:13.000 --> 38:16.080
So you can execute the attack at any time you want.

38:16.080 --> 38:36.020
And once we try to connect and pair, we can force the notepad notification window that wouldn't show any pairing numbers to compare and thus the user would see only the specific device wants to pair with them and the buttons to pair or cancel.

38:36.060 --> 38:53.060
So in this case, it's the art of choosing the names to lure the victim into pairing or for that we can use, we can do the targeted attacks to observe the victim or just use the most common ones and try to pair randomly.

38:53.140 --> 38:57.780
After that, we can ask for the master Excel profile access.

38:58.060 --> 39:04.320
And in most of the cases, it is a typical workflow for the cars and smartwatches and speakers.

39:04.320 --> 39:15.920
So if you forge the name for these devices, you would be more likely to get the message access if the victim is more or less cautious.

39:16.320 --> 39:24.280
But I guess most of the users are not, so they would probably run the access.

39:24.300 --> 39:26.880
Once granted, you'll be able to execute the attack.

39:26.880 --> 39:39.040
So get the phone number, force the SMS-based OTP on the specific site, then extract the OTP, enter the OTP, change the password and log out the user from all of the sessions for the Samsung account.

39:39.040 --> 39:44.980
And I was able to log out the user from their own phone and completely hijack the Samsung account.

39:45.580 --> 40:00.700
So this is a two-click generic attack and also Google was working on a patch for the Android devices while Samsung patched their part in the Samsung account service in June 24.

40:00.960 --> 40:10.740
They actually said that they fixed the vulnerability in November 2023, but I reported in May 2024 and it was exploitable at that time.

40:10.740 --> 40:12.460
But who knows?

40:12.940 --> 40:21.920
When it comes to exploiting iOS devices, you can actually exploit map the same way on the iOS devices as on the Android devices.

40:21.920 --> 40:39.220
As on each new pairing request or in each new repairing pairing, the user would need to explicitly allow notifications by going to the settings menu for this specific Bluetooth device and then toggling a button to allow the notifications.

40:39.220 --> 40:42.700
It's quite infeasible when we do the attack that way.

40:42.740 --> 40:50.020
But what if we can renegotiate the connection for an already connected device that already has the notification permissions?

40:50.040 --> 41:01.720
You would expect that the notifications would be reset on each pairing, which is a requirement as per specification, but iOS doesn't follow that.

41:01.720 --> 41:09.940
So you can spoof the MAC address for an already connected device that already has access or permissions and try to repair.

41:09.940 --> 41:26.140
In this case, here I wasn't able to force the notepad notepad confirmation window that wouldn't show the pairing number to compare, but you might also experiment with that and maybe get the notepad notepad confirmation window.

41:26.140 --> 41:32.700
But it is unfortunately that it's not the case as of today.

41:32.740 --> 41:41.260
But what's most interesting is that the iOS is also helping us in one other way.

41:41.260 --> 41:47.080
They fetch the name of the previously connected device from the cache and use it in the pairing request.

41:47.080 --> 41:54.460
So if the user had some kind of esoteric name for their device, they would be more inclined into pairing with us.

41:54.460 --> 42:02.260
And once they click pair, we have the notification permissions as the previous device, as the previous connection had them.

42:02.260 --> 42:04.480
So we'd be able to execute the attack.

42:04.480 --> 42:07.660
In this case, for example, hijack the Facebook.

42:07.660 --> 42:13.700
But you might actually want to focus not just on the Facebook, but also on the Apple ID itself.

42:14.020 --> 42:25.760
So recently there was an attack that involved phishing and seems to have attacked and the perpetrators were able to steal $22,000 from the victim.

42:25.760 --> 42:31.860
And here we can try to replicate the similar attack with the map attack.

42:32.080 --> 42:38.660
So here we'll be able to inject the SMS message as if they came from Apple and do phishing.

42:38.660 --> 42:56.720
Once the user enters the Apple ID and the password, SMS-based OTP or MFA would be used and we'll be able to steal the SMS message value for OTP value via the Messenger Exit Profile attack.

42:56.720 --> 43:01.960
So here we just swap the symptom with the Messenger Exit Profile attack.

43:01.960 --> 43:07.980
We can also focus on other applications like PayPal or Coinbase or any other of interest.

43:07.980 --> 43:12.440
So you do not have to always focus on the Apple ID.

43:12.840 --> 43:29.540
But the most actually interesting, worrying, or best part or worst part of this talk is that this specific vulnerability is not fixed as of the latest iOS version and it's not going to be fixed.

43:30.140 --> 43:46.200
Apple said that the users are safe because they are shown the parent prompt, but I seem to see that they generally violated the business verification and that's why their users are one click away from their accounts being stolen.

43:46.200 --> 43:53.180
But of course, it's up to you to judge and decide whether this is a specific vulnerability that should be fixed or not.

43:53.180 --> 43:58.240
But I personally hope that Apple would eventually fix it and upgrade it accordingly.

43:58.400 --> 44:08.700
For the attack itself, I'm releasing a tool that affects more than 50% of the smartphone market worldwide, more likely to affect the whole market.

44:08.920 --> 44:16.800
And this specific tool would allow you to retrieve and send SMS messages, as well as look for the emails and phone numbers on the device.

44:16.860 --> 44:23.940
And it would be possible to connect the tool to the infrastructure that would actually do the recovery process.

44:24.400 --> 44:26.740
So here we come to the key takeaways.

44:27.000 --> 44:35.340
And the first thing that I want to mention is that even the newest cars are generally shipped with the protocol vulnerabilities.

44:36.060 --> 44:44.760
And it's not really easy to fix this because the design of the car is locked in just several years before it's manufactured.

44:45.320 --> 44:50.120
And it's not possible to change the business version or hardware in it.

44:50.120 --> 44:52.840
So it's quite difficult to do so.

44:52.840 --> 45:01.400
And we have to live with the anticipation of some kind of protocol obligations and vulnerabilities in the cars and knowing that.

45:01.420 --> 45:10.120
Then when it comes to pairing, pairing security or in the secure environment is extremely important as it's the only safeguard against the middle attacks.

45:10.380 --> 45:17.240
But what you have to remember is that forcing repairing is possible and it might be malicious.

45:17.240 --> 45:20.260
So we have to watch out for that as well.

45:20.260 --> 45:31.540
Then when it comes to the SMS-based OTP services or the services that rely only on SMS-based OTPs, it might be rather risky for the end users.

45:31.540 --> 45:40.300
And it's why maybe it would be best to consider other OTPs sources.

45:40.340 --> 45:43.760
So for example, email-based OTPs.

45:43.760 --> 45:48.280
And in that case, it might add additional safeguards to the users.

45:48.420 --> 45:50.400
So thanks for listening.

45:50.400 --> 45:54.320
Now I hand over to Martin and maybe see you next year.

45:58.220 --> 45:59.260
All right.

45:59.260 --> 46:01.300
Thanks for staying with us.

46:01.300 --> 46:06.600
There's just two points left for me at the very end.

46:07.140 --> 46:10.220
Let me find the right slides.

46:14.000 --> 46:15.800
No, that's not it.

46:25.020 --> 46:26.820
Be quicker that way.

46:37.640 --> 46:39.720
So yeah, uh, sorry.

46:39.720 --> 46:44.920
We've seen that much of Bluetooth is fundamentally insecure, both the standards and implementations.

46:44.920 --> 46:47.900
The toolkits have the link on the last slide as well.

46:48.060 --> 46:54.440
Um, it's online for you to check your cars, your Bluetooth products, any of them.

46:54.540 --> 46:58.240
Um, and of course we're not liable for anything you do with it.

46:58.420 --> 47:07.100
Um, but we focus on Bluetooth and cars and just very last thing, of course you can check anything.

47:07.100 --> 47:11.860
And we took it to one of the domains we're very familiar with, which is aviation.

47:11.860 --> 47:24.180
We tried it out on our own lab of certified real aircraft hardware, which also has Bluetooth to connect so-called electronic flight bags, which is just an iPad really with flight computers.

47:24.860 --> 47:41.160
And the thing is these Bluetooth versions are so old, most of these exploits don't work there because, uh, honestly you can establish the man in the middle position anyway because the encryption is just so weak or trivial.

47:41.160 --> 47:52.440
So we haven't explored this further, uh, but it should be very easy to, uh, also do this on at least these specific, um, flight management systems.

47:52.860 --> 47:58.460
With that, thank you for listening and also putting up with the video talk.

47:58.460 --> 48:01.780
I hope Vlad can make it in person next time.

48:02.140 --> 48:07.240
This is the QR code to the GitHub repository where you can find all the information.

48:07.240 --> 48:15.840
Also this disclosure results, uh, any questions I'm available and Vlad is also very happy if you contact him online.

48:15.840 --> 48:17.040
Thank you very much.

