[00:02.500 --> 00:09.940] Hello. So thank you for joining. It's an immense honor to be here with you today. Something [00:09.940 --> 00:14.520] that I would never expect to happen. But this is the hack, the crash and two smoking barrels [00:14.960 --> 00:20.660] and how I almost killed an engineer. And I must mention that basically I had no lawyers [00:20.660 --> 00:25.740] advising me before my talk. So if you will not be able to reach me after the talk, it [00:25.740 --> 00:30.860] was nice meeting you. And now while you're here, because some people in the industry [00:30.860 --> 00:35.840] really pissed me off and I wanted to be the one taking the stage. And now that I got probably [00:35.840 --> 00:42.600] your attention, let's start. I'm Tomas and my pictures are usually so bad that making [00:42.600 --> 00:46.760] it black and white didn't really help. It's like my accent, it can only go worse. And [00:46.760 --> 00:51.800] people also know me as Crow Tom. And the main thing you need to know about me is that I [00:51.800 --> 00:57.860] lead an amazing team. They are competing in the car hacking village right now and they are [00:57.860 --> 01:06.960] second. And I also love to hack like everything, day, night, whatever. Mainly to prove to me [01:06.960 --> 01:12.700] and you that our world is hacking in really thin threads and that most products are created [01:12.700 --> 01:18.520] with two main components. A bit of laziness and a sprinkle of capitalism. And for more, [01:18.520 --> 01:25.180] you can always go to my website. What we will really talk about today is vehicle security. Or [01:25.180 --> 01:29.380] how I like to call it, all the stupid things that the automotive industry is doing still in [01:29.380 --> 01:35.580] 2024. We will try to understand where we are, where we are heading and if there is any light [01:35.580 --> 01:39.860] in the end of the tunnel. Hoping to get more people interested in the industry I love and [01:39.860 --> 01:45.580] highlight the significance of all the safety related hardware that no one cares about. What [01:45.580 --> 01:50.760] we will definitely not talk about is extreme exploit chains. I love to hack but I'm the [01:50.760 --> 01:56.140] worst at it. And this means that I'm not here to teach you how to do it but to show you why you [01:56.140 --> 02:01.600] should be here too and why you should care. Also if you were alerted into coming to my talk [02:01.600 --> 02:05.220] because of the title, I'm sorry to tell you that during the process of the testing, [02:05.220 --> 02:09.820] preparation and development of my talk, no engineers were actually killed or suffocated due [02:09.820 --> 02:15.560] to lack of oxygen. And let's start with the state of the industry and what a better [02:15.560 --> 02:21.400] start than one of my favorite examples of my living room on wheels. As this car is not [02:21.400 --> 02:25.360] actually a result of pin by ride episode but still packs more functionality and [02:25.360 --> 02:30.060] entertainment than my living room. This example of a computer on wheels might be one of the [02:30.060 --> 02:34.820] extreme ones but it's becoming kind of the norm to be honest. Vehicles are getting [02:34.820 --> 02:40.140] connected, getting richer services and functionality, something that the users ask for I [02:40.140 --> 02:44.720] guess. What they don't ask for though is for these services to be implemented in an [02:44.720 --> 02:49.980] insecure way. We see examples of improper and insecure implementation of new [02:49.980 --> 02:56.800] functionality every day and with a handful of examples making the news every week. And [02:56.800 --> 03:03.740] while news outlets are mainly interested in the financial aspect of the thing, um, no one [03:03.740 --> 03:09.440] wants like their car to be stolen to be honest. I will mostly focus today on the safety [03:09.440 --> 03:15.920] aspect of those security issues. And while the industry waits for the security software [03:15.920 --> 03:20.520] defined vehicle messiah, today we will start with the complicated architectures that look [03:20.520 --> 03:24.900] like this. Uh, here we have a representative example of a vehicle architecture with [03:24.900 --> 03:30.300] individual parts being electronic control units. Different embedded components that most [03:30.300 --> 03:36.060] of the time have a single specific purpose inside the vehicle. All these are segmented in [03:36.060 --> 03:42.180] several isolated buses to avoid external communication or interruption and segment them [03:42.180 --> 03:47.620] by functionality and criticality. What you can also see is the fact that some of the [03:47.620 --> 03:52.080] interfaces are getting exposed internally though. And as we saw previously, this is a [03:52.080 --> 03:57.080] kind of necessity considering new technology and requirements needed to exist to make it [03:57.080 --> 04:02.200] happen. As an example, the onboard charging ECU has an exposed interface handling the [04:02.200 --> 04:07.060] communication between the charger and the vehicle. And the main head unit that the user [04:07.060 --> 04:11.820] int- uh, interacts with is exposed to the internet through a telematics unit. Most of the [04:11.820 --> 04:18.980] times for SOS calls, OTA updates and more interconnected functionality. Now of course the [04:18.980 --> 04:23.600] purpose of this talk is not to cover everything automotive related, but we need to get a [04:23.600 --> 04:28.340] bit of understanding on what we are seeing here and what the demos are representing later. [04:28.340 --> 04:34.180] For this reason we will mainly focus on CAN, which many of you might know as it exists for [04:34.180 --> 04:40.400] more than 40 years. And you would be surprised if I tell you that the majority of the ECUs we [04:40.400 --> 04:46.320] are testing still come with this interface. And of course the need of a single ABS ECU 30 [04:46.320 --> 04:51.500] plus years ago does not even come close to modern needs. So the protocol has several [04:51.500 --> 04:57.440] iterations, but still the main issue from my point of view is that there is no encryption as a [04:57.440 --> 05:01.540] standard and no message authentication. This makes CAN messages flowing on those buses [05:01.540 --> 05:07.860] prone to interception, injection and replication in cases that no additional protections are [05:07.860 --> 05:14.960] implemented. Which is more common than you think even 40 years after its inception. Of course [05:14.960 --> 05:19.860] this is not only uh the only technology which is currently used in modern vehicles, but it's [05:19.860 --> 05:25.000] one of the most commonly used. And that's why it's important to stress its flaws [05:25.000 --> 05:29.560] considering the stubbornness of automotive companies to stick with archaic and insecure [05:29.560 --> 05:34.920] technologies. As we speak for the current state of automotive security, it's worth [05:34.920 --> 05:41.080] mentioning that um what started to be enforced to all manufacturers homologating vehicles [05:41.080 --> 05:48.120] uh in UNESCO member countries. Um but I don't want to bore with you as USA does not have any [05:48.120 --> 05:53.920] specific binding regulations similar to this. But it's worth mentioning that it's a starting [05:53.920 --> 05:59.940] point for shaping the completely unregulated mess that exists still now in our industry, but [05:59.940 --> 06:06.040] of course it's still a regulation with all the negatives that come with it. Considering that I [06:06.040 --> 06:10.820] will have a relatively negative talk, I want to state from now that while the majority of the [06:10.820 --> 06:15.160] industry has a negative approach to cyber security, there are several people that still [06:15.160 --> 06:21.040] strive for secure and safe vehicles every day with their work, research and discussions. [06:21.040 --> 06:26.140] Though not everything in sunshine and flowers and automotive is mainly based on hundred plus [06:26.140 --> 06:31.020] year old mechanical engineering industries that were recently forced to implement a lot of [06:31.020 --> 06:36.820] things they had no idea about and innovate in an environment with really short life cycles and [06:36.820 --> 06:43.340] restricting safety requirements that will make most of us cry in any case in many cases. I [06:43.340 --> 06:49.440] struggled a lot though, so let me tell you my story. To start with, I have to tell you that I'm [06:49.440 --> 06:55.560] tired of hearing about the state of automotive security by professionals in commercial [06:55.560 --> 07:00.100] events referring to a couple of good examples in the sea of OEMs and tier one suppliers [07:00.100 --> 07:06.420] developing products in this industry. Tesla and BMW are not the only companies out there. And [07:06.420 --> 07:11.320] yes, while I really appreciate their work in some cases, we are here to talk about the [07:11.320 --> 07:17.260] industry as a whole and not the two examples that are out of the ordinary. And I'm saying this [07:17.260 --> 07:22.540] because vulnerability disclosure programs are not the norm here. The small amount of OEMs [07:22.540 --> 07:29.240] that escaped from their mechanical engineering past attitude or they started in this new [07:29.240 --> 07:34.160] generation of automotive manufacturers is not representative for the whole industry. And [07:34.160 --> 07:38.800] even the companies that incentivize and support researchers, they only give payouts to [07:38.800 --> 07:43.960] findings that are heavily security critical but no mention to safety critical issues and [07:43.960 --> 07:49.800] exploit chains. And I'm saying this because the last two years I discovered twenty-five [07:49.800 --> 07:55.380] safety related findings out of which only two were accepted until now. And not because [07:55.380 --> 08:00.080] they are out of scope or not applicable, but because there is no way to actually disclose [08:00.080 --> 08:06.460] them. To start talking about them though, we need to get an understanding of one of the [08:06.460 --> 08:11.720] protocols we approach today in our example POCs, namely the Unified Diagnostics Protocol, [08:11.720 --> 08:16.020] which lives in the application layer of the ECUs and allows diagnostic functionality such as [08:16.020 --> 08:21.880] reading and erasing faults, reprogramming, testing and monitoring. It commonly consists of [08:21.880 --> 08:27.240] several services that handle specific actions and the common one here that we will try to [08:27.240 --> 08:32.640] use in these examples, in these demos, is the ECU reset or service 11, which is commonly [08:32.640 --> 08:38.200] used to perform a reset on the ECU, as the name implies, but of different types. So [08:38.200 --> 08:42.600] depending on the supplied subservice we can specify if it's a hard, a soft or any other [08:42.600 --> 08:48.640] supported type of reset on the ECU. And finally I have to mention that the hard ECU reset [08:48.640 --> 08:55.060] is in most cases equivalent to a complete power cycle and we will see how this can go really [08:55.060 --> 09:02.020] bad for the ECU. Now the last five years me and my team performed almost 200 penetration [09:02.020 --> 09:12.600] testing and research projects in the automotive industry. And this means that first of all we [09:12.600 --> 09:16.880] got a broad understanding and experience of how security is implemented and discovered [09:16.880 --> 09:21.700] several nasty things along the way. While we tried to work with all these people to make the [09:21.700 --> 09:26.220] products more secure, the issue is that I'm not able to talk about those, so I had to find a [09:26.220 --> 09:31.520] way to share some of those juicy things. So it was during a warm summer in Arizona when I [09:31.520 --> 09:37.660] had a rental unit from a brand which I tried my best to hide here. And during my free time [09:37.660 --> 09:42.540] and during night as if I was testing during the day in Arizona I would not be here, I started [09:42.540 --> 09:50.640] working like poking around this thing that you see there and I had my first hit. In this case [09:50.640 --> 09:56.780] we triggered something that is not 100 percent clear what it is from the context given in the [09:56.780 --> 10:01.440] error created on the heads up display. For this reason we need to dig deeper and understand [10:01.440 --> 10:06.420] the architecture of the vehicle, understand how, why and to which extent something is [10:06.420 --> 10:12.620] affected. Is this error real? Is it expected behavior? Does it even have any security or [10:12.620 --> 10:20.560] safety impact or not? This is only a part of the questions that I have to answer at this point [10:20.560 --> 10:27.040] in order to move forward. And that's what I did. In the first demo you see how we [10:27.040 --> 10:32.900] discovered that the affected ECU and by issuing a simple ECU reset on the user accessible [10:32.900 --> 10:38.280] onboard diagnostics port, the ECU resets and the light of the affected blind spot detection [10:38.280 --> 10:45.340] sensor is engaged. Of course I didn't stop there. And because at this point a lot of educated [10:45.340 --> 10:51.860] guesses can be done considering what was discovered. As is, the finding has no big safety [10:51.860 --> 10:56.920] related severity outside of the fact that it can distract the driver. By listing the known [10:56.920 --> 11:01.960] facts though we can assume where the affected ECU is located in the architecture and how this [11:01.960 --> 11:08.140] can be escalated further by a malicious user. What we know is that first of all we can [11:08.140 --> 11:15.280] power cycle the ECU. And that there are no preconditions that can restrict this action. Like a [11:15.280 --> 11:20.960] vehicle speed restriction for example. Additionally from the function of the assistive [11:20.960 --> 11:25.720] driving we can assume that the blind spot detection sensor is connected with the functionality [11:25.720 --> 11:34.340] of the ADAS itself. By this we can easily prove that the sensor can be triggered mid drive. As a [11:34.340 --> 11:38.660] direct result it can confuse the driver because of the engagement of a sensor in an [11:38.660 --> 11:45.320] unexpected situation. But more importantly we can engage serious safety implications to the [11:45.320 --> 11:51.040] ADAS system like steering interruption during a lane change or even breaking engagement [11:51.040 --> 11:55.420] during a false safety related incident on the blind spot detection sensor. Of course I don't [11:55.420 --> 12:01.600] want to take these assumptions myself. And I hope I don't need to mention that you should [12:01.600 --> 12:07.500] always take safety related issues in a safe environment. Who has the ability and the [12:07.500 --> 12:12.200] environment? The manufacturer of course. And for this reason I had to find a way to report the [12:12.200 --> 12:17.440] finding and prove those assumptions. Now going through the process of vulnerability disclosure I [12:17.440 --> 12:24.080] initiated by trying to find a communication channel with the OEM a couple of years ago that [12:24.080 --> 12:29.420] this happened. The problem is that there was no vulnerability disclosure program. No one was [12:29.420 --> 12:35.840] answering to me regarding this from the contact options and the people I discovered online. But [12:35.840 --> 12:41.480] of course I didn't give up. I kept hacking. And getting our hands a bit dirtier here we need to [12:41.480 --> 12:48.520] introduce the main access control mechanism in UDS diagnostics called security access. Which as [12:48.520 --> 12:53.260] you understand from my diagram is a simple challenge response. The client requests a random [12:53.260 --> 12:59.700] seed, the ECU generates what seed, uh, that seed and calculates the key using the secret [12:59.700 --> 13:05.080] algorithm and secret key. And after that the client needs to know the same secrets, use the [13:05.080 --> 13:10.900] random seed and calculated key to send to the ECU where the ECU verifies uh, verifies this [13:10.900 --> 13:15.960] uh, calculated key and grants or rejects that access to the client. The implementation [13:15.960 --> 13:22.500] highly depends on the cyber security requirements of the OEM most of the times. Uh, and when [13:22.500 --> 13:28.060] these are loosely developed we see some unimaginably sloppy implementations, backdoors [13:28.060 --> 13:37.200] and weak sources of randomness um, or any other random aspect of uh, the process. Where this [13:37.200 --> 13:44.220] access control is used commonly I would say mostly software updates and reprogramming and the [13:44.220 --> 13:51.380] most commonly used in high severity instances uh, is these ones. Um, mainly also the ones [13:51.380 --> 13:56.020] that we care about and that shows the level of access they can give us in cases of [13:56.020 --> 14:01.820] compromise. And of course it's automo- automotive so the process is not encrypted. But it's [14:01.820 --> 14:08.020] behind an IDPS and it's a challenge response, right? Knowing that the process is [14:08.020 --> 14:13.160] unencrypted we already know that we can intercept and replay a seed and the applicable [14:13.160 --> 14:18.920] calculated key for the process. Message authentication also does not exist in 99 percent of [14:18.920 --> 14:25.960] the times here so that should not be an issue most probably. But even with access to the bus [14:25.960 --> 14:31.100] managing to intercept the seed and the applicable key should not yield to elevated access as [14:31.100 --> 14:37.480] the process heavily based on the random aspect of the seed. Um, if we cannot control the [14:37.480 --> 14:43.340] seed we cannot replay a successful seed key pair to obtain elevated access to the target ECU. [14:43.850 --> 14:49.600] Or can we? And going back to our friend ECU reset I want to remind you that one of the [14:49.600 --> 14:55.260] subservices capable of full power cycling the ECU is the hard ECU reset. This is the direct [14:55.260 --> 15:01.140] outcome though. Indirectly by completing a power cycle we also perform a reset to the system [15:01.140 --> 15:08.020] clock in many cases. And here we see the effects of this assumption. Uh, while the seed of [15:08.020 --> 15:13.800] the target ECU can be considered really secure at 32 bytes we can see that we can reset the [15:13.800 --> 15:18.960] system clock with an ECU reset and after a predefined and fixed delay between the reset and [15:18.960 --> 15:24.900] the seed request the supplied random seed is always the same with a staggering 100 percent [15:24.900 --> 15:30.760] accuracy. In this case we invalidated the assumption of what is needed in a challenge [15:30.760 --> 15:36.500] response when we can intercept successfully a seed and key pair. With that in mind we only [15:36.500 --> 15:41.120] need one seed key pair to obtain elevated access to the unit. Which can potentially be [15:41.120 --> 15:47.760] obtained at the service visit or during an OTA update from the head unit. Fast forward two [15:47.760 --> 15:53.160] years later and I eventually discovered someone that was willing to help me report those [15:53.160 --> 15:59.100] issues to the OEM. I prepared a well structured report of my vulnerabilities and sent it to [15:59.100 --> 16:04.660] the contact point working for the OEM. The issues were acknowledged a couple of days later [16:04.660 --> 16:10.600] but privately. At this point we know that these findings were not only affecting the model and [16:10.600 --> 16:17.880] model year I tested but several models of the brand and numerous model years. So we are [16:17.880 --> 16:24.540] talking about a significant number of affected vehicles. The drama starts here though. [16:24.920 --> 16:29.840] Despite the help from the contact point OEM decided that the cost of fixing the issue exceeds [16:29.840 --> 16:36.020] the expectations for this model. The excuse is that the future electrical and electronic [16:36.020 --> 16:42.240] architecture that they designed will mitigate those issues in the models for 2025 and 2026. [16:42.240 --> 16:47.680] Which of course directly means that the currently sold architecture is still vulnerable and [16:47.680 --> 16:52.900] that the OEM is not willing to either fix or disclose the findings publicly. As a romantic [16:52.900 --> 16:58.520] myself I decided to not publish the findings. I wanted to act professionally especially in [16:58.520 --> 17:04.420] comparison to the norm in my industry and irresponsibility brings chaos, I'm not the one [17:04.420 --> 17:12.820] feeding this beast. Trying to find a solution I decided to propose a responsible disclosure to a [17:12.820 --> 17:18.540] generic VDP, namely the ASRG, Automotive Security Research Group, which out of many [17:18.540 --> 17:23.940] things they are also an officially recognized CNA. So after a short discussion with my [17:23.940 --> 17:30.780] contact point and the OEM I decided to report the issue to ASRG. Something that needs to be [17:30.780 --> 17:40.240] mentioned here for the sake of completeness is that I disclosed the finding in a generic email [17:40.760 --> 17:47.640] from the website of the VDP. And not to anyone directly, just the generic available email [17:47.640 --> 17:53.260] address that was on the website. At this point and after a couple of email exchanges with me [17:53.260 --> 18:01.040] the OEM and the ASRG, the OEM stops responding completely. I was completely clueless of what [18:01.040 --> 18:06.320] there is to follow despite my continuous effort to resolve the issue and find why this [18:06.320 --> 18:14.720] happened, the OEM wasn't responding to all of our requests or to any of our requests. And not [18:14.720 --> 18:19.680] only they didn't give me a reason but I was directly accused by third parties which I never [18:19.680 --> 18:25.640] contacted or revealed my findings to that I'm collaborating with hostile nations. You don't [18:25.640 --> 18:30.080] accuse me of doing something like this especially when I tried so much to responsibly [18:30.080 --> 18:36.320] disclose this shit and the only thing they did was find excuses. And to be honest I don't [18:36.320 --> 18:43.260] want to dox anyone, this is not why I'm here. I'm here to share my experience and maybe [18:43.260 --> 18:50.360] shake the industry a bit out of this limbo they're into. But what happened is that the person [18:50.360 --> 18:57.340] that handled my case in the public VDP had a citizenship of a supposed hostile nation which the [18:57.340 --> 19:02.620] legal department of the OEM decided that it's not good for their image. You want to hear some [19:02.620 --> 19:08.580] plot twist, basically this guy does not live in this nation, he has another residency on the [19:08.580 --> 19:14.840] homeland of the OEM and guess what I recently learned, he has chosen to handle this topic [19:14.840 --> 19:20.820] because of an affiliation with the OEM and he was the best person for this job. But the OEM [19:20.820 --> 19:26.120] research can go that far of course or they didn't even care to be honest. After all the drama [19:26.120 --> 19:31.440] and after I contact all the parties saying that this level of accusations from third parties and [19:31.440 --> 19:37.140] the fact that they disclosed the private findings outside of the legal framework was [19:37.140 --> 19:42.220] unacceptable, I also announced to them that the findings will be published on the day of [19:42.220 --> 19:50.700] DEF CON today. And of course this is the day they answered. Something that needs to be [19:50.700 --> 19:56.140] mentioned here is that during the initial discussion for the findings I was clearly asked if [19:56.140 --> 20:03.560] the finding is discovered by directly connecting to the ECU or from the OBD port. As the OBD [20:03.560 --> 20:09.100] port is user accessible and the findings are applicable and if it's only applicable to the [20:09.100 --> 20:13.920] direct connection we'll mark the findings as mitigated by the IDPS system. Something that I [20:13.920 --> 20:23.000] don't agree but it was reasonable. This though, not so much. So yeah today I'm releasing these [20:23.000 --> 20:28.120] two vulnerabilities, as I said I don't want to dox anyone, I want a safe future with cars that [20:28.120 --> 20:33.080] can support their functionality in a secure way but in this case the OEM instead of [20:33.080 --> 20:39.840] communicating decided to play politics and it's not only them, this is the common trend. [20:40.040 --> 20:45.480] Researchers are not the ones to blame here with falsified accusations. As in most cases we are [20:45.480 --> 20:51.320] more than happy to collaborate and help each other. And not only researchers, pen testers [20:51.320 --> 20:57.280] too. Let's crash it and see where it brings us in this case. As we saw previously, politics play a [20:57.280 --> 21:02.100] big role. Not only in public disclosure but in private projects too. Throughout my time with [21:02.100 --> 21:08.020] automotive security projects I heard a lot of excuses by engineers and management on why they [21:08.020 --> 21:13.880] don't want to accept or fix an issue. The usual suspects are loosely developed requirements [21:15.020 --> 21:20.980] or internal or external, strict deadlines and long product life cycles along others of [21:20.980 --> 21:29.320] course. But my conclusion is always that it's a culture issue. Either the company culture or the [21:29.320 --> 21:34.920] respective local culture affects the way companies consume, approach and mitigate issues. Of [21:34.920 --> 21:40.500] course it's a complex issue where regulators, governments and external parties are contributing [21:40.500 --> 21:46.400] to the development and production of a full vehicle but in the end the people I interacted and [21:46.400 --> 21:54.140] worked with out of these projects construct my perception of this industry. But considering the [21:54.140 --> 22:00.100] culture and how the findings are approached, what do we need to do to persuade them about the [22:00.100 --> 22:08.000] severity? Which level should we reach and which people should we contact? Who is responsible for [22:08.000 --> 22:14.720] the person that will die if my next finding is not fixed? Even if you develop the target with [22:14.720 --> 22:21.000] security in mind and with the best of intentions, logical flaws can exist and exploited. [22:21.000 --> 22:26.280] Developers of different components usually only interact with a vehicle simulation ignoring how [22:26.280 --> 22:34.380] one action can have a security or safety event outside the scope of the functional testing. And [22:34.380 --> 22:39.160] this is how safety related findings can be discovered in most unexpected for the manufacturer [22:39.160 --> 22:46.440] behavior. A completely unrelated issue of seemingly minimal security impact can have a [22:46.440 --> 22:51.920] devastating safety outcome. As a first use case, we can easily get the example of electric [22:51.920 --> 22:57.020] vehicles where I was testing the security not only of a battery management system on the onboard [22:57.020 --> 23:02.540] charging but the batteries themselves. By analyzing the communication and while I was close to the [23:02.540 --> 23:07.780] car, I discovered that there is a sound generated when I was injecting an unauthenticated [23:07.780 --> 23:12.940] message. When I started discussing with one of the engineers, it ended up being the battery [23:12.940 --> 23:18.920] contractors of the AV. I was immediately concerned at that point knowing that wear and tear of the [23:18.920 --> 23:25.500] contact surface can increase the resistance and lead to excessive heating. And you know what [23:25.500 --> 23:31.660] comes after excessive heating and localized especially heating for extended periods of time? [23:31.660 --> 23:38.360] It's of course fire. Of course I cannot burn an engineer and I cannot conduct a test to prove [23:38.940 --> 23:44.760] the physics behind it without risking the battery pack burning nonstop for days. So the topic [23:44.760 --> 23:49.800] ended there. The vehicle is out. All engineers are safe. A couple of hundreds of thousands of [23:49.800 --> 23:56.800] users are not. Same applies to hydrogen. And the loving OEM that could not understand why small [23:56.800 --> 24:04.800] leaks in the hydrogen tank can affect the specific rotations of the valve and can lead to [24:04.800 --> 24:10.740] suffocation of the whole garage we were working in in a couple of minutes. As I said in the [24:10.740 --> 24:16.920] start, I have no magical exploit chains but to prove this finding in an effective way doesn't [24:16.920 --> 24:23.320] take much. Considering that at the current state we can easily spoof messages in an unencrypted [24:23.320 --> 24:29.180] way and perform a power cycle with an unrestricted service, we can easily find a way to [24:29.180 --> 24:34.580] reproduce the issue from an exposed interface. Because most of the times manufacturers try to [24:34.580 --> 24:41.000] use the obscurity factor as a way of mitigation for those findings. But as we saw in the [24:41.000 --> 24:46.260] architecture, modern vehicles are getting more connected than ever so find the exposed [24:46.260 --> 24:54.860] interface, directly communicate with the ECU and start sending. That's my advice. Even if it [24:54.860 --> 25:01.240] needs some cutting around. Now of course after that you have to listen to all the excuses about [25:01.240 --> 25:06.340] how your exploit is not realistic and how physical security mitigates issues in digital [25:06.340 --> 25:11.280] security. When at this point it's time to put them inside the vehicle and show them a [25:11.280 --> 25:18.440] juicicle injections where they will either believe you or they will believe in God. Of course [25:18.440 --> 25:23.440] for safety reasons and when I'm ready to unleash my magical exploit chain there is always [25:23.440 --> 25:28.120] some party pooper that restricts me from doing so. And thank you to this party pooper but I [25:28.120 --> 25:33.600] guess in many times it's not only that they don't believe you but they even want to prove you [25:33.600 --> 25:39.480] wrong during the night because that's who we are. Next day I found this in the garage after [25:39.480 --> 25:45.800] some engineer tried to engage the injection from the OBD port for the sake of completeness. [25:46.080 --> 25:52.480] This is how I left it the previous day. Continuing with the trend of naiveness though, [25:52.480 --> 25:58.240] both from mine and the engineer's side I got my hands on an ECU unrelated to commercial [25:58.240 --> 26:03.320] projects and I thought here we are, let's do some exploitation. So I started my common [26:03.320 --> 26:09.520] workflow trying to exploit UDS and trying to evaluate the source of randomness but after [26:09.520 --> 26:18.600] several hours it didn't seem feasible so I had to resort in other solutions. So I did this thing [26:18.600 --> 26:23.440] apart and started getting a better understanding of its guts. I analyzed the hardware parts [26:23.440 --> 26:30.160] one by one and started getting deeper inside my rabbit hole to realize that it's one more [26:30.160 --> 26:35.620] case of automotive SOC architecture with all the pros and cons that come with it. The [26:35.620 --> 26:40.760] biggest thing that has to be said about it and which will help us understand some of the [26:40.760 --> 26:47.160] issues later on is the fact that ECUs are considered safety related components which [26:47.160 --> 26:52.180] require real time responsiveness due to the safety related nature on the products that [26:52.180 --> 26:59.020] utilize them. So by opening one of the targets we can easily see what happens here. Not only [26:59.020 --> 27:04.400] one SOC but two exist on the target board. And this is because of the safety related [27:04.400 --> 27:10.880] functionality we mentioned earlier. An instruction needs to be executed twice in either two [27:10.880 --> 27:16.560] different controllers. In this case the secure and application controller which we [27:16.560 --> 27:22.180] discovered or two different isolated cores and then compared between the two. If the [27:22.180 --> 27:28.020] output of the instruction is the same it gets executed. If not a fallback procedure has to [27:28.020 --> 27:32.720] be followed depending on the system. Of course this architecture is applicable to higher [27:32.720 --> 27:38.480] severity safety related devices like airplanes with more secure controllers needed but this [27:38.480 --> 27:50.650] is out of the scope at least for today. Why this is important? Because in the devices in [27:50.650 --> 27:56.510] which it is applicable the failure will result in loss or damage of equipment, environmental [27:56.510 --> 28:04.030] harm, injury or even death of some users or the surrounding people. And moving closer to the [28:04.030 --> 28:09.290] hardware we see that not only the supplier was kind enough to spoil the fun and let us tell [28:09.290 --> 28:16.090] us when one of the JTAG headers is on the board but they included a second header for the [28:16.090 --> 28:22.510] secure controller. Unfortunately there after connecting my debugger I discovered that both [28:22.510 --> 28:30.590] the JTAG interfaces are locked. And after I desperately started clicking on my power supply I [28:30.590 --> 28:39.270] realized something really interesting. And here you can see, uh, did it start? I think it [28:39.290 --> 28:45.890] did. Yes, so here you can see that the device is locked by normally connecting my JTAG [28:45.890 --> 28:57.070] debugger to the unit, to the target ECU. And by connecting the JTAG on the first seconds [28:57.070 --> 29:04.730] after boot, you can see a nice history that we get debug on the secure controller. So yes, we [29:04.730 --> 29:09.690] got access to the secure controller. In this case we basically got to enable the debug access [29:09.690 --> 29:14.930] in a really short period of time during boot. And as a result we can control the execution [29:14.930 --> 29:21.010] and dump the memory of the vulnerable controller. I love automotive security. I know that [29:21.010 --> 29:25.610] you're not yet tired of the fails so on the same ECU and because we are talking about the [29:25.610 --> 29:30.390] telematics unit there is a Qualcomm modem SOC running which comes with these magical pins [29:30.390 --> 29:35.490] that if sorted provide us with a nice Qualcomm download mode and after discovering some [29:35.490 --> 29:40.330] other pins seemingly matching a USB port pin out and performing the dangerous act of [29:40.330 --> 29:45.830] connecting a random USB from an ECU purchased from eBay, we realize that our assumptions [29:45.830 --> 29:52.450] are correct. After I dumped the firmware with more than one ways as you see, I realized that [29:52.450 --> 29:56.990] the automotive related controller has several references to the system clock which confused [29:56.990 --> 30:01.110] me even more. As my process of discovering weak sources of randomness until now was [30:01.110 --> 30:07.070] unbeatable. So what is happening here? Went back to my terminal and performed some more [30:07.070 --> 30:13.890] tests and as you see here, when the seed capture goes faster, we can make some really [30:13.890 --> 30:19.470] important observations. Which is that the middle byte of the seed is incrementing by one. [30:20.290 --> 30:25.750] My assumption seemed more correct than ever but I was also more confused than ever. There [30:25.750 --> 30:30.690] was some missing piece that I was struggling to find. Some implemented mitigation that was [30:30.690 --> 30:37.670] in front of me but could not see it. What this mitigation was. Of course security through [30:37.670 --> 30:42.550] obscurity as always with automotive and I started thinking what if the ECU is restricting [30:42.550 --> 30:48.130] software power cycles for safety reasons. As we are talking about a telematics unit that has [30:48.130 --> 30:54.510] to be always available for SOS calls. And if that's the case, how can we control a power cycle [30:54.510 --> 31:01.930] in more ways than an ECU reset? And that's where my favorite relay comes into play. And we [31:01.930 --> 31:12.650] immediately see not only duplicate but a complete compromise of the unit here. POC for this [31:12.650 --> 31:17.870] will be published under my tool Karin Karibu Next but it's nothing that you cannot easily [31:17.870 --> 31:22.450] make in a couple of minutes. The main reason that this happens is because there is always a [31:22.450 --> 31:27.870] battery in those telematics systems to mitigate downtime and unexpected power cycle that will [31:27.870 --> 31:35.890] restrict the unit from performing an SOS call during an emergency. So we got a bit pranked for [31:36.010 --> 31:42.230] a second there but found a way through eventually. And for the smarties out there, this is [31:42.230 --> 31:48.030] not only applicable to controlled environments with power supplies but many of these [31:48.030 --> 31:55.310] nowadays come with external or internal for passenger vehicles battery isolators. Mainly used [31:55.310 --> 32:03.130] in safety related incidents to cut power and mitigate the risk of fires and other issues. But I [32:03.130 --> 32:08.890] used it to bypass restrictions that were only possible on individual ECUs. And now by [32:08.890 --> 32:13.550] controlling the power supply externally through the battery isolator, we can perform all [32:13.550 --> 32:19.030] these attacks in a combined manner in full vehicles. Here we see the exposed battery isolator [32:19.030 --> 32:24.830] of heavy duty vehicles. And here we see something I discovered a couple of weeks ago. The [32:24.830 --> 32:30.670] battery isolator of a passenger vehicle which of course made me laugh but it will make me cry [32:30.670 --> 32:34.910] probably in the future when I will get into more politics with the manufacturers about the [32:34.910 --> 32:41.350] applicability of my future findings. This is a sample list of the applicable findings for [32:41.350 --> 32:48.370] this ECU. And of course I had no response so I guess nothing to see here. But it's not only [32:48.370 --> 32:54.330] dark and stormy days. While everything we said now is applicable to most of the OEMs, while [32:54.330 --> 33:04.090] this is only a small subset of the issues we see every day and they clearly are some relics of [33:04.090 --> 33:09.790] vulnerabilities discovered in modern vehicles and components. And while several CVEs are [33:09.790 --> 33:16.530] currently stuck, you saw because of the unacceptable attitude of the industry, there is [33:16.530 --> 33:21.730] always someone that breaks the norm and makes us smile not because they made everything [33:21.730 --> 33:28.210] perfect but because they proved a point. So one small manufacturer came to us for some common [33:28.210 --> 33:34.670] service, we started evaluating the unit and after several tries we didn't manage to discover a [33:34.670 --> 33:40.850] single entry point to the custom ECU. While the hardware used was one of the cheapest of the [33:40.850 --> 33:47.150] self hardware a developer can buy. And what was the solution in this case? One of the cheapest [33:47.150 --> 33:52.530] of the self hardware a developer can buy. And we are talking about this mighty ESP32, a low [33:52.530 --> 33:59.120] cost, low power SOC that was fitting perfectly the needs of the OEM in this case. Of course it's [33:59.120 --> 34:05.380] not built for safety critical functionality and its main focus is automation. But for the case [34:05.380 --> 34:12.540] we needed, for the case needed, there was nothing more needed by the OEM in this case. And from a [34:12.540 --> 34:18.960] security standpoint it proved a big point. Because this $10 ESP32, in contrary to what comes [34:18.960 --> 34:24.960] with hundreds of thousands of dollars of automotive, worth of automotive SOCs, comes standard [34:24.960 --> 34:31.060] with an RNG. It uses a combination of thermal noise sourced from the hardware analog to [34:31.060 --> 34:35.920] digital converter and combines it with the asynchronous clock mismatch for true random [34:35.920 --> 34:43.680] generation as we call it in this industry. And I say it again, with $10, but does it solve [34:43.680 --> 34:49.580] completely the problem here? Of course not. There are still ways to bypass these mitigations. [34:49.580 --> 34:54.720] But the point is how difficult and financially viable you make it for an attacker to [34:54.720 --> 34:59.540] perform an attack like this. It's not about how sophisticated an exploit is in the end, it's [34:59.540 --> 35:04.920] about who has the biggest budget to invest. So the mitigation is clearly about how expensive [35:04.920 --> 35:10.520] you make it for an attacker to break into your system, steal your IP or even potentially [35:10.520 --> 35:16.120] perform coordinated attacks. And while looking at systems like the PlayStation running [35:16.120 --> 35:20.940] non-safety critical chips that implement state-of-the-art mitigations for these issues and [35:20.940 --> 35:25.760] our computer on wheels cannot even mitigate the basics, I'm left to wonder, is there any light [35:25.760 --> 35:31.660] in the end of the tunnel? And my answer is that it's up to us, all of us here, to make the [35:31.660 --> 35:38.200] best out of it. The best out of our work and our research. To pass out our culture to the [35:38.200 --> 35:42.980] people that we're working with, from the higher to the lower level. Not with bitching, not [35:42.980 --> 35:49.700] with attitudes, but with scientific proof, with our POCs, with our posts and our talks. Let's [35:49.700 --> 35:55.060] make the world a safer place, one POC at a time. And in honor to this year's theme, [35:55.060 --> 36:12.170] remember, to take back the internet, we need to engage. Thank you. Any questions? [36:23.960 --> 36:31.060] Hi, awesome talk, thank you. Did you think about going to NHTSA, the National Highway [36:31.060 --> 36:35.540] Transportation Safety Administration, who is responsible for implementing safety [36:35.540 --> 36:41.220] standards for car manufacturers? Yeah, look, there are several things that we can do. I [36:41.220 --> 36:47.080] agree with you. The problem is that you have to take several steps into reaching a point [36:47.080 --> 36:53.720] that I will follow your advice. I mean, the specific advice you gave right now. It's like, I [36:53.720 --> 37:00.340] agree with you, but I would expect that the manufacturer already handled it. Of course, in [37:00.340 --> 37:07.620] many of the cases, maybe I did it. I cannot reveal it to you, but maybe I did it. But I have [37:07.620 --> 37:12.880] to say that there is a need for something to change in this industry, and that's what I had [37:12.880 --> 37:21.500] to clarify here. Totally agree, and that would be the perfect world, wouldn't it, if people, [37:21.500 --> 37:25.900] and I think most engineers, want to do the right thing. They want to operate securely and [37:25.900 --> 37:31.780] write good code and all the rest of it. But then, to your point, there's that sprinkle of [37:31.780 --> 37:39.920] capitalism and budgetary this and that, and somebody says, well, it's good enough. And then, [37:40.500 --> 37:45.400] you know, that's why we do sometimes need those government agencies, even though they [37:45.400 --> 37:52.020] themselves are not the most efficient, right? I agree. There needs to be a balance, but I [37:52.020 --> 37:57.840] think there needs to be a balance in all the ways, you know, even for who talks where. You [37:57.840 --> 38:01.820] know, there are the commercial conferences that everyone brags about from the industry. We [38:01.820 --> 38:07.240] also need to talk about stuff. We also need to be able to get the stand and start discussing [38:07.240 --> 38:13.840] about these things. Thank you very much. It was awesome. Thank you. Hi, again, thank you for [38:13.840 --> 38:19.860] the talk. Amazing talk. Do you think emerging technologies such as automotive Ethernet or [38:19.860 --> 38:25.020] secure CAN transceivers might help mitigate some of the risk? Definitely, definitely. And [38:25.020 --> 38:28.780] we see a change in the industry. As I said, software-defined vehicles and centralized [38:28.780 --> 38:35.720] architecture is something that we hear about a lot of years now, but it's not yet implemented [38:35.720 --> 38:41.540] in many vehicles. And that's why I was talking about the differences between mainstream OEMs [38:41.540 --> 38:46.940] and the new type of OEMs that are basically IT companies that started building cars. So, this [38:46.940 --> 38:51.120] is the main difference. They have way more experience in this, but the industry needs to [38:51.120 --> 38:56.040] catch up. They are exposing so many things and they need to do something about it. Thank you. [38:56.040 --> 39:02.080] Thanks. Thank you for your talk. This was great. My question is regarding your toolkit. Is [39:02.080 --> 39:06.980] everything, you know, Hadoop, Python... My question is about your toolkit. Is everything [39:06.980 --> 39:12.520] Python scripts that you build or is there a software platform that we... No, basically it's a [39:12.520 --> 39:19.200] modular tool and this is not only the POC, but you can use it to perform the same attacks to [39:19.200 --> 39:24.960] other vehicles. What's the name of that tool? Carrying Caribou Next. It's a fork of the [39:24.960 --> 39:29.040] original Carrying Caribou, which is a state of the industry for a lot of years, but I just [39:29.040 --> 39:34.660] made the fork because of the slowness of the development of this project. Thank you. You're [39:34.660 --> 39:35.320] welcome.