1 00:00:00,000 --> 00:00:02,560 All right, we'll start. 2 00:00:02,560 --> 00:00:04,420 Sorry for the delay. 3 00:00:04,540 --> 00:00:13,400 The main reason being that this work was mostly done by my student and he couldn't get a visa for the US, so he's not here. 4 00:00:13,640 --> 00:00:15,300 We did record a video. 5 00:00:15,980 --> 00:00:26,620 We also had a longer version of this whole thing yesterday on main stage, so you can still find this at some point online if you're interested in all of the details. 6 00:00:26,620 --> 00:00:31,640 However, since the audio is not working for the video, you will have to do it with me. 7 00:00:31,880 --> 00:00:38,000 I can't provide you with all the technical details, but I should be able to get you through it. 8 00:00:38,000 --> 00:00:47,940 And if you have any specific questions on attacks and the toolkit we built and everything, I can direct you to my student. 9 00:00:47,940 --> 00:00:50,540 So yeah, let's start. 10 00:00:50,900 --> 00:00:52,340 It's fine. 11 00:00:52,880 --> 00:00:55,900 Who are we? 12 00:00:55,900 --> 00:01:01,120 So first, that's my student, Vladislav, also known as ESO. 13 00:01:01,120 --> 00:01:03,300 He's a bug bounty hunter. 14 00:01:03,300 --> 00:01:14,260 He did his master in cybersecurity at ETH Zurich, where he came to us and asked, hey, what cool systems could we hack? 15 00:01:14,260 --> 00:01:17,680 What do you have for us and ideas for a master thesis? 16 00:01:18,120 --> 00:01:22,340 We said, okay, here, my background is all sorts of bug bounty stuff. 17 00:01:24,220 --> 00:01:30,880 I have super cool skills, really the wizard behind all this stuff, and he's looking for new opportunities. 18 00:01:30,880 --> 00:01:34,680 So if you're convinced by the stuff he built, contact him. 19 00:01:35,600 --> 00:01:36,460 Who are we? 20 00:01:36,460 --> 00:01:37,420 Who am I? 21 00:01:37,460 --> 00:01:38,660 My name is Martin. 22 00:01:38,660 --> 00:01:42,580 I'm a security researcher and a scientist at the Swiss Cyber Defense Campus. 23 00:01:42,580 --> 00:01:50,200 The cyber defense campus is the procurement arm or part of the procurement arm of the Swiss Department of Defense. 24 00:01:50,440 --> 00:02:01,360 I've done a lot of systems work, hacking, mostly transportation systems, aviation, you find a lot of stuff from us in the aerospace village here. 25 00:02:01,440 --> 00:02:05,320 I've done space, cars, trains, everything, basically. 26 00:02:05,640 --> 00:02:14,920 I've never looked at Bluetooth before, neither had Vlad, but I've done some stuff in cars, for example, hacking electric charging systems. 27 00:02:14,920 --> 00:02:17,440 You can find that under brokenwire.fail. 28 00:02:19,540 --> 00:02:21,980 So what's the motivation for this research? 29 00:02:21,980 --> 00:02:23,240 Why are we doing this? 30 00:02:23,660 --> 00:02:30,340 Well, if you're in the procurement arm of federal government, you buy a lot of stuff. 31 00:02:31,140 --> 00:02:37,640 Broadly, you can break this up in the pre-tender stage and the actual tender, where you buy stuff, and a post-tender stage. 32 00:02:38,200 --> 00:02:46,940 And basically, when you do security testing, pen testing, only after you buy stuff, it's generally too late. 33 00:02:46,960 --> 00:02:53,300 Like, you have these systems, you have deployed them, they're insecure, that's very late. 34 00:02:53,300 --> 00:03:04,460 So we might still do this, and we have a lot of systems where we don't have these processes in place, older systems, but in general, we try to be as early as possible. 35 00:03:06,500 --> 00:03:12,240 The idea, obviously, buys a lot of IT systems, but also other systems, such as cars, which we will get into. 36 00:03:12,540 --> 00:03:18,700 And because we buy a lot of things, we have a decent negotiation leverage with the manufacturers. 37 00:03:18,700 --> 00:03:25,020 I mean, they want to sell us stuff, so they should follow some requirements that we put in tenders. 38 00:03:26,600 --> 00:03:32,560 One other thing we also do is do vulnerability research on standards, on systems. 39 00:03:32,560 --> 00:03:36,000 We've done this a lot in aviation and in space. 40 00:03:36,000 --> 00:03:54,000 But the problem is, if the systems have very long life cycles, even if you can demonstrate flaws and protocols and standards, and show that it's unsafe, unsecure, until something is changed and deployed in the long run, it will take up to decades. 41 00:03:54,000 --> 00:04:02,580 So that doesn't help us even in our procurement system, because everyone is using the same standards, and we don't have the alternatives. 42 00:04:03,380 --> 00:04:06,600 This brings me to today's concrete case study. 43 00:04:07,020 --> 00:04:09,240 Vehicles and the Army and Bluetooth. 44 00:04:09,320 --> 00:04:14,440 So we apparently already heard some Bluetooth insecurities in the previous talk, which is nice. 45 00:04:15,960 --> 00:04:21,800 But we are not talking about Bluetooth low-energy, we're only talking about standard classic Bluetooth. 46 00:04:22,380 --> 00:04:25,200 As alluded, DoD buys a lot of stuff. 47 00:04:25,340 --> 00:04:29,460 That's probably the first thing you think of when you think of Department of Defense. 48 00:04:30,220 --> 00:04:36,340 Luckily, these don't have Bluetooth, as far as I know, at least the ones I've looked at. 49 00:04:36,360 --> 00:04:39,480 But probably that comes very soon. 50 00:04:40,560 --> 00:04:45,720 Boringly, however, we buy mostly box-standard, run-of-the-mill cars, a lot of them. 51 00:04:46,180 --> 00:04:47,860 And these all have Bluetooth. 52 00:04:48,000 --> 00:04:51,700 You can't really buy a modern car without it, even if you want it. 53 00:04:51,700 --> 00:05:01,120 Even if you put that in a tender, basically nobody would sell you a car or offer you to sell a car without Bluetooth. 54 00:05:01,860 --> 00:05:04,680 That brings me to the scope of the present research. 55 00:05:04,880 --> 00:05:08,720 Cars are fairly complex systems, so Bluetooth is not the only interface. 56 00:05:09,240 --> 00:05:17,260 We counted at least 19 interfaces in those cars, from wired ODB ports to the key fob. 57 00:05:17,260 --> 00:05:24,200 If there's an issue with any of them, traditionally the only way for the manufacturer to do anything is to do a recall. 58 00:05:24,200 --> 00:05:32,760 That's very expensive and pretty much only done for big safety problems. 59 00:05:33,600 --> 00:05:36,980 For security, that rarely happens. 60 00:05:36,980 --> 00:05:47,200 And that leaves us with a very complex attack surface that is rarely patched when a car has been shipped and is out there. 61 00:05:49,660 --> 00:05:59,060 However, despite this, and despite Bluetooth being known and secure, this hasn't been really addressed on any larger scale. 62 00:05:59,220 --> 00:06:14,240 There have been a couple of papers looking at maybe one single exploit in one single car, but nobody has looked at the whole breadth of Bluetooth exploits that exist out there in different cars and from different manufacturers. 63 00:06:14,440 --> 00:06:22,520 And that was the gap that we saw here, because there's an estimated more than 1 billion cars with Bluetooth, Bluetooth Classic. 64 00:06:23,400 --> 00:06:34,180 Pretty much all of new cars have Bluetooth, and it's certainly an insecurity that we wanted to examine, because no one has done it at scale. 65 00:06:35,720 --> 00:06:41,160 So that brings me to the standard Bluetooth technology stack. 66 00:06:41,160 --> 00:06:45,340 Bluetooth, as you will be aware, is a wireless communication standard. 67 00:06:45,340 --> 00:06:51,120 It has a very complex tech stack, because you have a lot of shared responsibility. 68 00:06:51,920 --> 00:07:02,360 And of course, it has to fulfill a lot of different use cases, and that makes it very, very complex. 69 00:07:03,900 --> 00:07:07,700 To fulfill these different use cases, Bluetooth has a lot of different profiles. 70 00:07:07,700 --> 00:07:24,340 I'm not going through all of them in the interest of time here, but you can choose different profiles, for example, to make calls, of course, to listen to music, but also some profiles can have full access to your SIM card in the car, or extract messages. 71 00:07:24,820 --> 00:07:31,580 That's how you can, in your car, in your car system, communicate hands-free using your phone. 72 00:07:32,900 --> 00:07:42,880 The security models, you basically have these four options to pair to a Bluetooth system with another one, in our case, a car. 73 00:07:44,200 --> 00:07:47,940 Depends on the capabilities of the thing you want to pair. 74 00:07:47,940 --> 00:07:50,060 You have display yes, no. 75 00:07:50,060 --> 00:07:52,820 You have something that only has a display, but no input. 76 00:07:52,940 --> 00:07:57,200 You have something that has a keyboard, but no display. 77 00:07:57,200 --> 00:08:01,840 And you have even something like headphones that has no input or no output whatsoever. 78 00:08:01,840 --> 00:08:07,080 And these all need to be somehow connected with different means. 79 00:08:07,940 --> 00:08:11,320 So that's the Bluetooth security model. 80 00:08:12,400 --> 00:08:13,920 It's very binary. 81 00:08:13,920 --> 00:08:15,960 Either you're connected or you're not. 82 00:08:15,960 --> 00:08:20,860 And if you're connected, then you have access, basically. 83 00:08:21,000 --> 00:08:23,460 We have classic legacy pairing. 84 00:08:23,700 --> 00:08:27,420 There's basically no security in this. 85 00:08:27,420 --> 00:08:34,520 We have just works, which enables quite easy man-in-the-middle attacks. 86 00:08:35,300 --> 00:08:45,060 We have passkey entry, which is a bit more secure, but there have been method confusion attacks shown against this recently. 87 00:08:45,060 --> 00:08:50,120 And the only known secure option at the moment is numeric comparison. 88 00:08:52,600 --> 00:08:54,740 There's prior art, of course. 89 00:08:54,800 --> 00:09:02,420 So we went through at the beginning to check how many Bluetooth vulnerabilities, exploits, and attacks are around. 90 00:09:02,420 --> 00:09:07,760 So this is, we found more than 108 in March. 91 00:09:07,920 --> 00:09:17,040 And as of 2022, we found almost 650 CVEs just related to Bluetooth devices. 92 00:09:17,140 --> 00:09:38,700 The categories we've been looking at are critical exploits, so remote code execution and memory leakage, man-in-the-middle, denial of service, or chaining attacks, which are not vulnerabilities in and by itself, but they can lead to further exploitation if the environment is right. 93 00:09:39,780 --> 00:09:52,900 So the goal for our procurement was to build a Bluetooth test kit for basically all the security and vulnerabilities on the market. 94 00:09:53,360 --> 00:10:01,020 Because that didn't exist at the moment, and it was very difficult to build, because there's no database of these. 95 00:10:01,020 --> 00:10:20,020 You will have academic papers, you will have talks at DEF CON elsewhere, you will have some code released on GitHub, you will have some people who have no code released, you have code that's developed on obsolete platforms where you can't get the hardware anymore or have to update software. 96 00:10:20,020 --> 00:10:25,420 All of these things are big problems and a lot of work to put this into one toolkit. 97 00:10:28,420 --> 00:10:31,180 So that's the general problem. 98 00:10:31,180 --> 00:10:39,240 On the testing, well, Bluetooth testing has some black box issues, of course. 99 00:10:39,820 --> 00:10:47,900 You have kind of false positives, false negatives, and automation, at least of the denial of service stuff, can be quite difficult. 100 00:10:47,900 --> 00:11:06,340 Because if you basically crash the entertainment system of your car, or the Bluetooth system of your car, you want to restart the whole thing, we found some cars where you have to get out of the car, lock the car, and not just walk away, walk away for 20 minutes, 101 00:11:06,340 --> 00:11:09,700 because only then the car actually shuts off and restarts. 102 00:11:10,100 --> 00:11:18,040 And at that point, yeah, it's quite extensive, the time that you need, obviously, to test several vulnerabilities. 103 00:11:20,380 --> 00:11:28,380 No matter, we built this toolkit, it exists, has been online on GitHub for a few months now. 104 00:11:29,060 --> 00:11:32,120 Link is here, will also be on the last slide. 105 00:11:32,360 --> 00:11:40,040 Goals were collecting all these exploits that we can find and reproduce, 44 all in all. 106 00:11:40,520 --> 00:11:52,280 We tried to automate as much as possible, but yeah, we have some completely automated stuff, some semi-automated, and some where you have to do something manual. 107 00:11:54,820 --> 00:11:58,340 That's just the general architecture. 108 00:11:58,340 --> 00:12:00,800 So we have some YAML files. 109 00:12:00,840 --> 00:12:07,740 If you have new exploits, it's modular, you can add these files to the toolkit. 110 00:12:08,100 --> 00:12:20,300 And from there, you need the basic setup that I will show, and can go to the car, connect to it and see which other vulnerabilities are present. 111 00:12:23,040 --> 00:12:30,940 So after building the toolkit, the second part was really, let's check a lot of cards, as many as we can find. 112 00:12:31,700 --> 00:12:41,600 We set up the toolkit, as you see here, with just any Ubuntu based box and a laptop or VM, need some cables. 113 00:12:42,340 --> 00:12:55,580 For the full toolkit to be useful, you will need, for example, not only, but also a Nexus 5 phone, a fairly old phone, it's cheap, but maybe not so trivial to get it on the market. 114 00:12:55,960 --> 00:13:04,780 Because there, some other researchers have built frameworks where you can really control the Bluetooth stack in detail. 115 00:13:05,120 --> 00:13:08,180 And you can also get the ESP-ROAR kit. 116 00:13:09,360 --> 00:13:14,380 If you don't have one of them, you can't test everything, but at least partly you can do it. 117 00:13:14,700 --> 00:13:19,780 Overall, we found that with all the problems, it takes us one to three hours per car. 118 00:13:19,920 --> 00:13:29,540 You need to start the engine to do most of the tests, which can also be a problem if you're testing in garage and somewhere underground, right? 119 00:13:29,540 --> 00:13:31,640 You don't want to run the engine for three hours. 120 00:13:32,200 --> 00:13:34,140 That would not be safe. 121 00:13:34,760 --> 00:13:36,920 Easier to test for electric cars. 122 00:13:37,120 --> 00:13:38,980 That's definitely a bonus. 123 00:13:40,920 --> 00:13:43,120 How did we procure cars? 124 00:13:43,160 --> 00:13:45,480 You see the different manufacturers here. 125 00:13:45,840 --> 00:13:47,380 That was our job. 126 00:13:47,380 --> 00:13:50,580 As I said, we have a lot of different cars manufacturers. 127 00:13:50,660 --> 00:14:00,980 So we took all our own cars, brought us our army logistics, took some of our own cars as researchers, as our friends. 128 00:14:01,080 --> 00:14:13,240 Overall, 22 different cars, most of them fully tested, four only partially because we had them at the beginning of our research and there were more exploits coming on later. 129 00:14:13,540 --> 00:14:18,140 Price range, everything from very cheap to fairly upmarket. 130 00:14:18,320 --> 00:14:27,540 And the manufacturers or the Bluetooth systems at least covering our estimate roughly 60% of the global market by sales. 131 00:14:28,080 --> 00:14:32,760 Roughly 12 out of 15 of the top manufacturers selling cars last year. 132 00:14:32,940 --> 00:14:37,400 The tests are non-invasive, it's just connecting Bluetooth basically. 133 00:14:37,880 --> 00:14:40,760 So let's get to the results. 134 00:14:40,760 --> 00:14:44,760 Overall, it took us 40-ish hours. 135 00:14:45,440 --> 00:14:50,620 We found 73 vulnerabilities in these cars. 136 00:14:50,720 --> 00:14:58,300 So remember, most of these exploits are known, but they're still all present in these cars. 137 00:14:58,800 --> 00:15:01,160 Not everything can be solved. 138 00:15:01,760 --> 00:15:10,760 So we reported everything that was relevant and could be solved to the manufacturers and reported them responsibly. 139 00:15:11,860 --> 00:15:14,360 This shows part of the reason, right? 140 00:15:14,500 --> 00:15:17,800 Cars lack very much an adoption of standards. 141 00:15:17,800 --> 00:15:19,800 There's never the news Bluetooth version. 142 00:15:19,800 --> 00:15:29,300 We found that it takes roughly, or the median age of a Bluetooth version in a car is seven years behind the actual release Bluetooth standard. 143 00:15:30,100 --> 00:15:33,460 Full results of our car tests, they're also on the GitHub. 144 00:15:34,260 --> 00:15:43,660 You see different range, like, you know, you'd think very new cars should have no to fewer vulnerabilities. 145 00:15:43,660 --> 00:15:45,480 That was true for these two. 146 00:15:45,560 --> 00:15:51,060 Not true for many others that were also fairly new from 2022, 2023. 147 00:15:51,060 --> 00:15:56,100 We found a lot of vulnerabilities, even critical ones in those. 148 00:15:59,220 --> 00:16:02,600 There's just another look at this, right? 149 00:16:02,600 --> 00:16:12,060 Average number of vulnerabilities per car, per manufacturer, different ones here can focus on critical vulnerabilities. 150 00:16:12,060 --> 00:16:18,140 We found them, as you can see here, mostly Renault, Opel, and Volkswagen. 151 00:16:18,760 --> 00:16:26,540 A few ones, denial of service vulnerabilities, prevalent in several manufacturers. 152 00:16:27,140 --> 00:16:29,680 But we don't have a lot of time. 153 00:16:29,680 --> 00:16:33,140 You can look up the details for that on the GitHub. 154 00:16:33,260 --> 00:16:38,760 We did found two novel exploits and novel attacks during our research. 155 00:16:39,580 --> 00:16:45,860 The details on that are really extensively covered in the main stage talk yesterday. 156 00:16:45,860 --> 00:16:55,200 Still briefly going over it, there's one way you can connect to cars and extract the contacts. 157 00:16:55,200 --> 00:16:57,300 So if you have a shared threat model, right? 158 00:16:57,720 --> 00:17:09,380 You rent a car or have one of these car sharing systems that exist in many countries, right? 159 00:17:09,380 --> 00:17:11,740 You just rent a car for a couple hours. 160 00:17:11,940 --> 00:17:16,880 Somebody connected their Bluetooth phone to that, the contacts will be saved. 161 00:17:16,880 --> 00:17:22,540 Later on, you can go there and extract the contacts that were on the car. 162 00:17:23,820 --> 00:17:32,500 So we can see here on the left, should say, no contacts available if you connect with your phone. 163 00:17:32,740 --> 00:17:44,160 But if you run this new vulnerability, this new exploit, then you can, as you see on the right, actually extract the contacts that we had on our phone before. 164 00:17:46,300 --> 00:17:54,860 The second one is another way to establish a man in the middle position, even with a system that has numeric comparison. 165 00:17:55,700 --> 00:17:59,180 And I'll get to what that can do for you. 166 00:17:59,180 --> 00:18:03,620 Here's just the proof of concept that it worked with four different cars. 167 00:18:03,620 --> 00:18:06,140 Hyundai, Renault, Audi, and BMW. 168 00:18:06,460 --> 00:18:09,220 It's a relatively widespread issue. 169 00:18:10,020 --> 00:18:12,060 What can we do with these things, right? 170 00:18:12,060 --> 00:18:19,120 If you wonder, man in the middle on Bluetooth and denial of service, how is that a problem? 171 00:18:19,120 --> 00:18:20,360 Why do we care? 172 00:18:20,680 --> 00:18:26,560 As I said, cars are very complex systems, so one thing is we can obviously do some lateral movement. 173 00:18:26,560 --> 00:18:32,100 We can get in through Bluetooth and get into other systems of the car. 174 00:18:32,820 --> 00:18:36,440 We can, as I said, establish man in the middle positions. 175 00:18:36,780 --> 00:18:40,820 And then that's something we discussed extensively yesterday. 176 00:18:40,820 --> 00:18:46,820 We can really get your two-factor tokens if they're sent by SMS. 177 00:18:48,200 --> 00:18:57,360 Or, yeah, get these tokens and then obviously exploit whatever account two-factor you have set up. 178 00:18:57,600 --> 00:18:59,820 So that's quite workable. 179 00:18:59,820 --> 00:19:05,140 We've reported this also to the phone manufacturers, so Apple and Google. 180 00:19:05,140 --> 00:19:10,120 There were some difference in opinions whether this is a big problem or not. 181 00:19:10,340 --> 00:19:11,820 Google did patch it. 182 00:19:11,820 --> 00:19:14,220 Apple did not patch it. 183 00:19:14,900 --> 00:19:19,200 You can basically build your own opinion on this. 184 00:19:19,580 --> 00:19:21,140 Brings me to takeaways. 185 00:19:21,140 --> 00:19:25,220 I hope you realize much of Bluetooth is fundamentally insecure. 186 00:19:25,220 --> 00:19:26,400 This has been well known. 187 00:19:26,400 --> 00:19:28,240 There's so many exploits for this. 188 00:19:28,380 --> 00:19:32,480 This is both in the standards, in the protocol, and in the implementations. 189 00:19:32,940 --> 00:19:39,600 Even the newest cars, new systems are shipped with protocol-level Bluetooth vulnerabilities. 190 00:19:39,600 --> 00:19:41,500 We can't really fix this easily. 191 00:19:42,300 --> 00:19:51,000 You need to securely pair, but even that doesn't help because the repairing of the system might also be malicious. 192 00:19:51,680 --> 00:20:00,840 And we built this toolkit, so if you want to know what your own car, how vulnerable that is on the Bluetooth level, please use that. 193 00:20:01,080 --> 00:20:06,000 If you're a car manufacturer, car part manufacturer, please also use it. 194 00:20:06,000 --> 00:20:09,560 Check your security poster with regards to Bluetooth. 195 00:20:09,760 --> 00:20:15,940 Any questions, look at the GitHub and come to me afterwards. 196 00:20:15,940 --> 00:20:20,660 But also please contact Vlad, who did really most of the technical work here. 197 00:20:20,660 --> 00:20:21,680 Thank you.