1 00:00:00,600 --> 00:00:05,940 All right, yeah, the problem is at the end of the day, apparently the good stuff is empty. 2 00:00:07,120 --> 00:00:08,380 But it's all right. 3 00:00:09,860 --> 00:00:15,000 Hello, welcome to our talk, exploiting Bluetooth from your card to the bank account. 4 00:00:15,660 --> 00:00:20,640 To get this out of the way, first, the main speaker sadly cannot be here tonight. 5 00:00:20,640 --> 00:00:22,740 He didn't receive a visa in time. 6 00:00:23,000 --> 00:00:25,140 We still don't have to do without him. 7 00:00:25,140 --> 00:00:32,220 But the second part of the video with all the technical details of the talk will be given via video. 8 00:00:32,340 --> 00: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. 9 00:00:46,300 --> 00:00:54,350 To prove this, I'll let Vlad introduce himself. 10 00:00:54,550 --> 00:00:56,390 And I hope this works. 11 00:00:58,250 --> 00:00:59,210 Do we have sound? 12 00:01:13,090 --> 00:01:14,370 Do we have any sound? 13 00:01:24,310 --> 00:01:27,170 Otherwise I can introduce him, but... 14 00:02:07,750 --> 00:02:09,150 The volume's up all the way? 15 00:02:09,490 --> 00:02:11,610 Yeah, on this it is. 16 00:02:11,610 --> 00:02:12,670 On here, I don't know. 17 00:02:12,850 --> 00:02:14,730 Can we check the volume on your computer? 18 00:02:14,790 --> 00:02:15,530 That is up all the way? 19 00:02:15,530 --> 00:02:16,270 It's on. 20 00:04:26,470 --> 00:04:27,710 See you recording. 21 00:04:27,710 --> 00:04:31,690 My name is Vladislav, but some of you might know me as Weiser and Schmitz. 22 00:04:31,690 --> 00:04:36,810 I'm a bug bounty hunter and primarily focus on web mobile infrastructure when it comes to pen testing. 23 00:04:36,810 --> 00:04:40,230 I also focus on code reviews and development of the tools and frameworks. 24 00:04:40,230 --> 00:04:44,150 I'm currently open to the new opportunities, so feel free to reach out. 25 00:04:44,150 --> 00:04:47,650 I also have additional certifications, awards, and masters. 26 00:04:47,830 --> 00: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. 27 00:05:00,580 --> 00:05:03,060 All right, yeah, sorry for this. 28 00:05:03,060 --> 00:05:06,400 Apparently, this was the first talk today with audio. 29 00:05:09,070 --> 00:05:11,450 So let's move on. 30 00:05:12,130 --> 00:05:15,170 After Vlad introduced himself, who am I? 31 00:05:15,170 --> 00:05:16,350 My name is Martin. 32 00:05:16,350 --> 00: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. 33 00:05:25,270 --> 00: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. 34 00:05:42,970 --> 00: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. 35 00:05:53,510 --> 00: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. 36 00:06:07,090 --> 00:06:12,170 So let me first introduce you to the motivation for this research. 37 00:06:12,170 --> 00:06:19,430 One of our main jobs at the campus is to support procurement for the Swiss military and for the federal government. 38 00:06:19,430 --> 00:06:25,650 So we want to really make sure that the government and the military buy secure systems. 39 00:06:25,750 --> 00:06:33,230 As you can imagine, the DoD buys quite a lot of IT systems, but also other systems such as cars. 40 00:06:33,790 --> 00:06:40,130 If you buy that in high volume, you have quite decent negotiation leverage with manufacturers. 41 00:06:40,270 --> 00:06:44,670 In general, public procurement, if you don't know, is done with tenders. 42 00:06:44,670 --> 00: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. 43 00:06:59,810 --> 00:07:07,270 Doing simple pen testing after you have bought these things, that's often too late for us. 44 00:07:07,270 --> 00:07:14,670 The leverage you have in negotiations, it's partly gone, and the systems, they're already in operation. 45 00:07:14,670 --> 00:07:17,870 I mean, at that point, you run insecure systems. 46 00:07:18,030 --> 00:07:20,750 So that's not ideal. 47 00:07:20,770 --> 00:07:24,890 Something else we do is, we do a lot of standards. 48 00:07:25,890 --> 00:07:28,170 That works. 49 00:07:28,370 --> 00: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. 50 00:07:37,770 --> 00:07:41,930 The problem is, most of these areas have very long life cycles. 51 00:07:41,930 --> 00: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. 52 00:07:51,630 --> 00:07:56,510 So again, not too helpful for our case here. 53 00:07:56,950 --> 00:08:03,210 So what do we want to concretely do here to support our procurement? 54 00:08:04,310 --> 00:08:09,230 We want to do concrete vulnerability research as early as possible. 55 00:08:09,530 --> 00:08:16,850 We want to really help shape the security requirements during the process and in the final contenders. 56 00:08:17,050 --> 00: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. 57 00:08:30,150 --> 00:08:35,210 So concretely, if we do research, we follow a responsible disclosure process with the manufacturers. 58 00:08:35,210 --> 00: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. 59 00:08:47,430 --> 00:08:53,170 That brings me then to today's concrete case study, vehicles and the army and Bluetooth. 60 00:08:53,590 --> 00: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. 61 00:09:03,870 --> 00: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. 62 00:09:12,190 --> 00:09:16,170 They might exist these days as well, but in general they don't. 63 00:09:17,010 --> 00: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. 64 00:09:28,790 --> 00:09:30,770 And they all have Bluetooth. 65 00:09:30,850 --> 00:09:34,830 You basically cannot buy a car without it, even if you want it. 66 00:09:34,830 --> 00:09:37,310 So, even we can't get that without. 67 00:09:38,030 --> 00:09:42,130 That brings me off the scope of this research now. 68 00:09:42,910 --> 00:09:47,690 Bluetooth, of course, is not the only interface you find in the car. 69 00:09:47,690 --> 00:09:50,090 Cars are super complex systems. 70 00:09:50,830 --> 00:10:01,730 When doing a count, we found at least 19 interfaces in modern cars, from wired OBD ports to the key fob. 71 00:10:01,730 --> 00: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. 72 00:10:14,950 --> 00:10:25,110 And recalls, typically for safety problems, they're expensive and rarely done, really just for very important safety problem. 73 00:10:25,110 --> 00:10:31,250 For security reasons, this rarely happens, to be honest. 74 00:10:31,870 --> 00: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. 75 00:10:42,110 --> 00: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. 76 00:10:56,570 --> 00:10:59,770 So, why are we looking now specifically at Bluetooth? 77 00:10:59,770 --> 00:11:03,990 Well, most importantly, nobody had done it yet. 78 00:11:03,990 --> 00: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. 79 00:11:17,630 --> 00:11:21,350 So, that sort of Bluetooth security in cars hasn't been addressed. 80 00:11:21,830 --> 00: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. 81 00:11:34,110 --> 00:11:39,610 That overall makes the research very impactful, not just for us, but really for anyone with a car. 82 00:11:40,010 --> 00: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. 83 00:12:09,480 --> 00: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. 84 00:12:18,800 --> 00: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. 85 00:12:26,560 --> 00: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. 86 00:12:31,980 --> 00:12:38,140 So what you have to remember about the Bluetooth is that it is transport plus additional functionality on top of it. 87 00:12:38,140 --> 00: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. 88 00:12:49,020 --> 00:12:53,920 So Bluetooth is reaching the functionality and we have to secure it and for that we have pairing. 89 00:12:53,980 --> 00:12:59,820 When it comes to pairing, it depends on the capabilities of the device and the security options. 90 00:12:59,880 --> 00:13:05,780 So when it comes to the capabilities themselves, they depend on the input and output capabilities of the device. 91 00:13:05,780 --> 00:13:10,040 So if the device has both of them, then we call such device Display Yes, No. 92 00:13:10,040 --> 00:13:14,580 If the device has only output capabilities, then we call such device Display Only. 93 00:13:14,580 --> 00:13:20,820 When it comes to the devices that only has input capabilities, we call such devices Keyboard Only devices. 94 00:13:20,820 --> 00: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. 95 00:13:28,420 --> 00:13:33,740 We can also summarize the security model of the Bluetooth as everything or nothing as pass-pairing. 96 00:13:33,740 --> 00: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. 97 00:13:42,320 --> 00: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. 98 00:13:48,700 --> 00: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. 99 00:14:06,680 --> 00: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. 100 00:14:20,180 --> 00: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. 101 00:14:41,520 --> 00: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. 102 00:14:56,120 --> 00:15:01,480 So it leaves us with only one pairing mode which is actually secure and is an American version. 103 00:15:01,480 --> 00: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. 104 00:15:09,920 --> 00: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. 105 00:15:22,260 --> 00:15:29,020 And that means that legacy pairing is the same as the American version at least in the eyes of the firmware. 106 00:15:29,500 --> 00: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. 107 00:15:38,820 --> 00: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. 108 00:15:49,400 --> 00:15:56,500 So for the presentation, we are going to differentiate between four different categories of the exploits. 109 00:15:56,500 --> 00: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, 110 00:16:18,100 --> 00: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. 111 00:16:32,120 --> 00: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. 112 00:16:46,520 --> 00:16:51,380 So it's like the common database of religious vulnerabilities, it's like the framework for testing it. 113 00:16:51,520 --> 00:16:57,420 And in general, the attacks are being shared, but the proof of concepts are not. 114 00:16:57,420 --> 00: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. 115 00:17:07,560 --> 00: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. 116 00:17:16,660 --> 00:17:23,580 And this also applies to the recently recently publicized exploits, for example, it's 123. 117 00:17:23,860 --> 00: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, 118 00:17:42,480 --> 00: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. 119 00:17:53,320 --> 00: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. 120 00:18:02,940 --> 00: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. 121 00:18:15,220 --> 00:18:20,700 Also, the main goal is reproducibility of the past and future research. 122 00:18:20,700 --> 00: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. 123 00:18:31,320 --> 00: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. 124 00:18:37,660 --> 00: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. 125 00:18:52,140 --> 00:19:00,700 But still, these exploits found the real vulnerabilities in the cars, so I'm quite confident in them. 126 00:19:00,700 --> 00:19:03,000 The tool itself works pretty straightforward. 127 00:19:03,000 --> 00: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, 128 00:19:19,760 --> 00:19:27,180 it either compares the value, or it checks the variability and availability of the target device once again. 129 00:19:27,180 --> 00:19:30,760 After that, the toolkit reports back to the tester. 130 00:19:31,040 --> 00: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. 131 00:19:49,680 --> 00: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, 132 00:20:07,320 --> 00:20:09,860 and because of that, you have to test them outside. 133 00:20:10,640 --> 00: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. 134 00:20:20,580 --> 00:20:27,180 So all of the cars were provided by SAP Defense Campus, Amuno Logistics, and some were provided by friends and acquaintances. 135 00:20:27,180 --> 00:20:29,100 In total, we had 22 cars. 136 00:20:29,100 --> 00:20:32,940 Only four were partially tested. 137 00:20:33,100 --> 00: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. 138 00:20:55,920 --> 00:21:03,720 And finally, all of the bluetooth tests are non-invasive, so we didn't have any problems with the cars afterwards. 139 00:21:04,800 --> 00:21:11,560 I spent approximately 40 hours throughout a few weeks and found 73 different vulnerabilities. 140 00:21:11,620 --> 00: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. 141 00:21:20,720 --> 00: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. 142 00:21:38,160 --> 00: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. 143 00:21:47,800 --> 00: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. 144 00:21:59,720 --> 00:22:06,620 And the difference is 9 years in this case, on average it's 7 years, and mean is also 7 years. 145 00:22:06,760 --> 00: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. 146 00:22:32,480 --> 00:22:36,220 First, you might think that you can remediate them with the firmware update. 147 00:22:36,220 --> 00:22:41,200 Here's the first problem, most of the cars still don't provide the firmware updates. 148 00:22:41,200 --> 00: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. 149 00:22:59,900 --> 00: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. 150 00:23:11,480 --> 00:23:16,760 And this is required because you can change the bluetooth version only by swapping the hardware. 151 00:23:16,860 --> 00:23:19,480 You cannot do that in the firmware. 152 00:23:19,780 --> 00: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. 153 00:23:31,340 --> 00: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. 154 00:23:47,560 --> 00:23:49,280 You can check it for yourself. 155 00:23:49,600 --> 00: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. 156 00:24:02,960 --> 00:24:11,320 So when it comes to the critical vulnerabilities, there were only three manufacturers that had them, Renault and Volkswagen. 157 00:24:11,740 --> 00: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. 158 00:24:20,860 --> 00: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. 159 00:24:36,040 --> 00:24:40,320 So these types are omnipresent and they can be swapped. 160 00:24:41,180 --> 00: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. 161 00:24:51,260 --> 00:24:56,320 So this knowledge would be very helpful in the future, so try to remember it. 162 00:24:56,540 --> 00: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. 163 00:25:06,220 --> 00:25:09,280 So the first attack is the contact extractor attack. 164 00:25:09,280 --> 00: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. 165 00:25:27,240 --> 00: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. 166 00:25:35,480 --> 00: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. 167 00:25:51,000 --> 00: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. 168 00:25:58,320 --> 00: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. 169 00:26:05,260 --> 00: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. 170 00:26:15,740 --> 00: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. 171 00:26:28,500 --> 00: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. 172 00:26:39,460 --> 00: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. 173 00:26:55,520 --> 00: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, 174 00:27:17,340 --> 00:27:21,900 so that we might be able to get the man-in-the-middle position. 175 00:27:22,660 --> 00:27:28,420 So the third attack is actually the attack on the numerical person man-in-the-middle. 176 00:27:28,420 --> 00:27:31,040 This is an insecure numerical person man-in-the-middle attack. 177 00:27:31,040 --> 00:27:35,700 In this case, it is a mutation-specific attack. 178 00:27:35,700 --> 00:27:43,720 So in this case, the car either has the design problem or they have a state problem. 179 00:27:43,720 --> 00: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. 180 00:27:54,700 --> 00: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. 181 00:28:10,440 --> 00: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. 182 00:28:18,820 --> 00: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. 183 00:28:32,880 --> 00:28:38,040 And this is a problem because the whole logic is on the attacker side. 184 00:28:38,080 --> 00: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. 185 00:28:46,500 --> 00:28:53,580 After that, they will show you the window with the pairing number and the button to cancel pairing or unpair. 186 00:28:53,800 --> 00:28:57,520 But in this case, there are two possibilities. 187 00:28:57,520 --> 00: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. 188 00:29:11,680 --> 00:29:18,360 If they don't, then they might spot the attack and ask them to wait 5-10 seconds to execute it. 189 00:29:18,360 --> 00:29:22,120 When it comes to the BMW cars, they had a state problem. 190 00:29:22,120 --> 00:29:29,440 Some of them still might have, but it should be fixed in the newer versions, in the newer firmware versions. 191 00:29:29,440 --> 00: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. 192 00:29:45,760 --> 00: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. 193 00:29:51,900 --> 00:29:59,160 In case of the Renault cars, they didn't give the user any control whatsoever, so anyone could connect to it. 194 00:29:59,500 --> 00: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? 195 00:30:12,060 --> 00:30:14,900 And this is what we are going to explore now. 196 00:30:14,980 --> 00:30:20,460 So first thing, we have to establish the man-in-the-middle position, and for that we have three different options. 197 00:30:20,460 --> 00:30:23,020 First one is to do selective jamming. 198 00:30:23,080 --> 00:30:27,560 In case of this active jamming, it's relatively difficult to do, but it's still possible. 199 00:30:27,560 --> 00:30:33,620 So in this case, we would have to spoof the MAC address of the car and then selectively jam it. 200 00:30:33,640 --> 00: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. 201 00:30:42,140 --> 00: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. 202 00:30:55,080 --> 00: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. 203 00:31:01,820 --> 00: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. 204 00:31:15,660 --> 00:31:22,160 You might actually have a question or a problem with discovering the MAC addresses. 205 00:31:22,160 --> 00:31:28,280 You might think it is difficult, but in fact, it's rather easy, and it became easy as of recently. 206 00:31:28,280 --> 00:31:30,320 So for example, you have at least two options. 207 00:31:30,320 --> 00:31:38,620 The first option is to simply listen for the MAC addresses, for discoverable MAC addresses with your laptop hardware. 208 00:31:38,620 --> 00: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. 209 00:31:47,700 --> 00: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. 210 00:32:02,960 --> 00: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. 211 00:32:13,560 --> 00: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? 212 00:32:28,160 --> 00: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, 213 00:32:45,360 --> 00:32:47,920 and look for the functionality that we can exploit. 214 00:32:47,920 --> 00:32:51,520 So in this case, generally, phones have the phone functionality. 215 00:32:51,520 --> 00: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. 216 00:33:02,800 --> 00: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. 217 00:33:12,100 --> 00: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. 218 00:33:24,700 --> 00: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. 219 00:33:42,260 --> 00:33:46,360 In case of the emails, it's only available according to the specification. 220 00:33:46,360 --> 00:33:55,960 I haven't been able to find any implementation that actually factors the emails, so you might find that, might not. 221 00:33:55,960 --> 00: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. 222 00:34:07,180 --> 00: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. 223 00:34:19,320 --> 00:34:23,480 So there is no mentioning of SMS messages at all. 224 00:34:24,180 --> 00: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. 225 00:34:40,600 --> 00: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, 226 00:34:55,880 --> 00: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, 227 00:35:17,260 --> 00: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. 228 00:35:26,000 --> 00:35:30,760 If this sounds all quite complicated and unlikely to you, I actually have some good news. 229 00:35:30,760 --> 00: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. 230 00:35:37,240 --> 00: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. 231 00:35:52,040 --> 00: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. 232 00:36:07,820 --> 00: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. 233 00:36:22,200 --> 00:36:27,080 So this is a one-to-two-click generic health takeover attack. 234 00:36:27,860 --> 00: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. 235 00:36:39,660 --> 00: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. 236 00:36:51,840 --> 00:36:57,300 In most of the cases, it's knowing the email address or the login name. 237 00:36:57,340 --> 00: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. 238 00:37:07,820 --> 00: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. 239 00:37:17,200 --> 00:37:22,080 Then you'll be also able to, for example, hijack the apps to control the vehicles. 240 00:37:23,080 --> 00:37:26,320 But for some of these services, it's rather difficult to do. 241 00:37:26,340 --> 00: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. 242 00:37:36,380 --> 00: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. 243 00:37:50,300 --> 00: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. 244 00:37:59,020 --> 00:38:03,080 To give you some examples, we would first start with the Android phone. 245 00:38:03,080 --> 00:38:06,820 In this case, this is Samsung S23 for which I did the attack. 246 00:38:06,840 --> 00:38:12,360 So almost all of the Android phones are actually always bearable and discoverable. 247 00:38:13,000 --> 00:38:16,080 So you can execute the attack at any time you want. 248 00:38:16,080 --> 00: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. 249 00:38:36,060 --> 00: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. 250 00:38:53,140 --> 00:38:57,780 After that, we can ask for the master Excel profile access. 251 00:38:58,060 --> 00:39:04,320 And in most of the cases, it is a typical workflow for the cars and smartwatches and speakers. 252 00:39:04,320 --> 00: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. 253 00:39:16,320 --> 00:39:24,280 But I guess most of the users are not, so they would probably run the access. 254 00:39:24,300 --> 00:39:26,880 Once granted, you'll be able to execute the attack. 255 00:39:26,880 --> 00: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. 256 00:39:39,040 --> 00:39:44,980 And I was able to log out the user from their own phone and completely hijack the Samsung account. 257 00:39:45,580 --> 00: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. 258 00:40:00,960 --> 00: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. 259 00:40:10,740 --> 00:40:12,460 But who knows? 260 00:40:12,940 --> 00: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. 261 00:40:21,920 --> 00: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. 262 00:40:39,220 --> 00:40:42,700 It's quite infeasible when we do the attack that way. 263 00:40:42,740 --> 00:40:50,020 But what if we can renegotiate the connection for an already connected device that already has the notification permissions? 264 00:40:50,040 --> 00: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. 265 00:41:01,720 --> 00: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. 266 00:41:09,940 --> 00: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. 267 00:41:26,140 --> 00:41:32,700 But it is unfortunately that it's not the case as of today. 268 00:41:32,740 --> 00:41:41,260 But what's most interesting is that the iOS is also helping us in one other way. 269 00:41:41,260 --> 00:41:47,080 They fetch the name of the previously connected device from the cache and use it in the pairing request. 270 00:41:47,080 --> 00: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. 271 00:41:54,460 --> 00:42:02,260 And once they click pair, we have the notification permissions as the previous device, as the previous connection had them. 272 00:42:02,260 --> 00:42:04,480 So we'd be able to execute the attack. 273 00:42:04,480 --> 00:42:07,660 In this case, for example, hijack the Facebook. 274 00:42:07,660 --> 00:42:13,700 But you might actually want to focus not just on the Facebook, but also on the Apple ID itself. 275 00:42:14,020 --> 00: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. 276 00:42:25,760 --> 00:42:31,860 And here we can try to replicate the similar attack with the map attack. 277 00:42:32,080 --> 00:42:38,660 So here we'll be able to inject the SMS message as if they came from Apple and do phishing. 278 00:42:38,660 --> 00: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. 279 00:42:56,720 --> 00:43:01,960 So here we just swap the symptom with the Messenger Exit Profile attack. 280 00:43:01,960 --> 00:43:07,980 We can also focus on other applications like PayPal or Coinbase or any other of interest. 281 00:43:07,980 --> 00:43:12,440 So you do not have to always focus on the Apple ID. 282 00:43:12,840 --> 00: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. 283 00:43:30,140 --> 00: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. 284 00:43:46,200 --> 00: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. 285 00:43:53,180 --> 00:43:58,240 But I personally hope that Apple would eventually fix it and upgrade it accordingly. 286 00:43:58,400 --> 00: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. 287 00:44:08,920 --> 00: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. 288 00:44:16,860 --> 00:44:23,940 And it would be possible to connect the tool to the infrastructure that would actually do the recovery process. 289 00:44:24,400 --> 00:44:26,740 So here we come to the key takeaways. 290 00:44:27,000 --> 00: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. 291 00:44:36,060 --> 00: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. 292 00:44:45,320 --> 00:44:50,120 And it's not possible to change the business version or hardware in it. 293 00:44:50,120 --> 00:44:52,840 So it's quite difficult to do so. 294 00:44:52,840 --> 00: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. 295 00:45:01,420 --> 00: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. 296 00:45:10,380 --> 00:45:17,240 But what you have to remember is that forcing repairing is possible and it might be malicious. 297 00:45:17,240 --> 00:45:20,260 So we have to watch out for that as well. 298 00:45:20,260 --> 00: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. 299 00:45:31,540 --> 00:45:40,300 And it's why maybe it would be best to consider other OTPs sources. 300 00:45:40,340 --> 00:45:43,760 So for example, email-based OTPs. 301 00:45:43,760 --> 00:45:48,280 And in that case, it might add additional safeguards to the users. 302 00:45:48,420 --> 00:45:50,400 So thanks for listening. 303 00:45:50,400 --> 00:45:54,320 Now I hand over to Martin and maybe see you next year. 304 00:45:58,220 --> 00:45:59,260 All right. 305 00:45:59,260 --> 00:46:01,300 Thanks for staying with us. 306 00:46:01,300 --> 00:46:06,600 There's just two points left for me at the very end. 307 00:46:07,140 --> 00:46:10,220 Let me find the right slides. 308 00:46:14,000 --> 00:46:15,800 No, that's not it. 309 00:46:25,020 --> 00:46:26,820 Be quicker that way. 310 00:46:37,640 --> 00:46:39,720 So yeah, uh, sorry. 311 00:46:39,720 --> 00:46:44,920 We've seen that much of Bluetooth is fundamentally insecure, both the standards and implementations. 312 00:46:44,920 --> 00:46:47,900 The toolkits have the link on the last slide as well. 313 00:46:48,060 --> 00:46:54,440 Um, it's online for you to check your cars, your Bluetooth products, any of them. 314 00:46:54,540 --> 00:46:58,240 Um, and of course we're not liable for anything you do with it. 315 00:46:58,420 --> 00:47:07,100 Um, but we focus on Bluetooth and cars and just very last thing, of course you can check anything. 316 00:47:07,100 --> 00:47:11,860 And we took it to one of the domains we're very familiar with, which is aviation. 317 00:47:11,860 --> 00: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. 318 00:47:24,860 --> 00: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. 319 00:47:41,160 --> 00: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. 320 00:47:52,860 --> 00:47:58,460 With that, thank you for listening and also putting up with the video talk. 321 00:47:58,460 --> 00:48:01,780 I hope Vlad can make it in person next time. 322 00:48:02,140 --> 00:48:07,240 This is the QR code to the GitHub repository where you can find all the information. 323 00:48:07,240 --> 00:48:15,840 Also this disclosure results, uh, any questions I'm available and Vlad is also very happy if you contact him online. 324 00:48:15,840 --> 00:48:17,040 Thank you very much.