start	end	text
0	7440	Okay. Thank you all for joining. My name is Kevin Mitchell. Today I want to talk to you all about
7640	14600	a vulnerability that I discovered while testing a phone as key system. The official vulnerability
14600	25840	title is CVE-2023-52709. The name of this talk is Bluetooth Blues Unmasking CVE-2023-52709,
25840	39060	the TI-BLE5 stack attack. Okay. So here's the agenda. First I'm going to do a brief
39060	45760	introduction, go into a little bit of a speaker bio, look at the impact of denial of service
45760	50180	attacks on keyless entry systems, and then we're going to jump into the origin of the
50180	56260	vulnerability itself, the timeline, the testing setup, the testing results, the outcome, the
56260	60800	consequences. And then I want to talk to you about the vulnerability disclosure process
60800	66520	with Texas Instruments and Bosch. And then we're going to jump into the denial of service
66520	73300	attack details, looking at the attack mechanisms, also looking at some Wireshark analysis. And
73300	78240	then I'm going to jump into the root cause analysis, give you some context behind the
78240	83420	root cause analysis, some background, and then a detailed explanation. Then we're going to jump
83420	90460	into the affected devices, the initial assessment of the affected devices, the updated list
90460	97340	after a couple of months of, you know, looking at this vulnerability, you know, we found
97340	101660	that it was more and more devices that were impacted by it. Then we're going to look at
101660	108240	some of the real-world impacts, potentially the supplier pre-production costs of the vulnerability,
108240	113940	just looking at it from how much it would cost, like, Texas Instruments before these devices
113940	118720	actually go into vehicles. And then just give you some context, look at, like, some NISTA
118720	124100	recall, like, numbers as far as, like, how many recalls are typically done by NISTA on a
124100	131000	year-to-year basis. And then going to the mitigation strategy, how Texas Instruments put out,
131000	137160	like, an SDK to mitigate this issue. And then the conclusion, outcome, consequences. And then
137160	141720	we're going to do question and answers, and then you all can connect with me if you like.
142840	149000	So a little bit about myself. My name is Kevin Mitchell. I've been doing IT since about 2008,
149000	153440	once I joined the Army as a Human Resources Information Management System Specialist.
153660	160740	Then I worked for Hewlett-Packard for a little bit. Then I went to FCA, where I was hired
160740	167440	as a certified ethical hacker on the Uconnect team after the infamous Jeep hack. I was, like,
167440	173300	the only cybersecurity professional on the Uconnect team out of, like, a team of 30 QREs.
173300	179760	I was, like, the only one specializing in automotive cybersecurity then. And then I went
179760	184160	on to work for Mercedes-Benz Financial Services, where I was doing some penetration testing,
184160	189620	vulnerability management, as well as penetration testing management. Then I got into, like,
189620	194320	some web application penetration testing. And then now to my current job right now,
194320	199000	where I am a senior automotive security tester, where I work for a company called Etos.
199000	206220	And Etos's primary goal is to enhance tomorrow's automotive software. And so, like, the way that
206220	210500	I contribute to that goal is just by being an automotive security tester. I hack cars.
211700	215680	And so I want to give you a quote by a famous hacker.
216760	220600	And so the advance of technology is based on making it fit in so that you really don't even
220600	228760	notice it. So it's a part of everyday life by Bill Gates. And so if you look at technology,
228760	232740	right, it's really baked into every aspect of our life. Like, from the time that you wake up,
232740	237920	you're probably using technology to make coffee to your daily commutes. And that's really where
237920	243180	I want to focus on because I'm an automotive security tester. So I'm looking at technology
243180	250500	when it comes to the automotive industry. And so I'm not here to pick on any one OEM,
250500	255860	but I just did a random Google search, like, how many vehicles does GM produce in a year?
255860	264460	And so it says in the year 2023, GM sold about 6.2 million vehicles, right? So my next point
264460	269940	is, what is the average cost of an automotive recall? And so that average cost of an automotive
269940	278360	recall is about $500. And so if you're looking at 6.2 million vehicles times 500, you really get
278360	282560	to see, like, the impact. And that might not be an accurate number, but we're just, you know,
282560	288200	providing these numbers for context and seeing, like, how much, you know, a recall could actually
288200	295280	affect your everyday life. And so it leads me to my next quote. The problem with technology
295280	303120	is when it doesn't work, you're SOL. That's from a clerk at a corner store after a failed tap to pay.
304140	308280	So now I'm going to jump into the origin of the CVE itself.
309060	314460	Okay, so if you look at these updates, I didn't provide exact dates for them. I just kind of
314460	320120	provided the months. But if you're tracking, we'll just say each update was a different day.
320120	325820	So the first update, Texas Instruments acknowledges the vulnerability disclosure that
325820	333640	we provided them on the phone as key systems in the BLE-5 stack. The next update, the next day,
333640	340800	the Texas Instruments engineers were unable to reproduce the issue based on the report that we
340800	349080	sent them. Then I replied with instructions on how to actually reproduce the issue.
349080	354320	The next day, they came back and said, we cannot reproduce this issue. And so after that,
354320	359720	I doubled down and just reworded my previous email and telling them how to reproduce the issue.
359720	364820	And then, you know, I was working with Bosch. So a couple of Bosch engineers suggested that I test
365960	374280	the TI launch pad, which is just like, it's essentially just like a microcontroller that's
374280	379340	used for development. And they were like, you should pretty much test the launch pad to see
379340	384200	if you can get the launch pad to fail in the same way that you got the phone as key systems to fail.
384360	390500	And so the next update, TI engineers were asking me clarifying questions and tripling down based
390500	394360	on the previous communications that they actually couldn't just reproduce the issue. So then I
394360	399820	decided to schedule a meeting with the stakeholders. I demoed the issue and I was able to
399820	405240	reproduce the issue and show them the actual testing method on how I was actually able to do
405240	410780	that. And this is happening, you know, this is going on the entire month of August, and then
410780	417580	the entire month of September. And so the Bosch engineers that I actually worked with, they were
417580	422500	able to reproduce the same issue that we had initially sent them, that we had initially sent
422500	427760	Texas Instruments. And so the reason why it was important that Bosch engineers actually, you know,
427760	433440	helped me verify that this was actually an issue, because if I'm telling them they have a
433440	437520	vulnerability and I'm the only one who can demo the vulnerability, is it really a
437520	443640	vulnerability? Or if it's not really reproducible by anybody besides me, is it even something that
443640	449260	can be verified? Where's the veracity in that? So then we actually had the Bosch engineers come
449260	455180	into the ETAS office, and the Bosch engineers were also able to reproduce the issue on the phone as
455180	459780	key systems. And before then, I was able to reproduce the issue on the launch pad, like they
459780	465700	suggested. And so we now have... I was able to reproduce the issue on the phone as key systems
465700	470560	and the launch pad, and Bosch engineers were able to do the exact same thing. And so at this point,
470560	475520	I think it's a pretty good time to report it to Bosch PSIRT. And the reason why I reported it to
475520	482160	Bosch PSIRT is because they're a CNA. They have the ability to... they have the ability to create
483100	488360	CVEs. And so, you know, I wanted to get this out there as soon as possible. So then Texas Instruments
488360	495960	stakeholders respond to Bosch really, you know, putting forth that CVE and contacting them.
495960	503080	And they said that they needed, you know, time to review the issue and try to reproduce again.
503460	508880	So the next update, you know, this happened, like I said, August, September, November...
510280	516500	yeah, August, September, October, November. And by the time we get to November, the TI
517020	521220	engineers are like quadrupling down. And they're pretty much saying, we're going to stop testing
521220	527540	this issue until you can show us exactly how to do this. But at this time, I had already shown
527540	534520	them how to do this like three or four times. So internally, TI is actually escalating this issue.
534520	541520	And then Bosch, some Bosch engineers pretty much detail the differences in Texas Instruments
541520	549840	testing setup and my testing setup. A few moments later, Texas Instruments engineers are finally
549840	559200	able to reproduce the vulnerability on the launch pad or aka the CC26X2R1. And the reason why
559720	565240	this is important, this is important is because the vulnerability or I'm sorry,
565240	572920	the responsible disclosure period does not start until after the engineers of the responsible
572920	580700	company are able to reproduce the issue. And so that responsible disclosure period was about like
580700	586160	six months. And so that mean that meant that I actually couldn't talk about this vulnerability
586160	591920	until six months till after they were able to reproduce the issue. Coincidentally enough,
591920	598200	two weeks after they were able to reproduce the issue, they had a mitigating SDK,
598200	605040	and they were ready to push out that the mitigations. Okay, so now I'm going to go
605040	610380	into like the testing setup. And I forgot to give my disclaimer that all the images
610960	615540	were created by chat GPT. But we have like an Alice in Wonderland theme here. So you'll
615540	620680	keep seeing like Alice in Wonderland kind of theme here. And what I'm trying to show with this
620680	627220	image is like you're using legacy systems on new vehicles, you're using legacy technology on new
627220	631440	vehicles, and there's pretty much making them vulnerable. So the hardware setup that you know,
631440	640100	we use was going to be the CCX2, the CC26X2R1 as the as the device under test. And then we also had
642920	647780	a BLE654 dongle as the central device that's actually connecting to the device under test and
647780	654600	testing it. And then we're also using a Defensics test case. The specific test case for this
654600	660660	vulnerability was test case 1001. And it's a security manager protocol test case. And I'll
660660	667440	jump into that in detail. Shout out to Synopsys for in Defensics for you know, helping me discover
667440	672440	this vulnerability and you know, having the tools that allow me to do my job. So that's my quick
672440	679820	shout out. So the testing results. So the outcome of the test when running Defensics fuzzing test
679820	688760	case 1001 on loop mode, the device under test using a resolvable private address for connecting
688760	695520	or connect, connectable advertising, the device ends up generating unresolvable
696720	701860	RPAs after a while, which causes a denial of service. And I'll really jump into this. So I
701860	710420	went back and forth with, with Texas Instruments on the CVE base score, because in the phone as a
710420	716700	key system, it failed every time. And once it failed, if you are using your phone as a key,
716700	724220	and you lock your door, and I come behind you and run this exploit, you actually can't get back
724220	730460	into your vehicle until you hard reset the vehicle. So if we're looking at the CIA or,
730460	735640	you know, triad, we're looking at confidentiality, integrity, and availability. In my mind,
735640	740380	if I knocked off one of those, you know, triads, if I knocked off availability, I would think it's
740480	744760	a high severity vulnerability at the very least. But they, you know, came back and said, you know,
744760	748220	this is the case when it comes to phone as key systems, but it might not be the case
748220	755500	in every other application that uses the TI BLE 5 stack. And so that made me think that,
755500	760060	oh, this might be a little bit bigger, you know, issue than just automotive.
761540	768460	So the consequence of this is the vulnerability can impact BLE devices running the effective SDK
768460	775700	versions and the devices that are enabled with Bluetooth privacy with resolvable private address
775700	780900	feature. And I'm going to jump into this a little bit later about the context about the RPAs.
781060	788020	And so the vulnerability disclosure, you know, the vulnerability disclosure that the Texas
788020	795240	Instruments PSIRT team came back and pretty much they created an internal PSIRT ID. And this is
795240	802780	the PSIRT ID. And this was the initial advisory, the very, very initial advisory before we started
802780	808220	to discover how many different devices that this actually affected. So they just labeled this as
808220	816360	the CC26X2R1 BLE denial of service through unexpected RPAs. And like I said, this is just
816360	823840	the first response that they gave us. When Bosch PSIRT actually published their security advisory
823840	830600	based on what Texas Instruments sent us, they created the CVE with the same base score,
830600	835880	and they updated the title of that CVE to TI Bluetooth stack can fail to generate
835880	841360	resolvable random private addresses leading to the denial of service for already peer-bonded
841360	847420	devices. And I'm going to jump into that because it's, you know, it's kind of deep because if a
847420	852460	device is already peer-bonded to it and I'm running this attack on it, then every device that was
852460	858580	previously connected to it will not be able to actually connect to it again until there's a hard
858580	862580	reset. Now if we're talking about a vehicle, then you actually have to get into the vehicle and hard
862580	867220	reset the vehicle or restart it. But if you're only like using your phone as a key, then how
867220	872320	are you going to do that? So looking at the details itself, we're looking at Defensics Test
872320	879340	Case 1001, and this is specifically on the CC26X2R1. And the reason why I'm showing this is
879340	889160	because Defensics Test Case 1001 does not always work on the development chip or the development
889160	896940	board. But the test case works 100% of the time on the phone as key systems. And the reason why
896940	902880	I decided to escalate this to Bosch PSIRT is because there was another test case that worked
902880	912480	specifically on the phone as key systems and on the CC26X2R1. And this is test case three. And
912480	917380	I'm not sure how small that font is, but I can kind of go over it with you all. So you get a
917380	924720	parent request, and then you get a parent confirm that the testing device or the central is sending
924720	929260	the device under test. So it sends it a parent request, and then it also sends it a parent
929260	935460	confirmation, and then it sends it a pairing random. And when it sends it that pairing random,
935460	941000	essentially, encryption fails and the device no longer is responding to previously peer-bonded
941000	946320	devices. And this is a little bit of context to showing you exactly like the structure of
946320	953960	the packets that were being sent to the device under test. Okay. And so we're looking at a
953960	960920	analysis of test case three, because test case three is, you know, something that we're building
960920	967540	our proof of concept off of. So like I said, you send it the 128 bytes plus the 8-byte header,
967540	975480	and it receives the parent request. And then you also send it a parent confirmation,
975480	981200	and then you send it a pairing random. And so we developed a POC that pretty much automates
981200	987120	the connection of the pairing process with the Bluetooth device, sending a specific sequence
987120	991300	of pairing messages that, you know, like I said, the parent request, parent confirmation,
991300	997220	pairing random. And like I said, this will pretty much get the device to fail 100% of the time. So
997220	1003580	we'll have a GitHub, and the POC isn't published as of yet, but as soon as I get done with this
1003580	1008760	talk, I'll make sure that I make this, like, available to everybody. And so if we're looking
1008760	1012560	at the root cause analysis, this is where it's going to get maybe a little technical, maybe a
1012560	1020400	little bit boring. Every Bluetooth low-energy device has a unique 48-bit address. And these
1020400	1025160	addresses are pretty much characterized into public addresses and then random addresses. And
1025160	1031200	the random addresses can be further classified into static addresses or private addresses,
1031200	1035800	and depending on whether or not they change. And furthermore, private addresses can either be
1035800	1042140	resolvable or non-resolvable. So all BLE devices must either have a public address or a random
1042140	1049760	static address, and they also can have a resolvable or non-resolvable private address, which is pretty
1049760	1055400	much just typically used for, like, security reasons. And so this is the boring but exciting
1055400	1061340	part for me. Okay, so you have random addresses, random private addresses, which are pretty much
1061340	1065940	used in addition to public or random static addresses when the device wishes to protect
1065940	1073140	its privacy. And then moving on to the resolvable random private addresses, a resolvable private
1073140	1078500	address is true to its name. It's intended to have users, like, have this pre-shared key
1079360	1084380	that the device can pretty much figure out the address every time it changes. And so the pre-shared
1084380	1090200	key is the identity-resolving key, which is used to generate and resolve random addresses.
1090840	1096140	Kind of boring stuff, right? And then we have non-resolvable random private addresses. And
1096140	1103540	non-resolvable random private addresses is pretty much used by devices when they want to prevent
1103540	1112920	tracking. And this is not commonly used, but it's relevant for this, you know, hack. And so
1113560	1120920	providing a little bit of context, the BLE core specification or the Bluetooth 5.3 core
1120920	1128140	specification of Volume 6 Part B 4.7, the resolving list, if the link layer using the resolving list
1128140	1133600	and the peer device has been resolved but encryption fails, the resolvable private
1133600	1139540	address shall be immediately discarded and a new private address will be generated. So this is
1139540	1143480	kind of like, you know, where we're looking at. I'm providing you all a little bit of context,
1143480	1149560	as well as like this root cause analysis. So this is what we received back from Texas Instruments,
1150140	1157080	verbatim, for like the reason for the failure. So the malformed packet in our stack map link
1157080	1163020	layer encrypt decrypt will return false and then trigger RPA update. But however, at this point,
1163020	1168020	the stack has not terminated the link. So for the next ACL packet within the same connection,
1168020	1172760	that function will still get called. And when that function gets called right before the RPA
1172760	1178080	update is happening, then the RPA update using encryption will fail, which leads to
1178080	1182340	non-resolvable private addresses. And so the reason why I gave you this context before
1182340	1187860	is because it's like the device is actually operating according to the Bluetooth stack itself
1187860	1194300	or according to the Bluetooth specification itself, right? It receives a pairing request,
1194300	1199140	it receives a pairing confirmation, and then it receives a pairing random. And that pairing random
1199140	1204440	actually makes the encryption fail. And once the encryption fails, then the MAC address is
1204440	1209380	automatically discarded. The MAC address is automatically discarded. And when the MAC
1209380	1213900	address is automatically discarded, every previously peer-bonded device can no longer
1213900	1220160	can connect to the device. So that's what we're seeing. And that's kind of like, you know,
1220160	1226800	the root cause analysis of the vulnerability itself. I found it exciting, you know, to
1226800	1231440	really do like a deep dive and understand exactly what's happening, because it's not like Texas
1231440	1238540	Instruments, like, did a bad job at actually, like, you know, developing this system. Things just
1238540	1243760	happened too fast. And like I said, the link wasn't actually terminating, so it just caused
1243840	1251160	a denial of service. So now we want to look at the affected devices. So initially, we had 19
1251160	1257440	different affected parts and two different software development kits. And so these are all
1257440	1262140	the kits and the software versions that were affected by it in the software stack. I was pretty
1262140	1267540	proud of myself. Like, the BLE-5 stack, you know, vulnerability on that, it seemed, you know,
1267540	1274400	rewarding, especially being a penetration tester on automotive, you know, on vehicles. And sometimes
1274400	1278560	if you don't go about it the right way, you really can't talk about some of your research. And so
1278560	1282780	this was just a confirmation that we went about it the right way. We handled the responsible
1282780	1288340	disclosure period the right way. And now, you know, we're, you know, enjoying the fruits of my
1288340	1295500	labor. So Texas Instruments, after a couple of months, you know, I was asking them, hey, when
1295500	1298640	are you guys going to publish? When are you guys going to publish? And I realized that they
1298640	1303960	weren't publishing because they were still discovering devices within their inventory
1303960	1310780	that were still vulnerable. And so they updated it from 19 parts to 28 parts in six different
1310780	1316360	software versions. And I found this pretty interesting, right? There's a BLE-5 stack,
1316360	1325320	BLE-5 stack, BLE stack 2.X, I don't know what that is. But at any rate, we have, you know,
1325320	1331840	an updated parts list, and it included 28 parts. And I did a, you know, a little bit of a research
1332520	1338180	on the on all of these parts that are listed here. I was looking at the real world impact.
1338180	1342300	And so if you go on texasinstruments.com, you can actually search their inventory by parts.
1342300	1346160	And so I was able to see all of these vulnerable parts that were listed here. And what I have in
1346160	1351760	bold are just the automotive parts. And so, you know, I'm suspecting in Texas Instruments,
1351760	1356100	the reason why they said that this is not a high severity vulnerability is because they have other
1356100	1362360	devices such as like medical devices that this vulnerability is present on. I haven't done the
1362360	1367220	research to see, you know, what devices are actually affected. But you know, I was just more
1367220	1373440	so concerned about like the automotive part of it. So there's like 2.6 million devices that they
1373440	1379860	have in their inventory. And that's about $2.6 million in inventory that they have. But that is
1379860	1386300	before these devices actually get sold to any OEM and the OEM puts their software on top of that.
1386520	1390960	So that's why I call it a supplier pre-production cost of the vulnerability because we're just
1390960	1396800	looking at it from Texas Instruments. We're not looking at it if like GM or Ford purchased one of
1396800	1403240	these and then they developed, you know, vulnerable software on top of that. And so I think I'm
1403240	1410580	I think I'm good on time. I got like two minutes left. Okay, so NISTA recalls. So,
1411240	1416420	you know, I believe this is for the year 2022. And we're just looking at electrical systems.
1416420	1423740	And so if we have, you know, 3.4 million, you know, electrical system recalls averaging
1423740	1429540	at around like $500, then that's like $1.7 billion, right? And
1431200	1437780	the reason why I put this here is because like, as as a security engineer or as a penetration
1437780	1443600	tester, it's kind of hard to quantify your impact on the world. It's kind of hard to quantify
1444320	1450980	exactly, you know, the impact that you're having on figuring out some of these things. And so my
1450980	1456260	thing is like, say, for instance, each one of these recalls doesn't cost $500. Maybe if it only
1456260	1460980	costs 1% of that, we're still looking at $17 million. So you should really just do a penetration
1460980	1467120	test on your system before you're stuck paying, you know, for recalls that that might cost you,
1467120	1472440	you know, billions or millions of dollars. And so like I said before, it was pretty interesting
1472440	1480340	that Texas Instruments was able to come up with a fix and publish that fix two weeks after they
1480340	1485880	were able to reproduce it, but couldn't reproduce the issue for like six months. I thought that was,
1485880	1491440	you know, genius of them. And this is the mitigating strategies that they put out. I
1491440	1496540	know that they still have a lot of SDKs that they have to publish in order to make sure
1496540	1503180	that all of the systems are mitigated or remediated in the right way.
1503240	1513100	But they're still working on that right now. And right on time. Questions? Any questions?
1513740	1529700	Right there. So for scanning and talking to the launchpad, we use Defensics as well. We also use
1532830	1543680	Bluetooth CTL. And we also use the TI launchpad with a software called Sniffle that was
1543680	1551000	developed by NCC Group. And it specifically scans for long-range advertisements or extended
1551000	1558960	advertisements that are specific to BLE-5. If that answers your question. Mr. McKeeter.
1559960	1563000	Oh, can I get this last question right here?
1567700	1573120	All of the devices, the 19 devices are in the CVE.
1573600	1577920	The extended list has not been updated or published yet. We're still with,
1577920	1583580	you can get it. Yes, yes. And I believe that this is publicly available. There's a QR code.
1583580	1586380	You guys can connect with me on LinkedIn. Thank you for your time.
