[00:00.000 --> 00:08.420] All right, we'll start. Sorry for the delay. The main reason being that this work was mostly done [00:08.420 --> 00:15.300] by my student and he couldn't get a visa for the US, so he's not here. We did record a video. [00:15.980 --> 00:20.020] We also had a longer version of this whole thing yesterday on main stage, [00:20.640 --> 00:27.080] so you can still find this at some point online if you're interested in all of the details. However, [00:27.080 --> 00:33.160] since the audio is not working for the video, you will have to do it with me. I can't provide you [00:33.160 --> 00:38.640] with all the technical details, but I should be able to get you through it. And if you have any [00:38.640 --> 00:47.120] specific questions on attacks and the toolkit we built and everything, I can direct you to my [00:47.120 --> 00:59.540] student. So yeah, let's start. It's fine. Who are we? So first, that's my student, Vladislav, [00:59.540 --> 01:07.760] also known as ESO. He's a bug bounty hunter. He did his master in cybersecurity at ETH Zurich, [01:07.760 --> 01:15.460] where he came to us and asked, hey, what cool systems could we hack? What do you have for us [01:15.460 --> 01:22.340] and ideas for a master thesis? We said, okay, here, my background is all sorts of bug bounty stuff. [01:24.220 --> 01:29.960] I have super cool skills, really the wizard behind all this stuff, and he's looking for [01:29.960 --> 01:37.420] new opportunities. So if you're convinced by the stuff he built, contact him. Who are we? Who am I? [01:37.460 --> 01:42.580] My name is Martin. I'm a security researcher and a scientist at the Swiss Cyber Defense Campus. [01:42.580 --> 01:48.500] The cyber defense campus is the procurement arm or part of the procurement arm of the Swiss [01:48.500 --> 01:56.700] Department of Defense. I've done a lot of systems work, hacking, mostly transportation systems, [01:56.700 --> 02:03.100] aviation, you find a lot of stuff from us in the aerospace village here. I've done space, [02:03.100 --> 02:07.700] cars, trains, everything, basically. I've never looked at Bluetooth before, [02:07.700 --> 02:14.120] neither had Vlad, but I've done some stuff in cars, for example, hacking electric charging [02:14.120 --> 02:22.120] systems. You can find that under brokenwire.fail. So what's the motivation for this research? Why [02:22.120 --> 02:28.370] are we doing this? Well, if you're in the procurement arm of federal government, [02:28.800 --> 02:34.740] you buy a lot of stuff. Broadly, you can break this up in the pre-tender stage and the actual [02:34.740 --> 02:42.020] tender, where you buy stuff, and a post-tender stage. And basically, when you do security [02:42.020 --> 02:47.840] testing, pen testing, only after you buy stuff, it's generally too late. Like, you have these [02:47.840 --> 02:54.920] systems, you have deployed them, they're insecure, that's very late. So we might still do this, [02:54.920 --> 03:01.660] and we have a lot of systems where we don't have these processes in place, older systems, [03:01.660 --> 03:08.960] but in general, we try to be as early as possible. The idea, obviously, buys a lot of IT systems, [03:08.960 --> 03:14.880] but also other systems, such as cars, which we will get into. And because we buy a lot of things, [03:14.880 --> 03:20.560] we have a decent negotiation leverage with the manufacturers. I mean, they want to sell us stuff, [03:20.560 --> 03:25.020] so they should follow some requirements that we put in tenders. [03:26.600 --> 03:32.840] One other thing we also do is do vulnerability research on standards, on systems. We've done [03:32.840 --> 03:38.900] this a lot in aviation and in space. But the problem is, if the systems have very long life [03:38.900 --> 03:46.240] cycles, even if you can demonstrate flaws and protocols and standards, and show that it's [03:46.240 --> 03:53.140] unsafe, unsecure, until something is changed and deployed in the long run, it will take up to [03:53.140 --> 03:59.760] decades. So that doesn't help us even in our procurement system, because everyone is using [03:59.760 --> 04:05.180] the same standards, and we don't have the alternatives. This brings me to today's [04:05.180 --> 04:11.280] concrete case study. Vehicles and the Army and Bluetooth. So we apparently already heard some [04:11.280 --> 04:18.220] Bluetooth insecurities in the previous talk, which is nice. But we are not talking about Bluetooth [04:18.220 --> 04:24.260] low-energy, we're only talking about standard classic Bluetooth. As alluded, DoD buys a lot [04:24.260 --> 04:29.460] of stuff. That's probably the first thing you think of when you think of Department of Defense. [04:30.220 --> 04:36.340] Luckily, these don't have Bluetooth, as far as I know, at least the ones I've looked at. [04:36.360 --> 04:43.380] But probably that comes very soon. Boringly, however, we buy mostly box-standard, [04:43.380 --> 04:49.720] run-of-the-mill cars, a lot of them. And these all have Bluetooth. You can't really buy a modern [04:49.720 --> 04:56.480] car without it, even if you want it. Even if you put that in a tender, basically nobody would [04:56.480 --> 05:03.560] sell you a car or offer you to sell a car without Bluetooth. That brings me to the scope of the [05:03.560 --> 05:08.720] present research. Cars are fairly complex systems, so Bluetooth is not the only interface. [05:09.240 --> 05:17.260] We counted at least 19 interfaces in those cars, from wired ODB ports to the key fob. [05:17.260 --> 05:21.640] If there's an issue with any of them, traditionally the only way for the manufacturer to do anything [05:22.240 --> 05:32.760] is to do a recall. That's very expensive and pretty much only done for big safety problems. [05:33.600 --> 05:40.340] For security, that rarely happens. And that leaves us with a very complex attack surface [05:40.800 --> 05:47.200] that is rarely patched when a car has been shipped and is out there. [05:49.660 --> 05:57.200] However, despite this, and despite Bluetooth being known and secure, this hasn't been really addressed [05:57.200 --> 06:03.580] on any larger scale. There have been a couple of papers looking at maybe one single exploit in one [06:03.580 --> 06:09.960] single car, but nobody has looked at the whole breadth of Bluetooth exploits that exist out there [06:10.640 --> 06:16.460] in different cars and from different manufacturers. And that was the gap that we saw here, [06:16.460 --> 06:22.520] because there's an estimated more than 1 billion cars with Bluetooth, Bluetooth Classic. [06:23.400 --> 06:31.160] Pretty much all of new cars have Bluetooth, and it's certainly an insecurity that we wanted to [06:31.160 --> 06:39.240] examine, because no one has done it at scale. So that brings me to the standard Bluetooth [06:39.900 --> 06:45.340] technology stack. Bluetooth, as you will be aware, is a wireless communication standard. [06:45.340 --> 06:51.120] It has a very complex tech stack, because you have a lot of shared responsibility. [06:51.920 --> 07:01.300] And of course, it has to fulfill a lot of different use cases, and that makes it very, [07:01.300 --> 07:07.700] very complex. To fulfill these different use cases, Bluetooth has a lot of different profiles. [07:07.700 --> 07:12.500] I'm not going through all of them in the interest of time here, but you can choose different [07:12.500 --> 07:19.480] profiles, for example, to make calls, of course, to listen to music, but also some profiles can [07:19.480 --> 07:26.280] have full access to your SIM card in the car, or extract messages. That's how you can, [07:26.280 --> 07:31.580] in your car, in your car system, communicate hands-free using your phone. [07:32.900 --> 07:39.700] The security models, you basically have these four options to pair to a Bluetooth system [07:40.200 --> 07:47.940] with another one, in our case, a car. Depends on the capabilities of the thing you want to pair. [07:47.940 --> 07:52.820] You have display yes, no. You have something that only has a display, but no input. [07:52.940 --> 07:58.500] You have something that has a keyboard, but no display. And you have even something like [07:58.500 --> 08:03.600] headphones that has no input or no output whatsoever. And these all need to be somehow [08:03.600 --> 08:11.320] connected with different means. So that's the Bluetooth security model. [08:12.400 --> 08:16.920] It's very binary. Either you're connected or you're not. And if you're connected, [08:16.920 --> 08:26.340] then you have access, basically. We have classic legacy pairing. There's basically no security in [08:26.340 --> 08:37.260] this. We have just works, which enables quite easy man-in-the-middle attacks. We have passkey [08:37.260 --> 08:43.660] entry, which is a bit more secure, but there have been method confusion attacks shown against this [08:43.660 --> 08:50.120] recently. And the only known secure option at the moment is numeric comparison. [08:52.600 --> 08:58.180] There's prior art, of course. So we went through at the beginning to check how many [08:58.180 --> 09:05.480] Bluetooth vulnerabilities, exploits, and attacks are around. So this is, we found more than 108 [09:06.220 --> 09:17.040] in March. And as of 2022, we found almost 650 CVEs just related to Bluetooth devices. [09:17.140 --> 09:23.000] The categories we've been looking at are critical exploits, so remote code execution and memory [09:23.000 --> 09:29.000] leakage, man-in-the-middle, denial of service, or chaining attacks, which are not vulnerabilities [09:29.000 --> 09:38.700] in and by itself, but they can lead to further exploitation if the environment is right. [09:39.780 --> 09:49.700] So the goal for our procurement was to build a Bluetooth test kit for basically all the security [09:49.700 --> 09:56.780] and vulnerabilities on the market. Because that didn't exist at the moment, and it was [09:56.780 --> 10:02.780] very difficult to build, because there's no database of these. You will have academic papers, [10:02.780 --> 10:09.060] you will have talks at DEF CON elsewhere, you will have some code released on GitHub, [10:09.060 --> 10:14.460] you will have some people who have no code released, you have code that's developed on [10:14.460 --> 10:20.020] obsolete platforms where you can't get the hardware anymore or have to update software. [10:20.020 --> 10:25.420] All of these things are big problems and a lot of work to put this into one toolkit. [10:28.420 --> 10:35.520] So that's the general problem. On the testing, well, Bluetooth testing has some [10:36.280 --> 10:42.180] black box issues, of course. You have kind of false positives, false negatives, [10:42.700 --> 10:48.180] and automation, at least of the denial of service stuff, can be quite difficult. Because [10:49.080 --> 10:56.760] if you basically crash the entertainment system of your car, or the Bluetooth system of your car, [10:56.780 --> 11:02.080] you want to restart the whole thing, we found some cars where you have to get out of the car, [11:02.080 --> 11:07.920] lock the car, and not just walk away, walk away for 20 minutes, because only then the car actually [11:07.920 --> 11:15.460] shuts off and restarts. And at that point, yeah, it's quite extensive, the time that you need, [11:15.460 --> 11:23.760] obviously, to test several vulnerabilities. No matter, we built this toolkit, it exists, [11:23.760 --> 11:32.120] has been online on GitHub for a few months now. Link is here, will also be on the last slide. [11:32.360 --> 11:40.040] Goals were collecting all these exploits that we can find and reproduce, 44 all in all. [11:40.520 --> 11:48.320] We tried to automate as much as possible, but yeah, we have some completely automated stuff, [11:48.320 --> 11:52.280] some semi-automated, and some where you have to do something manual. [11:54.820 --> 12:02.540] That's just the general architecture. So we have some YAML files. If you have new exploits, [12:02.540 --> 12:11.140] it's modular, you can add these files to the toolkit. And from there, you need the basic [12:11.140 --> 12:19.240] setup that I will show, and can go to the car, connect to it and see which other vulnerabilities [12:19.240 --> 12:29.060] are present. So after building the toolkit, the second part was really, let's check a lot of [12:29.060 --> 12:37.000] cards, as many as we can find. We set up the toolkit, as you see here, with just any Ubuntu [12:37.000 --> 12:46.540] based box and a laptop or VM, need some cables. For the full toolkit to be useful, you will need, [12:47.260 --> 12:53.040] for example, not only, but also a Nexus 5 phone, a fairly old phone, it's cheap, [12:53.040 --> 12:59.180] but maybe not so trivial to get it on the market. Because there, some other researchers have built [12:59.940 --> 13:06.160] frameworks where you can really control the Bluetooth stack in detail. And you can also [13:06.160 --> 13:12.440] get the ESP-ROAR kit. If you don't have one of them, you can't test everything, but at least [13:12.440 --> 13:18.660] partly you can do it. Overall, we found that with all the problems, it takes us one to three [13:18.660 --> 13:25.180] hours per car. You need to start the engine to do most of the tests, which can also be a problem [13:25.180 --> 13:30.360] if you're testing in garage and somewhere underground, right? You don't want to run the [13:30.360 --> 13:37.900] engine for three hours. That would not be safe. Easier to test for electric cars. That's definitely [13:38.040 --> 13:47.380] a bonus. How did we procure cars? You see the different manufacturers here. That was our job. [13:47.380 --> 13:54.020] As I said, we have a lot of different cars manufacturers. So we took all our own cars, [13:54.020 --> 14:01.900] brought us our army logistics, took some of our own cars as researchers, as our friends. Overall, [14:01.900 --> 14:08.440] 22 different cars, most of them fully tested, four only partially because we had them at the [14:08.440 --> 14:14.860] beginning of our research and there were more exploits coming on later. Price range, everything [14:14.860 --> 14:22.180] from very cheap to fairly upmarket. And the manufacturers or the Bluetooth systems at least [14:22.180 --> 14:30.220] covering our estimate roughly 60% of the global market by sales. Roughly 12 out of 15 of the top [14:30.220 --> 14:36.060] manufacturers selling cars last year. The tests are non-invasive, it's just connecting Bluetooth [14:36.060 --> 14:48.620] basically. So let's get to the results. Overall, it took us 40-ish hours. We found 73 vulnerabilities [14:48.620 --> 14:57.420] in these cars. So remember, most of these exploits are known, but they're still all present in these [14:57.420 --> 15:06.300] cars. Not everything can be solved. So we reported everything that was relevant and could be solved [15:06.300 --> 15:15.440] to the manufacturers and reported them responsibly. This shows part of the reason, right? Cars lack [15:15.440 --> 15:21.000] very much an adoption of standards. There's never the news Bluetooth version. We found that it takes [15:21.000 --> 15:27.480] roughly, or the median age of a Bluetooth version in a car is seven years behind the actual [15:27.480 --> 15:35.120] release Bluetooth standard. Full results of our car tests, they're also on the GitHub. You see [15:36.300 --> 15:43.660] different range, like, you know, you'd think very new cars should have no to fewer vulnerabilities. [15:43.660 --> 15:49.840] That was true for these two. Not true for many others that were also fairly new from 2022, [15:49.840 --> 15:56.100] 2023. We found a lot of vulnerabilities, even critical ones in those. [15:59.220 --> 16:05.520] There's just another look at this, right? Average number of vulnerabilities per car, [16:05.520 --> 16:13.300] per manufacturer, different ones here can focus on critical vulnerabilities. We found them, [16:13.300 --> 16:20.800] as you can see here, mostly Renault, Opel, and Volkswagen. A few ones, [16:20.800 --> 16:27.180] denial of service vulnerabilities, prevalent in several manufacturers. But [16:27.840 --> 16:34.800] we don't have a lot of time. You can look up the details for that on the GitHub. We did found two [16:34.800 --> 16:42.240] novel exploits and novel attacks during our research. The details on that are really extensively [16:42.240 --> 16:50.460] covered in the main stage talk yesterday. Still briefly going over it, there's one way [16:51.220 --> 16:57.300] you can connect to cars and extract the contacts. So if you have a shared threat model, right? [16:57.720 --> 17:09.600] You rent a car or have one of these car sharing systems that exist in many countries, right? You [17:09.600 --> 17:14.880] just rent a car for a couple hours. Somebody connected their Bluetooth phone to that, [17:14.880 --> 17:21.800] the contacts will be saved. Later on, you can go there and extract the contacts that were on the [17:21.800 --> 17:31.620] car. So we can see here on the left, should say, no contacts available if you connect with your [17:31.620 --> 17:39.040] phone. But if you run this new vulnerability, this new exploit, then you can, as you see on [17:39.040 --> 17:47.800] the right, actually extract the contacts that we had on our phone before. The second one is [17:48.400 --> 17:53.880] another way to establish a man in the middle position, even with a system that has numeric [17:53.880 --> 18:01.520] comparison. And I'll get to what that can do for you. Here's just the proof of concept that it [18:01.520 --> 18:08.280] worked with four different cars. Hyundai, Renault, Audi, and BMW. It's a relatively widespread [18:08.280 --> 18:16.280] issue. What can we do with these things, right? If you wonder, man in the middle on Bluetooth and [18:16.280 --> 18:22.940] denial of service, how is that a problem? Why do we care? As I said, cars are very complex systems, [18:22.940 --> 18:29.000] so one thing is we can obviously do some lateral movement. We can get in through Bluetooth and get [18:29.000 --> 18:36.440] into other systems of the car. We can, as I said, establish man in the middle positions. [18:36.780 --> 18:44.180] And then that's something we discussed extensively yesterday. We can really get your two-factor [18:44.180 --> 18:53.940] tokens if they're sent by SMS. Or, yeah, get these tokens and then obviously exploit whatever [18:53.940 --> 19:01.580] account two-factor you have set up. So that's quite workable. We've reported this also to the [19:02.320 --> 19:07.740] phone manufacturers, so Apple and Google. There were some difference in opinions whether [19:08.420 --> 19:14.220] this is a big problem or not. Google did patch it. Apple did not patch it. [19:14.900 --> 19:22.400] You can basically build your own opinion on this. Brings me to takeaways. I hope you realize [19:22.400 --> 19:27.500] much of Bluetooth is fundamentally insecure. This has been well known. There's so many exploits for [19:27.500 --> 19:32.480] this. This is both in the standards, in the protocol, and in the implementations. [19:32.940 --> 19:39.600] Even the newest cars, new systems are shipped with protocol-level Bluetooth vulnerabilities. [19:39.600 --> 19:47.100] We can't really fix this easily. You need to securely pair, but even that doesn't help because [19:47.100 --> 19:54.520] the repairing of the system might also be malicious. And we built this toolkit, [19:54.520 --> 19:59.440] so if you want to know what your own car, how vulnerable that is on the Bluetooth level, [19:59.440 --> 20:06.460] please use that. If you're a car manufacturer, car part manufacturer, please also use it. Check your [20:06.460 --> 20:14.940] security poster with regards to Bluetooth. Any questions, look at the GitHub and come to me [20:14.940 --> 20:21.680] afterwards. But also please contact Vlad, who did really most of the technical work here. Thank you.