start	end	text
0	8420	All right, we'll start. Sorry for the delay. The main reason being that this work was mostly done
8420	15300	by my student and he couldn't get a visa for the US, so he's not here. We did record a video.
15980	20020	We also had a longer version of this whole thing yesterday on main stage,
20640	27080	so you can still find this at some point online if you're interested in all of the details. However,
27080	33160	since the audio is not working for the video, you will have to do it with me. I can't provide you
33160	38640	with all the technical details, but I should be able to get you through it. And if you have any
38640	47120	specific questions on attacks and the toolkit we built and everything, I can direct you to my
47120	59540	student. So yeah, let's start. It's fine. Who are we? So first, that's my student, Vladislav,
59540	67760	also known as ESO. He's a bug bounty hunter. He did his master in cybersecurity at ETH Zurich,
67760	75460	where he came to us and asked, hey, what cool systems could we hack? What do you have for us
75460	82340	and ideas for a master thesis? We said, okay, here, my background is all sorts of bug bounty stuff.
84220	89960	I have super cool skills, really the wizard behind all this stuff, and he's looking for
89960	97420	new opportunities. So if you're convinced by the stuff he built, contact him. Who are we? Who am I?
97460	102580	My name is Martin. I'm a security researcher and a scientist at the Swiss Cyber Defense Campus.
102580	108500	The cyber defense campus is the procurement arm or part of the procurement arm of the Swiss
108500	116700	Department of Defense. I've done a lot of systems work, hacking, mostly transportation systems,
116700	123100	aviation, you find a lot of stuff from us in the aerospace village here. I've done space,
123100	127700	cars, trains, everything, basically. I've never looked at Bluetooth before,
127700	134120	neither had Vlad, but I've done some stuff in cars, for example, hacking electric charging
134120	142120	systems. You can find that under brokenwire.fail. So what's the motivation for this research? Why
142120	148370	are we doing this? Well, if you're in the procurement arm of federal government,
148800	154740	you buy a lot of stuff. Broadly, you can break this up in the pre-tender stage and the actual
154740	162020	tender, where you buy stuff, and a post-tender stage. And basically, when you do security
162020	167840	testing, pen testing, only after you buy stuff, it's generally too late. Like, you have these
167840	174920	systems, you have deployed them, they're insecure, that's very late. So we might still do this,
174920	181660	and we have a lot of systems where we don't have these processes in place, older systems,
181660	188960	but in general, we try to be as early as possible. The idea, obviously, buys a lot of IT systems,
188960	194880	but also other systems, such as cars, which we will get into. And because we buy a lot of things,
194880	200560	we have a decent negotiation leverage with the manufacturers. I mean, they want to sell us stuff,
200560	205020	so they should follow some requirements that we put in tenders.
206600	212840	One other thing we also do is do vulnerability research on standards, on systems. We've done
212840	218900	this a lot in aviation and in space. But the problem is, if the systems have very long life
218900	226240	cycles, even if you can demonstrate flaws and protocols and standards, and show that it's
226240	233140	unsafe, unsecure, until something is changed and deployed in the long run, it will take up to
233140	239760	decades. So that doesn't help us even in our procurement system, because everyone is using
239760	245180	the same standards, and we don't have the alternatives. This brings me to today's
245180	251280	concrete case study. Vehicles and the Army and Bluetooth. So we apparently already heard some
251280	258220	Bluetooth insecurities in the previous talk, which is nice. But we are not talking about Bluetooth
258220	264260	low-energy, we're only talking about standard classic Bluetooth. As alluded, DoD buys a lot
264260	269460	of stuff. That's probably the first thing you think of when you think of Department of Defense.
270220	276340	Luckily, these don't have Bluetooth, as far as I know, at least the ones I've looked at.
276360	283380	But probably that comes very soon. Boringly, however, we buy mostly box-standard,
283380	289720	run-of-the-mill cars, a lot of them. And these all have Bluetooth. You can't really buy a modern
289720	296480	car without it, even if you want it. Even if you put that in a tender, basically nobody would
296480	303560	sell you a car or offer you to sell a car without Bluetooth. That brings me to the scope of the
303560	308720	present research. Cars are fairly complex systems, so Bluetooth is not the only interface.
309240	317260	We counted at least 19 interfaces in those cars, from wired ODB ports to the key fob.
317260	321640	If there's an issue with any of them, traditionally the only way for the manufacturer to do anything
322240	332760	is to do a recall. That's very expensive and pretty much only done for big safety problems.
333600	340340	For security, that rarely happens. And that leaves us with a very complex attack surface
340800	347200	that is rarely patched when a car has been shipped and is out there.
349660	357200	However, despite this, and despite Bluetooth being known and secure, this hasn't been really addressed
357200	363580	on any larger scale. There have been a couple of papers looking at maybe one single exploit in one
363580	369960	single car, but nobody has looked at the whole breadth of Bluetooth exploits that exist out there
370640	376460	in different cars and from different manufacturers. And that was the gap that we saw here,
376460	382520	because there's an estimated more than 1 billion cars with Bluetooth, Bluetooth Classic.
383400	391160	Pretty much all of new cars have Bluetooth, and it's certainly an insecurity that we wanted to
391160	399240	examine, because no one has done it at scale. So that brings me to the standard Bluetooth
399900	405340	technology stack. Bluetooth, as you will be aware, is a wireless communication standard.
405340	411120	It has a very complex tech stack, because you have a lot of shared responsibility.
411920	421300	And of course, it has to fulfill a lot of different use cases, and that makes it very,
421300	427700	very complex. To fulfill these different use cases, Bluetooth has a lot of different profiles.
427700	432500	I'm not going through all of them in the interest of time here, but you can choose different
432500	439480	profiles, for example, to make calls, of course, to listen to music, but also some profiles can
439480	446280	have full access to your SIM card in the car, or extract messages. That's how you can,
446280	451580	in your car, in your car system, communicate hands-free using your phone.
452900	459700	The security models, you basically have these four options to pair to a Bluetooth system
460200	467940	with another one, in our case, a car. Depends on the capabilities of the thing you want to pair.
467940	472820	You have display yes, no. You have something that only has a display, but no input.
472940	478500	You have something that has a keyboard, but no display. And you have even something like
478500	483600	headphones that has no input or no output whatsoever. And these all need to be somehow
483600	491320	connected with different means. So that's the Bluetooth security model.
492400	496920	It's very binary. Either you're connected or you're not. And if you're connected,
496920	506340	then you have access, basically. We have classic legacy pairing. There's basically no security in
506340	517260	this. We have just works, which enables quite easy man-in-the-middle attacks. We have passkey
517260	523660	entry, which is a bit more secure, but there have been method confusion attacks shown against this
523660	530120	recently. And the only known secure option at the moment is numeric comparison.
532600	538180	There's prior art, of course. So we went through at the beginning to check how many
538180	545480	Bluetooth vulnerabilities, exploits, and attacks are around. So this is, we found more than 108
546220	557040	in March. And as of 2022, we found almost 650 CVEs just related to Bluetooth devices.
557140	563000	The categories we've been looking at are critical exploits, so remote code execution and memory
563000	569000	leakage, man-in-the-middle, denial of service, or chaining attacks, which are not vulnerabilities
569000	578700	in and by itself, but they can lead to further exploitation if the environment is right.
579780	589700	So the goal for our procurement was to build a Bluetooth test kit for basically all the security
589700	596780	and vulnerabilities on the market. Because that didn't exist at the moment, and it was
596780	602780	very difficult to build, because there's no database of these. You will have academic papers,
602780	609060	you will have talks at DEF CON elsewhere, you will have some code released on GitHub,
609060	614460	you will have some people who have no code released, you have code that's developed on
614460	620020	obsolete platforms where you can't get the hardware anymore or have to update software.
620020	625420	All of these things are big problems and a lot of work to put this into one toolkit.
628420	635520	So that's the general problem. On the testing, well, Bluetooth testing has some
636280	642180	black box issues, of course. You have kind of false positives, false negatives,
642700	648180	and automation, at least of the denial of service stuff, can be quite difficult. Because
649080	656760	if you basically crash the entertainment system of your car, or the Bluetooth system of your car,
656780	662080	you want to restart the whole thing, we found some cars where you have to get out of the car,
662080	667920	lock the car, and not just walk away, walk away for 20 minutes, because only then the car actually
667920	675460	shuts off and restarts. And at that point, yeah, it's quite extensive, the time that you need,
675460	683760	obviously, to test several vulnerabilities. No matter, we built this toolkit, it exists,
683760	692120	has been online on GitHub for a few months now. Link is here, will also be on the last slide.
692360	700040	Goals were collecting all these exploits that we can find and reproduce, 44 all in all.
700520	708320	We tried to automate as much as possible, but yeah, we have some completely automated stuff,
708320	712280	some semi-automated, and some where you have to do something manual.
714820	722540	That's just the general architecture. So we have some YAML files. If you have new exploits,
722540	731140	it's modular, you can add these files to the toolkit. And from there, you need the basic
731140	739240	setup that I will show, and can go to the car, connect to it and see which other vulnerabilities
739240	749060	are present. So after building the toolkit, the second part was really, let's check a lot of
749060	757000	cards, as many as we can find. We set up the toolkit, as you see here, with just any Ubuntu
757000	766540	based box and a laptop or VM, need some cables. For the full toolkit to be useful, you will need,
767260	773040	for example, not only, but also a Nexus 5 phone, a fairly old phone, it's cheap,
773040	779180	but maybe not so trivial to get it on the market. Because there, some other researchers have built
779940	786160	frameworks where you can really control the Bluetooth stack in detail. And you can also
786160	792440	get the ESP-ROAR kit. If you don't have one of them, you can't test everything, but at least
792440	798660	partly you can do it. Overall, we found that with all the problems, it takes us one to three
798660	805180	hours per car. You need to start the engine to do most of the tests, which can also be a problem
805180	810360	if you're testing in garage and somewhere underground, right? You don't want to run the
810360	817900	engine for three hours. That would not be safe. Easier to test for electric cars. That's definitely
818040	827380	a bonus. How did we procure cars? You see the different manufacturers here. That was our job.
827380	834020	As I said, we have a lot of different cars manufacturers. So we took all our own cars,
834020	841900	brought us our army logistics, took some of our own cars as researchers, as our friends. Overall,
841900	848440	22 different cars, most of them fully tested, four only partially because we had them at the
848440	854860	beginning of our research and there were more exploits coming on later. Price range, everything
854860	862180	from very cheap to fairly upmarket. And the manufacturers or the Bluetooth systems at least
862180	870220	covering our estimate roughly 60% of the global market by sales. Roughly 12 out of 15 of the top
870220	876060	manufacturers selling cars last year. The tests are non-invasive, it's just connecting Bluetooth
876060	888620	basically. So let's get to the results. Overall, it took us 40-ish hours. We found 73 vulnerabilities
888620	897420	in these cars. So remember, most of these exploits are known, but they're still all present in these
897420	906300	cars. Not everything can be solved. So we reported everything that was relevant and could be solved
906300	915440	to the manufacturers and reported them responsibly. This shows part of the reason, right? Cars lack
915440	921000	very much an adoption of standards. There's never the news Bluetooth version. We found that it takes
921000	927480	roughly, or the median age of a Bluetooth version in a car is seven years behind the actual
927480	935120	release Bluetooth standard. Full results of our car tests, they're also on the GitHub. You see
936300	943660	different range, like, you know, you'd think very new cars should have no to fewer vulnerabilities.
943660	949840	That was true for these two. Not true for many others that were also fairly new from 2022,
949840	956100	2023. We found a lot of vulnerabilities, even critical ones in those.
959220	965520	There's just another look at this, right? Average number of vulnerabilities per car,
965520	973300	per manufacturer, different ones here can focus on critical vulnerabilities. We found them,
973300	980800	as you can see here, mostly Renault, Opel, and Volkswagen. A few ones,
980800	987180	denial of service vulnerabilities, prevalent in several manufacturers. But
987840	994800	we don't have a lot of time. You can look up the details for that on the GitHub. We did found two
994800	1002240	novel exploits and novel attacks during our research. The details on that are really extensively
1002240	1010460	covered in the main stage talk yesterday. Still briefly going over it, there's one way
1011220	1017300	you can connect to cars and extract the contacts. So if you have a shared threat model, right?
1017720	1029600	You rent a car or have one of these car sharing systems that exist in many countries, right? You
1029600	1034880	just rent a car for a couple hours. Somebody connected their Bluetooth phone to that,
1034880	1041800	the contacts will be saved. Later on, you can go there and extract the contacts that were on the
1041800	1051620	car. So we can see here on the left, should say, no contacts available if you connect with your
1051620	1059040	phone. But if you run this new vulnerability, this new exploit, then you can, as you see on
1059040	1067800	the right, actually extract the contacts that we had on our phone before. The second one is
1068400	1073880	another way to establish a man in the middle position, even with a system that has numeric
1073880	1081520	comparison. And I'll get to what that can do for you. Here's just the proof of concept that it
1081520	1088280	worked with four different cars. Hyundai, Renault, Audi, and BMW. It's a relatively widespread
1088280	1096280	issue. What can we do with these things, right? If you wonder, man in the middle on Bluetooth and
1096280	1102940	denial of service, how is that a problem? Why do we care? As I said, cars are very complex systems,
1102940	1109000	so one thing is we can obviously do some lateral movement. We can get in through Bluetooth and get
1109000	1116440	into other systems of the car. We can, as I said, establish man in the middle positions.
1116780	1124180	And then that's something we discussed extensively yesterday. We can really get your two-factor
1124180	1133940	tokens if they're sent by SMS. Or, yeah, get these tokens and then obviously exploit whatever
1133940	1141580	account two-factor you have set up. So that's quite workable. We've reported this also to the
1142320	1147740	phone manufacturers, so Apple and Google. There were some difference in opinions whether
1148420	1154220	this is a big problem or not. Google did patch it. Apple did not patch it.
1154900	1162400	You can basically build your own opinion on this. Brings me to takeaways. I hope you realize
1162400	1167500	much of Bluetooth is fundamentally insecure. This has been well known. There's so many exploits for
1167500	1172480	this. This is both in the standards, in the protocol, and in the implementations.
1172940	1179600	Even the newest cars, new systems are shipped with protocol-level Bluetooth vulnerabilities.
1179600	1187100	We can't really fix this easily. You need to securely pair, but even that doesn't help because
1187100	1194520	the repairing of the system might also be malicious. And we built this toolkit,
1194520	1199440	so if you want to know what your own car, how vulnerable that is on the Bluetooth level,
1199440	1206460	please use that. If you're a car manufacturer, car part manufacturer, please also use it. Check your
1206460	1214940	security poster with regards to Bluetooth. Any questions, look at the GitHub and come to me
1214940	1221680	afterwards. But also please contact Vlad, who did really most of the technical work here. Thank you.
