1 00:00:02,500 --> 00:00:03,380 Hello. 2 00:00:04,220 --> 00:00:05,640 So thank you for joining. 3 00:00:06,120 --> 00:00:09,420 It's an immense honor to be here with you today. 4 00:00:09,500 --> 00:00:11,600 Something that I would never expect to happen. 5 00:00:12,280 --> 00:00:17,260 But this is the hack, the crash and two smoking barrels and how I almost killed an engineer. 6 00:00:17,440 --> 00:00:22,400 And I must mention that basically I had no lawyers advising me before my talk. 7 00:00:22,560 --> 00:00:26,900 So if you will not be able to reach me after the talk, it was nice meeting you. 8 00:00:28,000 --> 00:00:34,540 And now while you're here, because some people in the industry really pissed me off and I wanted to be the one taking the stage. 9 00:00:34,620 --> 00:00:38,040 And now that I got probably your attention, let's start. 10 00:00:38,320 --> 00:00:44,120 I'm Tomas and my pictures are usually so bad that making it black and white didn't really help. 11 00:00:44,120 --> 00:00:46,360 It's like my accent, it can only go worse. 12 00:00:46,580 --> 00:00:49,340 And people also know me as Crow Tom. 13 00:00:49,500 --> 00:00:53,460 And the main thing you need to know about me is that I lead an amazing team. 14 00:00:53,680 --> 00:00:58,660 They are competing in the car hacking village right now and they are second. 15 00:00:59,980 --> 00:01:05,080 And I also love to hack like everything, day, night, whatever. 16 00:01:05,440 --> 00:01:14,360 Mainly to prove to me and you that our world is hacking in really thin threads and that most products are created with two main components. 17 00:01:14,360 --> 00:01:17,580 A bit of laziness and a sprinkle of capitalism. 18 00:01:17,800 --> 00:01:20,620 And for more, you can always go to my website. 19 00:01:21,460 --> 00:01:25,100 What we will really talk about today is vehicle security. 20 00:01:25,100 --> 00:01:30,300 Or how I like to call it, all the stupid things that the automotive industry is doing still in 2024. 21 00:01:30,620 --> 00:01:36,760 We will try to understand where we are, where we are heading and if there is any light in the end of the tunnel. 22 00:01:36,840 --> 00:01:44,460 Hoping to get more people interested in the industry I love and highlight the significance of all the safety related hardware that no one cares about. 23 00:01:45,320 --> 00:01:49,040 What we will definitely not talk about is extreme exploit chains. 24 00:01:49,040 --> 00:01:51,740 I love to hack but I'm the worst at it. 25 00:01:51,740 --> 00:01:58,840 And this means that I'm not here to teach you how to do it but to show you why you should be here too and why you should care. 26 00:01:59,460 --> 00:02:11,000 Also if you were alerted into coming to my talk because of the title, I'm sorry to tell you that during the process of the testing, preparation and development of my talk, no engineers were actually killed or suffocated due to lack of oxygen. 27 00:02:11,840 --> 00:02:19,540 And let's start with the state of the industry and what a better start than one of my favorite examples of my living room on wheels. 28 00:02:19,960 --> 00:02:27,260 As this car is not actually a result of pin by ride episode but still packs more functionality and entertainment than my living room. 29 00:02:27,300 --> 00:02:34,100 This example of a computer on wheels might be one of the extreme ones but it's becoming kind of the norm to be honest. 30 00:02:34,100 --> 00:02:40,920 Vehicles are getting connected, getting richer services and functionality, something that the users ask for I guess. 31 00:02:41,120 --> 00:02:45,940 What they don't ask for though is for these services to be implemented in an insecure way. 32 00:02:46,140 --> 00:02:56,660 We see examples of improper and insecure implementation of new functionality every day and with a handful of examples making the news every week. 33 00:02:56,660 --> 00:03:07,060 And while news outlets are mainly interested in the financial aspect of the thing, um, no one wants like their car to be stolen to be honest. 34 00:03:07,060 --> 00:03:12,460 I will mostly focus today on the safety aspect of those security issues. 35 00:03:13,560 --> 00:03:21,580 And while the industry waits for the security software defined vehicle messiah, today we will start with the complicated architectures that look like this. 36 00:03:21,580 --> 00:03:28,440 Uh, here we have a representative example of a vehicle architecture with individual parts being electronic control units. 37 00:03:28,440 --> 00:03:34,360 Different embedded components that most of the time have a single specific purpose inside the vehicle. 38 00:03:34,580 --> 00:03:44,760 All these are segmented in several isolated buses to avoid external communication or interruption and segment them by functionality and criticality. 39 00:03:44,760 --> 00:03:50,300 What you can also see is the fact that some of the interfaces are getting exposed internally though. 40 00:03:50,380 --> 00:03:57,540 And as we saw previously, this is a kind of necessity considering new technology and requirements needed to exist to make it happen . 41 00:03:57,540 --> 00:04:05,040 As an example, the onboard charging ECU has an exposed interface handling the communication between the charger and the vehicle. 42 00:04:05,040 --> 00:04:11,240 And the main head unit that the user int- uh, interacts with is exposed to the internet through a telematics unit. 43 00:04:11,240 --> 00:04:17,020 Most of the times for SOS calls, OTA updates and more interconnected functionality. 44 00:04:18,060 --> 00:04:28,340 Now of course the purpose of this talk is not to cover everything automotive related, but we need to get a bit of understanding on what we are seeing here and what the demos are representing later. 45 00:04:28,340 --> 00:04:35,700 For this reason we will mainly focus on CAN, which many of you might know as it exists for more than 40 years. 46 00:04:36,320 --> 00:04:42,960 And you would be surprised if I tell you that the majority of the ECUs we are testing still come with this interface. 47 00:04:42,980 --> 00:04:49,540 And of course the need of a single ABS ECU 30 plus years ago does not even come close to modern needs. 48 00:04:49,540 --> 00:04:59,480 So the protocol has several iterations, but still the main issue from my point of view is that there is no encryption as a standard and no message authentication. 49 00:04:59,700 --> 00:05:08,860 This makes CAN messages flowing on those buses prone to interception, injection and replication in cases that no additional protections are implemented. 50 00:05:08,940 --> 00:05:14,100 Which is more common than you think even 40 years after its inception. 51 00:05:14,580 --> 00:05:21,860 Of course this is not only uh the only technology which is currently used in modern vehicles, but it's one of the most commonly used. 52 00:05:21,960 --> 00:05:31,260 And that's why it's important to stress its flaws considering the stubbornness of automotive companies to stick with archaic and insecure technologies. 53 00:05:31,920 --> 00:05:43,700 As we speak for the current state of automotive security, it's worth mentioning that um what started to be enforced to all manufacturers homologating vehicles uh in UNESCO member countries. 54 00:05:43,860 --> 00:05:51,620 Um but I don't want to bore with you as USA does not have any specific binding regulations similar to this. 55 00:05:51,620 --> 00:06:04,020 But it's worth mentioning that it's a starting point for shaping the completely unregulated mess that exists still now in our industry, but of course it's still a regulation with all the negatives that come with it. 56 00:06:05,220 --> 00:06:18,980 Considering that I will have a relatively negative talk, I want to state from now that while the majority of the industry has a negative approach to cyber security, there are several people that still strive for secure and safe vehicles every day with their work, 57 00:06:18,980 --> 00:06:21,040 research and discussions. 58 00:06:21,040 --> 00:06:42,060 Though not everything in sunshine and flowers and automotive is mainly based on hundred plus year old mechanical engineering industries that were recently forced to implement a lot of things they had no idea about and innovate in an environment with really short life cycles and restricting safety requirements that will make most of us cry in any case in many cases. 59 00:06:42,760 --> 00:06:46,680 I struggled a lot though, so let me tell you my story. 60 00:06:47,020 --> 00:07:02,240 To start with, I have to tell you that I'm tired of hearing about the state of automotive security by professionals in commercial events referring to a couple of good examples in the sea of OEMs and tier one suppliers developing products in this industry. 61 00:07:02,460 --> 00:07:06,120 Tesla and BMW are not the only companies out there. 62 00:07:06,320 --> 00:07:15,740 And yes, while I really appreciate their work in some cases, we are here to talk about the industry as a whole and not the two examples that are out of the ordinary. 63 00:07:16,500 --> 00:07:21,360 And I'm saying this because vulnerability disclosure programs are not the norm here. 64 00:07:21,360 --> 00:07:34,040 The small amount of OEMs that escaped from their mechanical engineering past attitude or they started in this new generation of automotive manufacturers is not representative for the whole industry. 65 00:07:34,040 --> 00:07:45,240 And even the companies that incentivize and support researchers, they only give payouts to findings that are heavily security critical but no mention to safety critical issues and exploit chains. 66 00:07:46,680 --> 00:07:54,800 And I'm saying this because the last two years I discovered twenty-five safety related findings out of which only two were accepted until now. 67 00:07:54,820 --> 00:08:00,880 And not because they are out of scope or not applicable, but because there is no way to actually disclose them. 68 00:08:02,160 --> 00:08:17,620 To start talking about them though, we need to get an understanding of one of the protocols we approach today in our example POCs, namely the Unified Diagnostics Protocol, which lives in the application layer of the ECUs and allows diagnostic functionality such as reading and erasing faults, 69 00:08:17,620 --> 00:08:20,480 reprogramming, testing and monitoring. 70 00:08:20,700 --> 00:08:36,880 It commonly consists of several services that handle specific actions and the common one here that we will try to use in these examples, in these demos, is the ECU reset or service 11, which is commonly used to perform a reset on the ECU, as the name implies, 71 00:08:36,880 --> 00:08:38,200 but of different types. 72 00:08:38,200 --> 00:08:45,720 So depending on the supplied subservice we can specify if it's a hard, a soft or any other supported type of reset on the ECU. 73 00:08:45,820 --> 00:08:56,760 And finally I have to mention that the hard ECU reset is in most cases equivalent to a complete power cycle and we will see how this can go really bad for the ECU. 74 00:08:57,860 --> 00:09:04,940 Now the last five years me and my team performed almost 200 penetration testing and research projects in the automotive industry. 75 00:09:07,400 --> 00:09:19,020 And this means that first of all we got a broad understanding and experience of how security is implemented and discovered several nasty things along the way. 76 00:09:19,180 --> 00:09:28,720 While we tried to work with all these people to make the products more secure, the issue is that I'm not able to talk about those, so I had to find a way to share some of those juicy things. 77 00:09:28,820 --> 00:09:35,620 So it was during a warm summer in Arizona when I had a rental unit from a brand which I tried my best to hide here. 78 00:09:36,480 --> 00:09:48,540 And during my free time and during night as if I was testing during the day in Arizona I would not be here, I started working like poking around this thing that you see there and I had my first hit. 79 00:09:49,760 --> 00:09:58,920 In this case we triggered something that is not 100 percent clear what it is from the context given in the error created on the heads up display. 80 00:09:59,100 --> 00:10:07,300 For this reason we need to dig deeper and understand the architecture of the vehicle, understand how, why and to which extent something is affected. 81 00:10:07,460 --> 00:10:08,860 Is this error real? 82 00:10:08,860 --> 00:10:10,840 Is it expected behavior? 83 00:10:10,840 --> 00:10:14,440 Does it even have any security or safety impact or not? 84 00:10:14,440 --> 00:10:22,240 This is only a part of the questions that I have to answer at this point in order to move forward. 85 00:10:23,620 --> 00:10:25,140 And that's what I did. 86 00:10:25,140 --> 00:10:40,200 In the first demo you see how we discovered that the affected ECU and by issuing a simple ECU reset on the user accessible onboard diagnostics port, the ECU resets and the light of the affected blind spot detection sensor is engaged. 87 00:10:41,280 --> 00:10:43,240 Of course I didn't stop there. 88 00:10:43,760 --> 00:10:49,360 And because at this point a lot of educated guesses can be done considering what was discovered. 89 00:10:49,360 --> 00:10:55,880 As is, the finding has no big safety related severity outside of the fact that it can distract the driver. 90 00:10:55,880 --> 00:11:05,160 By listing the known facts though we can assume where the affected ECU is located in the architecture and how this can be escalated further by a malicious user. 91 00:11:05,220 --> 00:11:09,780 What we know is that first of all we can power cycle the ECU. 92 00:11:09,800 --> 00:11:14,320 And that there are no preconditions that can restrict this action. 93 00:11:14,320 --> 00:11:17,900 Like a vehicle speed restriction for example. 94 00:11:18,240 --> 00:11:27,780 Additionally from the function of the assistive driving we can assume that the blind spot detection sensor is connected with the functionality of the ADAS itself. 95 00:11:28,660 --> 00:11:33,680 By this we can easily prove that the sensor can be triggered mid drive. 96 00:11:33,680 --> 00:11:39,800 As a direct result it can confuse the driver because of the engagement of a sensor in an unexpected situation. 97 00:11:39,800 --> 00:11:54,620 But more importantly we can engage serious safety implications to the ADAS system like steering interruption during a lane change or even breaking engagement during a false safety related incident on the blind spot detection sensor. 98 00:11:54,620 --> 00:11:57,860 Of course I don't want to take these assumptions myself. 99 00:11:58,560 --> 00:12:04,940 And I hope I don't need to mention that you should always take safety related issues in a safe environment. 100 00:12:05,820 --> 00:12:08,100 Who has the ability and the environment? 101 00:12:08,100 --> 00:12:09,580 The manufacturer of course. 102 00:12:10,120 --> 00:12:14,380 And for this reason I had to find a way to report the finding and prove those assumptions. 103 00:12:15,160 --> 00:12:25,260 Now going through the process of vulnerability disclosure I initiated by trying to find a communication channel with the OEM a couple of years ago that this happened. 104 00:12:25,340 --> 00:12:28,940 The problem is that there was no vulnerability disclosure program. 105 00:12:28,940 --> 00:12:34,780 No one was answering to me regarding this from the contact options and the people I discovered online. 106 00:12:35,600 --> 00:12:37,060 But of course I didn't give up. 107 00:12:37,060 --> 00:12:38,260 I kept hacking. 108 00:12:38,760 --> 00:12:48,060 And getting our hands a bit dirtier here we need to introduce the main access control mechanism in UDS diagnostics called security access. 109 00:12:48,060 --> 00:12:52,100 Which as you understand from my diagram is a simple challenge response. 110 00:12:52,100 --> 00:13:01,880 The client requests a random seed, the ECU generates what seed, uh, that seed and calculates the key using the secret algorithm and secret key. 111 00:13:01,940 --> 00:13:14,920 And after that the client needs to know the same secrets, use the random seed and calculated key to send to the ECU where the ECU verifies uh, verifies this uh, calculated key and grants or rejects that access to the client. 112 00:13:15,340 --> 00:13:21,640 The implementation highly depends on the cyber security requirements of the OEM most of the times. 113 00:13:21,640 --> 00:13:35,040 Uh, and when these are loosely developed we see some unimaginably sloppy implementations, backdoors and weak sources of randomness um, or any other random aspect of uh, the process. 114 00:13:36,740 --> 00:13:49,480 Where this access control is used commonly I would say mostly software updates and reprogramming and the most commonly used in high severity instances uh, is these ones. 115 00:13:49,480 --> 00:13:57,080 Um, mainly also the ones that we care about and that shows the level of access they can give us in cases of compromise. 116 00:13:57,340 --> 00:14:01,340 And of course it's automo- automotive so the process is not encrypted. 117 00:14:01,340 --> 00:14:05,640 But it's behind an IDPS and it's a challenge response, right? 118 00:14:06,840 --> 00:14:15,360 Knowing that the process is unencrypted we already know that we can intercept and replay a seed and the applicable calculated key for the process. 119 00:14:15,380 --> 00:14:23,260 Message authentication also does not exist in 99 percent of the times here so that should not be an issue most probably. 120 00:14:24,620 --> 00:14:35,380 But even with access to the bus managing to intercept the seed and the applicable key should not yield to elevated access as the process heavily based on the random aspect of the seed. 121 00:14:35,820 --> 00:14:43,340 Um, if we cannot control the seed we cannot replay a successful seed key pair to obtain elevated access to the target ECU. 122 00:14:43,850 --> 00:14:45,080 Or can we? 123 00:14:45,220 --> 00:14:54,200 And going back to our friend ECU reset I want to remind you that one of the subservices capable of full power cycling the ECU is the hard ECU reset. 124 00:14:54,200 --> 00:14:56,560 This is the direct outcome though. 125 00:14:56,760 --> 00:15:02,960 Indirectly by completing a power cycle we also perform a reset to the system clock in many cases. 126 00:15:04,440 --> 00:15:07,120 And here we see the effects of this assumption. 127 00:15:07,260 --> 00:15:25,940 Uh, while the seed of the target ECU can be considered really secure at 32 bytes we can see that we can reset the system clock with an ECU reset and after a predefined and fixed delay between the reset and the seed request the supplied random seed is always the same with a staggering 100 percent accuracy. 128 00:15:26,740 --> 00:15:34,760 In this case we invalidated the assumption of what is needed in a challenge response when we can intercept successfully a seed and key pair. 129 00:15:34,760 --> 00:15:39,980 With that in mind we only need one seed key pair to obtain elevated access to the unit. 130 00:15:39,980 --> 00:15:45,760 Which can potentially be obtained at the service visit or during an OTA update from the head unit. 131 00:15:46,780 --> 00:15:54,920 Fast forward two years later and I eventually discovered someone that was willing to help me report those issues to the OEM. 132 00:15:55,060 --> 00:16:01,720 I prepared a well structured report of my vulnerabilities and sent it to the contact point working for the OEM. 133 00:16:02,280 --> 00:16:06,160 The issues were acknowledged a couple of days later but privately. 134 00:16:06,220 --> 00:16:17,180 At this point we know that these findings were not only affecting the model and model year I tested but several models of the brand and numerous model years. 135 00:16:17,180 --> 00:16:21,440 So we are talking about a significant number of affected vehicles. 136 00:16:22,280 --> 00:16:24,540 The drama starts here though. 137 00:16:24,920 --> 00:16:32,140 Despite the help from the contact point OEM decided that the cost of fixing the issue exceeds the expectations for this model. 138 00:16:32,180 --> 00:16:42,240 The excuse is that the future electrical and electronic architecture that they designed will mitigate those issues in the models for 2025 and 2026. 139 00:16:42,240 --> 00:16:52,160 Which of course directly means that the currently sold architecture is still vulnerable and that the OEM is not willing to either fix or disclose the findings publicly. 140 00:16:52,280 --> 00:16:56,160 As a romantic myself I decided to not publish the findings. 141 00:16:56,160 --> 00:17:05,880 I wanted to act professionally especially in comparison to the norm in my industry and irresponsibility brings chaos, I'm not the one feeding this beast. 142 00:17:06,980 --> 00:17:21,480 Trying to find a solution I decided to propose a responsible disclosure to a generic VDP, namely the ASRG, Automotive Security Research Group, which out of many things they are also an officially recognized CNA. 143 00:17:22,280 --> 00:17:29,260 So after a short discussion with my contact point and the OEM I decided to report the issue to ASRG. 144 00:17:29,260 --> 00:17:43,360 Something that needs to be mentioned here for the sake of completeness is that I disclosed the finding in a generic email from the website of the VDP. 145 00:17:43,740 --> 00:17:50,060 And not to anyone directly, just the generic available email address that was on the website. 146 00:17:50,860 --> 00:17:57,760 At this point and after a couple of email exchanges with me the OEM and the ASRG, the OEM stops responding completely. 147 00:17:58,520 --> 00:18:14,200 I was completely clueless of what there is to follow despite my continuous effort to resolve the issue and find why this happened, the OEM wasn't responding to all of our requests or to any of our requests. 148 00:18:14,420 --> 00:18:24,960 And not only they didn't give me a reason but I was directly accused by third parties which I never contacted or revealed my findings to that I'm collaborating with hostile nations. 149 00:18:25,320 --> 00:18:34,820 You don't accuse me of doing something like this especially when I tried so much to responsibly disclose this shit and the only thing they did was find excuses. 150 00:18:35,280 --> 00:18:40,800 And to be honest I don't want to dox anyone, this is not why I'm here. 151 00:18:41,160 --> 00:18:46,840 I'm here to share my experience and maybe shake the industry a bit out of this limbo they're into. 152 00:18:47,760 --> 00:19:00,980 But what happened is that the person that handled my case in the public VDP had a citizenship of a supposed hostile nation which the legal department of the OEM decided that it's not good for their image. 153 00:19:01,160 --> 00:19:20,240 You want to hear some plot twist, basically this guy does not live in this nation, he has another residency on the homeland of the OEM and guess what I recently learned, he has chosen to handle this topic because of an affiliation with the OEM and he was the best person for this job. 154 00:19:20,240 --> 00:19:24,780 But the OEM research can go that far of course or they didn't even care to be honest. 155 00:19:25,060 --> 00:19:43,540 After all the drama and after I contact all the parties saying that this level of accusations from third parties and the fact that they disclosed the private findings outside of the legal framework was unacceptable, I also announced to them that the findings will be published on the day of DEF CON today. 156 00:19:45,020 --> 00:19:47,880 And of course this is the day they answered. 157 00:19:49,460 --> 00:20:02,160 Something that needs to be mentioned here is that during the initial discussion for the findings I was clearly asked if the finding is discovered by directly connecting to the ECU or from the OBD port. 158 00:20:02,600 --> 00:20:13,320 As the OBD port is user accessible and the findings are applicable and if it's only applicable to the direct connection we'll mark the findings as mitigated by the IDPS system. 159 00:20:13,320 --> 00:20:16,240 Something that I don't agree but it was reasonable. 160 00:20:16,240 --> 00:20:18,240 This though, not so much. 161 00:20:21,460 --> 00:20:38,380 So yeah today I'm releasing these two vulnerabilities, as I said I don't want to dox anyone, I want a safe future with cars that can support their functionality in a secure way but in this case the OEM instead of communicating decided to play politics and it's not only them, 162 00:20:38,380 --> 00:20:39,840 this is the common trend. 163 00:20:40,040 --> 00:20:43,880 Researchers are not the ones to blame here with falsified accusations. 164 00:20:43,920 --> 00:20:48,220 As in most cases we are more than happy to collaborate and help each other. 165 00:20:49,540 --> 00:20:51,940 And not only researchers, pen testers too. 166 00:20:51,940 --> 00:20:54,440 Let's crash it and see where it brings us in this case. 167 00:20:54,440 --> 00:20:57,900 As we saw previously, politics play a big role. 168 00:20:57,900 --> 00:21:00,960 Not only in public disclosure but in private projects too. 169 00:21:01,200 --> 00:21:11,240 Throughout my time with automotive security projects I heard a lot of excuses by engineers and management on why they don't want to accept or fix an issue. 170 00:21:11,280 --> 00:21:21,880 The usual suspects are loosely developed requirements or internal or external, strict deadlines and long product life cycles along others of course. 171 00:21:22,420 --> 00:21:27,380 But my conclusion is always that it's a culture issue. 172 00:21:27,380 --> 00:21:34,600 Either the company culture or the respective local culture affects the way companies consume, approach and mitigate issues. 173 00:21:34,600 --> 00:21:52,620 Of course it's a complex issue where regulators, governments and external parties are contributing to the development and production of a full vehicle but in the end the people I interacted and worked with out of these projects construct my perception of this industry. 174 00:21:53,200 --> 00:22:01,040 But considering the culture and how the findings are approached, what do we need to do to persuade them about the severity? 175 00:22:01,040 --> 00:22:06,500 Which level should we reach and which people should we contact? 176 00:22:06,500 --> 00:22:11,660 Who is responsible for the person that will die if my next finding is not fixed? 177 00:22:12,620 --> 00:22:21,000 Even if you develop the target with security in mind and with the best of intentions, logical flaws can exist and exploited. 178 00:22:21,000 --> 00:22:33,060 Developers of different components usually only interact with a vehicle simulation ignoring how one action can have a security or safety event outside the scope of the functional testing. 179 00:22:34,200 --> 00:22:40,780 And this is how safety related findings can be discovered in most unexpected for the manufacturer behavior. 180 00:22:41,060 --> 00:22:48,720 A completely unrelated issue of seemingly minimal security impact can have a devastating safety outcome. 181 00:22:48,720 --> 00:22:59,340 As a first use case, we can easily get the example of electric vehicles where I was testing the security not only of a battery management system on the onboard charging but the batteries themselves. 182 00:22:59,400 --> 00:23:08,660 By analyzing the communication and while I was close to the car, I discovered that there is a sound generated when I was injecting an unauthenticated message. 183 00:23:08,660 --> 00:23:14,920 When I started discussing with one of the engineers, it ended up being the battery contractors of the AV. 184 00:23:14,980 --> 00:23:24,400 I was immediately concerned at that point knowing that wear and tear of the contact surface can increase the resistance and lead to excessive heating. 185 00:23:24,740 --> 00:23:31,660 And you know what comes after excessive heating and localized especially heating for extended periods of time? 186 00:23:31,660 --> 00:23:33,060 It's of course fire. 187 00:23:33,640 --> 00:23:44,200 Of course I cannot burn an engineer and I cannot conduct a test to prove the physics behind it without risking the battery pack burning nonstop for days. 188 00:23:44,260 --> 00:23:45,540 So the topic ended there. 189 00:23:45,540 --> 00:23:46,520 The vehicle is out. 190 00:23:46,520 --> 00:23:47,880 All engineers are safe. 191 00:23:47,880 --> 00:23:51,060 A couple of hundreds of thousands of users are not. 192 00:23:51,740 --> 00:23:53,640 Same applies to hydrogen. 193 00:23:53,920 --> 00:24:08,420 And the loving OEM that could not understand why small leaks in the hydrogen tank can affect the specific rotations of the valve and can lead to suffocation of the whole garage we were working in in a couple of minutes. 194 00:24:09,620 --> 00:24:17,760 As I said in the start, I have no magical exploit chains but to prove this finding in an effective way doesn't take much. 195 00:24:17,760 --> 00:24:32,060 Considering that at the current state we can easily spoof messages in an unencrypted way and perform a power cycle with an unrestricted service, we can easily find a way to reproduce the issue from an exposed interface. 196 00:24:32,060 --> 00:24:39,420 Because most of the times manufacturers try to use the obscurity factor as a way of mitigation for those findings. 197 00:24:39,860 --> 00:24:52,460 But as we saw in the architecture, modern vehicles are getting more connected than ever so find the exposed interface, directly communicate with the ECU and start sending. 198 00:24:52,460 --> 00:24:53,780 That's my advice. 199 00:24:54,120 --> 00:24:56,760 Even if it needs some cutting around. 200 00:24:57,740 --> 00:25:07,560 Now of course after that you have to listen to all the excuses about how your exploit is not realistic and how physical security mitigates issues in digital security. 201 00:25:07,560 --> 00:25:15,860 When at this point it's time to put them inside the vehicle and show them a juicicle injections where they will either believe you or they will believe in God. 202 00:25:16,520 --> 00:25:25,840 Of course for safety reasons and when I'm ready to unleash my magical exploit chain there is always some party pooper that restricts me from doing so. 203 00:25:25,840 --> 00:25:36,720 And thank you to this party pooper but I guess in many times it's not only that they don't believe you but they even want to prove you wrong during the night because that's who we are. 204 00:25:37,260 --> 00:25:45,800 Next day I found this in the garage after some engineer tried to engage the injection from the OBD port for the sake of completeness. 205 00:25:46,080 --> 00:25:48,400 This is how I left it the previous day. 206 00:25:49,520 --> 00:26:02,040 Continuing with the trend of naiveness though, both from mine and the engineer's side I got my hands on an ECU unrelated to commercial projects and I thought here we are, let's do some exploitation. 207 00:26:02,320 --> 00:26:16,120 So I started my common workflow trying to exploit UDS and trying to evaluate the source of randomness but after several hours it didn't seem feasible so I had to resort in other solutions. 208 00:26:17,320 --> 00:26:22,020 So I did this thing apart and started getting a better understanding of its guts. 209 00:26:22,020 --> 00:26:35,300 I analyzed the hardware parts one by one and started getting deeper inside my rabbit hole to realize that it's one more case of automotive SOC architecture with all the pros and cons that come with it. 210 00:26:35,300 --> 00:26:53,420 The biggest thing that has to be said about it and which will help us understand some of the issues later on is the fact that ECUs are considered safety related components which require real time responsiveness due to the safety related nature on the products that utilize them. 211 00:26:53,780 --> 00:26:58,640 So by opening one of the targets we can easily see what happens here. 212 00:26:58,640 --> 00:27:02,540 Not only one SOC but two exist on the target board. 213 00:27:02,820 --> 00:27:06,560 And this is because of the safety related functionality we mentioned earlier. 214 00:27:06,720 --> 00:27:12,320 An instruction needs to be executed twice in either two different controllers. 215 00:27:12,980 --> 00:27:21,860 In this case the secure and application controller which we discovered or two different isolated cores and then compared between the two. 216 00:27:21,860 --> 00:27:25,720 If the output of the instruction is the same it gets executed. 217 00:27:25,720 --> 00:27:30,120 If not a fallback procedure has to be followed depending on the system. 218 00:27:30,120 --> 00:27:41,220 Of course this architecture is applicable to higher severity safety related devices like airplanes with more secure controllers needed but this is out of the scope at least for today. 219 00:27:46,230 --> 00:27:47,610 Why this is important? 220 00:27:48,210 --> 00:28:02,750 Because in the devices in which it is applicable the failure will result in loss or damage of equipment, environmental harm, injury or even death of some users or the surrounding people. 221 00:28:03,030 --> 00:28:17,510 And moving closer to the hardware we see that not only the supplier was kind enough to spoil the fun and let us tell us when one of the JTAG headers is on the board but they included a second header for the secure controller. 222 00:28:17,810 --> 00:28:25,430 Unfortunately there after connecting my debugger I discovered that both the JTAG interfaces are locked. 223 00:28:26,810 --> 00:28:33,190 And after I desperately started clicking on my power supply I realized something really interesting. 224 00:28:33,510 --> 00:28:39,270 And here you can see, uh, did it start? 225 00:28:39,270 --> 00:28:39,290 I think it did . 226 00:28:39,930 --> 00:28:50,050 Yes, so here you can see that the device is locked by normally connecting my JTAG debugger to the unit, to the target ECU. 227 00:28:50,870 --> 00:29:03,710 And by connecting the JTAG on the first seconds after boot, you can see a nice history that we get debug on the secure controller. 228 00:29:04,050 --> 00:29:06,150 So yes, we got access to the secure controller. 229 00:29:06,150 --> 00:29:12,590 In this case we basically got to enable the debug access in a really short period of time during boot. 230 00:29:13,150 --> 00:29:17,650 And as a result we can control the execution and dump the memory of the vulnerable controller. 231 00:29:17,930 --> 00:29:19,430 I love automotive security. 232 00:29:20,090 --> 00:29:44,410 I know that you're not yet tired of the fails so on the same ECU and because we are talking about the telematics unit there is a Qualcomm modem SOC running which comes with these magical pins that if sorted provide us with a nice Qualcomm download mode and after discovering some other pins seemingly matching a USB port pin out and performing the dangerous act of connecting a random USB from an ECU purchased from eBay, 233 00:29:44,410 --> 00:29:47,310 we realize that our assumptions are correct. 234 00:29:47,770 --> 00:29:58,190 After I dumped the firmware with more than one ways as you see, I realized that the automotive related controller has several references to the system clock which confused me even more. 235 00:29:58,190 --> 00:30:02,070 As my process of discovering weak sources of randomness until now was unbeatable. 236 00:30:02,210 --> 00:30:03,830 So what is happening here? 237 00:30:04,890 --> 00:30:15,470 Went back to my terminal and performed some more tests and as you see here, when the seed capture goes faster, we can make some really important observations. 238 00:30:15,830 --> 00:30:19,470 Which is that the middle byte of the seed is incrementing by one. 239 00:30:20,290 --> 00:30:25,470 My assumption seemed more correct than ever but I was also more confused than ever. 240 00:30:25,470 --> 00:30:28,410 There was some missing piece that I was struggling to find. 241 00:30:28,410 --> 00:30:32,970 Some implemented mitigation that was in front of me but could not see it. 242 00:30:32,970 --> 00:30:34,810 What this mitigation was. 243 00:30:36,530 --> 00:30:45,670 Of course security through obscurity as always with automotive and I started thinking what if the ECU is restricting software power cycles for safety reasons. 244 00:30:45,670 --> 00:30:51,090 As we are talking about a telematics unit that has to be always available for SOS calls. 245 00:30:51,510 --> 00:30:57,650 And if that's the case, how can we control a power cycle in more ways than an ECU reset? 246 00:30:58,290 --> 00:31:01,370 And that's where my favorite relay comes into play. 247 00:31:01,610 --> 00:31:11,070 And we immediately see not only duplicate but a complete compromise of the unit here. 248 00:31:11,490 --> 00:31:19,690 POC for this will be published under my tool Karin Karibu Next but it's nothing that you cannot easily make in a couple of minutes. 249 00:31:19,690 --> 00:31:33,510 The main reason that this happens is because there is always a battery in those telematics systems to mitigate downtime and unexpected power cycle that will restrict the unit from performing an SOS call during an emergency. 250 00:31:34,070 --> 00:31:38,550 So we got a bit pranked for a second there but found a way through eventually. 251 00:31:39,330 --> 00:31:54,290 And for the smarties out there, this is not only applicable to controlled environments with power supplies but many of these nowadays come with external or internal for passenger vehicles battery isolators. 252 00:31:54,290 --> 00:32:02,590 Mainly used in safety related incidents to cut power and mitigate the risk of fires and other issues. 253 00:32:02,710 --> 00:32:08,430 But I used it to bypass restrictions that were only possible on individual ECUs. 254 00:32:08,430 --> 00:32:16,790 And now by controlling the power supply externally through the battery isolator, we can perform all these attacks in a combined manner in full vehicles. 255 00:32:17,310 --> 00:32:21,250 Here we see the exposed battery isolator of heavy duty vehicles. 256 00:32:21,810 --> 00:32:24,690 And here we see something I discovered a couple of weeks ago. 257 00:32:24,690 --> 00:32:37,710 The battery isolator of a passenger vehicle which of course made me laugh but it will make me cry probably in the future when I will get into more politics with the manufacturers about the applicability of my future findings. 258 00:32:38,510 --> 00:32:42,470 This is a sample list of the applicable findings for this ECU. 259 00:32:42,850 --> 00:32:46,490 And of course I had no response so I guess nothing to see here. 260 00:32:47,210 --> 00:32:50,030 But it's not only dark and stormy days. 261 00:32:50,030 --> 00:33:08,430 While everything we said now is applicable to most of the OEMs, while this is only a small subset of the issues we see every day and they clearly are some relics of vulnerabilities discovered in modern vehicles and components. 262 00:33:08,430 --> 00:33:24,790 And while several CVEs are currently stuck, you saw because of the unacceptable attitude of the industry, there is always someone that breaks the norm and makes us smile not because they made everything perfect but because they proved a point. 263 00:33:24,970 --> 00:33:37,810 So one small manufacturer came to us for some common service, we started evaluating the unit and after several tries we didn't manage to discover a single entry point to the custom ECU. 264 00:33:37,810 --> 00:33:43,330 While the hardware used was one of the cheapest of the self hardware a developer can buy. 265 00:33:43,710 --> 00:33:45,990 And what was the solution in this case? 266 00:33:46,130 --> 00:33:50,010 One of the cheapest of the self hardware a developer can buy. 267 00:33:50,110 --> 00:33:58,530 And we are talking about this mighty ESP32, a low cost, low power SOC that was fitting perfectly the needs of the OEM in this case. 268 00:33:58,530 --> 00:34:04,380 Of course it's not built for safety critical functionality and its main focus is automation. 269 00:34:04,380 --> 00:34:11,760 But for the case we needed, for the case needed, there was nothing more needed by the OEM in this case. 270 00:34:11,760 --> 00:34:15,260 And from a security standpoint it proved a big point. 271 00:34:15,260 --> 00:34:25,900 Because this $10 ESP32, in contrary to what comes with hundreds of thousands of dollars of automotive, worth of automotive SOCs, comes standard with an RNG. 272 00:34:25,900 --> 00:34:38,340 It uses a combination of thermal noise sourced from the hardware analog to digital converter and combines it with the asynchronous clock mismatch for true random generation as we call it in this industry. 273 00:34:38,760 --> 00:34:45,500 And I say it again, with $10, but does it solve completely the problem here? 274 00:34:45,640 --> 00:34:47,120 Of course not. 275 00:34:47,200 --> 00:34:49,580 There are still ways to bypass these mitigations. 276 00:34:49,580 --> 00:34:56,540 But the point is how difficult and financially viable you make it for an attacker to perform an attack like this. 277 00:34:56,600 --> 00:35:02,660 It's not about how sophisticated an exploit is in the end, it's about who has the biggest budget to invest. 278 00:35:02,660 --> 00:35:12,460 So the mitigation is clearly about how expensive you make it for an attacker to break into your system, steal your IP or even potentially perform coordinated attacks. 279 00:35:13,040 --> 00:35:26,960 And while looking at systems like the PlayStation running non-safety critical chips that implement state-of-the-art mitigations for these issues and our computer on wheels cannot even mitigate the basics, I'm left to wonder, is there any light in the end of the tunnel? 280 00:35:27,360 --> 00:35:32,840 And my answer is that it's up to us, all of us here, to make the best out of it. 281 00:35:32,840 --> 00:35:36,140 The best out of our work and our research. 282 00:35:36,180 --> 00:35:41,760 To pass out our culture to the people that we're working with, from the higher to the lower level. 283 00:35:41,760 --> 00:35:49,420 Not with bitching, not with attitudes, but with scientific proof, with our POCs, with our posts and our talks. 284 00:35:49,440 --> 00:35:52,380 Let's make the world a safer place, one POC at a time. 285 00:35:52,380 --> 00:35:58,640 And in honor to this year's theme, remember, to take back the internet, we need to engage. 286 00:35:59,360 --> 00:36:00,380 Thank you. 287 00:36:10,630 --> 00:36:12,170 Any questions? 288 00:36:23,960 --> 00:36:26,120 Hi, awesome talk, thank you. 289 00:36:27,320 --> 00:36:37,920 Did you think about going to NHTSA, the National Highway Transportation Safety Administration, who is responsible for implementing safety standards for car manufacturers? 290 00:36:37,920 --> 00:36:41,080 Yeah, look, there are several things that we can do. 291 00:36:41,080 --> 00:36:42,100 I agree with you. 292 00:36:42,100 --> 00:36:49,920 The problem is that you have to take several steps into reaching a point that I will follow your advice. 293 00:36:49,920 --> 00:36:52,880 I mean, the specific advice you gave right now. 294 00:36:52,880 --> 00:36:59,660 It's like, I agree with you, but I would expect that the manufacturer already handled it. 295 00:36:59,660 --> 00:37:03,460 Of course, in many of the cases, maybe I did it. 296 00:37:03,460 --> 00:37:06,040 I cannot reveal it to you, but maybe I did it. 297 00:37:06,440 --> 00:37:14,240 But I have to say that there is a need for something to change in this industry, and that's what I had to clarify here. 298 00:37:15,740 --> 00:37:23,860 Totally agree, and that would be the perfect world, wouldn't it, if people, and I think most engineers, want to do the right thing. 299 00:37:23,860 --> 00:37:28,780 They want to operate securely and write good code and all the rest of it. 300 00:37:28,780 --> 00:37:39,060 But then, to your point, there's that sprinkle of capitalism and budgetary this and that, and somebody says, well, it's good enough. 301 00:37:39,260 --> 00:37:48,220 And then, you know, that's why we do sometimes need those government agencies, even though they themselves are not the most efficient, right? 302 00:37:49,100 --> 00:37:49,980 I agree. 303 00:37:49,980 --> 00:37:57,840 There needs to be a balance, but I think there needs to be a balance in all the ways, you know, even for who talks where. 304 00:37:57,840 --> 00:38:01,760 You know, there are the commercial conferences that everyone brags about from the industry. 305 00:38:01,760 --> 00:38:03,120 We also need to talk about stuff. 306 00:38:03,120 --> 00:38:08,360 We also need to be able to get the stand and start discussing about these things. 307 00:38:08,940 --> 00:38:09,840 Thank you very much. 308 00:38:09,840 --> 00:38:10,200 It was awesome. 309 00:38:10,200 --> 00:38:10,920 Thank you. 310 00:38:12,500 --> 00:38:14,300 Hi, again, thank you for the talk. 311 00:38:14,300 --> 00:38:15,360 Amazing talk. 312 00:38:15,540 --> 00:38:23,220 Do you think emerging technologies such as automotive Ethernet or secure CAN transceivers might help mitigate some of the risk? 313 00:38:23,560 --> 00:38:24,900 Definitely, definitely. 314 00:38:24,900 --> 00:38:26,780 And we see a change in the industry. 315 00:38:26,780 --> 00:38:36,780 As I said, software-defined vehicles and centralized architecture is something that we hear about a lot of years now, but it's not yet implemented in many vehicles. 316 00:38:36,780 --> 00:38:46,560 And that's why I was talking about the differences between mainstream OEMs and the new type of OEMs that are basically IT companies that started building cars. 317 00:38:46,560 --> 00:38:47,920 So, this is the main difference. 318 00:38:47,920 --> 00:38:51,580 They have way more experience in this, but the industry needs to catch up. 319 00:38:51,580 --> 00:38:54,800 They are exposing so many things and they need to do something about it. 320 00:38:55,200 --> 00:38:56,040 Thank you. 321 00:38:56,040 --> 00:38:56,740 Thanks. 322 00:38:58,220 --> 00:38:59,700 Thank you for your talk. 323 00:38:59,700 --> 00:39:00,360 This was great. 324 00:39:00,360 --> 00:39:02,040 My question is regarding your toolkit. 325 00:39:02,040 --> 00:39:06,480 Is everything, you know, Hadoop, Python... My question is about your toolkit. 326 00:39:06,480 --> 00:39:20,420 Is everything Python scripts that you build or is there a software platform that we... No, basically it's a modular tool and this is not only the POC, but you can use it to perform the same attacks to other vehicles. 327 00:39:20,480 --> 00:39:22,160 What's the name of that tool? 328 00:39:22,480 --> 00:39:23,680 Carrying Caribou Next. 329 00:39:23,680 --> 00:39:33,640 It's a fork of the original Carrying Caribou, which is a state of the industry for a lot of years, but I just made the fork because of the slowness of the development of this project. 330 00:39:33,640 --> 00:39:34,220 Thank you. 331 00:39:34,220 --> 00:39:35,320 You're welcome.