start	end	text
0	8740	Hello, my name is Seunghee Han. I'm a small girl from Korea and the first author of this talk.
9680	15420	It's my first time at DEF CON, so I'm very nervous and so excited.
16140	25500	Anyway, the title of this talk is UDS on CAN attacks, discovering safety, critical risk by fuzzing.
25500	35940	In this presentation, I will talk about the weak points that I found in the latest EV models by fuzzing test.
38060	47660	Before the presentation, let me introduce ourselves. We are all security researchers at Autocrypt.
47660	56520	Autocrypt is a mobility security company. Nowadays, we are focusing on vehicle security.
56520	70020	With the 2020 WP.29, it's car cybersecurity rules. All car makers must get CSMS certification.
70020	76810	So, we have been doing fuzzing tests with many OEMs and tier suppliers.
77880	83440	During the fuzzing test, I found some strange behavior in the car.
83440	87680	The moving car was stopped, or it didn't move.
88260	97480	This video is showing the weak point that I found in the latest EV model. Let's take a look.
101260	103420	Can we play a sound?
112840	115520	Okay, let's see one more.
117260	121480	The moving car was stopped. Are you interested?
122400	128940	Now, I will explain why this happened, so please pay attention.
129780	136680	Contents are as follows. First, I will explain UDS and fuzzing.
136680	146960	Then, I will explain what the type of attacks that I did, and explain how to prevent this weak point.
147960	158500	I told you, I found a weakness during the fuzzing test. The moving car was stopped, or didn't move at all.
158500	165840	I will explain how these problems are connected to UDS, and what caused them.
166560	173060	First, UDS is a protocol used for communication with vehicles.
173060	187880	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?
188160	193400	The tool used to find out what's wrong is UDS.
194200	202520	During this process, the diagnostic tool and the car communicate using UDS to determine the problem.
204520	216940	As I mentioned, UDS services perform important functions, so not everyone can use these services freely.
216980	223900	You can see some of the security measures on this slide. I will give you more details later.
226310	235070	To ensure that UDS is well protected, many car companies do fuzzing tests.
235070	243280	Fuzzing is a testing method where random or unusual data is fed into a system to find problems.
243770	253410	The goal of this test is to see how the system behaves under stress and to find security issues.
253410	261380	In the vehicle industry, we commonly do black box fuzzing using commercial fuzzers.
261380	272740	There are many talks about CAN, UDS, and UDS fuzzing in CHP. Check out those talks for more details.
273640	280740	During the UDS fuzzing test, we discovered something is wrong.
280740	292080	The vehicle malfunctioned with two services. The first is ECU reset, and the second is communication control.
292220	298040	Based on these findings, we made real-world attack scenarios.
298040	306910	The first scenario is sudden stop, and the second is disabling of vehicle usage.
308610	316370	Before explaining the attacks, you need to understand the two services.
316370	329420	The first service is ECU reset. It is used to reset the ECU. It is often used for troubleshooting or testing purposes.
337160	341200	This is the actual message that I did.
342020	350080	You can perform hard reset with the first sub-function.
350780	354300	This is the hard reset message.
354680	361020	And you can perform soft reset with the third sub-function.
362040	365200	It's the soft reset message.
372420	380600	With the ECU reset message, you can stop the vehicle's engine.
380600	384440	There are two scenarios that I did.
384440	392280	The first is sending an ECU reset message to a moving vehicle to make it stop suddenly.
392380	397540	And the second scenario is vehicle disabling.
397540	405000	Continuously sending ECU reset messages to disable the vehicle's functions.
405640	413760	The root cause of these issues is that ECU reset is not disabled in drive mode.
414060	421660	Normally, this service is restricted during driving because it can be dangerous.
421660	434980	And ISO 14229 says that the condition of server is ignition is on and system not be in an operational mode.
437500	444800	I tested this on a new Lattice EV SUV model.
444800	448920	And the target ECU is the gateway control unit.
448920	454360	I conducted the test while the vehicle was driving.
457140	460180	Here are the attack steps.
460180	466000	Connect the laptop to the vehicle's OBD port using a CAN interface.
466260	469120	And just start the engine.
469460	471820	Then we send a message.
471860	475170	And observe the vehicle. It's that simple.
476890	481730	This photo shows the hardware setup.
481730	490270	The OBD cable is connected to the OBD port and the laptop is connected via the CAN interface.
490270	495570	The CAN bus parameters are set to standard values.
496650	501670	The first scenario is sudden stop scenario.
502730	513040	Set up the hardware setting and just we send the ECU reset message to moving vehicle.
514170	518080	Then the moving vehicle comes to a sudden stop.
520650	524550	Let's check it out through the video.
524730	529450	The video is very short, so watch it carefully.
539170	542970	Um... no sounds. Okay.
545070	547170	Let's see one more.
549410	554530	We sent a message, then the moving car was stopped.
556810	562090	I'm gonna play one more. This time, please look at the cluster.
567550	572150	After the message, the cluster was turned off.
572150	576030	It was rebooted, but the car shut down.
577030	583300	The video on the left shows the exterior.
590520	599820	You can see the car moving back and forth and back and forth, which shows that the brake pedal was not pressed.
602100	607180	This attack can cause mechanical failure or damage.
607180	612360	At high speeds, this could lead to serious accidents.
615820	619670	The second scenario is vehicle disabling.
620100	628480	It's similar to the first scenario, but in this case, the ECU reset message is sent continuously.
629520	633630	The vehicle cannot be controlled until the attack stops.
637910	644850	The vehicle starts, and the message is sent continuously.
648890	655610	The vehicle will not start, and the gear shifting is disabled.
655960	659420	The vehicle is completely uncontrollable.
667970	671020	Let's watch it one more time.
671710	676050	Again, the cluster. Please look at the cluster.
679090	685160	The cluster screen turns off, and multiple warnings appear.
689310	698410	Due to the continuous attack, the cluster shuts down, and the vehicle becomes uncontrollable.
699850	704050	The driver appears to be very confused.
708310	712430	Here are the logs of the ECU reset attacks.
712430	716410	Some parts are blurred for security reasons.
716730	721590	You can see the logs of both hard reset and soft reset.
723970	735850	To summarize the ECU reset attack, in drive mode, you can stop the engine by using ECU reset message.
736750	742250	Continuous attacks can prevent the driver from controlling the vehicle.
742250	749050	Also, the cluster will reboot and appear multiple warnings.
749050	753570	These attacks can be very dangerous on the road.
753650	760650	Therefore, this service must be operated only in not ready state.
762190	766750	Here is the first service description. How is it?
766750	772910	Good? Okay, now I will explain the second service.
775900	781160	The second service is communication control.
782440	790180	This service is used to control the communication functions of the ECU.
791740	795200	This is the actual message that I did.
796380	802460	And also, you can set the control type using the sub-functions.
803420	810460	The strange behavior appears with sub-function 1 and 3.
815820	823260	Use sub-function 1 to enable RX and disable TX of the ECU.
824960	829240	This is the message for sub-function 1.
829260	838460	And you also use sub-function 3 to disable RX and TX.
838880	842260	This is the message for sub-function 3.
843000	849580	You can control the issue's communication type using this method.
852190	862730	An attacker can disable TX and RX of the ECU by transmitting communication control message.
863070	866750	I performed two scenarios.
867310	872450	The first is brief pause and sudden movement.
872450	877170	And second scenario is vehicle disabling.
877170	885510	The root cause of this strange behavior is that communication control is not disabled in drive mode.
886230	894390	And also, this service does not require security authentication.
896090	901650	The first scenario is brief pause and sudden movement.
901650	908510	Set the hardware setting and set the gear to drive.
908510	911130	Then just resend the message.
913600	920200	The driver will release the brake pedal to move forward.
920720	929480	But the vehicle does not move for a few seconds even when the foot is taken off the brake pedal in drive mode.
929480	934760	After a few seconds, the vehicle suddenly moves.
938090	941050	Okay, let's check it out through the video.
962110	965990	I'm sorry, the sound is not playing.
967310	969850	I'm going to play one more.
970430	972270	Please check the cluster.
975210	979770	The gear is set to drive. Then we send a message.
980770	985070	The vehicle doesn't move even when the brake pedal is released.
985330	989970	Then, after a few seconds, it suddenly moves.
990330	993010	It's an interesting symptom.
996050	999370	I will explain the second scenario.
999370	1003870	The second scenario is vehicle disabling attack.
1004830	1010390	It's similar to the first, but this time we send a message continuously.
1010390	1019730	When attack messages are sent in succession, the driver loses complete control over the vehicle.
1022370	1024030	Let's take a look.
1044650	1047770	We send messages continuously.
1057890	1063910	Yeah, the driver sets the gear to drive.
1065050	1067330	Then we send a message.
1068650	1072210	We send messages continuously.
1075290	1080750	The scariest part is that we don't know when the attacker will stop.
1081390	1091810	When we stop the attack, the vehicle suddenly starts moving.
1093090	1097990	If the driver is pressing the gas, it's very, very dangerous.
1099110	1105230	Okay, let me summarize the communication control attack.
1105230	1112190	This type of attack can disable the transmission and reception of the ECU.
1112190	1121210	As shown in the previous video, it can control the vehicle either briefly or continuously.
1122210	1132270	Unlike on previous attack ECU reset, this attack doesn't turn off the ECU.
1132610	1138510	So, when the attack stops, the vehicle could suddenly move.
1140960	1147270	Therefore, this service should be operated only if not ready.
1148470	1153230	Here are the logs of communication attacks.
1153290	1158390	Some parts are blurred for security reasons too.
1160350	1166430	So, how could these attacks happen in real life?
1166430	1168330	You might wonder.
1168750	1171390	Here are some examples.
1171390	1182550	First, an attacker secretly enters the vehicle and connects the wireless OBD device.
1184090	1188930	Some OEMs use wireless diagnostic tools.
1188950	1195590	Since drivers usually don't check the OBD port, the vehicle could be unprotected.
1196590	1206740	And second, attacks can happen from a short distance using wireless communication like Wi-Fi or Bluetooth.
1207870	1213790	Some OEMs use Wi-Fi to connect diagnostic tools.
1214890	1220710	Vehicles without security measures are very vulnerable to these types of attacks.
1220710	1224530	That's why such attacks could happen at any time.
1225590	1231410	So, I'll suggest two countermeasures for these attacks.
1231410	1241650	The first, important services like ECU reset and communication control must be operated only in not ready state.
1241650	1244770	It's meaning when the engine is off.
1244950	1253850	The second, these services should only be possible after security access authorization is granted.
1253850	1258270	I shortly mentioned the security access service earlier.
1261610	1270110	To time restrictions, I will explain just one thing about the security access authorization.
1270470	1273310	There is the security access service.
1273310	1279970	This service uses a seed and key to provide security procedure.
1279970	1286410	It only unlocks security when the correct seed and the key.
1286990	1295150	If authentication fails, it locks the ECU for a certain time to enhance security.
1296430	1305150	There is also, when connecting a diagnostic tool, some OEMs use security algorithms.
1306550	1311210	And another measure is the gateway safety function.
1313790	1325790	Previously, various data could be accessed without filtering, but now the gateway filters the data, allowing only certain information to be accessed.
1326370	1331330	So, I discovered this weak point in April.
1331330	1338190	After conducting additional tests, I reported on June 10th.
1338190	1348670	But I was told that the vulnerability is not actionable in reality and that it works as it is designed.
1348670	1354590	However, I still believe it is a weakness.
1354590	1362650	I believe that after hearing my presentation today, you will agree with me.
1364010	1367570	Okay, finally, let me summarize.
1368050	1374050	Some diagnostic services can have a significant impact on vehicle driving.
1374590	1383550	If an attacker transmits the diagnostic message to a driving vehicle, a serious accident may occur.
1383550	1389990	So, security for diagnostic services is essential.
1390810	1396050	That's all for my presentation. Thank you for listening.
1398740	1406340	Okay, my name is Seunghee Han. I'm from South Korea, not North. Thank you!
