[00:00.000 --> 00:08.740] Hello, my name is Seunghee Han. I'm a small girl from Korea and the first author of this talk. [00:09.680 --> 00:15.420] It's my first time at DEF CON, so I'm very nervous and so excited. [00:16.140 --> 00:25.500] Anyway, the title of this talk is UDS on CAN attacks, discovering safety, critical risk by fuzzing. [00:25.500 --> 00:35.940] In this presentation, I will talk about the weak points that I found in the latest EV models by fuzzing test. [00:38.060 --> 00:47.660] Before the presentation, let me introduce ourselves. We are all security researchers at Autocrypt. [00:47.660 --> 00:56.520] Autocrypt is a mobility security company. Nowadays, we are focusing on vehicle security. [00:56.520 --> 01:10.020] With the 2020 WP.29, it's car cybersecurity rules. All car makers must get CSMS certification. [01:10.020 --> 01:16.810] So, we have been doing fuzzing tests with many OEMs and tier suppliers. [01:17.880 --> 01:23.440] During the fuzzing test, I found some strange behavior in the car. [01:23.440 --> 01:27.680] The moving car was stopped, or it didn't move. [01:28.260 --> 01:37.480] This video is showing the weak point that I found in the latest EV model. Let's take a look. [01:41.260 --> 01:43.420] Can we play a sound? [01:52.840 --> 01:55.520] Okay, let's see one more. [01:57.260 --> 02:01.480] The moving car was stopped. Are you interested? [02:02.400 --> 02:08.940] Now, I will explain why this happened, so please pay attention. [02:09.780 --> 02:16.680] Contents are as follows. First, I will explain UDS and fuzzing. [02:16.680 --> 02:26.960] Then, I will explain what the type of attacks that I did, and explain how to prevent this weak point. [02:27.960 --> 02:38.500] I told you, I found a weakness during the fuzzing test. The moving car was stopped, or didn't move at all. [02:38.500 --> 02:45.840] I will explain how these problems are connected to UDS, and what caused them. [02:46.560 --> 02:53.060] First, UDS is a protocol used for communication with vehicles. [02:53.060 --> 03:07.880] It is defined in ISO 14229. I don't have a car, but if you have one, you probably go to a repair shop when something goes wrong with your car, right? [03:08.160 --> 03:13.400] The tool used to find out what's wrong is UDS. [03:14.200 --> 03:22.520] During this process, the diagnostic tool and the car communicate using UDS to determine the problem. [03:24.520 --> 03:36.940] As I mentioned, UDS services perform important functions, so not everyone can use these services freely. [03:36.980 --> 03:43.900] You can see some of the security measures on this slide. I will give you more details later. [03:46.310 --> 03:55.070] To ensure that UDS is well protected, many car companies do fuzzing tests. [03:55.070 --> 04:03.280] Fuzzing is a testing method where random or unusual data is fed into a system to find problems. [04:03.770 --> 04:13.410] The goal of this test is to see how the system behaves under stress and to find security issues. [04:13.410 --> 04:21.380] In the vehicle industry, we commonly do black box fuzzing using commercial fuzzers. [04:21.380 --> 04:32.740] There are many talks about CAN, UDS, and UDS fuzzing in CHP. Check out those talks for more details. [04:33.640 --> 04:40.740] During the UDS fuzzing test, we discovered something is wrong. [04:40.740 --> 04:52.080] The vehicle malfunctioned with two services. The first is ECU reset, and the second is communication control. [04:52.220 --> 04:58.040] Based on these findings, we made real-world attack scenarios. [04:58.040 --> 05:06.910] The first scenario is sudden stop, and the second is disabling of vehicle usage. [05:08.610 --> 05:16.370] Before explaining the attacks, you need to understand the two services. [05:16.370 --> 05:29.420] The first service is ECU reset. It is used to reset the ECU. It is often used for troubleshooting or testing purposes. [05:37.160 --> 05:41.200] This is the actual message that I did. [05:42.020 --> 05:50.080] You can perform hard reset with the first sub-function. [05:50.780 --> 05:54.300] This is the hard reset message. [05:54.680 --> 06:01.020] And you can perform soft reset with the third sub-function. [06:02.040 --> 06:05.200] It's the soft reset message. [06:12.420 --> 06:20.600] With the ECU reset message, you can stop the vehicle's engine. [06:20.600 --> 06:24.440] There are two scenarios that I did. [06:24.440 --> 06:32.280] The first is sending an ECU reset message to a moving vehicle to make it stop suddenly. [06:32.380 --> 06:37.540] And the second scenario is vehicle disabling. [06:37.540 --> 06:45.000] Continuously sending ECU reset messages to disable the vehicle's functions. [06:45.640 --> 06:53.760] The root cause of these issues is that ECU reset is not disabled in drive mode. [06:54.060 --> 07:01.660] Normally, this service is restricted during driving because it can be dangerous. [07:01.660 --> 07:14.980] And ISO 14229 says that the condition of server is ignition is on and system not be in an operational mode. [07:17.500 --> 07:24.800] I tested this on a new Lattice EV SUV model. [07:24.800 --> 07:28.920] And the target ECU is the gateway control unit. [07:28.920 --> 07:34.360] I conducted the test while the vehicle was driving. [07:37.140 --> 07:40.180] Here are the attack steps. [07:40.180 --> 07:46.000] Connect the laptop to the vehicle's OBD port using a CAN interface. [07:46.260 --> 07:49.120] And just start the engine. [07:49.460 --> 07:51.820] Then we send a message. [07:51.860 --> 07:55.170] And observe the vehicle. It's that simple. [07:56.890 --> 08:01.730] This photo shows the hardware setup. [08:01.730 --> 08:10.270] The OBD cable is connected to the OBD port and the laptop is connected via the CAN interface. [08:10.270 --> 08:15.570] The CAN bus parameters are set to standard values. [08:16.650 --> 08:21.670] The first scenario is sudden stop scenario. [08:22.730 --> 08:33.040] Set up the hardware setting and just we send the ECU reset message to moving vehicle. [08:34.170 --> 08:38.080] Then the moving vehicle comes to a sudden stop. [08:40.650 --> 08:44.550] Let's check it out through the video. [08:44.730 --> 08:49.450] The video is very short, so watch it carefully. [08:59.170 --> 09:02.970] Um... no sounds. Okay. [09:05.070 --> 09:07.170] Let's see one more. [09:09.410 --> 09:14.530] We sent a message, then the moving car was stopped. [09:16.810 --> 09:22.090] I'm gonna play one more. This time, please look at the cluster. [09:27.550 --> 09:32.150] After the message, the cluster was turned off. [09:32.150 --> 09:36.030] It was rebooted, but the car shut down. [09:37.030 --> 09:43.300] The video on the left shows the exterior. [09:50.520 --> 09:59.820] You can see the car moving back and forth and back and forth, which shows that the brake pedal was not pressed. [10:02.100 --> 10:07.180] This attack can cause mechanical failure or damage. [10:07.180 --> 10:12.360] At high speeds, this could lead to serious accidents. [10:15.820 --> 10:19.670] The second scenario is vehicle disabling. [10:20.100 --> 10:28.480] It's similar to the first scenario, but in this case, the ECU reset message is sent continuously. [10:29.520 --> 10:33.630] The vehicle cannot be controlled until the attack stops. [10:37.910 --> 10:44.850] The vehicle starts, and the message is sent continuously. [10:48.890 --> 10:55.610] The vehicle will not start, and the gear shifting is disabled. [10:55.960 --> 10:59.420] The vehicle is completely uncontrollable. [11:07.970 --> 11:11.020] Let's watch it one more time. [11:11.710 --> 11:16.050] Again, the cluster. Please look at the cluster. [11:19.090 --> 11:25.160] The cluster screen turns off, and multiple warnings appear. [11:29.310 --> 11:38.410] Due to the continuous attack, the cluster shuts down, and the vehicle becomes uncontrollable. [11:39.850 --> 11:44.050] The driver appears to be very confused. [11:48.310 --> 11:52.430] Here are the logs of the ECU reset attacks. [11:52.430 --> 11:56.410] Some parts are blurred for security reasons. [11:56.730 --> 12:01.590] You can see the logs of both hard reset and soft reset. [12:03.970 --> 12:15.850] To summarize the ECU reset attack, in drive mode, you can stop the engine by using ECU reset message. [12:16.750 --> 12:22.250] Continuous attacks can prevent the driver from controlling the vehicle. [12:22.250 --> 12:29.050] Also, the cluster will reboot and appear multiple warnings. [12:29.050 --> 12:33.570] These attacks can be very dangerous on the road. [12:33.650 --> 12:40.650] Therefore, this service must be operated only in not ready state. [12:42.190 --> 12:46.750] Here is the first service description. How is it? [12:46.750 --> 12:52.910] Good? Okay, now I will explain the second service. [12:55.900 --> 13:01.160] The second service is communication control. [13:02.440 --> 13:10.180] This service is used to control the communication functions of the ECU. [13:11.740 --> 13:15.200] This is the actual message that I did. [13:16.380 --> 13:22.460] And also, you can set the control type using the sub-functions. [13:23.420 --> 13:30.460] The strange behavior appears with sub-function 1 and 3. [13:35.820 --> 13:43.260] Use sub-function 1 to enable RX and disable TX of the ECU. [13:44.960 --> 13:49.240] This is the message for sub-function 1. [13:49.260 --> 13:58.460] And you also use sub-function 3 to disable RX and TX. [13:58.880 --> 14:02.260] This is the message for sub-function 3. [14:03.000 --> 14:09.580] You can control the issue's communication type using this method. [14:12.190 --> 14:22.730] An attacker can disable TX and RX of the ECU by transmitting communication control message. [14:23.070 --> 14:26.750] I performed two scenarios. [14:27.310 --> 14:32.450] The first is brief pause and sudden movement. [14:32.450 --> 14:37.170] And second scenario is vehicle disabling. [14:37.170 --> 14:45.510] The root cause of this strange behavior is that communication control is not disabled in drive mode. [14:46.230 --> 14:54.390] And also, this service does not require security authentication. [14:56.090 --> 15:01.650] The first scenario is brief pause and sudden movement. [15:01.650 --> 15:08.510] Set the hardware setting and set the gear to drive. [15:08.510 --> 15:11.130] Then just resend the message. [15:13.600 --> 15:20.200] The driver will release the brake pedal to move forward. [15:20.720 --> 15:29.480] But the vehicle does not move for a few seconds even when the foot is taken off the brake pedal in drive mode. [15:29.480 --> 15:34.760] After a few seconds, the vehicle suddenly moves. [15:38.090 --> 15:41.050] Okay, let's check it out through the video. [16:02.110 --> 16:05.990] I'm sorry, the sound is not playing. [16:07.310 --> 16:09.850] I'm going to play one more. [16:10.430 --> 16:12.270] Please check the cluster. [16:15.210 --> 16:19.770] The gear is set to drive. Then we send a message. [16:20.770 --> 16:25.070] The vehicle doesn't move even when the brake pedal is released. [16:25.330 --> 16:29.970] Then, after a few seconds, it suddenly moves. [16:30.330 --> 16:33.010] It's an interesting symptom. [16:36.050 --> 16:39.370] I will explain the second scenario. [16:39.370 --> 16:43.870] The second scenario is vehicle disabling attack. [16:44.830 --> 16:50.390] It's similar to the first, but this time we send a message continuously. [16:50.390 --> 16:59.730] When attack messages are sent in succession, the driver loses complete control over the vehicle. [17:02.370 --> 17:04.030] Let's take a look. [17:24.650 --> 17:27.770] We send messages continuously. [17:37.890 --> 17:43.910] Yeah, the driver sets the gear to drive. [17:45.050 --> 17:47.330] Then we send a message. [17:48.650 --> 17:52.210] We send messages continuously. [17:55.290 --> 18:00.750] The scariest part is that we don't know when the attacker will stop. [18:01.390 --> 18:11.810] When we stop the attack, the vehicle suddenly starts moving. [18:13.090 --> 18:17.990] If the driver is pressing the gas, it's very, very dangerous. [18:19.110 --> 18:25.230] Okay, let me summarize the communication control attack. [18:25.230 --> 18:32.190] This type of attack can disable the transmission and reception of the ECU. [18:32.190 --> 18:41.210] As shown in the previous video, it can control the vehicle either briefly or continuously. [18:42.210 --> 18:52.270] Unlike on previous attack ECU reset, this attack doesn't turn off the ECU. [18:52.610 --> 18:58.510] So, when the attack stops, the vehicle could suddenly move. [19:00.960 --> 19:07.270] Therefore, this service should be operated only if not ready. [19:08.470 --> 19:13.230] Here are the logs of communication attacks. [19:13.290 --> 19:18.390] Some parts are blurred for security reasons too. [19:20.350 --> 19:26.430] So, how could these attacks happen in real life? [19:26.430 --> 19:28.330] You might wonder. [19:28.750 --> 19:31.390] Here are some examples. [19:31.390 --> 19:42.550] First, an attacker secretly enters the vehicle and connects the wireless OBD device. [19:44.090 --> 19:48.930] Some OEMs use wireless diagnostic tools. [19:48.950 --> 19:55.590] Since drivers usually don't check the OBD port, the vehicle could be unprotected. [19:56.590 --> 20:06.740] And second, attacks can happen from a short distance using wireless communication like Wi-Fi or Bluetooth. [20:07.870 --> 20:13.790] Some OEMs use Wi-Fi to connect diagnostic tools. [20:14.890 --> 20:20.710] Vehicles without security measures are very vulnerable to these types of attacks. [20:20.710 --> 20:24.530] That's why such attacks could happen at any time. [20:25.590 --> 20:31.410] So, I'll suggest two countermeasures for these attacks. [20:31.410 --> 20:41.650] The first, important services like ECU reset and communication control must be operated only in not ready state. [20:41.650 --> 20:44.770] It's meaning when the engine is off. [20:44.950 --> 20:53.850] The second, these services should only be possible after security access authorization is granted. [20:53.850 --> 20:58.270] I shortly mentioned the security access service earlier. [21:01.610 --> 21:10.110] To time restrictions, I will explain just one thing about the security access authorization. [21:10.470 --> 21:13.310] There is the security access service. [21:13.310 --> 21:19.970] This service uses a seed and key to provide security procedure. [21:19.970 --> 21:26.410] It only unlocks security when the correct seed and the key. [21:26.990 --> 21:35.150] If authentication fails, it locks the ECU for a certain time to enhance security. [21:36.430 --> 21:45.150] There is also, when connecting a diagnostic tool, some OEMs use security algorithms. [21:46.550 --> 21:51.210] And another measure is the gateway safety function. [21:53.790 --> 22:05.790] Previously, various data could be accessed without filtering, but now the gateway filters the data, allowing only certain information to be accessed. [22:06.370 --> 22:11.330] So, I discovered this weak point in April. [22:11.330 --> 22:18.190] After conducting additional tests, I reported on June 10th. [22:18.190 --> 22:28.670] But I was told that the vulnerability is not actionable in reality and that it works as it is designed. [22:28.670 --> 22:34.590] However, I still believe it is a weakness. [22:34.590 --> 22:42.650] I believe that after hearing my presentation today, you will agree with me. [22:44.010 --> 22:47.570] Okay, finally, let me summarize. [22:48.050 --> 22:54.050] Some diagnostic services can have a significant impact on vehicle driving. [22:54.590 --> 23:03.550] If an attacker transmits the diagnostic message to a driving vehicle, a serious accident may occur. [23:03.550 --> 23:09.990] So, security for diagnostic services is essential. [23:10.810 --> 23:16.050] That's all for my presentation. Thank you for listening. [23:18.740 --> 23:26.340] Okay, my name is Seunghee Han. I'm from South Korea, not North. Thank you!