[00:00.600 --> 00:03.640] All right, yeah, the problem is at the end of the day, [00:03.640 --> 00:05.940] apparently the good stuff is empty. [00:07.120 --> 00:08.380] But it's all right. [00:09.860 --> 00:12.180] Hello, welcome to our talk, [00:12.180 --> 00:15.000] exploiting Bluetooth from your card to the bank account. [00:15.660 --> 00:17.980] To get this out of the way, first, [00:17.980 --> 00:20.640] 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:26.880] But the second part of the video [00:26.880 --> 00:30.260] with all the technical details of the talk [00:30.260 --> 00:32.220] will be given via video. [00:32.340 --> 00:35.440] So if you have questions at the end, afterwards, [00:35.440 --> 00:37.740] I'll do my best to answer them online or offline [00:37.740 --> 00:39.940] or connect you with Vlad, [00:39.940 --> 00:43.780] 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:31.690] See you recording. My name is Vladislav, but some of you might know me as Weiser and Schmitz. [04:31.690 --> 04:35.790] I'm a bug bounty hunter and primarily focus on web mobile infrastructure when it comes [04:35.790 --> 04:40.230] to pen testing. I also focus on code reviews and development of the tools and frameworks. [04:40.230 --> 04:45.210] I'm currently open to the new opportunities, so feel free to reach out. I also have additional [04:45.210 --> 04:50.530] certifications, awards, and masters. But the most important fact is that I have never attacked [04:50.530 --> 04:55.570] booters or cars before, and I applied some of the bug bounty hunting techniques to it and [04:55.570 --> 05:03.420] got some interesting results for you. All right, yeah, sorry for this. Apparently, [05:03.420 --> 05:13.810] this was the first talk today with audio. So let's move on. After Vlad introduced himself, [05:13.810 --> 05:19.350] who am I? My name is Martin. I'm a security researcher and a scientist at the Swiss Cyber [05:19.350 --> 05:26.150] Defense Campus, which is the procurement agency of the Swiss military. I have a background in [05:26.150 --> 05:32.180] wireless security, been publishing in all the major academic systems security conference, [05:32.470 --> 05:39.270] and I've been leading research efforts, not just on cars, but on all sorts of transportation [05:39.270 --> 05:48.510] security at our campus. That includes aviation, so I've just done a talk at the aerospace village, [05:48.510 --> 05:54.790] so you can always check that out, but also space, cars, and trains. I have never looked [05:54.790 --> 06:00.070] at bluetooth before this work, but we've done work on cars, so you can also check out [06:00.070 --> 06:08.910] brokenwire.fail, where we've hacked electric charging processes. So let me first introduce [06:08.910 --> 06:15.470] you to the motivation for this research. One of our main jobs at the campus is to support [06:15.470 --> 06:20.830] procurement for the Swiss military and for the federal government. So we want to really make [06:20.830 --> 06:27.750] sure that the government and the military buy secure systems. As you can imagine, the DoD [06:27.750 --> 06:34.970] buys quite a lot of IT systems, but also other systems such as cars. If you buy that in high [06:34.970 --> 06:41.610] volume, you have quite decent negotiation leverage with manufacturers. In general, public [06:41.610 --> 06:47.050] procurement, if you don't know, is done with tenders. You can basically broadly divide it [06:47.050 --> 06:53.870] into a pre-tender stage, then the actual tender contract, and the time after actually having [06:53.870 --> 07:02.010] procured the systems, and even received and deployed the systems. Doing simple pen testing [07:02.010 --> 07:09.170] after you have bought these things, that's often too late for us. The leverage you have in [07:09.170 --> 07:15.350] negotiations, it's partly gone, and the systems, they're already in operation. I mean, at that [07:15.350 --> 07:23.410] point, you run insecure systems. So that's not ideal. Something else we do is, we do a lot of [07:23.970 --> 07:33.650] standards. That works. If you look at aviation, for example, you find a lot of flaws, and in [07:33.650 --> 07:40.250] principle, you can try to change that in the long run. The problem is, most of these areas have [07:40.250 --> 07:45.410] very long life cycles. So even if you find and demonstrate major flaws in protocols and [07:45.410 --> 07:51.630] technologies being used there, it will take decades until that is being changed in practice. [07:51.630 --> 08:01.950] So again, not too helpful for our case here. So what do we want to concretely do here to support [08:01.950 --> 08:09.230] our procurement? We want to do concrete vulnerability research as early as possible. [08:09.530 --> 08:15.890] We want to really help shape the security requirements during the process and in the final [08:15.890 --> 08:21.070] contenders. To do that, we work with the manufacturers, but we also use support from academia [08:21.070 --> 08:27.310] in Switzerland and outside to bring everyone together to make the systems more secure, and not [08:27.310 --> 08:33.210] just do this for us, but for everyone. So concretely, if we do research, we follow a responsible [08:33.210 --> 08:39.410] disclosure process with the manufacturers. If we find anything, we publish at conferences, also [08:39.410 --> 08:45.610] 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:00.630] As alluded earlier, the DoD buys a lot of vehicles, not just these that you can see here, probably the [09:00.630 --> 09:09.450] ones you think of first. Luckily, these don't have Bluetooth, or at least I think, I mean I haven't [09:09.450 --> 09:14.790] checked all of them, you don't really know. They might exist these days as well, but in general [09:14.790 --> 09:25.450] they don't. But honestly, boringly, by far the most vehicles being procured by our DoD are box [09:25.450 --> 09:32.570] standard, run of the mill civilian cars. And they all have Bluetooth. You basically cannot buy a [09:32.570 --> 09:39.490] car without it, even if you want it. So, even we can't get that without. That brings me off the [09:39.490 --> 09:47.690] scope of this research now. Bluetooth, of course, is not the only interface you find in the car. [09:47.690 --> 09:57.050] Cars are super complex systems. When doing a count, we found at least 19 interfaces in modern [09:57.050 --> 10:03.990] cars, from wired OBD ports to the key fob. If there's an issue with any of these interfaces, [10:03.990 --> 10:10.850] these systems, the only way traditionally for a manufacturer to do anything and to deal with it [10:11.250 --> 10:18.230] in that car and that model, is to do a recall. And recalls, typically for safety problems, [10:18.230 --> 10:26.390] they're expensive and rarely done, really just for very important safety problem. For security [10:28.010 --> 10:36.090] reasons, this rarely happens, to be honest. So, that leaves us with a very complex attack surface, [10:36.090 --> 10:42.270] much of which actually has been discussed at DEF CON, also at the Car Hacking Village. They [10:42.270 --> 10:48.330] specialize in that, of course, but just an illustration here, don't have to check all of [10:48.330 --> 10:54.890] this, but it's a very big complex attack surface you have in modern cars. [10:56.570 --> 11:03.170] So, why are we looking now specifically at Bluetooth? Well, most importantly, nobody had [11:03.170 --> 11:08.090] done it yet. So, there's a lot of Bluetooth research, of course, but nobody has really [11:08.090 --> 11:16.330] checked on a large scale all the exploits that exist in Bluetooth with a reasonable amount of [11:16.330 --> 11:23.350] cars. So, that sort of Bluetooth security in cars hasn't been addressed. That felt to us like an [11:23.350 --> 11:28.990] oversight, not just from the procurement perspective, but over 1 billion cars have Bluetooth [11:29.470 --> 11:35.370] and, as mentioned, you can't do anything about that if you buy a new car. That overall makes [11:35.370 --> 11:41.810] the research very impactful, not just for us, but really for anyone with a car. And we're very happy [11:41.810 --> 11:48.290] also with the outcomes that we had from this research, which was led by Vlad, who will now [11:48.290 --> 11:57.310] present the technical details and I will come back afterwards for any questions or any information. [12:09.480 --> 12:13.760] Bluetooth is a short-range wireless communication standard and it is not a specific protocol, but [12:13.760 --> 12:17.720] multiple different protocols that work on top of each other and that are maintained by different [12:17.720 --> 12:21.740] entities. Due to this complexity, there are different errors and misunderstandings that [12:21.740 --> 12:26.560] arise and these are the primary source of the vulnerabilities that we keep filing. [12:26.560 --> 12:30.040] We're only going to talk about the Bluetooth classic here, we're not going to talk about the [12:30.040 --> 12:34.840] Bluetooth technology at all. So what you have to remember about the Bluetooth is that it is [12:34.840 --> 12:39.800] transport plus additional functionality on top of it. And when I refer to the functionality, [12:39.800 --> 12:45.340] I refer to the Bluetooth profiles that allow you to make calls, stream audio, share context messages, [12:45.340 --> 12:50.520] and even have the whole internet stack on top of the Bluetooth. So Bluetooth is reaching the [12:50.520 --> 12:54.940] functionality and we have to secure it and for that we have pairing. When it comes to pairing, [12:54.940 --> 13:00.740] it depends on the capabilities of the device and the security options. So when it comes to the [13:00.740 --> 13:05.780] capabilities themselves, they depend on the input and output capabilities of the device. [13:05.780 --> 13:11.280] So if the device has both of them, then we call such device Display Yes, No. If the device has [13:11.280 --> 13:16.520] only output capabilities, then we call such device Display Only. When it comes to the devices that [13:16.520 --> 13:21.880] only has input capabilities, we call such devices Keyboard Only devices. And when the device doesn't [13:21.880 --> 13:28.040] have any of the capabilities, so we call such devices No Input, No Output capability device. [13:28.420 --> 13:32.540] We can also summarize the security model of the Bluetooth as everything or nothing as [13:32.540 --> 13:37.540] pass-pairing. We can access almost all functionality that is available to us on [13:37.540 --> 13:43.780] this IoT device without any further authorization in most of the cases. That's why we have to be [13:43.780 --> 13:48.700] sure and confident in the pairing process and for that we have different pairing modes. [13:48.700 --> 13:55.720] So when one of the devices doesn't have doesn't support security options, then for example it [13:55.720 --> 14:02.820] doesn't have simple secure pairing or and secure connections, then legacy pairing is used and from [14:02.820 --> 14:07.540] its name you can infer that it's legacy and ideally shouldn't be used at all. To give you some reasons [14:07.540 --> 14:16.940] it's vulnerable to the non-branded XXX and also the link, the security of the link depends [14:16.940 --> 14:22.780] on the four-digit pin which you can easily brute force. So then when it comes to devices that [14:23.280 --> 14:27.880] doesn't have input capabilities, if one of the devices doesn't have input capabilities, [14:27.880 --> 14:32.900] then just works pairing mode is used and for this pairing mode there are no guarantees that [14:32.900 --> 14:38.540] you are actually pairing with the device that you want to pair with and that's why it is [14:38.540 --> 14:43.740] intrinsically vulnerable to the man-in-the-middle attacks. When it comes to the pass-key entry, [14:43.740 --> 14:48.760] it was recently discovered that it's vulnerable to the message confusion when the middle attack [14:48.760 --> 14:55.700] which is not remediated yet in the latest version, it might be there for a few years at least. [14:56.120 --> 15:00.780] So it leaves us with only one pairing mode which is actually secure and is an American [15:00.780 --> 15:06.640] version. It is executed only for the devices that have this way as no capabilities and [15:06.640 --> 15:12.680] they both want to pair with each other. Then when it comes to when we are pass-pairing, [15:12.680 --> 15:18.820] most of the firmwares or all of the firmwares do not differentiate between the pairing modes used, [15:18.820 --> 15:25.140] so whether or not you use the secure pairing mode or not. And that means that legacy pairing [15:25.140 --> 15:30.740] is the same as the American version at least in the eyes of the firmware. So boosters have been [15:30.740 --> 15:34.880] there for more than 23 years and we have found that there are more than 108 different attacks [15:34.880 --> 15:40.920] on the booster standards themselves as of March 2024. Also, SANS provided statistics that there [15:40.920 --> 15:47.720] are approximately 650 different CVEs related to the boosters devices as of 2022 and even more [15:48.240 --> 15:54.500] right now. So for the presentation, we are going to differentiate between four [15:54.500 --> 15:59.560] different categories of the exploits. So when I refer to the critical exploits, I refer to [15:59.560 --> 16:05.460] the remote code execution, memory leakage, information leakage, but then in the middle [16:05.460 --> 16:12.720] the nano-source categories are actually self-explanatory, while the chaining category [16:13.380 --> 16:21.340] describes not specifically vulnerabilities or exploits, but rather weaknesses that one can use [16:21.340 --> 16:30.800] to make the attacks possible or they actually allow or make some of the attacks to be executed [16:30.800 --> 16:38.540] easily. We actually tried to, even though there are, sorry, even though boosters have been there [16:38.540 --> 16:44.340] for 22 years and been subject to the extensive security research, there are still challenges [16:44.340 --> 16:49.400] involved into testing it. So it's like the common database of religious vulnerabilities, [16:49.400 --> 16:55.840] it's like the framework for testing it. And in general, the attacks are being shared, [16:55.840 --> 16:59.860] but the proof of concepts are not. And if they are shared, they are generally shared on the [17:00.620 --> 17:07.560] sites that are not quite well indexed, so it's quite challenging to find such proof of concept. [17:07.560 --> 17:13.440] And if you find the proof of concept, there is also, there is a high chance that the proof of [17:13.440 --> 17:18.200] concept will be based on the old hardware that you cannot buy anymore. And this also applies to the [17:18.200 --> 17:25.400] recently recently publicized exploits, for example, it's 123. When it comes to testing, [17:25.400 --> 17:31.340] intrinsic false positives and false negatives, when you test in the black box fashion for [17:31.340 --> 17:39.640] the null-source-based attacks, then it's a bit tricky to automate the null-source attacks in [17:39.640 --> 17:46.440] some cases, especially for some of the devices, because the null-source attacks are quite powerful [17:46.440 --> 17:55.360] in these cases, and it requires rebooting the device, but it's quite difficult to do. For example, [17:55.400 --> 18:01.640] in case of the cars, in some cases it requires to wait for 10, 20, or 30 minutes, so it's a bit [18:01.640 --> 18:09.600] tricky. We tried to solve some of these problems, and that's why we came up and open-sourced a [18:09.600 --> 18:13.580] framework for vulnerability testing framework for Blitzware Classic, like access and redevelop [18:13.580 --> 18:20.800] 44 different exploits. Also, the main goal is reproducibility of the past and future research. [18:20.800 --> 18:24.700] There is also a balance between automation, semi-automation, and manual tests, [18:24.700 --> 18:32.740] so even though the attacker side is automated, the victim side is not. It's infeasible to do so, [18:32.740 --> 18:37.540] so you still have to do some of the manual actions, for example, on the infotainment screen. [18:37.660 --> 18:42.700] I also evaluated half of the exploits on the non-vulnerable devices, while for the other half, [18:42.700 --> 18:48.060] I ensured that the exploits write to some deep payload, but as there were no non-vulnerable [18:48.060 --> 18:55.920] devices for them, we used them as is. But still, these exploits found the real vulnerabilities [18:55.920 --> 19:03.000] in the cars, so I'm quite confident in them. The tool itself works pretty straightforward. [19:03.000 --> 19:09.580] The tester executes the command, then the engine loads the redefined exploit profile, [19:09.580 --> 19:13.000] then checks for the vulnerability of the target device without requiring [19:13.000 --> 19:18.480] any interactions from the tester, then executes the exploit, and after that, [19:18.480 --> 19:24.620] depending on the exploit type, it either compares the value, or it checks the variability and [19:24.620 --> 19:30.760] availability of the target device once again. After that, the toolkit reports back to the tester. [19:31.040 --> 19:37.100] So I used this toolkit to attack different cars, and the result was pretty minimalistic, [19:37.100 --> 19:45.500] or you could have used a virtual machine, USB cables, a development board, and a Nexus 5 phone [19:45.500 --> 19:51.640] for denial-of-service attacks and internal war attacks. Then I spent approximately one to three [19:51.640 --> 19:57.980] hours per car, as different issues arose, and for some of the cars, especially the [19:58.700 --> 20:05.220] internal combustion cars, you have to test them outside as they require the engine to be started [20:05.220 --> 20:09.860] to access the infotainment system, and because of that, you have to test them outside. [20:10.640 --> 20:14.860] If you can connect to the infotainment system and observe the logs, please do that as it would [20:14.860 --> 20:22.760] help to remediate some of the false positives and false negatives. So all of the cars were provided [20:22.760 --> 20:27.180] by SAP Defense Campus, Amuno Logistics, and some were provided by friends and acquaintances. [20:27.180 --> 20:34.800] In total, we had 22 cars. Only four were partially tested. You might think that the sample size is [20:34.800 --> 20:40.400] quite small, but it is the biggest out there, and we tried to focus on different categories [20:40.400 --> 20:49.700] of the cars, monetary-wise, and also focusing on the top manufacturers, so that we would have [20:50.040 --> 20:55.560] a notion of the state-of-the-art bluetooth security in the automotive industry. [20:55.920 --> 20:59.940] And finally, all of the bluetooth tests are non-invasive, [20:59.940 --> 21:03.720] 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:18.240] Some issues were not reportable because they are inherent issues, and that's why I was able [21:18.240 --> 21:23.840] to report only 64 vulnerabilities. All of the vulnerabilities that were reported were reported [21:23.840 --> 21:30.080] responsibly, and all manufacturers and vendors had time to fix them, but you already guessed that [21:30.080 --> 21:35.860] not all of them did that, but we still are releasing as there have been more time, [21:35.860 --> 21:43.140] they had a lot of time to do so. So, generally, the first thing that I wanted to share is that [21:43.140 --> 21:48.400] the cars are generally lacking in adoption of the newest bluetooth standards. So, for example, [21:48.400 --> 21:54.360] you wanted to buy a 2023 car, you would expect that the hardware used in it would be rather [21:54.360 --> 22:01.260] recent, but in fact what you get is the bluetooth version from 2014. And the difference is 9 years [22:01.260 --> 22:09.960] in this case, on average it's 7 years, and mean is also 7 years. So, in the time frame of 9 years, [22:09.960 --> 22:15.500] there have been a lot of research done into the bluetooth, so there are more than 10 different [22:15.500 --> 22:20.960] attacks on the car specification itself, which also affects your bluetooth version, [22:20.960 --> 22:28.160] and that's why you're in risk, because there are existing vulnerabilities that could be [22:30.720 --> 22:35.420] exploited in your car. First, you might think that you can remediate them with the firmware [22:35.420 --> 22:41.200] update. Here's the first problem, most of the cars still don't provide the firmware updates. [22:41.200 --> 22:47.760] And the second problem is that you cannot remediate the car specification attacks with [22:47.760 --> 22:54.840] the firmware updates, as they generally require fixing the standards first, then a few years will [22:54.840 --> 23:01.140] pass as the new hardware will be developed and be available on the market. After that, you'll be able [23:01.140 --> 23:08.900] to actually swap the hardware in your car for the newest, but no one is going to do that for you, [23:08.900 --> 23:14.260] and manufacturers most likely won't be doing that. And this is required because you can change the [23:14.260 --> 23:20.700] bluetooth version only by swapping the hardware. You cannot do that in the firmware. So we've been [23:20.700 --> 23:26.120] testing for the known vulnerabilities, and we actually expected that we won't find [23:26.900 --> 23:34.000] known vulnerabilities in the cars produced in 2022 and 2023. That were our expectations, [23:34.000 --> 23:41.060] but in fact we still found a lot of cars that had them, and for example Tesla cars, [23:41.060 --> 23:47.200] they had a specific man-in-the-middle vulnerability that also shouldn't really exist in other models. [23:47.560 --> 23:52.120] You can check it for yourself. But the most interesting view is actually on the average [23:52.120 --> 23:59.140] number of vulnerabilities found per car manufacturer, as you can see here the differences [23:59.140 --> 24:05.320] between them and also the similarities. So when it comes to the critical vulnerabilities, [24:05.320 --> 24:13.000] there were only three manufacturers that had them, Renault and Volkswagen. So these vulnerabilities [24:13.000 --> 24:17.460] were rather old, and they could have been fixed with the firmware update, but there were no firmware [24:17.460 --> 24:23.700] updates for these vulnerabilities for these cars. Then when it comes to the denial of service and [24:23.700 --> 24:30.080] man-in-the-middle attacks, you have to notice that if one of the manufacturers doesn't [24:30.080 --> 24:35.940] have man-in-the-middle attacks, they would generally have denial of service attacks or vice versa. [24:36.040 --> 24:43.120] So these types are omnipresent and they can be swapped. Both of them can be used to establish [24:43.120 --> 24:47.560] the man-in-the-middle position, so you can use both denial of service attacks and man-in-the-middle [24:47.560 --> 24:53.380] attacks to aid you in establishing the man-in-the-middle position. So this knowledge would be very helpful [24:53.380 --> 24:59.540] in the future, so try to remember it. And as we've been talking for the known vulnerabilities you [24:59.540 --> 25:07.020] already guessed that we found some new ones, especially some new attacks actually. So the first [25:07.020 --> 25:12.840] attack is the contact extractor attack. Here the victim establishes the bluetooth connection [25:12.840 --> 25:18.640] with the car, then shares the contacts via phonebook exit profile and leaves the car without [25:18.640 --> 25:27.240] impairing the phone, for example, by switching off the bluetooth or just walking away. [25:27.240 --> 25:33.540] Then we will be able to spoof the MAC address to the MAC address of the victim, establish the bluetooth [25:33.540 --> 25:39.260] connection and extract the contacts. But it would have been an ideal case, but unfortunately we cannot [25:39.260 --> 25:47.020] do that because both the attacker and the car run the phonebook exit profile client service [25:47.020 --> 25:53.200] and only the servicers can serve the contacts. So this specific attack applies in the car sharing [25:53.200 --> 26:00.220] context and due to that fact we would have to get into the car. We do not need to start the car, [26:00.220 --> 26:05.080] we just need to access the infotainment system and it is accessible without starting the engine. [26:05.260 --> 26:10.820] So we would have to search for the password number on the infotainment screen [26:10.820 --> 26:17.180] and if the car is vulnerable it would show us the contacts. So here you can see that we [26:17.180 --> 26:22.860] connected to the Renault car, we do not have any contacts on the left, but when we switch to the [26:22.860 --> 26:29.420] dial pad and search for the password number, then the contacts are shown to us. The second attack is [26:29.420 --> 26:34.920] very similar to the non-bluetooth equipment attack with some caveats that are applied [26:36.700 --> 26:43.380] to the automotive industry. So some of the cars actually deny connections or pairing [26:43.380 --> 26:49.380] to be initiated from the non-bluetooth capability devices, but there are also the cars that [26:50.020 --> 26:55.520] allow the connection to be initiated from the user's smartphone and also from the car. [26:55.520 --> 27:01.300] So in case the connection is being initiated from the car, there are some cars that actually [27:01.300 --> 27:07.260] forget that they deny access to the non-bluetooth capability devices and thus it might be possible [27:07.260 --> 27:13.000] to get the connections from the car to the attacker, for example by self-deletion or [27:13.000 --> 27:21.900] pre-committing or using other techniques, 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:34.820] This is an insecure numerical person man-in-the-middle attack. In this case, it is a mutation-specific [27:34.820 --> 27:43.720] attack. So in this case, the car either has the design problem or they have a state problem. [27:43.720 --> 27:50.680] In case of the state, we'd have to check the connection with different capabilities, while for [27:50.680 --> 27:56.280] the design, we'd have to just resolve the pairing process. So in case the car is vulnerable, it [27:56.280 --> 28:02.820] wouldn't need any confirmation of the pairing on the infotainment screen or show non-bluetooth-like [28:02.820 --> 28:08.120] confirmation without showing the pairing number, or it will show you a static number across different [28:08.120 --> 28:15.480] pairing attacks. So due to this fact, we'd have all the pieces to establish the man-in-the-middle [28:15.480 --> 28:21.920] position or just the connection to the car. So to give you some of the examples in case of the [28:21.920 --> 28:26.740] Hyundai cars, they show you the pairing number, they show you the button to cancel the pairing [28:26.740 --> 28:35.020] or the connection, but they show you the button to accept the pairing. And this is a problem because [28:35.020 --> 28:40.540] the whole logic is on the attacker side. In case of the Audi cars, they show you non-bluetooth-like [28:40.540 --> 28:44.980] confirmation window, they don't show you the pairing number, and if you click accept, the [28:44.980 --> 28:50.720] pairing would be done. After that, they will show you the window with the pairing number and the [28:50.720 --> 28:58.580] button to cancel pairing or unpair. But in this case, there are two possibilities. So in case of [28:58.580 --> 29:10.120] the first one, if the user clicks yes or pair on their phone first, then we might be able to get [29:10.120 --> 29:15.500] the man-in-the-middle position. If they don't, then they might spot the attack and ask them to [29:15.500 --> 29:22.580] wait 5-10 seconds to execute it. When it comes to the BMW cars, they had a state problem. Some of them [29:22.580 --> 29:29.440] still might have, but it should be fixed in the newer versions, in the newer firmware versions. [29:29.440 --> 29:39.540] So in this case, you can force the state problem by using the capabilities other than display [29:39.540 --> 29:46.640] as null, and it will show you the specific number that you see on the screen. After that, [29:46.640 --> 29:51.020] you'll be able to establish the man-in-the-middle position or adjust the connection to the user or [29:51.020 --> 29:57.260] to the car. In case of the Renault cars, they didn't give the user any control whatsoever, [29:57.260 --> 30:02.200] so anyone could connect to it. So you've seen that I've found many different vulnerabilities [30:02.200 --> 30:08.000] in the car, specifically primarily denial-of-service attacks and man-in-the-middle attacks, [30:08.000 --> 30:13.700] but you still might have a question, what can we do with them? And this is what we are going [30:13.700 --> 30:18.420] to explore now. So first thing, we have to establish the man-in-the-middle position, [30:18.420 --> 30:23.480] and for that we have three different options. First one is to do selective jamming. In case [30:23.480 --> 30:28.400] of this active jamming, it's relatively difficult to do, but it's still possible. So in this case, [30:28.400 --> 30:34.260] we would have to spoof the MAC address of the car and then selectively jam it. After that, [30:34.260 --> 30:40.100] you might be able to get the connection request or pairing request from the user, [30:40.100 --> 30:45.100] or do it vice versa. The second option is to use denial-of-service attacks and deny [30:45.100 --> 30:52.980] user source to the car and then spoof the MAC address again and get the connection from the [30:52.980 --> 30:58.060] user or vice versa. The third option is actually to procure it with different MAC addresses, [30:58.060 --> 31:03.340] but the same names as those the car and the user would expect. So in this case, if we connect to [31:03.340 --> 31:09.900] the car, we would have the name of a user, and if we connect to the user, we would have the name [31:09.900 --> 31:18.360] of the car, so that the user would be lured into pairing. You might actually have a question or a [31:18.360 --> 31:24.840] problem with discovering the MAC addresses. You might think it is difficult, but in fact, it's [31:24.840 --> 31:30.320] rather easy, and it became easy as of recently. So for example, you have at least two options. [31:30.320 --> 31:37.080] The first option is to simply listen for the MAC addresses, for discoverable MAC addresses with your [31:37.080 --> 31:43.540] laptop hardware. You would be able to find only discoverable MAC addresses, so the sample size [31:43.540 --> 31:50.400] won't be big, but it might be enough for the attacks. And the second option is to use blue [31:50.400 --> 31:55.540] squares attack to actually get the MAC address, almost all MAC addresses in the Bluetooth classic [31:55.540 --> 32:01.400] space, with the help of USRP and Ubertooth, so it's approximately two thousand dollars worth of [32:01.400 --> 32:08.560] the equipment. So with that, you'll be able to discover the MAC addresses that are in non-discoverable [32:08.560 --> 32:17.660] mode for almost all the attacks that we are going to show you. So then, with this specific part, [32:17.660 --> 32:23.800] you'll be able to get your first click, or the first seamless click, and after that, you might [32:23.800 --> 32:30.500] have a question, what can we do with the man-in-the-middle position? So in this case, we would have to escape [32:30.500 --> 32:37.460] the Bluetooth sandbox, because we're in, so to say, Bluetooth sandbox, as we cannot execute the code, [32:37.460 --> 32:43.320] we cannot execute arbitrary code on this other device, and because of that, we'd have to switch [32:43.320 --> 32:48.780] to the phones rather than, and look for the functionality that we can exploit. So in this case, [32:48.780 --> 32:55.520] generally, phones have the phone functionality. They allow you to make calls, play music, or stream audio [32:55.520 --> 33:01.420] without any authorization, while when it comes to sharing context messages, they require the authorization [33:01.420 --> 33:09.360] in some cases. Then they also allow you to emulate the SIM card of the victim or user, and get access [33:09.360 --> 33:17.060] to the SMS messages and phone calls. While this might seem very interesting, the specific [33:17.060 --> 33:22.860] SIM access profile, this is actually deprecated, and it's only available on the Android devices, [33:22.860 --> 33:30.220] and it has a lot of warnings. It's not like users would not dismiss the warnings, but still, [33:30.220 --> 33:34.200] it's only available on the Android device, and in fact, the most interesting one [33:34.740 --> 33:40.860] is the message access profile, which allows you to extract different messages, for example, SMS [33:40.860 --> 33:46.360] messages and emails. In case of the emails, it's only available according to the specification. [33:46.360 --> 33:53.320] I haven't been able to find any implementation that actually factors the emails, so you might [33:53.880 --> 33:59.660] find that, might not. I'm not sure in case of the emails, but what I know for the fact is that you [33:59.660 --> 34:05.460] can extract the SMS messages that were ever delivered to the phone, and also you can send [34:05.460 --> 34:13.260] the SMS messages. So additionally, the user experience is very helpful, as on the iOS devices, [34:13.260 --> 34:19.120] functionality is called notifications, while on the Android devices, it's called messages. [34:19.320 --> 34:26.820] So there is no mentioning of SMS messages at all. So we come to the generic attack that you can [34:26.820 --> 34:31.680] execute, and the first thing that you need is the man-in-the-middle position, which requires [34:32.680 --> 34:36.580] one click from the user, and then you will be able to ask for the message access profile [34:37.620 --> 34:42.640] access, which will require another click from the user. Once granted, you will be able to [34:42.640 --> 34:47.140] instruct the user's phone to send the SMS message or call a specific number that you control, [34:47.140 --> 34:53.280] so that you will be able to link the phone number to yourself, and then use it in the [34:53.280 --> 34:57.600] open source intelligence flow, automatic flow, so that you will be able to discover the [34:58.280 --> 35:06.620] login names or email addresses, or just use the phone number directly on the services of interest, [35:06.620 --> 35:13.180] and then trigger the SMS-based LTP for the accounts that are associated with the victim's [35:13.180 --> 35:19.000] phone number, and then the LTP would be delivered to the victim's phone, which we can always retrieve [35:19.000 --> 35:25.660] as we have the message profile access, and then relay back to the backend and hijack the accounts. [35:26.000 --> 35:31.360] If this sounds all quite complicated and unlikely to you, I actually have some good news. So first, [35:31.360 --> 35:36.060] we do not need to have the man-in-the-middle position at all, we just need the connection [35:36.060 --> 35:42.460] to the phone. Secondly, we can link the phone numbers while accessing the metadata of the SMS [35:42.460 --> 35:47.800] messages that were previously delivered, and I guess almost all of us have some SMS messages [35:47.800 --> 35:53.960] that were delivered to the phone numbers that we use. Then we can also look for the content [35:53.960 --> 35:59.140] into the contents of the SMS messages and look for the emails and the login names, [35:59.140 --> 36:05.140] or alternatively, we could use the phone number or the data that we found in the [36:05.140 --> 36:12.800] open-source intelligence for them. Finally, we do not need to ask for the message access profile [36:12.800 --> 36:19.680] authorization for some of the phones, especially Xamarin 22 and older phones, but also this applies [36:19.680 --> 36:27.080] to the latest phones as well. So this is a one-to-two-click generic health takeover attack. [36:27.860 --> 36:35.480] With this attack, we can bypass MFA, we can hijack accounts for the services that primarily [36:35.480 --> 36:41.560] rely on the SMS-based OTPs, for example, meta-services. But the most interesting services [36:41.560 --> 36:48.180] that we want to hijack or potential perpetrators we want to hijack are the ones for which we can [36:48.180 --> 36:53.060] trigger the SMS-based OTP by knowing some information. In most of the cases, it's [36:53.060 --> 37:00.880] knowing the email address or the login name. So by knowing this information, you would be able to [37:00.880 --> 37:06.560] trigger the SMS-based OTP and to know this information, you can use the open-source [37:06.560 --> 37:12.340] intelligence form. Then you'll be able to hijack PayPal, Coinbase, Google account in case the [37:12.900 --> 37:16.760] 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:27.860] But for some of these services, it's rather difficult to do. So in case of the Apple ID, [37:27.860 --> 37:33.260] you have to resort to phishing only as the victim is constantly notified and it's infeasible to you [37:33.780 --> 37:39.020] the recovery in the timely fashion. Then when it comes to the Google account, if the user is logged [37:40.460 --> 37:47.860] on the Android device, then we would have to know the browser type and operating system type [37:48.560 --> 37:54.360] so that we can forge it. And as we'll be close to the victim and have similar IP and location, [37:54.360 --> 37:58.900] we'll be able to bypass all the checks done by Google and hijack the account. [37:59.020 --> 38:03.660] To give you some examples, we would first start with the Android phone. In this case, [38:03.660 --> 38:10.260] this is Samsung S23 for which I did the attack. So almost all of the Android phones are actually [38:10.260 --> 38:16.080] always bearable and discoverable. So you can execute the attack at any time you want. [38:16.080 --> 38:23.780] And once we try to connect and pair, we can force the notepad notification window that [38:23.780 --> 38:31.300] wouldn't show any pairing numbers to compare and thus the user would see only the specific device [38:31.300 --> 38:38.980] wants to pair with them and the buttons to pair or cancel. So in this case, it's the art of choosing [38:38.980 --> 38:47.420] the names to lure the victim into pairing or for that we can use, we can do the targeted attacks [38:47.420 --> 38:54.040] to observe the victim or just use the most common ones and try to pair randomly. After that, we can [38:54.040 --> 39:01.120] ask for the master Excel profile access. And in most of the cases, it is a typical workflow for [39:01.120 --> 39:07.820] the cars and smartwatches and speakers. So if you forge the name for these devices, you would be [39:08.540 --> 39:17.720] more likely to get the message access if the victim is more or less cautious. But I guess [39:17.720 --> 39:25.940] most of the users are not, so they would probably run the access. Once granted, you'll be able to [39:25.940 --> 39:30.980] execute the attack. So get the phone number, force the SMS-based OTP on the specific site, [39:30.980 --> 39:36.120] then extract the OTP, enter the OTP, change the password and log out the user from all of the [39:36.120 --> 39:42.280] sessions for the Samsung account. And I was able to log out the user from their own phone and [39:42.280 --> 39:50.000] completely hijack the Samsung account. So this is a two-click generic attack and also Google was [39:50.000 --> 39:58.140] working on a patch for the Android devices while Samsung patched their part in the Samsung account [39:58.140 --> 40:05.200] service in June 24. They actually said that they fixed the vulnerability in November 2023, [40:05.200 --> 40:12.460] but I reported in May 2024 and it was exploitable at that time. But who knows? [40:12.940 --> 40:18.740] When it comes to exploiting iOS devices, you can actually exploit map the same way on the iOS [40:18.740 --> 40:27.200] devices as on the Android devices. As on each new pairing request or in each new repairing pairing, [40:27.200 --> 40:33.220] the user would need to explicitly allow notifications by going to the settings menu [40:33.220 --> 40:39.220] for this specific Bluetooth device and then toggling a button to allow the notifications. [40:39.220 --> 40:46.120] It's quite infeasible when we do the attack that way. But what if we can renegotiate the connection [40:46.120 --> 40:50.620] for an already connected device that already has the notification permissions? You would expect [40:50.620 --> 40:57.540] that the notifications would be reset on each pairing, which is a requirement as per specification, [40:57.540 --> 41:04.980] but iOS doesn't follow that. So you can spoof the MAC address for an already connected device [41:04.980 --> 41:14.400] that already has access or permissions and try to repair. In this case, here I wasn't able to [41:14.400 --> 41:19.980] force the notepad notepad confirmation window that wouldn't show the pairing number to compare, [41:19.980 --> 41:26.140] but you might also experiment with that and maybe get the notepad notepad confirmation window. [41:26.140 --> 41:35.920] But it is unfortunately that it's not the case as of today. But what's most interesting is that [41:35.920 --> 41:43.420] the iOS is also helping us in one other way. They fetch the name of the previously connected [41:43.420 --> 41:49.600] device from the cache and use it in the pairing request. So if the user had some kind of esoteric [41:49.600 --> 41:56.120] name for their device, they would be more inclined into pairing with us. And once they click pair, [41:56.140 --> 42:01.560] we have the notification permissions as the previous device, as the previous connection [42:01.560 --> 42:07.660] had them. So we'd be able to execute the attack. 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:21.360] So recently there was an attack that involved phishing and seems to have attacked and the [42:21.360 --> 42:28.120] perpetrators were able to steal $22,000 from the victim. And here we can try to replicate [42:28.120 --> 42:35.580] the similar attack with the map attack. So here we'll be able to inject the SMS message as if they [42:35.580 --> 42:41.680] came from Apple and do phishing. Once the user enters the Apple ID and the password, [42:41.680 --> 42:53.540] SMS-based OTP or MFA would be used and we'll be able to steal the SMS message value for OTP value [42:54.160 --> 42:59.600] via the Messenger Exit Profile attack. So here we just swap the symptom with the [42:59.600 --> 43:04.920] Messenger Exit Profile attack. We can also focus on other applications like [43:04.920 --> 43:11.420] PayPal or Coinbase or any other of interest. So you do not have to always focus on the [43:11.420 --> 43:21.420] Apple ID. But the most actually interesting, worrying, or best part or worst part of this [43:21.420 --> 43:28.220] talk is that this specific vulnerability is not fixed as of the latest iOS version and it's not [43:28.220 --> 43:35.140] going to be fixed. Apple said that the users are safe because they are shown the parent prompt, [43:35.140 --> 43:42.680] but I seem to see that they generally violated the business verification and that's why their [43:42.680 --> 43:48.340] users are one click away from their accounts being stolen. But of course, it's up to you to [43:48.340 --> 43:53.180] 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:03.940] For the attack itself, I'm releasing a tool that affects more than 50% of the smartphone [44:03.940 --> 44:10.840] market worldwide, more likely to affect the whole market. And this specific tool would allow you to [44:10.840 --> 44:16.800] retrieve and send SMS messages, as well as look for the emails and phone numbers on the device. [44:16.860 --> 44:22.720] And it would be possible to connect the tool to the infrastructure that would actually do the [44:22.720 --> 44:28.940] recovery process. So here we come to the key takeaways. And the first thing that I want to [44:28.940 --> 44:35.340] mention is that even the newest cars are generally shipped with the protocol vulnerabilities. [44:36.060 --> 44:42.980] And it's not really easy to fix this because the design of the car is locked in just several years [44:42.980 --> 44:50.120] before it's manufactured. And it's not possible to change the business version or hardware in it. [44:50.120 --> 44:56.460] So it's quite difficult to do so. And we have to live with the anticipation of some kind of [44:56.460 --> 45:02.980] protocol obligations and vulnerabilities in the cars and knowing that. Then when it comes to pairing, [45:02.980 --> 45:08.120] pairing security or in the secure environment is extremely important as it's the only safeguard [45:08.120 --> 45:15.640] against the middle attacks. But what you have to remember is that forcing repairing is possible [45:15.640 --> 45:22.060] and it might be malicious. So we have to watch out for that as well. Then when it comes to the [45:22.060 --> 45:29.620] SMS-based OTP services or the services that rely only on SMS-based OTPs, it might be rather [45:29.620 --> 45:36.460] risky for the end users. And it's why maybe it would be best to consider other OTPs [45:39.020 --> 45:47.220] sources. So for example, email-based OTPs. And in that case, it might add additional safeguards to [45:47.220 --> 45:54.320] the users. So thanks for listening. Now I hand over to Martin and maybe see you next year. [45:58.220 --> 46:06.600] All right. Thanks for staying with us. There's just two points left for me at the very end. [46:07.140 --> 46:15.800] Let me find the right slides. No, that's not it. [46:25.020 --> 46:41.960] Be quicker that way. So yeah, uh, sorry. We've seen that much of Bluetooth is fundamentally [46:41.960 --> 46:47.400] insecure, both the standards and implementations. The toolkits have the link on the last slide as [46:47.400 --> 46:55.260] well. Um, it's online for you to check your cars, your Bluetooth products, any of them. Um, and of [46:55.260 --> 47:02.740] course we're not liable for anything you do with it. Um, but we focus on Bluetooth and cars and [47:02.740 --> 47:09.600] just very last thing, of course you can check anything. And we took it to one of the domains [47:09.600 --> 47:15.120] we're very familiar with, which is aviation. We tried it out on our own lab of certified real [47:15.120 --> 47:20.500] aircraft hardware, which also has Bluetooth to connect so-called electronic flight bags, [47:20.500 --> 47:28.160] which is just an iPad really with flight computers. And the thing is these Bluetooth [47:28.160 --> 47:34.840] versions are so old, most of these exploits don't work there because, uh, honestly you can [47:34.840 --> 47:41.160] establish the man in the middle position anyway because the encryption is just so weak or trivial. [47:41.160 --> 47:48.400] So we haven't explored this further, uh, but it should be very easy to, uh, also do this on at [47:48.400 --> 47:55.040] least these specific, um, flight management systems. With that, thank you for listening [47:55.040 --> 48:01.780] and also putting up with the video talk. I hope Vlad can make it in person next time. [48:02.140 --> 48:07.420] This is the QR code to the GitHub repository where you can find all the information. Also [48:07.420 --> 48:14.300] this disclosure results, uh, any questions I'm available and Vlad is also very happy [48:14.300 --> 48:17.040] if you contact him online. Thank you very much.