Okay. Thank you all for joining. My name is Kevin Mitchell. Today I want to talk to you all about a vulnerability that I discovered while testing a phone as key system. The official vulnerability title is CVE-2023-52709. The name of this talk is Bluetooth Blues Unmasking CVE-2023-52709, the TI-BLE5 stack attack. Okay. So here's the agenda. First I'm going to do a brief introduction, go into a little bit of a speaker bio, look at the impact of denial of service attacks on keyless entry systems, and then we're going to jump into the origin of the vulnerability itself, the timeline, the testing setup, the testing results, the outcome, the consequences. And then I want to talk to you about the vulnerability disclosure process with Texas Instruments and Bosch. And then we're going to jump into the denial of service attack details, looking at the attack mechanisms, also looking at some Wireshark analysis. And then I'm going to jump into the root cause analysis, give you some context behind the root cause analysis, some background, and then a detailed explanation. Then we're going to jump into the affected devices, the initial assessment of the affected devices, the updated list after a couple of months of, you know, looking at this vulnerability, you know, we found that it was more and more devices that were impacted by it. Then we're going to look at some of the real-world impacts, potentially the supplier pre-production costs of the vulnerability, just looking at it from how much it would cost, like, Texas Instruments before these devices actually go into vehicles. And then just give you some context, look at, like, some NISTA recall, like, numbers as far as, like, how many recalls are typically done by NISTA on a year-to-year basis. And then going to the mitigation strategy, how Texas Instruments put out, like, an SDK to mitigate this issue. And then the conclusion, outcome, consequences. And then we're going to do question and answers, and then you all can connect with me if you like. So a little bit about myself. My name is Kevin Mitchell. I've been doing IT since about 2008, once I joined the Army as a Human Resources Information Management System Specialist. Then I worked for Hewlett-Packard for a little bit. Then I went to FCA, where I was hired as a certified ethical hacker on the Uconnect team after the infamous Jeep hack. I was, like, the only cybersecurity professional on the Uconnect team out of, like, a team of 30 QREs. I was, like, the only one specializing in automotive cybersecurity then. And then I went on to work for Mercedes-Benz Financial Services, where I was doing some penetration testing, vulnerability management, as well as penetration testing management. Then I got into, like, some web application penetration testing. And then now to my current job right now, where I am a senior automotive security tester, where I work for a company called Etos. And Etos's primary goal is to enhance tomorrow's automotive software. And so, like, the way that I contribute to that goal is just by being an automotive security tester. I hack cars. And so I want to give you a quote by a famous hacker. And so the advance of technology is based on making it fit in so that you really don't even notice it. So it's a part of everyday life by Bill Gates. And so if you look at technology, right, it's really baked into every aspect of our life. Like, from the time that you wake up, you're probably using technology to make coffee to your daily commutes. And that's really where I want to focus on because I'm an automotive security tester. So I'm looking at technology when it comes to the automotive industry. And so I'm not here to pick on any one OEM, but I just did a random Google search, like, how many vehicles does GM produce in a year? And so it says in the year 2023, GM sold about 6.2 million vehicles, right? So my next point is, what is the average cost of an automotive recall? And so that average cost of an automotive recall is about $500. And so if you're looking at 6.2 million vehicles times 500, you really get to see, like, the impact. And that might not be an accurate number, but we're just, you know, providing these numbers for context and seeing, like, how much, you know, a recall could actually affect your everyday life. And so it leads me to my next quote. The problem with technology is when it doesn't work, you're SOL. That's from a clerk at a corner store after a failed tap to pay. So now I'm going to jump into the origin of the CVE itself. Okay, so if you look at these updates, I didn't provide exact dates for them. I just kind of provided the months. But if you're tracking, we'll just say each update was a different day. So the first update, Texas Instruments acknowledges the vulnerability disclosure that we provided them on the phone as key systems in the BLE-5 stack. The next update, the next day, the Texas Instruments engineers were unable to reproduce the issue based on the report that we sent them. Then I replied with instructions on how to actually reproduce the issue. The next day, they came back and said, we cannot reproduce this issue. And so after that, I doubled down and just reworded my previous email and telling them how to reproduce the issue. And then, you know, I was working with Bosch. So a couple of Bosch engineers suggested that I test the TI launch pad, which is just like, it's essentially just like a microcontroller that's used for development. And they were like, you should pretty much test the launch pad to see if you can get the launch pad to fail in the same way that you got the phone as key systems to fail. And so the next update, TI engineers were asking me clarifying questions and tripling down based on the previous communications that they actually couldn't just reproduce the issue. So then I decided to schedule a meeting with the stakeholders. I demoed the issue and I was able to reproduce the issue and show them the actual testing method on how I was actually able to do that. And this is happening, you know, this is going on the entire month of August, and then the entire month of September. And so the Bosch engineers that I actually worked with, they were able to reproduce the same issue that we had initially sent them, that we had initially sent Texas Instruments. And so the reason why it was important that Bosch engineers actually, you know, helped me verify that this was actually an issue, because if I'm telling them they have a vulnerability and I'm the only one who can demo the vulnerability, is it really a vulnerability? Or if it's not really reproducible by anybody besides me, is it even something that can be verified? Where's the veracity in that? So then we actually had the Bosch engineers come into the ETAS office, and the Bosch engineers were also able to reproduce the issue on the phone as key systems. And before then, I was able to reproduce the issue on the launch pad, like they suggested. And so we now have... I was able to reproduce the issue on the phone as key systems and the launch pad, and Bosch engineers were able to do the exact same thing. And so at this point, I think it's a pretty good time to report it to Bosch PSIRT. And the reason why I reported it to Bosch PSIRT is because they're a CNA. They have the ability to... they have the ability to create CVEs. And so, you know, I wanted to get this out there as soon as possible. So then Texas Instruments stakeholders respond to Bosch really, you know, putting forth that CVE and contacting them. And they said that they needed, you know, time to review the issue and try to reproduce again. So the next update, you know, this happened, like I said, August, September, November... yeah, August, September, October, November. And by the time we get to November, the TI engineers are like quadrupling down. And they're pretty much saying, we're going to stop testing this issue until you can show us exactly how to do this. But at this time, I had already shown them how to do this like three or four times. So internally, TI is actually escalating this issue. And then Bosch, some Bosch engineers pretty much detail the differences in Texas Instruments testing setup and my testing setup. A few moments later, Texas Instruments engineers are finally able to reproduce the vulnerability on the launch pad or aka the CC26X2R1. And the reason why this is important, this is important is because the vulnerability or I'm sorry, the responsible disclosure period does not start until after the engineers of the responsible company are able to reproduce the issue. And so that responsible disclosure period was about like six months. And so that mean that meant that I actually couldn't talk about this vulnerability until six months till after they were able to reproduce the issue. Coincidentally enough, two weeks after they were able to reproduce the issue, they had a mitigating SDK, and they were ready to push out that the mitigations. Okay, so now I'm going to go into like the testing setup. And I forgot to give my disclaimer that all the images were created by chat GPT. But we have like an Alice in Wonderland theme here. So you'll keep seeing like Alice in Wonderland kind of theme here. And what I'm trying to show with this image is like you're using legacy systems on new vehicles, you're using legacy technology on new vehicles, and there's pretty much making them vulnerable. So the hardware setup that you know, we use was going to be the CCX2, the CC26X2R1 as the as the device under test. And then we also had a BLE654 dongle as the central device that's actually connecting to the device under test and testing it. And then we're also using a Defensics test case. The specific test case for this vulnerability was test case 1001. And it's a security manager protocol test case. And I'll jump into that in detail. Shout out to Synopsys for in Defensics for you know, helping me discover this vulnerability and you know, having the tools that allow me to do my job. So that's my quick shout out. So the testing results. So the outcome of the test when running Defensics fuzzing test case 1001 on loop mode, the device under test using a resolvable private address for connecting or connect, connectable advertising, the device ends up generating unresolvable RPAs after a while, which causes a denial of service. And I'll really jump into this. So I went back and forth with, with Texas Instruments on the CVE base score, because in the phone as a key system, it failed every time. And once it failed, if you are using your phone as a key, and you lock your door, and I come behind you and run this exploit, you actually can't get back into your vehicle until you hard reset the vehicle. So if we're looking at the CIA or, you know, triad, we're looking at confidentiality, integrity, and availability. In my mind, if I knocked off one of those, you know, triads, if I knocked off availability, I would think it's a high severity vulnerability at the very least. But they, you know, came back and said, you know, this is the case when it comes to phone as key systems, but it might not be the case in every other application that uses the TI BLE 5 stack. And so that made me think that, oh, this might be a little bit bigger, you know, issue than just automotive. So the consequence of this is the vulnerability can impact BLE devices running the effective SDK versions and the devices that are enabled with Bluetooth privacy with resolvable private address feature. And I'm going to jump into this a little bit later about the context about the RPAs. And so the vulnerability disclosure, you know, the vulnerability disclosure that the Texas Instruments PSIRT team came back and pretty much they created an internal PSIRT ID. And this is the PSIRT ID. And this was the initial advisory, the very, very initial advisory before we started to discover how many different devices that this actually affected. So they just labeled this as the CC26X2R1 BLE denial of service through unexpected RPAs. And like I said, this is just the first response that they gave us. When Bosch PSIRT actually published their security advisory based on what Texas Instruments sent us, they created the CVE with the same base score, and they updated the title of that CVE to TI Bluetooth stack can fail to generate resolvable random private addresses leading to the denial of service for already peer-bonded devices. And I'm going to jump into that because it's, you know, it's kind of deep because if a device is already peer-bonded to it and I'm running this attack on it, then every device that was previously connected to it will not be able to actually connect to it again until there's a hard reset. Now if we're talking about a vehicle, then you actually have to get into the vehicle and hard reset the vehicle or restart it. But if you're only like using your phone as a key, then how are you going to do that? So looking at the details itself, we're looking at Defensics Test Case 1001, and this is specifically on the CC26X2R1. And the reason why I'm showing this is because Defensics Test Case 1001 does not always work on the development chip or the development board. But the test case works 100% of the time on the phone as key systems. And the reason why I decided to escalate this to Bosch PSIRT is because there was another test case that worked specifically on the phone as key systems and on the CC26X2R1. And this is test case three. And I'm not sure how small that font is, but I can kind of go over it with you all. So you get a parent request, and then you get a parent confirm that the testing device or the central is sending the device under test. So it sends it a parent request, and then it also sends it a parent confirmation, and then it sends it a pairing random. And when it sends it that pairing random, essentially, encryption fails and the device no longer is responding to previously peer-bonded devices. And this is a little bit of context to showing you exactly like the structure of the packets that were being sent to the device under test. Okay. And so we're looking at a analysis of test case three, because test case three is, you know, something that we're building our proof of concept off of. So like I said, you send it the 128 bytes plus the 8-byte header, and it receives the parent request. And then you also send it a parent confirmation, and then you send it a pairing random. And so we developed a POC that pretty much automates the connection of the pairing process with the Bluetooth device, sending a specific sequence of pairing messages that, you know, like I said, the parent request, parent confirmation, pairing random. And like I said, this will pretty much get the device to fail 100% of the time. So we'll have a GitHub, and the POC isn't published as of yet, but as soon as I get done with this talk, I'll make sure that I make this, like, available to everybody. And so if we're looking at the root cause analysis, this is where it's going to get maybe a little technical, maybe a little bit boring. Every Bluetooth low-energy device has a unique 48-bit address. And these addresses are pretty much characterized into public addresses and then random addresses. And the random addresses can be further classified into static addresses or private addresses, and depending on whether or not they change. And furthermore, private addresses can either be resolvable or non-resolvable. So all BLE devices must either have a public address or a random static address, and they also can have a resolvable or non-resolvable private address, which is pretty much just typically used for, like, security reasons. And so this is the boring but exciting part for me. Okay, so you have random addresses, random private addresses, which are pretty much used in addition to public or random static addresses when the device wishes to protect its privacy. And then moving on to the resolvable random private addresses, a resolvable private address is true to its name. It's intended to have users, like, have this pre-shared key that the device can pretty much figure out the address every time it changes. And so the pre-shared key is the identity-resolving key, which is used to generate and resolve random addresses. Kind of boring stuff, right? And then we have non-resolvable random private addresses. And non-resolvable random private addresses is pretty much used by devices when they want to prevent tracking. And this is not commonly used, but it's relevant for this, you know, hack. And so providing a little bit of context, the BLE core specification or the Bluetooth 5.3 core specification of Volume 6 Part B 4.7, the resolving list, if the link layer using the resolving list and the peer device has been resolved but encryption fails, the resolvable private address shall be immediately discarded and a new private address will be generated. So this is kind of like, you know, where we're looking at. I'm providing you all a little bit of context, as well as like this root cause analysis. So this is what we received back from Texas Instruments, verbatim, for like the reason for the failure. So the malformed packet in our stack map link layer encrypt decrypt will return false and then trigger RPA update. But however, at this point, the stack has not terminated the link. So for the next ACL packet within the same connection, that function will still get called. And when that function gets called right before the RPA update is happening, then the RPA update using encryption will fail, which leads to non-resolvable private addresses. And so the reason why I gave you this context before is because it's like the device is actually operating according to the Bluetooth stack itself or according to the Bluetooth specification itself, right? It receives a pairing request, it receives a pairing confirmation, and then it receives a pairing random. And that pairing random actually makes the encryption fail. And once the encryption fails, then the MAC address is automatically discarded. The MAC address is automatically discarded. And when the MAC address is automatically discarded, every previously peer-bonded device can no longer can connect to the device. So that's what we're seeing. And that's kind of like, you know, the root cause analysis of the vulnerability itself. I found it exciting, you know, to really do like a deep dive and understand exactly what's happening, because it's not like Texas Instruments, like, did a bad job at actually, like, you know, developing this system. Things just happened too fast. And like I said, the link wasn't actually terminating, so it just caused a denial of service. So now we want to look at the affected devices. So initially, we had 19 different affected parts and two different software development kits. And so these are all the kits and the software versions that were affected by it in the software stack. I was pretty proud of myself. Like, the BLE-5 stack, you know, vulnerability on that, it seemed, you know, rewarding, especially being a penetration tester on automotive, you know, on vehicles. And sometimes if you don't go about it the right way, you really can't talk about some of your research. And so this was just a confirmation that we went about it the right way. We handled the responsible disclosure period the right way. And now, you know, we're, you know, enjoying the fruits of my labor. So Texas Instruments, after a couple of months, you know, I was asking them, hey, when are you guys going to publish? When are you guys going to publish? And I realized that they weren't publishing because they were still discovering devices within their inventory that were still vulnerable. And so they updated it from 19 parts to 28 parts in six different software versions. And I found this pretty interesting, right? There's a BLE-5 stack, BLE-5 stack, BLE stack 2.X, I don't know what that is. But at any rate, we have, you know, an updated parts list, and it included 28 parts. And I did a, you know, a little bit of a research on the on all of these parts that are listed here. I was looking at the real world impact. And so if you go on texasinstruments.com, you can actually search their inventory by parts. And so I was able to see all of these vulnerable parts that were listed here. And what I have in bold are just the automotive parts. And so, you know, I'm suspecting in Texas Instruments, the reason why they said that this is not a high severity vulnerability is because they have other devices such as like medical devices that this vulnerability is present on. I haven't done the research to see, you know, what devices are actually affected. But you know, I was just more so concerned about like the automotive part of it. So there's like 2.6 million devices that they have in their inventory. And that's about $2.6 million in inventory that they have. But that is before these devices actually get sold to any OEM and the OEM puts their software on top of that. So that's why I call it a supplier pre-production cost of the vulnerability because we're just looking at it from Texas Instruments. We're not looking at it if like GM or Ford purchased one of these and then they developed, you know, vulnerable software on top of that. And so I think I'm I think I'm good on time. I got like two minutes left. Okay, so NISTA recalls. So, you know, I believe this is for the year 2022. And we're just looking at electrical systems. And so if we have, you know, 3.4 million, you know, electrical system recalls averaging at around like $500, then that's like $1.7 billion, right? And the reason why I put this here is because like, as as a security engineer or as a penetration tester, it's kind of hard to quantify your impact on the world. It's kind of hard to quantify exactly, you know, the impact that you're having on figuring out some of these things. And so my thing is like, say, for instance, each one of these recalls doesn't cost $500. Maybe if it only costs 1% of that, we're still looking at $17 million. So you should really just do a penetration test on your system before you're stuck paying, you know, for recalls that that might cost you, you know, billions or millions of dollars. And so like I said before, it was pretty interesting that Texas Instruments was able to come up with a fix and publish that fix two weeks after they were able to reproduce it, but couldn't reproduce the issue for like six months. I thought that was, you know, genius of them. And this is the mitigating strategies that they put out. I know that they still have a lot of SDKs that they have to publish in order to make sure that all of the systems are mitigated or remediated in the right way. But they're still working on that right now. And right on time. Questions? Any questions? Right there. So for scanning and talking to the launchpad, we use Defensics as well. We also use Bluetooth CTL. And we also use the TI launchpad with a software called Sniffle that was developed by NCC Group. And it specifically scans for long-range advertisements or extended advertisements that are specific to BLE-5. If that answers your question. Mr. McKeeter. Oh, can I get this last question right here? All of the devices, the 19 devices are in the CVE. The extended list has not been updated or published yet. We're still with, you can get it. Yes, yes. And I believe that this is publicly available. There's a QR code. You guys can connect with me on LinkedIn. Thank you for your time.