[00:00.000 --> 00:03.980] So we are Ben and Vladan from IBM X-Force Red and we are [00:05.020 --> 00:07.840] involved in a lot of stuff but we like to hack [00:07.840 --> 00:12.780] hardware, software and especially if something has wheels and it's moving it [00:12.780 --> 00:16.020] is interesting target for us. So we spend a lot of time actually [00:16.020 --> 00:20.620] working with vehicle security testing and today we are [00:20.620 --> 00:24.440] here to share a little bit of of stuff that we encounter through the [00:24.440 --> 00:27.900] years with you. So what we are going to cover today is [00:27.900 --> 00:31.880] about hacking car infotainment system and [00:31.880 --> 00:35.280] how far we can actually go with it. So where are the dangers [00:36.020 --> 00:39.600] and what is the approach that we have discovered which [00:39.600 --> 00:43.240] is different than everybody else is using. So [00:44.220 --> 00:47.780] why it is important. So unfortunately cars are becoming a lot [00:47.780 --> 00:51.800] more cars are becoming a lot more complex than they [00:51.800 --> 00:56.660] were before. So this screen we can see different number of lines of code [00:56.660 --> 01:00.940] that are used to develop specific systems and we see that Facebook is [01:00.940 --> 01:04.660] something about 6.7 million lines of code. [01:05.040 --> 01:12.700] Boeing 787 is a 7 million and we have Ford F150 150 million [01:12.700 --> 01:16.440] lines of code including all systems in the car. [01:16.440 --> 01:19.620] So current modern car can have more than 200 kilos [01:19.620 --> 01:23.800] of just electronic and wires in it. So you will find [01:24.480 --> 01:28.160] like a hundred different smart computing units. So i'm not saying [01:28.160 --> 01:29.880] computer because they are of different level [01:29.880 --> 01:33.400] but smart computer units which control specific functions [01:33.400 --> 01:38.660] from your entertainment system from your convenience systems until the [01:38.660 --> 01:42.340] suspension motor ignition and and everything else. [01:42.340 --> 01:46.180] So cars become a really complex multi-computer systems [01:46.180 --> 01:50.620] which are all connected and they're becoming more and more connected and [01:50.620 --> 01:55.080] exposed even to the internet. So we all like our infotainment system [01:55.080 --> 01:59.780] because it gives us constant access to everything. So we have we can watch [01:59.780 --> 02:03.800] movies while we stand fortunately, we can gain [02:03.800 --> 02:06.440] information from the internet, we can retrieve data from [02:06.440 --> 02:11.780] systems about roads, states of situation on road, if there are [02:11.780 --> 02:15.220] congestion, non-congestion, we can do a lot of stuff. So it needs to [02:15.220 --> 02:18.040] be complex in order to support all of this. [02:19.460 --> 02:23.700] What is infotainment system? It is a not so simple thing that we can think [02:23.700 --> 02:27.400] what we see in our car is just a small screen which is [02:27.400 --> 02:30.060] presented to us and we interact with this screen by [02:30.060 --> 02:33.860] touching it, moving it, abusing it to different ways, [02:33.860 --> 02:37.560] spilling our coffee on it. But it is just what is exposed so we [02:37.560 --> 02:40.900] can actually see. What is behind it is usually much much [02:40.900 --> 02:44.960] more complex than it. So it can contain different features [02:44.960 --> 02:52.040] radio, bluetooth, control cameras inside, outside, recording. In autonomous car it [02:52.040 --> 02:54.280] can have even more stuff. So if you have lane assist [02:54.980 --> 02:58.020] it is used to do this lane assist. So [02:58.020 --> 03:03.040] cameras will be picking up the data, sending it to [03:03.040 --> 03:05.320] your infotainment system and it will do processing and [03:05.320 --> 03:12.640] help you stay out of the lines. So to keep you straight on. So there is a [03:12.640 --> 03:16.500] lot of stuff that is integrated, that is connected. We [03:16.500 --> 03:19.360] see a lot of radio communication. So for example your [03:19.360 --> 03:22.440] tire pressure monitoring system, it is all wireless. [03:22.840 --> 03:26.380] You can have bluetooth, you can have wi-fi, you can have [03:27.300 --> 03:30.700] a lot of different technology and car is becoming actually [03:30.700 --> 03:36.020] like mobile phone on the wheels. So that's unfortunate because we know how [03:36.020 --> 03:38.960] bad we are surviving our mobiles. They take [03:38.960 --> 03:41.520] all of the time, we are looking at them all the time [03:41.520 --> 03:45.260] and we can hit stuff while we are walking. Imagine that happening while [03:45.260 --> 03:48.180] you are driving. Not the best situation for sure. [03:49.480 --> 03:52.460] So as I mentioned, what we see is just a single [03:53.000 --> 03:58.140] head unit usually, which is displaying all information. But behind it we have a [03:58.140 --> 04:02.220] plethora of different systems which are used to collect this [04:02.220 --> 04:05.980] information and to process and in the end to present it to us. [04:05.980 --> 04:12.300] So in a specific case that we are mostly discussing today, we saw that it [04:12.300 --> 04:16.260] is a multi-system which has multiple [04:16.260 --> 04:19.560] different boxes which are dedicated to different things. [04:19.560 --> 04:21.700] Some of the functionality can overlap between [04:21.700 --> 04:25.380] different boxes because for example in a one car manufacturer [04:25.380 --> 04:29.460] you can have one level which is basic or you can buy another [04:29.460 --> 04:33.800] option which is advanced functionalities or third one which are superb [04:33.800 --> 04:37.280] functionalities and all offer something that might be [04:37.280 --> 04:41.120] better than the previous box. And all of them together are connected and [04:41.120 --> 04:44.500] communicate between each other. So they collect information about your [04:44.500 --> 04:47.140] car, about the way you are driving, about your location [04:47.140 --> 04:51.560] and even maybe some of your personal information which we are going to show a [04:51.560 --> 04:54.760] little bit later. The problem with this is we have a lot [04:54.760 --> 04:57.900] of software as I mentioned. 150 million lines of code. [04:57.900 --> 05:05.300] Do you think it is bug free? No. And problem is that updating car is [05:05.300 --> 05:08.980] much more difficult than updating your mobile or [05:08.980 --> 05:11.180] windows operating system or linux or whatever [05:11.180 --> 05:15.840] operating system you are using. So this is a part of the problem. [05:15.840 --> 05:19.420] So manufacturers make it very difficult for you to change [05:19.980 --> 05:24.960] your car computer software and beat it. It's a little bit easier to update your [05:24.960 --> 05:26.940] infotainment system but it might be even [05:27.520 --> 05:31.700] not done because customers are not used to it. You need to go on the line to [05:31.700 --> 05:36.100] log in with some specific credential that should be provided to you by [05:36.100 --> 05:38.580] your vendor. I hope they are not providing it free [05:38.580 --> 05:41.400] for all so you can just download update on the internet. [05:41.400 --> 05:44.960] We saw even that happens. So it can be really [05:45.620 --> 05:49.360] dangerous and long-standing process which might [05:49.360 --> 05:52.900] not be done in time. So you might be exposed. [05:52.900 --> 05:56.260] In worst case, manufacturers need to recall the cars [05:56.260 --> 06:00.780] so they can update them and change the software in case of serious problems. [06:02.480 --> 06:06.720] So as I mentioned, in the head unit we have some basic functionalities [06:06.720 --> 06:10.500] and we have another box which is hidden behind the [06:10.500 --> 06:13.660] dashboard which provides additional features. [06:13.660 --> 06:19.920] It might be connectivity, it might be better FM receiver with more functions, [06:19.920 --> 06:25.460] it can be GPS receiver for navigation and all these boxes are connected [06:25.940 --> 06:31.700] to each other with their own bus. So they are using their own bus to [06:31.700 --> 06:33.420] connect to each other to exchange information [06:33.420 --> 06:37.060] because in the end you always see the basic device [06:37.060 --> 06:40.240] screen. So there is only one device which has screen. [06:40.240 --> 06:44.600] Other device, when connected to it, will communicate and take over the screen [06:44.600 --> 06:47.420] from the base device, so from navigation unit, [06:47.420 --> 06:50.520] from head unit, sorry. So it uses some [06:51.680 --> 06:55.600] inter-equipment communication protocol which can be vendor specific. There are [06:55.600 --> 06:58.380] few that are open and known but mostly they are using [06:58.380 --> 07:01.060] some proprietary communication protocols. [07:02.780 --> 07:07.400] When we open these boxes we can find different hardware inside it. [07:07.400 --> 07:11.440] So in this case what we commonly see is the Texas Instruments chip. [07:11.440 --> 07:17.400] It's big SoC which is optimized to run fun and nice operating system called [07:17.400 --> 07:20.240] QNX which some of you might know was [07:20.240 --> 07:23.360] running on BlackBerry devices some time ago. [07:23.360 --> 07:26.600] Now they are upgrading it and maintaining it [07:26.600 --> 07:30.360] and they are selling it as the main car navigation platform. [07:30.360 --> 07:33.380] So it is new neutrino platform which run on [07:33.380 --> 07:38.920] ARM, ARM v7 in this case. And this chip is very powerful and can do [07:39.160 --> 07:42.000] a lot of stuff for you. It can do a lot of [07:42.000 --> 07:46.700] DSP processing, so it can do video processing, it can process network [07:46.700 --> 07:50.980] information, it can interface with other stuff. So it [07:50.980 --> 07:55.980] is really a powerful device with complex architecture and it is [07:55.980 --> 07:59.480] implemented in such systems. So what we found on these devices is [07:59.480 --> 08:03.200] stuff like NAND flash. We have identified a lot of [08:04.080 --> 08:09.140] positions where we can connect and see what the information are [08:09.140 --> 08:11.420] there. So on these pins there can be a lot [08:11.420 --> 08:14.760] something interesting something not we don't know until we [08:14.760 --> 08:18.900] verify. So as I mentioned, the main operating system [08:18.900 --> 08:22.360] which you can find on most of these cars are [08:22.360 --> 08:27.060] Android and QNX. QNX is becoming really dominant in this place because it is [08:27.060 --> 08:31.240] micro-kernel based, unfortunately it's proprietary, [08:31.240 --> 08:35.260] so it is very difficult to obtain anything open source. If somebody has any [08:35.260 --> 08:39.100] information about any open source tool chain for QNX, [08:39.100 --> 08:43.380] let me know. I'm interested. Otherwise licenses for QNX for [08:43.380 --> 08:48.700] developers are somewhere like 10k dollars per license. So it is [08:48.700 --> 08:52.940] really expensive. What we also see that these devices [08:52.940 --> 08:56.400] are on top of the QNX. They are running some [08:58.820 --> 09:04.900] user interface. It's based on SWF, Flash User Interface, [09:04.900 --> 09:08.020] and it utilizes known technologies which are a little bit [09:08.020 --> 09:12.200] modified and customized for specific purposes like [09:12.200 --> 09:18.340] Lua scripting, Dbus, Java, XLAT. So all of these are standard but they are usually [09:18.340 --> 09:22.080] just enough modified so it's difficult to use pre-existing tools [09:22.080 --> 09:26.740] to do anything with this. So also during this we have discovered that [09:26.740 --> 09:30.400] one of these devices has more than one single [09:32.220 --> 09:36.080] partition. So these partitions are all custom [09:36.680 --> 09:41.040] QNX file systems and they are optimized in order so when you're updating you [09:41.040 --> 09:43.140] overwrite only a single partition. [09:44.720 --> 09:50.220] So as I mentioned QNX is similar to Linux but it is a little bit different [09:50.220 --> 09:52.580] because it implements a little bit different [09:52.580 --> 09:56.020] approach to the kernel. So it is microkernel [09:56.620 --> 10:01.940] which is monolithic and in contrary to Linux which is modular. [10:02.000 --> 10:06.120] So everything should be already in the kernel itself but some of the drivers [10:06.120 --> 10:10.720] which are needed are loaded from user space. So it is a [10:10.720 --> 10:14.420] little bit different than the Linux kernel where everything [10:14.420 --> 10:16.980] is running in ring zero so everything every driver run [10:16.980 --> 10:20.680] in the kernel space unless you're using some hacks and you [10:20.680 --> 10:23.480] fuse or something that enables you to use [10:24.920 --> 10:29.440] user space drivers. So problem it is everything is [10:29.440 --> 10:32.440] proprietary as I already mentioned proprietary file systems which are [10:32.440 --> 10:37.400] mount as read only on device. There is not much documentation. We [10:37.400 --> 10:42.000] spent a few months researching about QNX but as I said [10:42.000 --> 10:45.100] expensive licenses closed source proprietary [10:45.520 --> 10:50.520] there is not much to find open. So we were spending a lot of time [10:50.520 --> 10:54.500] reading development manuals trying to find something that [10:55.380 --> 10:58.720] that exists so few people done something but they are limited [10:58.720 --> 11:03.380] so we built on on other existing tools. [11:05.220 --> 11:09.240] Problem is that it is impossible to cross compile for QNX anything [11:09.240 --> 11:12.180] unless you have QNX development tools which are costing 10k [11:12.180 --> 11:16.000] as I mentioned. So what we started we started to analyze [11:16.000 --> 11:21.020] the boot process first. So boot process starts with IPL which is like [11:21.020 --> 11:26.380] your Linux loader. So it will load first and then [11:26.380 --> 11:31.120] load everything else. It will load this image file system [11:31.120 --> 11:35.180] what is actually Z image in Linux. So it is kernel [11:35.180 --> 11:38.420] and then it will start loading user space programs [11:38.420 --> 11:42.780] and finally it will load flash partitions from flash [11:42.780 --> 11:46.980] memory. So it has fully running system in the end. [11:50.090 --> 11:54.250] So what we see while reading this documentation that I mentioned we have [11:54.250 --> 11:56.530] discovered one interesting recommendation by the vendor [11:56.530 --> 12:00.930] and that is actually what we find really interesting and that is [12:00.930 --> 12:04.030] to eliminate everything that can slow down [12:04.030 --> 12:07.350] the booting process. So all security features like [12:07.350 --> 12:13.550] checksums, signatures, CRC, whatever you have they [12:14.150 --> 12:18.070] strongly advise you to disable it so device boots quickly. [12:18.070 --> 12:20.850] You don't want to be sitting in your car for 20 minutes waiting it [12:20.850 --> 12:24.610] to come up to check image before it loads it [12:24.610 --> 12:29.150] to check if it is consistent. So it is just optimized for quick boot because we [12:29.150 --> 12:32.430] are impatient. We like to be driving from point A to point B and waiting [12:32.430 --> 12:35.690] for our car to boot. We have Windows for that. [12:37.610 --> 12:40.290] Also what we saw that there is no secure boot, [12:40.290 --> 12:44.050] file systems were not encrypted so there was a lot of security [12:44.050 --> 12:48.270] features which are missing and which made our life a little bit easier [12:48.270 --> 12:51.110] easier than than it would be otherwise. [12:53.770 --> 12:56.970] So also one interesting thing devices that [12:56.970 --> 13:00.430] we tested were customized for different car manufacturers. [13:00.490 --> 13:04.630] So we have checked not a single vendor but we have checked every car that we [13:04.630 --> 13:07.050] can find and that people will allow us to play [13:07.050 --> 13:10.790] with. And you would be surprised that not many people will allow you to play [13:10.790 --> 13:15.890] with their car. I don't know why. But we saw that they all use [13:15.890 --> 13:19.230] OEM devices which are kind of similar to each other [13:19.230 --> 13:22.670] and they are just a little bit customized and optimized for each [13:22.670 --> 13:27.850] specific cars. In some specific cases we saw that a [13:27.850 --> 13:30.570] car vendor asked for additional security features [13:30.570 --> 13:34.850] to be included in such devices. So it is possible that the same device [13:34.850 --> 13:38.610] which runs in one car is vulnerable and the same [13:38.610 --> 13:43.170] device with same level of hardware version [13:43.170 --> 13:47.090] runs differently in another car because car manufacturer asked for additional [13:47.090 --> 13:52.090] security features to be on. So when we dumped the firmware from these [13:52.090 --> 13:55.290] devices and we have done analysis we found references actually [13:55.290 --> 13:59.090] that the same firmware is actually baseline for a different car [13:59.090 --> 14:01.930] manufacturers. So we found strings that are relevant [14:01.930 --> 14:05.630] for anything that you can imagine. So I believe they are selling to everybody. [14:07.030 --> 14:09.750] So problem in this area is that you don't [14:09.750 --> 14:13.170] you're not sure even if it is the same hardware if it is the same level of [14:13.170 --> 14:14.910] software and feature packs that are implemented [14:15.550 --> 14:21.430] on this hardware. So our idea is to see what we can do [14:21.430 --> 14:26.470] first without actually dismantling the car. So we reviewed all access [14:26.470 --> 14:30.350] vectors, so radio signals, [14:31.150 --> 14:36.030] available interface for USB, CD, available applications on the [14:36.790 --> 14:41.390] on the devices. So they are having some kind of market where you can download [14:41.390 --> 14:45.590] and install your own applications. Some of them you need to pay, some of them are [14:45.590 --> 14:48.970] free of charge and can be just downloaded. [14:48.970 --> 14:52.290] After we were done with this part then we started [14:52.290 --> 14:55.930] dismantling the devices. So we pulled them out [14:55.930 --> 14:59.490] of the dashboard. We had wires everywhere so [14:59.490 --> 15:03.170] we started analyzing devices. We saw there are flash chips, [15:03.170 --> 15:06.590] there are EPROMs, there are consoles, there are [15:06.590 --> 15:10.370] soldier points, test points where we can maybe do something [15:10.910 --> 15:16.410] with it. But unfortunately car is not the best laboratory that [15:16.410 --> 15:19.270] you can work. This is poor Ben. Ben was not hurt [15:19.270 --> 15:25.310] during this work. So he's safe. He's here. He's just [15:25.310 --> 15:29.570] very cold in this picture, I know. So we were working in the UK in the [15:29.570 --> 15:34.390] winter. It was not the best possible way. It was around zero and we [15:34.390 --> 15:37.290] are sitting on car park with everything open because car is [15:37.290 --> 15:39.850] small and there is two of us and we are not so small. [15:39.850 --> 15:44.110] We need a room. Especially me, yes. Thanks for pointing that out. [15:44.110 --> 15:51.210] It was not obvious. So we removed just the plastic covers of [15:51.210 --> 15:55.970] the dashboard so we can actually access the wires and connections behind the [15:55.970 --> 15:59.550] devices. And we started analyzing how these [15:59.550 --> 16:04.170] devices interact with the car. So our idea was [16:04.170 --> 16:10.690] we don't like to work outside on cold in a very, very low space. [16:10.690 --> 16:14.330] So our idea was can we move the car inside? [16:14.350 --> 16:20.010] Guys maintaining our lab say no. We will not allow you to drive car in. [16:20.430 --> 16:23.910] Elevators might be a little bit smaller than you need. [16:23.910 --> 16:28.930] So then we get another idea and that is let us try to emulate the car outside of [16:28.930 --> 16:32.370] the car. So we need to replicate enough so [16:32.370 --> 16:36.070] devices are operational but without actually [16:36.070 --> 16:40.130] needing to have the car. In very, very old times I would go to [16:40.130 --> 16:45.650] the junkyard and I would try to salvage ECU with everything. But today we do [16:45.650 --> 16:49.870] not need to do that because modern cars are not operating on the [16:49.870 --> 16:53.650] same principles. Even modern cars do not have lately [16:53.650 --> 16:58.430] proper OBD interface. This is emulated. So even in the car you have emulation [16:58.430 --> 17:02.510] OBD and behind that it runs whatever you want. So there are [17:02.510 --> 17:06.270] different protocols and standards that are used. But in order to make [17:06.270 --> 17:11.730] devices operational at this point we needed to check status of the holy [17:11.730 --> 17:16.270] grail, CAN bus. So how device is interacting with the [17:16.270 --> 17:20.390] car? We started by discovering where [17:20.390 --> 17:23.490] CAN bus is connected to device and start with sniffing. [17:23.710 --> 17:28.210] In order to find out what device needs from the car so we can set it up [17:28.210 --> 17:34.810] in our lab. But we discovered that we might not need to do anything [17:34.810 --> 17:38.570] because device is not communicating on the CAN bus. [17:38.690 --> 17:42.410] So device is just listening but at that point in time we could not find [17:42.410 --> 17:46.710] any single packet injected by device on the CAN bus. [17:46.710 --> 17:52.150] So what we saw, we started first, device was removed, we started sniffing [17:52.150 --> 17:55.190] the CAN bus, collecting what information we can see. [17:55.190 --> 17:58.110] Then we connected everything, start running, comparing [17:58.110 --> 18:02.550] and we see exactly the same stuff. So device is not interfering with CAN bus [18:02.550 --> 18:07.590] at all. Anyway we just captured this traffic [18:07.590 --> 18:11.790] so we can replay it back in the lab. So if we missed something [18:11.790 --> 18:14.830] it will still work so we don't have a problem with that. [18:15.130 --> 18:19.110] So this is a little bit of hardware that I like to use. It is all small hardware [18:19.110 --> 18:22.370] and it is pretty cheap. I like Blue Pill. It is [18:22.370 --> 18:27.310] very cheap STM platform. It is less than two dollars on [18:27.310 --> 18:31.530] your favorite Chinese supplier and it is cheaper than Arduino. It [18:31.530 --> 18:34.110] can be programmed Arduino but it is much more powerful. [18:34.210 --> 18:38.530] And what I like it, it has USB and I was very happy when I discovered it [18:38.530 --> 18:43.250] has CAN bus on it. When I started developing a sniffer [18:43.250 --> 18:47.330] that I needed, I had one sniffer, it is on the right corner, [18:47.330 --> 18:50.950] but I needed to have two of them. One to sniff, one to inject. So I needed to create [18:50.950 --> 18:54.090] another tool and I like to have my own tools anyway. [18:54.150 --> 18:57.670] I discovered one very disappointing thing and that this platform cannot work [18:57.670 --> 19:01.810] on USB and CAN at the same time because of some memory overlaps [19:01.810 --> 19:05.490] in the architecture of device and you can use only USB [19:05.490 --> 19:09.890] or CAN. But luckily I had a CAN shield from Arduino which [19:09.890 --> 19:13.310] worked really well in this case. So we have [19:13.310 --> 19:16.190] collected all information from CAN bus and started [19:16.790 --> 19:20.230] creating our environment in the lab where we had standard [19:20.950 --> 19:25.390] power supply units. We have everything else. What we didn't have are actually [19:25.390 --> 19:31.030] cameras, antennas, and speakers. But that was not important because [19:31.030 --> 19:33.850] devices were fully operational even without that. [19:34.190 --> 19:37.110] So we were very lucky because now we can work in [19:37.110 --> 19:41.730] much hotter and better environments. Our hands are not freezing, we are not [19:41.730 --> 19:45.310] hurting ourselves. Our CAN bus simulation is working, device [19:45.310 --> 19:50.230] is happy, not complaining and everything is just fine so we can [19:50.230 --> 19:53.550] focus on to the operation. So as I mentioned [19:53.550 --> 19:58.650] devices are using wireless connectivity but not on [19:58.650 --> 20:02.010] themselves. So they need to connect to [20:02.010 --> 20:05.250] your phone. So you as a driver need to set it up, [20:05.250 --> 20:09.590] set up the connectivity on your phone and share. So it is like a hotspot [20:10.350 --> 20:15.270] or bluetooth depending on devices. Some of them require wi-fi, some of them [20:15.270 --> 20:18.730] require bluetooth. But it will use that as a communication [20:18.730 --> 20:21.990] channel in order to establish connectivity to the internet [20:22.480 --> 20:26.370] and to go to download everything it needs. Applications, [20:26.370 --> 20:29.630] configurations, to enable you access to [20:29.630 --> 20:32.370] to app markets so you can buy applications [20:32.370 --> 20:36.990] that you like to install. So what we see is the device is now having standard [20:36.990 --> 20:43.250] IP address which enabled us to to play with it without actually [20:43.910 --> 20:48.070] connecting to wires. So we have set up a rough access point [20:48.070 --> 20:53.010] which is controlled by us based on host APD, DNS mask, IP tables and [20:53.010 --> 20:59.470] our favorite burp tool. And we connected to these devices to our access point [20:59.470 --> 21:03.730] and just intercept the traffic to see what device is doing. [21:04.970 --> 21:10.810] We have discovered that devices are devices that are using bluetooth were a [21:10.810 --> 21:15.150] little bit more pickier than wi-fi devices. So they needed to [21:15.150 --> 21:19.070] establish first, before they establish PAN [21:19.070 --> 21:22.390] connectivity, so private area network, it needs to be [21:22.390 --> 21:26.390] set up as hands-free device. So it needs first to connect [21:26.390 --> 21:30.890] your target device that you're sharing with your car as a hands-free device and [21:30.890 --> 21:34.130] then it can use it as a network standpoint. So that [21:34.130 --> 21:35.970] made our life a little bit complicated but [21:35.970 --> 21:39.230] not too much because it was easy for us to create a small [21:39.230 --> 21:43.030] Python tool based on PyBluesy which we use to [21:43.030 --> 21:48.290] emulate phone in both profiles. So that enabled us to actually [21:48.910 --> 21:52.310] establish connection and to sniff the traffic that goes [21:52.310 --> 21:58.410] from device to the internet and back. So we implemented only necessary devices, [21:58.410 --> 22:01.550] only necessary features in order to have this device connect [22:01.550 --> 22:03.610] and operate. [22:06.730 --> 22:10.070] So now Ben, I'm tired. So now Vladan has [22:10.070 --> 22:13.150] introduced the device, how they work and their specificities. [22:13.310 --> 22:17.830] I'm going to detail you what kind of attacks we have conducted on the device. [22:17.830 --> 22:21.430] But first of all, because we have described our tool, [22:21.430 --> 22:26.850] our talks, sorry, as a new approach, why previous attacks don't work anymore. [22:26.970 --> 22:30.650] You remember a couple of years ago here at DEF CON and Black Hat, [22:30.650 --> 22:34.830] some researchers have introduced vulnerabilities present on Jeep [22:35.480 --> 22:38.950] cars. So these vulnerabilities were exploiting [22:38.950 --> 22:42.510] connectivity, they were connecting to the device using Telnet, [22:42.510 --> 22:47.190] the password were well known and present on the internet. [22:47.190 --> 22:50.710] They were also using Dbus over TCP to connect to the device [22:50.710 --> 22:55.010] and last but not least, they were abusing the firmware upgrade process [22:55.010 --> 22:59.410] by passing uh, the um, content signature check-in. [22:59.590 --> 23:03.550] So now for our test, we still have the IP connectivity to the device, [23:03.550 --> 23:07.550] so they have not configured any software firewall to prevent us to access the [23:07.550 --> 23:11.170] device. But Dbus over TCP is closed, Telnet is [23:11.170 --> 23:14.330] closed and the firmware upgrade process has been [23:14.330 --> 23:17.490] hardened. So we couldn't reuse any of the previous [23:17.490 --> 23:23.470] vulnerability described uh, on the web and here. So the angle we [23:23.470 --> 23:28.810] chose was the third party applications. So on the device we have been testing, [23:28.810 --> 23:31.750] we realized that the vendor has provided an app store [23:31.750 --> 23:35.790] and when they designed the solution, the goal was for them to open the devices to [23:35.790 --> 23:38.630] third party vendors and they could create their own [23:38.630 --> 23:40.390] application and they could sell it on the store [23:40.390 --> 23:44.770] uh, like for example the Android app store or the app store for iOS. [23:45.210 --> 23:49.810] In the reality, uh, there is only a limited set of applications which are on it [23:50.550 --> 23:54.470] and they have never I think released uh, the software development kit [23:54.470 --> 23:57.970] for third party applications. Which is good, you will realize why [23:58.390 --> 24:03.030] a bit later. So the first thing we did is we intercepted the communication [24:03.030 --> 24:07.430] between the software app store and its backend. So it was using HTTPS [24:07.430 --> 24:10.530] which is good. Problem is uh, the encryption is broken [24:10.530 --> 24:13.770] when we try to intercept and replace the certificate by a self-signed [24:13.770 --> 24:17.050] certificate, the device did not show any warning and [24:17.050 --> 24:22.330] it was continuing operating as normal. So, first problem. The second [24:22.330 --> 24:24.970] problem is the device is communicating with its backend [24:24.970 --> 24:31.090] using XML messages, a bit like soap, um, and we could easily intercept the [24:31.090 --> 24:33.450] content and modify the content on the fly. [24:33.450 --> 24:37.810] So, for example, when the device requests the software catalog, the server will [24:37.810 --> 24:41.090] reply uh, with a full catalog including the [24:41.090 --> 24:43.970] links uh, to the URLs for the install package [24:43.970 --> 24:47.670] and just with a status which is buy, install, or installed. [24:47.730 --> 24:51.210] So if the status is buy, the device when you will click on it will offer you to [24:51.210 --> 24:53.890] buy and pay for it. But if the status is [24:53.890 --> 24:58.090] just replay by install, the device will install it without having to pay for it. [24:58.090 --> 25:01.550] So the logic control is done at the client side which is very bad and [25:01.550 --> 25:05.490] it might remind you the first mobile apps you have been testing a couple of [25:05.490 --> 25:09.030] years ago. So, good stuff for us. We could get uh, [25:09.030 --> 25:12.010] access to paid apps for free. But our goal is to [25:12.010 --> 25:17.210] to go deeper. So, here is an illustration. You see we have just reply, [25:17.210 --> 25:20.430] replaced, sorry, the buy status by install and we were [25:20.430 --> 25:24.170] able to install the application um, on the device. [25:24.930 --> 25:30.670] Now, um, we did some analysis on what was an install package for a third [25:30.670 --> 25:34.590] party application. So, in the previous screenshots you've [25:34.590 --> 25:37.910] seen that we have the URL for the install package. So we downloaded a [25:37.910 --> 25:40.710] couple of them. Uh, you don't need any authentication so [25:40.710 --> 25:42.690] just a double you get with the URL and you could [25:42.690 --> 25:46.250] access uh, the third party application package. So we downloaded [25:46.910 --> 25:50.970] all of them and we started analyzing them. Uh, so what's an installation [25:50.970 --> 25:55.990] package? Basically it's a zip archive with inside a jar file so a java [25:55.990 --> 25:59.730] archive and one signature file which is a signed [25:59.730 --> 26:05.310] message digest uh, using RSA signature. So, we have tried to spend a little bit [26:05.310 --> 26:09.970] of time but we were not able to break the signature encryption which [26:09.970 --> 26:13.430] is good. Uh, once we opened the jar file we [26:13.430 --> 26:16.410] realized that the source code is not obfuscated which means with [26:16.410 --> 26:19.890] any of your favorite java decompiler you can access the source code which is [26:19.890 --> 26:22.770] good. However, the jar file by itself is signed [26:22.770 --> 26:27.450] uh, with some private keys. So, here we are facing a system with two [26:27.450 --> 26:31.450] different levels of code signature. So, [26:31.970 --> 26:35.470] does this mean game over? So, what we first try [26:35.470 --> 26:41.310] our first attempt uh, was to to play with the process of zip [26:41.310 --> 26:44.750] extraction. You will understand why. The very first step [26:44.750 --> 26:48.270] that the pro the app store is doing when you install an application [26:48.270 --> 26:52.090] is storing the zip file in a temporary area and extract it before [26:52.090 --> 26:55.630] because to check the checksum of the file its signature [26:55.630 --> 27:02.130] it first need to extract it. So, this is the piece of code in charge of [27:02.130 --> 27:06.610] unzipping the install package. And if you are good hackers and I believe you [27:06.610 --> 27:10.230] all are, you will immediately notice that if you [27:10.230 --> 27:13.250] have used a zip entry name you might be able because it's [27:13.250 --> 27:17.010] concatenated to do arbitrary file writing. So, what [27:17.010 --> 27:20.430] happens if you had a file to the archive with a zip [27:20.430 --> 27:23.530] entry something like dot dot slash dot dot slash something. [27:24.830 --> 27:28.870] So, we wanted to validate this. Obviously this is not going to work with [27:28.870 --> 27:32.670] zip with zip and zip. You will get the message removing trailing slash or [27:32.670 --> 27:35.650] whatever. But what happens with this dirty Java [27:35.650 --> 27:40.470] code? So, we created a crafted zip archive using any Python lib [27:40.470 --> 27:45.150] and you remember we don't yet have control on the device. So, if we want to [27:45.150 --> 27:47.210] see if this was successful we need to write [27:47.210 --> 27:49.670] somewhere we can check the file is created. [27:49.670 --> 27:52.930] So, so far the only thing we can do is plug a USB stick [27:52.930 --> 27:56.450] and check if we are able to extract a file to a USB stick. [27:56.450 --> 27:59.890] On QNX if you read a little bit of documentation you will find that the [27:59.890 --> 28:04.710] location of the USB stick is slash FS USB zero and then your USB [28:04.710 --> 28:08.710] device. So, we created this crafted zip file with [28:08.810 --> 28:12.730] a directory traversal uh writing an empty file on the USB stick. [28:12.730 --> 28:16.050] And you know what? It worked. So, this means that we have an arbitrary [28:16.050 --> 28:19.450] file writing without uh creating any warning on the [28:19.450 --> 28:22.330] device once you install a crafted installation package. [28:22.330 --> 28:26.730] So, good start. But now to take control on the device what we need to do [28:26.730 --> 28:30.230] is to be able to copy a file to a place where it can be [28:30.230 --> 28:33.930] executed from. So, it it brings you two problems. [28:33.930 --> 28:37.270] As we said most of the file system of the device are read only [28:37.270 --> 28:41.090] because if the device loses power it need to restart without having to do [28:41.090 --> 28:43.610] content integrity, file system checking and whatever. [28:43.610 --> 28:46.710] So, most of the file system are read only under normal operation [28:46.710 --> 28:50.990] excepting some of them. And the place where third party apps are stored [28:50.990 --> 28:54.830] is a read-write file system because you can install the applications, you can [28:54.830 --> 28:58.370] remove them, you can upgrade them. So, the file system has to be mounted as [28:58.370 --> 29:00.950] read-write. So, we need to write at this place and we [29:00.950 --> 29:05.330] need to find this location. The second thing is so this java archive [29:05.330 --> 29:10.970] those are uh Vladan mentioned Xlets. So, this is one of the G2ME [29:10.970 --> 29:15.870] uh implementation. The problem is we cannot build any application or [29:15.870 --> 29:17.870] rebuild the application if we don't have the vendor [29:17.870 --> 29:23.570] SDK or API or libraries. So, this is also one of the problem we [29:23.570 --> 29:26.490] have been facing and we will explain how we solved it. [29:27.270 --> 29:31.590] So, it is possible to decompile the java source code but impossible to recompile [29:31.590 --> 29:33.650] it. This is what we just said. But how about [29:33.650 --> 29:37.890] backdooring, patching? If you all have done some [29:38.590 --> 29:42.050] testing training, you have been doing disassembling, [29:42.050 --> 29:46.790] x86 modification, changing instruction, repacking and whatever. [29:46.790 --> 29:50.230] And what about doing the same with java? Because basically java what is that is [29:50.230 --> 29:53.930] java source code compiled. So, it is java bytecode. It is known as [29:53.930 --> 29:57.830] this and this is a portable code to be executed by the java runtime [29:57.830 --> 30:01.290] environment. But basically the bytecode is just [30:01.290 --> 30:04.770] assembly but for a different kind of machine and the machine is just java [30:04.770 --> 30:08.290] runtime. So, if you use java bytecode and you [30:08.290 --> 30:12.590] modify it with kind of a disassembler which exists, you can patch the java code [30:12.590 --> 30:17.730] without needing the SDK nor IPI. This is what we did. But remember what [30:17.730 --> 30:20.750] we said, the java archive itself is signed which [30:20.750 --> 30:24.470] means that if we modify the bytecode, the java runtime environment should [30:24.470 --> 30:27.870] refuse to execute it. So, because we didn't want to lose too [30:27.870 --> 30:30.610] much time, our first attempt was just to change a png [30:30.610 --> 30:35.450] icon from the java package. And when we installed the application, it refused to [30:35.450 --> 30:38.470] start which means that the jvm, the java virtual machine, [30:38.470 --> 30:41.730] refused our modified application which is good. [30:41.730 --> 30:45.850] So, here again, game over? No, we tried something [30:45.850 --> 30:50.170] desperate. We said, okay the signature is not good but [30:50.170 --> 30:53.830] what happens if we just remove the signature? So, guess what? [30:54.150 --> 30:59.150] It worked. So, if there is a signature and the signature is not good, [30:59.150 --> 31:02.970] reject the program. But if there is no signature, no problem, just start it. [31:02.990 --> 31:09.530] And it worked. So, now we are able to write on the file system and we are [31:09.530 --> 31:13.470] able to execute malicious code that we have created. So, [31:13.470 --> 31:15.810] the next steps are pretty straightforward. [31:15.850 --> 31:19.130] We just have to create a malicious payload. So, it is [31:19.130 --> 31:22.310] basically java source code. So, you just use the standard [31:22.310 --> 31:25.850] java sdk. You just have to pay attention to the java [31:25.850 --> 31:29.470] minor and major versions. So, basically your code has to be [31:29.470 --> 31:32.970] executable by the target. So, what you do, you analyze the [31:32.970 --> 31:36.550] source code you extracted and you are compiling with the same target version [31:36.550 --> 31:40.010] and it should work. And then you have to hijack the normal [31:40.010 --> 31:44.050] execution flow to redirect it to your malicious payload. [31:44.270 --> 31:47.090] So, here we've been using massively the USB [31:47.730 --> 31:50.810] connector of the car because we didn't want to recompile [31:50.810 --> 31:54.210] at every time our program. So, what we did is [31:54.210 --> 31:58.470] we just did a payload executable script shell which is on the USB stick. [31:58.470 --> 32:01.410] So, if we want to modify it, it's easy. You just plug the USB stick on your [32:01.410 --> 32:03.910] computer, modify the script shell and re-execute [32:03.910 --> 32:07.090] the application without having to reinstall or doing nothing. [32:07.890 --> 32:12.750] So, haltering the java bytecode. I told you modifying the assembly. [32:12.750 --> 32:16.710] So, it's pretty easy. You just have to basically add the invoke starting [32:17.430 --> 32:20.990] static, sorry, method which is calling your payload. [32:21.790 --> 32:25.790] For various reasons, I'm not going into how the GVM works. [32:25.790 --> 32:29.450] You also have to add the instruction to map your assembly code [32:29.450 --> 32:33.450] to some virtual line numbers of the source code. This is the way it [32:33.450 --> 32:36.230] works. So, it's not just one line but three [32:36.230 --> 32:40.590] instructions for it to get it work. But the fundamental instruction here is [32:40.590 --> 32:44.410] the invoke static which brings you to your malicious code. [32:45.890 --> 32:49.970] So now, every time the patched application is started from the user [32:49.970 --> 32:53.910] interface, it executes the script.sh located on [32:53.910 --> 32:57.010] our USB key. Um, I'm not going through the details [32:57.010 --> 32:59.410] because we have performed maybe hundreds or [32:59.410 --> 33:03.430] several hundreds attempts because we have no idea on the device. We are doing [33:03.430 --> 33:06.510] blind attack. We don't have the response. So, we were [33:06.510 --> 33:09.390] having iterative approach. We were writing commands in the script [33:09.390 --> 33:12.950] and collecting the output every time, editing the script and starting over [33:12.950 --> 33:16.910] multiple times. Um, in the end, our goal is still to get [33:16.910 --> 33:20.470] uh connectivity to the device with an interactive shell. [33:20.530 --> 33:23.750] So, remember the target device is using QNX and [33:23.750 --> 33:27.110] QNX provides something which is called QCon. And QCon [33:27.110 --> 33:31.550] is a debugging daemon for QNX used during the development phases. [33:31.550 --> 33:35.190] It allows you to do some profiling but more interesting for us to do remote [33:35.190 --> 33:40.190] code execution. Uh, problem, the QCon daemon was not part [33:40.190 --> 33:42.690] of the build. Because when you do production build, you [33:42.690 --> 33:46.570] remove any useless stuff that you won't need in [33:46.570 --> 33:49.510] production because you need to save space and time and whatever. [33:49.690 --> 33:52.750] So, QCon was not part of the build. But Telnet was [33:52.750 --> 33:57.490] for some reason. So, we couldn't use Telnet as is because Telnet [33:57.490 --> 34:00.910] requires authentication and we don't have the root password. [34:00.910 --> 34:05.330] But QCon does not. What we were able to do because we still don't have QNX [34:05.330 --> 34:08.050] license and our managers were not willing to [34:08.050 --> 34:13.410] buy us the license. We found QCon on the web. We were just [34:13.410 --> 34:18.750] downloading a Raspberry Pi image for QNX which was using the same [34:18.750 --> 34:21.210] distribution and fortunately the Raspberry Pi [34:21.210 --> 34:25.270] is using the same CPU instruction which is ARM v7. [34:25.290 --> 34:28.670] So, we desperately copied the QCon from the device [34:28.670 --> 34:32.070] and we executed and it worked. So, we had a QCon daemon working [34:32.070 --> 34:36.530] and we could interact with the device. So, obviously the first thing we tried [34:36.530 --> 34:39.810] is getting the root password. So, we got the shadow file [34:39.810 --> 34:45.510] and we managed to crack the password. So, now maintaining access and post [34:45.510 --> 34:49.790] exploitation. Because we don't want to repeat all of [34:49.790 --> 34:53.610] those steps every time we want to get access to the device, we needed to find a [34:53.610 --> 34:57.210] way to get persistent access. So, basically that means starting [34:57.210 --> 35:01.930] automatically either QCon or Telnet or both. We crack the root [35:01.930 --> 35:05.450] password because it's using Descript. The password length is limited to [35:05.450 --> 35:10.090] to eight characters. So, this could be cracked with a reasonably powerful [35:10.090 --> 35:13.310] system within few hours. This is optional [35:13.310 --> 35:16.470] because you can use QCon but it's nice because Telnet is much [35:16.470 --> 35:20.670] better for interactive shell than QCon. Because QCon doesn't have for example [35:20.670 --> 35:25.950] the background and whatever. So, we have to find a script on the [35:25.950 --> 35:28.590] device which reside on the read-write [35:28.590 --> 35:32.750] partition and which is executed at every boot time. [35:32.750 --> 35:35.550] So, it makes a lot of conditions but we still find one. [35:35.550 --> 35:40.050] When you're doing that, you need to be very careful because if you mess with a [35:40.050 --> 35:42.910] startup script, there is no reset to factory option [35:42.910 --> 35:45.230] because you will prevent the device to boot properly. [35:45.230 --> 35:48.630] So, you can't even go to upgrade mode and reinstall it [35:48.630 --> 35:52.550] and there is no reset to factory that will restore the content of your flash. [35:52.550 --> 35:55.830] So, if you mess, you crash the device. So, you have to be very careful during [35:55.830 --> 35:59.830] this step unless you will get a break. [36:02.030 --> 36:05.510] So, during the post-exploitation step, we were having some fun. [36:05.510 --> 36:08.610] First of all, we realized that all the personal data [36:08.610 --> 36:13.390] are stored in SQLite which is very common. This is the same for Android and [36:13.390 --> 36:16.450] and many other systems. So, what was funny if [36:17.030 --> 36:20.370] you are in a rental car and there has been several drivers [36:20.370 --> 36:24.030] before you pairing their phone with the system, you will get [36:24.030 --> 36:27.450] all their phone's names, MAC address, Bluetooth MAC address, [36:27.450 --> 36:31.610] phone books and if it's Android phones, you will also get the content of SMS [36:31.610 --> 36:36.890] inbox which is fun. The second thing is there is a lot of [36:36.890 --> 36:40.030] logins so you know where was the car and when [36:40.030 --> 36:43.390] with the GPS location, time and date and some events [36:44.150 --> 36:47.650] which is also interesting and it has been used in France [36:47.650 --> 36:52.150] for a criminal investigation where they could demonstrate that the killer was at [36:52.150 --> 36:55.490] the right place because the car had recorded this in the logs. [36:56.690 --> 37:00.530] For example, you can do some tuning, customizing the color, get a different [37:00.530 --> 37:04.330] GUI because it's just Flash and HTML5 HMI [37:04.330 --> 37:07.490] so you can customize it very easily and it's fun. [37:08.010 --> 37:11.350] And you can also play with the services. You remember when Vladan introduced the [37:11.350 --> 37:15.950] software architecture, it's using Dbus, so a common bus [37:15.950 --> 37:20.030] with a lot of services plugged on it. So, for example, the FM tuner, so from the [37:20.030 --> 37:23.690] command line you can change the station, you can change the volume from the [37:23.690 --> 37:26.850] command line, you can use the text-to-speech service which is used by [37:26.850 --> 37:30.110] the navigation to make the car speech to you and it's [37:30.110 --> 37:33.850] very fun. It's especially very fun if you re-enable [37:33.850 --> 37:36.970] Dbus TCP and remote access to the car. So if [37:36.970 --> 37:39.270] it's a rental car and somebody else is connecting the car [37:39.270 --> 37:43.490] after you and you get access back to the device, you can talk to the guy for the [37:43.490 --> 37:45.910] car which is very fun and that might be very [37:45.910 --> 37:51.130] scary for the guy. Most of the systems, uh, so all those [37:51.130 --> 37:55.110] services, Dbus services, are written in Lua. [37:55.570 --> 37:58.910] It's a modified version because everything is non-standard, but [37:58.910 --> 38:03.850] if you modified the decompiler, Lua decompiler, to bypass some checksums, [38:03.850 --> 38:07.630] some magic numbers, verifications, you are able to reverse it and obtain [38:07.630 --> 38:11.010] the source code. So it was very interesting for the, for [38:11.010 --> 38:14.810] the next step. Now the holy grail, the CAN bus, because [38:14.810 --> 38:18.510] all of this, we did it, uh, in the objective of getting access to the CAN [38:18.510 --> 38:21.010] bus and to the car critical systems. [38:22.790 --> 38:26.790] CAN bus is allowing access, we've told you, to the engine ECU, [38:26.790 --> 38:30.530] something less critical, air conditionings, uh, windows, whatever. [38:30.770 --> 38:35.330] And here we were facing a big frustration. The system we have tested [38:35.330 --> 38:40.390] did not have a full access to the CAN bus. It was actually going through a [38:40.390 --> 38:43.210] gateway and this gateway was responding to a [38:43.210 --> 38:48.390] proprietary protocol. So it was only giving access to, for example, the fuel [38:48.390 --> 38:51.770] consumption, the speed of the car, accelerometer, so [38:51.770 --> 38:54.610] that, for example, if the car is driving in the tunnel and there is no GPS [38:54.610 --> 38:58.070] signal, the GPS navigation system still knows [38:58.070 --> 39:02.490] which speed the car is going on. But it was a lot of frustration for us [39:02.490 --> 39:07.130] because we were not able to jump on the CAN bus. It was even [39:07.130 --> 39:11.110] more frustrating because the reason why it was not possible was not for, [39:11.110 --> 39:15.090] it was not a security countermeasure, it was not because, it was just because [39:15.090 --> 39:19.330] the device had a whole poor device design. So they [39:19.330 --> 39:21.710] had to put this gateway because the device itself [39:21.710 --> 39:24.030] didn't have the CAN transceiver on the board. [39:24.030 --> 39:29.270] So it was a lot of frustration for us. Now because we are at the hardware [39:29.270 --> 39:32.750] hacking village and we've many, we've mainly talked about [39:32.750 --> 39:35.850] software, we're gonna talk a little bit about hardware. [39:35.850 --> 39:41.170] So the box was dismantled. We have been using standard tools [39:41.850 --> 39:46.110] such as clamps, power supply, logic analyzer, [39:46.110 --> 39:49.430] oscilloscope and all the tools you can get to your [39:49.430 --> 39:52.830] favorite Chinese provider still. And we have been [39:52.830 --> 39:59.590] able to identify the pins you see, but we had no idea what was their purpose. [39:59.590 --> 40:03.330] So using the logic, the logic analyzer, sorry, [40:03.330 --> 40:10.810] we could quickly identify the console. So it's a serial console at 115 200 [40:11.290 --> 40:16.730] bow. Unfortunately, once you boot, you have authentication required. [40:16.790 --> 40:20.310] You know, if you do this on a standard Linux, you can boot in single user mode [40:20.310 --> 40:24.210] just by, by altering the kernel command. But with [40:24.210 --> 40:28.110] QNX, with the IPL, you cannot do that. The IPL, so initial [40:28.110 --> 40:31.890] program loader, which was on the device, did not offer [40:31.890 --> 40:35.650] this option. Authentication was required. So here we [40:35.650 --> 40:39.870] had to have the root password cracked. Otherwise, we were not able to get into [40:39.870 --> 40:41.050] the device. [40:42.590 --> 40:47.270] So this is what I just said. We had a problem. We needed this root password. [40:47.270 --> 40:51.290] So what other option doing the physical hardware attack? [40:51.290 --> 40:54.210] There was a FRAM. So the FRAM is a small uh [40:54.210 --> 40:58.990] memory chip using SPI. Because when the device is booting, [40:58.990 --> 41:03.890] it doesn't have the drivers to talk, to communicate with the big flash NAND, [41:03.890 --> 41:07.310] it needs an intermediate step. And this is what the IPL [41:07.310 --> 41:11.470] is doing. The IPL is loading the driver to communicate with the large [41:11.470 --> 41:18.050] NAND uh chip. And we found out that in this small eight kilobytes FRAM, [41:18.050 --> 41:21.590] there is obviously some uh persistent information [41:21.590 --> 41:25.830] such the MAC address of the device, Bluetooth, Wi-Fi, the serial number, [41:25.830 --> 41:29.310] maybe the build version. But there is mainly the QNX [41:29.310 --> 41:33.070] IPL, which is the driver for the next step. [41:33.070 --> 41:37.030] And our idea is if we modify the IPL, if we [41:37.030 --> 41:41.430] recompile it, offering the support to boot in single user mode by changing [41:41.430 --> 41:45.770] um the initial program from login to just KSH, [41:45.770 --> 41:49.570] then we can get access to the device without needing authentication using the [41:49.570 --> 41:53.990] serial console. So here, the work is still in progress, [41:53.990 --> 41:57.770] but we found the QNX IPL source code because it is provided by Texas [41:57.770 --> 42:00.550] Instrument on their website. So you just have to [42:00.550 --> 42:05.450] modify it, recompile it, and rewrite it in the FRAM chip. This is not a [42:05.450 --> 42:08.450] problem because if you remember, there is no secure boot because [42:08.450 --> 42:11.690] everything has been disabled. So you just have to recompile, write it [42:11.690 --> 42:16.910] in the device, and then you're good to go. Work is still in progress, maybe in a [42:16.910 --> 42:20.830] future talk we might be able to demonstrate it. [42:20.830 --> 42:23.790] So just to summarize, because some of you might be a little bit frustrated, [42:23.790 --> 42:27.790] our idea is if you are a good software and a good system hacker, [42:27.790 --> 42:31.330] don't be afraid of embedded and hardware hacking. Because here, [42:31.330 --> 42:35.210] hardware is just basically a computer, a normal computer with some specificities [42:35.210 --> 42:39.570] because the operating system is a bit different, you have a bit of constraint, [42:39.570 --> 42:42.570] but it's basically a computer which you can hack using [42:42.570 --> 42:45.810] the old techniques you've been learning for 10 years. [42:46.290 --> 42:50.570] So thank you for attending our talk, and if you have any questions, [42:50.570 --> 42:51.610] you're welcome. [43:09.740 --> 43:12.880] So the question was, are these disclosed to manufacturers? [43:12.880 --> 43:19.620] As far as we know, yes, they should be. So it's disclosed to the manufacturer, but [43:19.620 --> 43:23.700] if you remember the problem of OEM, the manufacturers don't necessarily have [43:23.700 --> 43:26.400] the capability to patch the firmware themselves. [43:26.400 --> 43:30.760] So they might have to go to their OEM provider, ask them to fix the problem, [43:30.760 --> 43:33.980] get a build, get it, and push it to the cars [43:33.980 --> 43:37.520] in operation, which might be a problem, because you might have maybe one or two [43:37.520 --> 43:41.120] millions of cars with vulnerable systems. [43:45.930 --> 43:49.610] Okay, if anybody has any questions later, we will be around. [43:49.990 --> 43:53.350] So thank you everybody, and see you around. Bye.