WEBVTT

00:02.500 --> 00:03.380
Hello.

00:04.220 --> 00:05.640
So thank you for joining.

00:06.120 --> 00:09.420
It's an immense honor to be here with you today.

00:09.500 --> 00:11.600
Something that I would never expect to happen.

00:12.280 --> 00:17.260
But this is the hack, the crash and two smoking barrels and how I almost killed an engineer.

00:17.440 --> 00:22.400
And I must mention that basically I had no lawyers advising me before my talk.

00:22.560 --> 00:26.900
So if you will not be able to reach me after the talk, it was nice meeting you.

00:28.000 --> 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.

00:34.620 --> 00:38.040
And now that I got probably your attention, let's start.

00:38.320 --> 00:44.120
I'm Tomas and my pictures are usually so bad that making it black and white didn't really help.

00:44.120 --> 00:46.360
It's like my accent, it can only go worse.

00:46.580 --> 00:49.340
And people also know me as Crow Tom.

00:49.500 --> 00:53.460
And the main thing you need to know about me is that I lead an amazing team.

00:53.680 --> 00:58.660
They are competing in the car hacking village right now and they are second.

00:59.980 --> 01:05.080
And I also love to hack like everything, day, night, whatever.

01:05.440 --> 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.

01:14.360 --> 01:17.580
A bit of laziness and a sprinkle of capitalism.

01:17.800 --> 01:20.620
And for more, you can always go to my website.

01:21.460 --> 01:25.100
What we will really talk about today is vehicle security.

01:25.100 --> 01:30.300
Or how I like to call it, all the stupid things that the automotive industry is doing still in 2024.

01:30.620 --> 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.

01:36.840 --> 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.

01:45.320 --> 01:49.040
What we will definitely not talk about is extreme exploit chains.

01:49.040 --> 01:51.740
I love to hack but I'm the worst at it.

01:51.740 --> 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.

01:59.460 --> 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.

02:11.840 --> 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.

02:19.960 --> 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.

02:27.300 --> 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.

02:34.100 --> 02:40.920
Vehicles are getting connected, getting richer services and functionality, something that the users ask for I guess.

02:41.120 --> 02:45.940
What they don't ask for though is for these services to be implemented in an insecure way.

02:46.140 --> 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.

02:56.660 --> 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.

03:07.060 --> 03:12.460
I will mostly focus today on the safety aspect of those security issues.

03:13.560 --> 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.

03:21.580 --> 03:28.440
Uh, here we have a representative example of a vehicle architecture with individual parts being electronic control units.

03:28.440 --> 03:34.360
Different embedded components that most of the time have a single specific purpose inside the vehicle.

03:34.580 --> 03:44.760
All these are segmented in several isolated buses to avoid external communication or interruption and segment them by functionality and criticality.

03:44.760 --> 03:50.300
What you can also see is the fact that some of the interfaces are getting exposed internally though.

03:50.380 --> 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 .

03:57.540 --> 04:05.040
As an example, the onboard charging ECU has an exposed interface handling the communication between the charger and the vehicle.

04:05.040 --> 04:11.240
And the main head unit that the user int- uh, interacts with is exposed to the internet through a telematics unit.

04:11.240 --> 04:17.020
Most of the times for SOS calls, OTA updates and more interconnected functionality.

04:18.060 --> 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.

04:28.340 --> 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.

04:36.320 --> 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.

04:42.980 --> 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.

04:49.540 --> 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.

04:59.700 --> 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.

05:08.940 --> 05:14.100
Which is more common than you think even 40 years after its inception.

05:14.580 --> 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.

05:21.960 --> 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.

05:31.920 --> 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.

05:43.860 --> 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.

05:51.620 --> 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.

06:05.220 --> 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,

06:18.980 --> 06:21.040
research and discussions.

06:21.040 --> 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.

06:42.760 --> 06:46.680
I struggled a lot though, so let me tell you my story.

06:47.020 --> 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.

07:02.460 --> 07:06.120
Tesla and BMW are not the only companies out there.

07:06.320 --> 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.

07:16.500 --> 07:21.360
And I'm saying this because vulnerability disclosure programs are not the norm here.

07:21.360 --> 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.

07:34.040 --> 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.

07:46.680 --> 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.

07:54.820 --> 08:00.880
And not because they are out of scope or not applicable, but because there is no way to actually disclose them.

08:02.160 --> 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,

08:17.620 --> 08:20.480
reprogramming, testing and monitoring.

08:20.700 --> 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,

08:36.880 --> 08:38.200
but of different types.

08:38.200 --> 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.

08:45.820 --> 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.

08:57.860 --> 09:04.940
Now the last five years me and my team performed almost 200 penetration testing and research projects in the automotive industry.

09:07.400 --> 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.

09:19.180 --> 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.

09:28.820 --> 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.

09:36.480 --> 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.

09:49.760 --> 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.

09:59.100 --> 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.

10:07.460 --> 10:08.860
Is this error real?

10:08.860 --> 10:10.840
Is it expected behavior?

10:10.840 --> 10:14.440
Does it even have any security or safety impact or not?

10:14.440 --> 10:22.240
This is only a part of the questions that I have to answer at this point in order to move forward.

10:23.620 --> 10:25.140
And that's what I did.

10:25.140 --> 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.

10:41.280 --> 10:43.240
Of course I didn't stop there.

10:43.760 --> 10:49.360
And because at this point a lot of educated guesses can be done considering what was discovered.

10:49.360 --> 10:55.880
As is, the finding has no big safety related severity outside of the fact that it can distract the driver.

10:55.880 --> 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.

11:05.220 --> 11:09.780
What we know is that first of all we can power cycle the ECU.

11:09.800 --> 11:14.320
And that there are no preconditions that can restrict this action.

11:14.320 --> 11:17.900
Like a vehicle speed restriction for example.

11:18.240 --> 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.

11:28.660 --> 11:33.680
By this we can easily prove that the sensor can be triggered mid drive.

11:33.680 --> 11:39.800
As a direct result it can confuse the driver because of the engagement of a sensor in an unexpected situation.

11:39.800 --> 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.

11:54.620 --> 11:57.860
Of course I don't want to take these assumptions myself.

11:58.560 --> 12:04.940
And I hope I don't need to mention that you should always take safety related issues in a safe environment.

12:05.820 --> 12:08.100
Who has the ability and the environment?

12:08.100 --> 12:09.580
The manufacturer of course.

12:10.120 --> 12:14.380
And for this reason I had to find a way to report the finding and prove those assumptions.

12:15.160 --> 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.

12:25.340 --> 12:28.940
The problem is that there was no vulnerability disclosure program.

12:28.940 --> 12:34.780
No one was answering to me regarding this from the contact options and the people I discovered online.

12:35.600 --> 12:37.060
But of course I didn't give up.

12:37.060 --> 12:38.260
I kept hacking.

12:38.760 --> 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.

12:48.060 --> 12:52.100
Which as you understand from my diagram is a simple challenge response.

12:52.100 --> 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.

13:01.940 --> 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.

13:15.340 --> 13:21.640
The implementation highly depends on the cyber security requirements of the OEM most of the times.

13:21.640 --> 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.

13:36.740 --> 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.

13:49.480 --> 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.

13:57.340 --> 14:01.340
And of course it's automo- automotive so the process is not encrypted.

14:01.340 --> 14:05.640
But it's behind an IDPS and it's a challenge response, right?

14:06.840 --> 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.

14:15.380 --> 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.

14:24.620 --> 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.

14:35.820 --> 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.

14:43.850 --> 14:45.080
Or can we?

14:45.220 --> 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.

14:54.200 --> 14:56.560
This is the direct outcome though.

14:56.760 --> 15:02.960
Indirectly by completing a power cycle we also perform a reset to the system clock in many cases.

15:04.440 --> 15:07.120
And here we see the effects of this assumption.

15:07.260 --> 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.

15:26.740 --> 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.

15:34.760 --> 15:39.980
With that in mind we only need one seed key pair to obtain elevated access to the unit.

15:39.980 --> 15:45.760
Which can potentially be obtained at the service visit or during an OTA update from the head unit.

15:46.780 --> 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.

15:55.060 --> 16:01.720
I prepared a well structured report of my vulnerabilities and sent it to the contact point working for the OEM.

16:02.280 --> 16:06.160
The issues were acknowledged a couple of days later but privately.

16:06.220 --> 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.

16:17.180 --> 16:21.440
So we are talking about a significant number of affected vehicles.

16:22.280 --> 16:24.540
The drama starts here though.

16:24.920 --> 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.

16:32.180 --> 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.

16:42.240 --> 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.

16:52.280 --> 16:56.160
As a romantic myself I decided to not publish the findings.

16:56.160 --> 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.

17:06.980 --> 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.

17:22.280 --> 17:29.260
So after a short discussion with my contact point and the OEM I decided to report the issue to ASRG.

17:29.260 --> 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.

17:43.740 --> 17:50.060
And not to anyone directly, just the generic available email address that was on the website.

17:50.860 --> 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.

17:58.520 --> 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.

18:14.420 --> 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.

18:25.320 --> 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.

18:35.280 --> 18:40.800
And to be honest I don't want to dox anyone, this is not why I'm here.

18:41.160 --> 18:46.840
I'm here to share my experience and maybe shake the industry a bit out of this limbo they're into.

18:47.760 --> 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.

19:01.160 --> 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.

19:20.240 --> 19:24.780
But the OEM research can go that far of course or they didn't even care to be honest.

19:25.060 --> 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.

19:45.020 --> 19:47.880
And of course this is the day they answered.

19:49.460 --> 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.

20:02.600 --> 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.

20:13.320 --> 20:16.240
Something that I don't agree but it was reasonable.

20:16.240 --> 20:18.240
This though, not so much.

20:21.460 --> 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,

20:38.380 --> 20:39.840
this is the common trend.

20:40.040 --> 20:43.880
Researchers are not the ones to blame here with falsified accusations.

20:43.920 --> 20:48.220
As in most cases we are more than happy to collaborate and help each other.

20:49.540 --> 20:51.940
And not only researchers, pen testers too.

20:51.940 --> 20:54.440
Let's crash it and see where it brings us in this case.

20:54.440 --> 20:57.900
As we saw previously, politics play a big role.

20:57.900 --> 21:00.960
Not only in public disclosure but in private projects too.

21:01.200 --> 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.

21:11.280 --> 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.

21:22.420 --> 21:27.380
But my conclusion is always that it's a culture issue.

21:27.380 --> 21:34.600
Either the company culture or the respective local culture affects the way companies consume, approach and mitigate issues.

21:34.600 --> 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.

21:53.200 --> 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?

22:01.040 --> 22:06.500
Which level should we reach and which people should we contact?

22:06.500 --> 22:11.660
Who is responsible for the person that will die if my next finding is not fixed?

22:12.620 --> 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.

22:21.000 --> 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.

22:34.200 --> 22:40.780
And this is how safety related findings can be discovered in most unexpected for the manufacturer behavior.

22:41.060 --> 22:48.720
A completely unrelated issue of seemingly minimal security impact can have a devastating safety outcome.

22:48.720 --> 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.

22:59.400 --> 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.

23:08.660 --> 23:14.920
When I started discussing with one of the engineers, it ended up being the battery contractors of the AV.

23:14.980 --> 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.

23:24.740 --> 23:31.660
And you know what comes after excessive heating and localized especially heating for extended periods of time?

23:31.660 --> 23:33.060
It's of course fire.

23:33.640 --> 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.

23:44.260 --> 23:45.540
So the topic ended there.

23:45.540 --> 23:46.520
The vehicle is out.

23:46.520 --> 23:47.880
All engineers are safe.

23:47.880 --> 23:51.060
A couple of hundreds of thousands of users are not.

23:51.740 --> 23:53.640
Same applies to hydrogen.

23:53.920 --> 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.

24:09.620 --> 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.

24:17.760 --> 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.

24:32.060 --> 24:39.420
Because most of the times manufacturers try to use the obscurity factor as a way of mitigation for those findings.

24:39.860 --> 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.

24:52.460 --> 24:53.780
That's my advice.

24:54.120 --> 24:56.760
Even if it needs some cutting around.

24:57.740 --> 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.

25:07.560 --> 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.

25:16.520 --> 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.

25:25.840 --> 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.

25:37.260 --> 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.

25:46.080 --> 25:48.400
This is how I left it the previous day.

25:49.520 --> 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.

26:02.320 --> 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.

26:17.320 --> 26:22.020
So I did this thing apart and started getting a better understanding of its guts.

26:22.020 --> 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.

26:35.300 --> 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.

26:53.780 --> 26:58.640
So by opening one of the targets we can easily see what happens here.

26:58.640 --> 27:02.540
Not only one SOC but two exist on the target board.

27:02.820 --> 27:06.560
And this is because of the safety related functionality we mentioned earlier.

27:06.720 --> 27:12.320
An instruction needs to be executed twice in either two different controllers.

27:12.980 --> 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.

27:21.860 --> 27:25.720
If the output of the instruction is the same it gets executed.

27:25.720 --> 27:30.120
If not a fallback procedure has to be followed depending on the system.

27:30.120 --> 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.

27:46.230 --> 27:47.610
Why this is important?

27:48.210 --> 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.

28:03.030 --> 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.

28:17.810 --> 28:25.430
Unfortunately there after connecting my debugger I discovered that both the JTAG interfaces are locked.

28:26.810 --> 28:33.190
And after I desperately started clicking on my power supply I realized something really interesting.

28:33.510 --> 28:39.270
And here you can see, uh, did it start?

28:39.270 --> 28:39.290
I think it did .

28:39.930 --> 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.

28:50.870 --> 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.

29:04.050 --> 29:06.150
So yes, we got access to the secure controller.

29:06.150 --> 29:12.590
In this case we basically got to enable the debug access in a really short period of time during boot.

29:13.150 --> 29:17.650
And as a result we can control the execution and dump the memory of the vulnerable controller.

29:17.930 --> 29:19.430
I love automotive security.

29:20.090 --> 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,

29:44.410 --> 29:47.310
we realize that our assumptions are correct.

29:47.770 --> 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.

29:58.190 --> 30:02.070
As my process of discovering weak sources of randomness until now was unbeatable.

30:02.210 --> 30:03.830
So what is happening here?

30:04.890 --> 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.

30:15.830 --> 30:19.470
Which is that the middle byte of the seed is incrementing by one.

30:20.290 --> 30:25.470
My assumption seemed more correct than ever but I was also more confused than ever.

30:25.470 --> 30:28.410
There was some missing piece that I was struggling to find.

30:28.410 --> 30:32.970
Some implemented mitigation that was in front of me but could not see it.

30:32.970 --> 30:34.810
What this mitigation was.

30:36.530 --> 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.

30:45.670 --> 30:51.090
As we are talking about a telematics unit that has to be always available for SOS calls.

30:51.510 --> 30:57.650
And if that's the case, how can we control a power cycle in more ways than an ECU reset?

30:58.290 --> 31:01.370
And that's where my favorite relay comes into play.

31:01.610 --> 31:11.070
And we immediately see not only duplicate but a complete compromise of the unit here.

31:11.490 --> 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.

31:19.690 --> 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.

31:34.070 --> 31:38.550
So we got a bit pranked for a second there but found a way through eventually.

31:39.330 --> 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.

31:54.290 --> 32:02.590
Mainly used in safety related incidents to cut power and mitigate the risk of fires and other issues.

32:02.710 --> 32:08.430
But I used it to bypass restrictions that were only possible on individual ECUs.

32:08.430 --> 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.

32:17.310 --> 32:21.250
Here we see the exposed battery isolator of heavy duty vehicles.

32:21.810 --> 32:24.690
And here we see something I discovered a couple of weeks ago.

32:24.690 --> 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.

32:38.510 --> 32:42.470
This is a sample list of the applicable findings for this ECU.

32:42.850 --> 32:46.490
And of course I had no response so I guess nothing to see here.

32:47.210 --> 32:50.030
But it's not only dark and stormy days.

32:50.030 --> 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.

33:08.430 --> 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.

33:24.970 --> 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.

33:37.810 --> 33:43.330
While the hardware used was one of the cheapest of the self hardware a developer can buy.

33:43.710 --> 33:45.990
And what was the solution in this case?

33:46.130 --> 33:50.010
One of the cheapest of the self hardware a developer can buy.

33:50.110 --> 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.

33:58.530 --> 34:04.380
Of course it's not built for safety critical functionality and its main focus is automation.

34:04.380 --> 34:11.760
But for the case we needed, for the case needed, there was nothing more needed by the OEM in this case.

34:11.760 --> 34:15.260
And from a security standpoint it proved a big point.

34:15.260 --> 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.

34:25.900 --> 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.

34:38.760 --> 34:45.500
And I say it again, with $10, but does it solve completely the problem here?

34:45.640 --> 34:47.120
Of course not.

34:47.200 --> 34:49.580
There are still ways to bypass these mitigations.

34:49.580 --> 34:56.540
But the point is how difficult and financially viable you make it for an attacker to perform an attack like this.

34:56.600 --> 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.

35:02.660 --> 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.

35:13.040 --> 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?

35:27.360 --> 35:32.840
And my answer is that it's up to us, all of us here, to make the best out of it.

35:32.840 --> 35:36.140
The best out of our work and our research.

35:36.180 --> 35:41.760
To pass out our culture to the people that we're working with, from the higher to the lower level.

35:41.760 --> 35:49.420
Not with bitching, not with attitudes, but with scientific proof, with our POCs, with our posts and our talks.

35:49.440 --> 35:52.380
Let's make the world a safer place, one POC at a time.

35:52.380 --> 35:58.640
And in honor to this year's theme, remember, to take back the internet, we need to engage.

35:59.360 --> 36:00.380
Thank you.

36:10.630 --> 36:12.170
Any questions?

36:23.960 --> 36:26.120
Hi, awesome talk, thank you.

36:27.320 --> 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?

36:37.920 --> 36:41.080
Yeah, look, there are several things that we can do.

36:41.080 --> 36:42.100
I agree with you.

36:42.100 --> 36:49.920
The problem is that you have to take several steps into reaching a point that I will follow your advice.

36:49.920 --> 36:52.880
I mean, the specific advice you gave right now.

36:52.880 --> 36:59.660
It's like, I agree with you, but I would expect that the manufacturer already handled it.

36:59.660 --> 37:03.460
Of course, in many of the cases, maybe I did it.

37:03.460 --> 37:06.040
I cannot reveal it to you, but maybe I did it.

37:06.440 --> 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.

37:15.740 --> 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.

37:23.860 --> 37:28.780
They want to operate securely and write good code and all the rest of it.

37:28.780 --> 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.

37:39.260 --> 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?

37:49.100 --> 37:49.980
I agree.

37:49.980 --> 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.

37:57.840 --> 38:01.760
You know, there are the commercial conferences that everyone brags about from the industry.

38:01.760 --> 38:03.120
We also need to talk about stuff.

38:03.120 --> 38:08.360
We also need to be able to get the stand and start discussing about these things.

38:08.940 --> 38:09.840
Thank you very much.

38:09.840 --> 38:10.200
It was awesome.

38:10.200 --> 38:10.920
Thank you.

38:12.500 --> 38:14.300
Hi, again, thank you for the talk.

38:14.300 --> 38:15.360
Amazing talk.

38:15.540 --> 38:23.220
Do you think emerging technologies such as automotive Ethernet or secure CAN transceivers might help mitigate some of the risk?

38:23.560 --> 38:24.900
Definitely, definitely.

38:24.900 --> 38:26.780
And we see a change in the industry.

38:26.780 --> 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.

38:36.780 --> 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.

38:46.560 --> 38:47.920
So, this is the main difference.

38:47.920 --> 38:51.580
They have way more experience in this, but the industry needs to catch up.

38:51.580 --> 38:54.800
They are exposing so many things and they need to do something about it.

38:55.200 --> 38:56.040
Thank you.

38:56.040 --> 38:56.740
Thanks.

38:58.220 --> 38:59.700
Thank you for your talk.

38:59.700 --> 39:00.360
This was great.

39:00.360 --> 39:02.040
My question is regarding your toolkit.

39:02.040 --> 39:06.480
Is everything, you know, Hadoop, Python... My question is about your toolkit.

39:06.480 --> 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.

39:20.480 --> 39:22.160
What's the name of that tool?

39:22.480 --> 39:23.680
Carrying Caribou Next.

39:23.680 --> 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.

39:33.640 --> 39:34.220
Thank you.

39:34.220 --> 39:35.320
You're welcome.

