[00:00.400 --> 00:05.840] Good afternoon, ladies and gentlemen. I'm Ian Tabor. I'm here to do my talk on how an [00:05.840 --> 00:11.680] automotive researcher had his car stolen by a can injection. That's the official title of this [00:11.680 --> 00:17.940] talk. The unofficial title of this talk is the irony of how an automotive security researcher [00:17.940 --> 00:26.840] had his car stolen by a method he found on another vehicle. Yeah, great. My colleague who did the [00:26.840 --> 00:32.600] research with me, Dr. Ken Tindall, isn't present, but he has recorded some of the slides here. So [00:32.600 --> 00:43.490] I will be introducing him now, and I'll introduce myself after. There should be audio. [00:52.560 --> 00:53.840] That should be on now. [01:22.470 --> 01:28.370] I'm Ken Tindall, the CAN bus guru. And it's true, I've been working with CAN in the car industry for a long time. [01:28.370 --> 01:35.470] I'm an industry veteran. Started in 1995 with Volvo's P2X, a large platform project. [01:35.490 --> 01:38.910] And that was back when CAN was a shiny new thing, and this was their first major [01:38.910 --> 01:45.550] CAN platform. I helped Motorola design the first real-time CAN controller, and I sold my startup [01:45.550 --> 01:52.450] back then to DeBosch, so I'm an industry veteran. I'm the CTO of CANIS Labs, and that's a CAN [01:52.450 --> 01:59.690] bus security company. And I have quite a few roles there. I've been a hardware IP designer, so I designed [02:00.750 --> 02:08.490] CANHG, the protocol for speeding up CAN by inserting extra fast data inside a slow CAN bit. [02:08.490 --> 02:15.070] And I've been an embedded real-time hardware software designer, and I designed the CryptoCAN [02:15.070 --> 02:21.390] system for encrypting any CAN frame. And today I'm working on the CANon Automation [02:21.390 --> 02:29.590] CANSEC working group for CANXL security. So now I'll introduce who I am. You could say I'm the [02:29.590 --> 02:35.090] ultimate car hacker. I built this vehicle 18 years ago now. It's based on the Ford Sierra rear wheel [02:35.090 --> 02:41.650] drive platform from around the 1990s. It's got a Ford-focused two-liter engine in. It does actually [02:41.650 --> 02:46.590] have three CUs, and it includes CAN, but if you want to try and hack it, I think you would be [02:46.590 --> 02:53.250] sitting on my lap, because the CAN wires are out that long. So good luck. There's a little [02:53.250 --> 02:58.250] disclaimer down at the bottom there. This work was carried out on my own money, on my own time, [02:58.250 --> 03:03.930] and nothing to do with any current or previous employers, just to get that clear. So a little [03:03.930 --> 03:12.490] bit of a history about my car hacking in the past. In 2015, I bought this Citroen DS5, and you [03:12.490 --> 03:17.970] could tether your phone to the head unit and surf the internet from the phone, from the car, [03:17.970 --> 03:24.070] why you'd want to, I don't know, whatever. But if you did an NMAP scan in the other direction, [03:24.070 --> 03:33.270] you could find four ports open. 23, 111, 3333, and 20,000. 23 is telnet, like everyone knows. [03:33.270 --> 03:38.410] Guess what? No credentials, straight in root access. You could then extricate any of the data [03:38.410 --> 03:48.990] via the USB or via FTP server mapped as a path. Yeah, so great. I wrote up my findings, sent them [03:48.990 --> 03:54.770] over to Citroen in France, and said, by the way, is this not a matter of French national security [03:54.770 --> 04:00.550] because the French president gets driven around in one of these things? And they were like, meh, [04:00.550 --> 04:07.610] I don't care. One of my most popular tweets, or one of my most personal highlighted tweets is from [04:08.410 --> 04:18.550] Charlie Miller himself saying, yep, good find. Great. That was in 2017. August 2018, I spoke [04:18.550 --> 04:27.070] at Defcon Car Hacking Village, Defcon 26 now, about the entire findings and what I found, how I [04:27.070 --> 04:33.050] found it, the disclosure process and how they fixed it. Guess what? They disabled the Wi-Fi. [04:33.470 --> 04:37.970] They didn't actually disable the telnet daemon. You could still go back in over the Bluetooth [04:37.970 --> 04:43.230] and turn it back on by modifying those SQLite databases that just happened to be in there. [04:43.310 --> 04:49.410] So, great, wonderful. Eventually, they did actually disable the telnet daemon in about three [04:49.410 --> 04:54.430] versions of software later, but no one actually ever got a recall to actually say, here's a [04:54.430 --> 04:59.770] security update to your head unit. So, good luck. If you've got one of them there, it's probably [04:59.770 --> 05:07.770] still vulnerable. In September 18, I went to the bug crowd bug bash. I was one of 12 global [05:07.770 --> 05:15.030] researchers at the event in Louisville, Kentucky. And the vehicles there all had radar-guided [05:15.030 --> 05:19.810] cruise control. If you look around the radar-guided cruise control sensor, which is that one [05:19.810 --> 05:26.450] there, there's a little plastic shroud. Pop that out with a screwdriver, take two bolts out, [05:26.450 --> 05:32.610] sensors out, you're on the CAN bus wiring. Guess what that CAN bus wiring can do? Start, stop [05:32.610 --> 05:38.990] the car, unlock the vehicle, disarm, unarm the alarm, open the trunk. We weren't actually [05:38.990 --> 05:44.070] allowed to test whether we could actually do any hacks on a moving vehicle, but yes, we did [05:44.070 --> 05:50.110] get a payout between myself, Spectres, and RQU of a five-figure sum. So, thank you very much, [05:50.110 --> 05:57.310] bug crowd. Hell yeah. After I did that, there's a picture of me, slightly slimmer, slightly [05:57.310 --> 06:03.810] younger version of doing a, ha-ha, what's this? Tap, tap, tap, unlock. Tap, tap, tap, fast [06:03.810 --> 06:09.610] started. Yeah. I can steal a vehicle, that vehicle, I can't tell you which, because an NDA in [06:09.610 --> 06:15.850] under 90 seconds from a virgin vehicle. And the car is still vulnerable today, one generation [06:15.850 --> 06:24.510] later. So, great. Security really works, doesn't it? Since then, using that money from that [06:24.510 --> 06:33.090] bounty, I built my own car in a box called PD0. PD0 is a Peugeot 208, P for Peugeot, and D0 is [06:33.090 --> 06:38.710] 208 in hex. It's basically most of the electronics from that vehicle, except for the airbag [06:38.710 --> 06:45.510] ECU, and it thinks it's a fully working car. The inspiration was 3P over there, but as you can [06:45.510 --> 06:52.010] see on the left there, there's an ABS simulator for the wheel speed sensors, there's a crank and [06:52.010 --> 06:57.470] cam sensor simulator for the speed, for the engine speed, et cetera. There's some O2 [06:57.470 --> 07:03.390] simulators as well. If you want any of the hardware to do that, contact me. I have spares of [07:03.390 --> 07:09.210] those things, and I have instructions on how to do it. It's up on my GitHub. But I now take [07:09.210 --> 07:13.950] this around the UK and Europe as part of the Car Hacking Village Europe. I've actually been [07:13.950 --> 07:21.490] requested to take it to Australia, Brazil, America, Singapore, Philippines, amongst other [07:21.490 --> 07:28.230] places. I took it to Amsterdam once, and that was fun. What's in the box? A car. Well, a model [07:28.230 --> 07:34.090] car? No, a whole car. Security man didn't find it funny. It was like, yeah, what did you do that [07:34.090 --> 07:43.830] for? It was like, on your way. I don't want to fill that for me. So great. In October 2019, I [07:43.830 --> 07:49.650] again went to the bug bash in the global headquarters of the same OEM up in Detroit. Again, [07:49.650 --> 07:55.570] can't mention it, but it's in Detroit. There's one of a few. And there was radar hack version [07:55.570 --> 08:02.530] two. This little device here is based on an ESP32. It has Bluetooth and Wi-Fi, and it also has [08:02.530 --> 08:08.430] an infrared receiver. At the bottom there is a little remote control. If I put that device [08:08.430 --> 08:15.330] between the radar and the radar wiring and go the other side of the car park, press the button, [08:15.330 --> 08:21.430] the trunk opens. There's nothing you can do about it. Yes, it's a targeted hack against a [08:21.430 --> 08:28.230] single vehicle, but you could have some fun with your mate's car. You could also possibly test [08:28.230 --> 08:33.870] it on a moving vehicle because the Bluetooth actually is, Bluetooth can, but they wouldn't [08:33.870 --> 08:37.670] allow us to test it on a moving vehicle because that would be dangerous and we might do [08:37.670 --> 08:48.010] something stupid. So, yeah. In October 2019, I also went to the auto Isaac over in Texas for [08:48.560 --> 08:56.650] hacker one at Toyota's headquarters. That will come pertinent later. Myself, Spectres, and [08:56.650 --> 09:02.990] Mutley did a talk about vulnerability disclosure program and how that's actually valuable to the [09:02.990 --> 09:07.990] automotive industry and how researchers like myself and others can help the automotive [09:07.990 --> 09:13.510] industry and you need to have this program in place so that we can get you that information and [09:13.510 --> 09:19.470] you can start to fix things. Some vendors do have it. Some vendors do it well. Some vendors [09:19.470 --> 09:31.110] don't. But, yep. 2020, or the COVID year as you call it, I made this little box here. It's what I [09:31.110 --> 09:36.030] call the real version of Toyota passes over there somewhere on the PWC stand. Their version [09:36.030 --> 09:43.970] costs you $30,000. That's a car. That version cost me $800 to build. It does almost exactly the [09:43.970 --> 09:51.930] same thing and I've actually retrofitted it with RFID based ignition and the JBL speaker thing I'm [09:51.930 --> 09:58.270] talking about is actually possible to plug it in and basically use this to start the ignition on [09:58.270 --> 10:04.290] the car and the case. So, none of that code is in the code that is on GitHub because I'm [10:04.290 --> 10:09.190] not going to release that because I'm not stupid. It's actually stored in the E prom and no [10:09.190 --> 10:12.890] one's ever going to get that other than me. But it is actually vulnerable. I was going to [10:12.890 --> 10:19.470] bring it but I didn't have enough space in my hand luggage. So, yep. Onto the actual theft [10:19.470 --> 10:28.210] itself. April last year, I came out on a Sunday morning, found my bumper hanging off and the [10:29.130 --> 10:35.510] headlight was unplugged and I'm thinking, that's on the curb side. No one's hit it. That looks [10:35.510 --> 10:42.950] like vandalism. Looks a bit dodgy. I didn't even think it was trying to steal my car. And then a [10:42.950 --> 10:47.650] friend of mine who's another security researcher got in contact and said, by the way, they [10:47.650 --> 10:53.250] might be trying to nick it. I was like, oh, for fuck's sake. I actually tested the radar [10:53.250 --> 10:58.190] sensor on the Toyota. It's on a different network. You can't do it by the radar sensor. You [10:58.190 --> 11:05.350] can do it by the headlight, though. Thank you. Great. Wonderful. So, at that point, I bought [11:05.350 --> 11:12.790] myself a dash cam, installed it front and rear. Come back to that in a second. In July, I [11:12.790 --> 11:16.870] started a new job up the other end of the country. I had to leave at sort of 5 o'clock in the [11:16.870 --> 11:22.230] morning. Came out, found the same thing again. Bumper hanging off, headlight not working. So I [11:22.230 --> 11:28.710] drove to work with one headlight in the dark. Not a good idea. Whatever. Not quite the dark, [11:28.710 --> 11:33.610] but yeah. So when I got to work, I put it all back together. Plugged it all in. Everything's [11:33.610 --> 11:42.010] all hunky dory. Came back home. Next day, everything was fine with work. Go to bed Wednesday [11:42.010 --> 11:47.990] night. Get a nudge from the missus at half past 2 in the morning. Where did you park the car [11:47.990 --> 11:58.830] last night? Same place I usually park it. Oh crap, it's not there. So look out the window. Big [11:58.830 --> 12:07.650] space, no car, shit. So what do I do? Get onto the old my Toyota app. You may or may not be [12:07.650 --> 12:17.710] able to see this, but the my Toyota app says it's got 100% fuel, 11,463 miles, and at the bottom [12:17.710 --> 12:24.910] there, if you see just where it's got the icons, it says vehicle in motion. So the car was [12:24.910 --> 12:30.690] currently in motion. It doesn't track a vehicle that has been stolen. There is no way to track [12:30.810 --> 12:35.690] a vehicle that has been stolen. Because there is the issue of say there was a domestic [12:35.690 --> 12:39.830] violence case and someone wanted to get away from their other half, someone might have access [12:39.830 --> 12:44.250] to the app so they know where you are. So the only time that actually updates is when it [12:44.250 --> 12:49.830] actually stops at the other end, which is great. That comes on to my next thing from the [12:49.830 --> 12:56.590] my Toyota app. I got an update saying the fuel gauge is down at 50%. Where was it when the [12:56.590 --> 13:01.890] fuel gauge was down at 50%? I don't know. It must have known somewhere where it was. But [13:01.890 --> 13:07.310] yeah, great. I'm not going to dox myself because I don't actually live there anymore. So don't [13:07.310 --> 13:15.250] worry. So in the my Toyota app, you get notifications. As you can see, those big orange alerts [13:15.250 --> 13:21.410] are like, oh bugger, something bad has happened. The one at the top says hybrid system, major [13:21.410 --> 13:27.090] malfunction, take it to a dealer immediately. The one below it says sonar system, again, take [13:27.090 --> 13:33.930] it to the dealer immediately. So they basically screwed the car. Bugger. So I couldn't track [13:33.930 --> 13:39.110] where it was. It didn't then appear ever again. I phoned the police. They couldn't do [13:39.110 --> 13:44.730] anything. Tried to contact Toyota online. They wouldn't do anything because they don't have [13:44.730 --> 13:50.830] stolen vehicle tracking in the country, which is a bit shit, really. Actually a friend of [13:50.830 --> 13:54.750] mine, Ken, actually thought it was a targeted hack because I did the radar hack and someone [13:54.750 --> 13:58.650] thought, oh, it must be another car hacker. They nicked the car for a couple of days and it [13:58.650 --> 14:05.270] would reappear in three days' time. It didn't. A couple of weeks later, my neighbor has a [14:05.270 --> 14:10.850] land cruiser, or shall we say had a land cruiser. First time they tried to nick it, the alarm [14:10.850 --> 14:17.350] went off and they run off, the three little scrotes. A couple of weeks later, he left it out on [14:17.350 --> 14:23.060] the road around the front. We went in for half an hour, came back out, it was gone. So it [14:23.060 --> 14:30.320] wasn't a targeted hack. There was two vehicles from my block stolen and also there are a [14:30.320 --> 14:34.560] couple of RAV4s around the area where I used to live that I used to see around and about that [14:34.560 --> 14:39.600] aren't there anymore either. So there are quite a few that were stolen from that area. And [14:39.600 --> 14:43.440] looking on Reddit and things, there are also quite a few in the north London area that have [14:43.440 --> 14:49.140] also been stolen. So on to my initial investigations. I'm not going to play this video [14:49.140 --> 14:53.620] because it's a bit dark and a bit rubbish and you can't really see it. But if you take a look at [14:53.620 --> 15:00.500] the video there, QR code, this video is linked in the blog post. When we first linked it, it [15:00.500 --> 15:07.720] had 20,000 views on it. It now currently has about 330,000 views on it. I think they've made [15:07.720 --> 15:12.800] some money out of us linking to their video. Good luck to them because they had their car [15:12.800 --> 15:19.600] nicked as well. So that's great. On to another vehicle. This one was from Twitter. This is [15:19.600 --> 15:28.120] slightly sped up and takes about 90 seconds in total. So playing around in the corner by the [15:28.120 --> 15:35.060] bumper. Mate comes along with a torch. See the lights come on. Doors are open. Jobs are [15:35.060 --> 15:43.880] done. Car is gone. That's literally 90 seconds. Oh, bugger. So I did a bit of an [15:43.880 --> 15:49.860] investigation. I spoke to a friend of mine who works in vehicle system forensics. He used to [15:49.860 --> 15:55.660] be an ex-police traffic cop and he said he'd come across some of these things with his [15:55.660 --> 16:01.340] colleagues that he used to work with and they are basically a little Bluetooth speaker that [16:01.340 --> 16:06.000] has some extra electronics inside it that you plug into the CAN bus in the back of the [16:06.000 --> 16:13.660] headlight wiring. The giveaway is the two pins here. So USB-C cable. So yeah, great. But this [16:13.660 --> 16:18.420] is used for plausible deniability. They get stopped in the street. It's a speaker. It's [16:18.420 --> 16:22.060] broken. It doesn't work. If they were clever, they could actually put a slightly smaller [16:22.060 --> 16:28.520] speaker in and still work. But whatever. But they're sold as emergency start devices. Why [16:28.520 --> 16:33.080] would a locksmith want something that looks vaguely like a USB speaker to go and open [16:33.080 --> 16:39.800] cars? Yeah, not good. When I first found out about it, the price of this device was 1,500 [16:39.800 --> 16:45.760] euros. When I actually eventually got around to buying it in February this year, the price [16:45.760 --> 16:51.080] had gone up to 2,500 euros. I'm not going to give any details of where I purchased it from [16:51.080 --> 16:57.640] because they actually don't sell it anymore. But if you Google emergency start device JBL, [16:57.640 --> 17:04.340] you'll find it. And there are shops across Europe and in Eastern Europe, in America, other [17:04.340 --> 17:11.060] places that now sell it for nearly 4, 5,000 euros or 5,000 dollars. So the price is going [17:11.060 --> 17:18.540] up because they're obviously in demand. But yeah. Here's a list of the actually claimed [17:18.540 --> 17:26.660] devices it actually believes it works on. So you've got the Toyota Supra, Prius, CHR, [17:26.660 --> 17:34.340] F4, Highlander, Land Cruiser, Proace, and the majority of the Lexus range. So that's quite a [17:34.340 --> 17:42.960] widespread. So yeah. You can nick quite a few different cars quite easily. Very cheap. So [17:42.960 --> 17:50.020] what is actually in this device? You've got externally, it just looks like a JBL speaker. [17:50.020 --> 17:55.000] Internally, there's the electronics from the speaker, the blue PCB. The black blob is the [17:55.000 --> 17:59.960] electronics for the actual device itself. I can't give you the details of the underneath the [17:59.960 --> 18:05.920] black blob because that gives away what it actually is. But basically there's a PIC18F25K80 [18:08.840 --> 18:14.700] and a modified can transceiver. I can't go into details on how that modified can transceiver [18:14.700 --> 18:24.640] works or what it does. Ken's going to go through that in a minute. So yes, it is modified. That [18:24.640 --> 18:29.100] details will never get out. I tried to do a bit of reverse engineering with my old picket [18:29.100 --> 18:35.340] thing, but there's no one amongst thieves and the bastard had locked down the firmware so you [18:35.340 --> 18:40.920] couldn't read it out. But there is a heart of darkness attract that you can do on that chip. [18:42.240 --> 18:46.340] But you potentially need two of those chips because you have to read it out half of the chip [18:46.340 --> 18:51.080] at a time, which is, I'm not buying another one, especially as it's four and a half thousand [18:51.080 --> 18:58.180] euros now. There is possibly a few other ways to glitch it and get access to the firmware as [18:58.180 --> 19:02.460] well, but we believe we've actually got the data out anyway by just what it does on the [19:02.460 --> 19:10.480] canvas. I'm now going to hand back to Ken. So let's look at some bench testing that they did [19:10.480 --> 19:16.180] to investigate how this device works. First point I want to make out is this is using fake [19:16.180 --> 19:21.660] data. So we renamed the CAN analyzer and payloads because we're not here to help people make [19:22.340 --> 19:30.300] devices to steal Toyota cars. So this is a logic analyzer trace and we've got some CAN [19:30.300 --> 19:37.600] data here from various ECU traces and the theft device. And there's a signal here called [19:39.020 --> 19:45.840] inject JIT select. So that enables the override transceiver, which we'll talk about in a moment. [19:46.680 --> 19:53.740] And then this is the TX line for the injector, the theft device that's injecting CAN frames. [19:53.960 --> 19:59.840] And then we can see here all the other ECUs. Here's a transmit line from one of the ECUs [19:59.840 --> 20:04.540] and then various CAN high and low signals on the bus. And then we have another receive [20:05.680 --> 20:10.800] pin on the CAN transceiver so we can see what comes through. So this is a standard CAN frame [20:10.800 --> 20:16.080] so it's not very nice. So here's the visual line as it goes through. Here's what's transmitted. [20:16.440 --> 20:22.520] Here's the CAN high and low. Lines are pulled apart when we have a dominant bit. And that [20:22.520 --> 20:28.400] all comes through just fine here. So this is a perfectly fine CAN frame. Now let's have a look [20:28.400 --> 20:37.220] when we turn on the inject JIT select line. So this turns on the transceiver and that forces a [20:37.220 --> 20:43.460] recessive state onto the bus. So here we're injecting a one bit onto the CAN line so we're [20:43.640 --> 20:47.600] injecting a recessive state. And here's an ECU trying to transmit and it goes through this very [20:48.180 --> 20:52.700] very funny pattern here. Trying to insert a dominant state and you can see it's trying to [20:52.700 --> 20:57.600] pull these CAN high and low lines apart but it doesn't really succeed so what the other [20:58.280 --> 21:02.820] ECU see on their CAN receive pins is just a recessive which is the same as the transmitted [21:02.820 --> 21:09.620] signal. If you want to know why this pattern is like it is, this is one of my CAN quiz questions [21:09.620 --> 21:18.720] on my blog post which we'll point you at. So you can see here when we're actually trying to [21:18.720 --> 21:27.200] transmit a frame. So here is a spoof frame being transmitted and here the ECU is receiving that. [21:27.440 --> 21:33.280] Now one of the interesting things about CAN is the sender transmits a recessive bit for the [21:33.280 --> 21:40.140] acknowledgement slot and then all the ECUs respond with a dominant bit. Now normally this override [21:40.140 --> 21:44.400] transceiver would cause that to fail and there would be an error because you wouldn't get an [21:44.400 --> 21:52.260] acknowledgement back. But when all of the ECUs are all pulling together they can drive enough [21:52.260 --> 21:56.400] voltage onto the bus through the combined transceivers and that's just enough to push [21:56.400 --> 22:02.860] CAN high and low apart enough to then come through as a dominant bit. So everyone sees [22:02.860 --> 22:07.660] that as a valid CAN frame. So that's one of the nice properties of the way this transceiver works. [22:08.020 --> 22:13.420] Nice as in it works, is it allows all the ECUs to pull together. So you have one ECU on the bus [22:13.420 --> 22:19.580] that's not strong enough to drive an acknowledgement bit. So I've been talking about that custom CAN [22:19.580 --> 22:26.360] transceiver circuit. It's inside that resin blob. It's not a proper CAN transceiver of course because [22:26.360 --> 22:32.580] criminals don't care about CAN standards. So it's designed to break all the protocols to push weird [22:32.580 --> 22:38.080] voltages onto the bus and that's enough to spoof all the CAN transceiver circuits for all the [22:38.080 --> 22:45.200] real ECUs. So it can push any CAN bus traffic onto the bus that other transceivers will see [22:45.200 --> 22:51.200] as proper CAN frames and most importantly it can't be stopped. You can't, other ECUs cannot drive [22:52.100 --> 22:56.160] a dominant bit onto the CAN bus unless they're all acting at exactly the same time. [22:56.320 --> 23:02.940] So this means hardware security approaches like NXP Stinger transceiver which has a kind of [23:02.940 --> 23:07.560] blacklist white list for destroying CAN frames and it knows it spoofs. That won't work because [23:07.560 --> 23:13.100] it can't send an error frame onto the bus because it can't drive a dominant state and the CANHG [23:13.100 --> 23:18.620] protocol I mentioned earlier also uses the same technique to destroy frames and it knows are bad [23:18.620 --> 23:23.420] in some way and again it can't do that if this transceiver circuit is driving a recessive state [23:23.420 --> 23:32.560] from the bus. So let's have a look briefly how this works in a bit more detail. This is a network [23:32.560 --> 23:40.000] topology diagram for the Toyota RAV4. It's very very simplified just for clarity so the actual [23:40.000 --> 23:45.320] wiring diagrams are complicated with an awful lot more ECUs in it and many more CAN buses but this [23:45.320 --> 23:51.120] is the rough schematic. So up here we have the left headlight where the themes break in the [23:51.120 --> 23:57.580] connector so they can access the CAN high load on this red bus. Also on this bus is the smart key [23:57.580 --> 24:05.660] ECU. So this is the ECU that enters into a nice dialogue with the driver's keys, it uses asymmetric [24:05.660 --> 24:11.440] encryption certificates and things so it must be secure and the driver's keys can be authenticated [24:11.440 --> 24:17.280] and then once it's been authenticated it sends a message over CAN bus to the door ECUs to unlock [24:17.280 --> 24:23.620] the doors and to this gateway ECU which is forwarded on to the engine management system [24:23.620 --> 24:32.040] on a CAN bus that disables the immobilizer. And so the thieves basically disable this whole bus [24:33.840 --> 24:39.120] and inject CAN frames that spoof the smart keys CAN frames to say that everything is fine [24:39.120 --> 24:45.020] so all these ECUs see everything, see the smart key frames and act on them so the door [24:45.020 --> 24:49.220] module is open, the gateway sees a valid frame and turns it on and the engine management system [24:49.220 --> 24:56.000] obviously just operates on that. So that's how the CAN injection works. [24:58.920 --> 25:05.620] There's a blog post I wrote up on this and it's been very well received and it's in fact used for [25:05.620 --> 25:12.960] the CV that's been awarded for this vulnerability and it generated an awful lot of comments. [25:13.580 --> 25:20.780] So we thought we'd do a top three frequently asked questions here except they're not frequently [25:20.780 --> 25:24.920] asked questions, they're car security mansplanations from people who don't understand [25:25.340 --> 25:31.160] how cars work. So I thought I would give the top three why your mansplanation of how easy it is [25:31.160 --> 25:39.120] is not actually true. So coming in at number three is just add a firewall to isolate the headlights [25:40.720 --> 25:47.720] so but unfortunately a firewall costs money. It's a PCB, power, metal case, connectors, [25:47.980 --> 25:52.120] a couple of CAN buses, all kinds of stuff like that and some more connectors on the other side. [25:52.620 --> 25:58.340] Even if it costs ten dollars, which it won't, it's more than that, but even if it costs ten dollars [25:58.340 --> 26:05.120] multiply that by 50 million cars, which is what Toyota made in the last few years, that is a [26:05.120 --> 26:10.760] half a billion dollars. So this is a brilliant security solution and about as smart as Elon Musk [26:10.760 --> 26:16.460] because you've wasted about the same amount of money he's just wasted on Twitter. Number two, [26:16.460 --> 26:22.180] just use TLS and WireGuard to encrypt all the messages. Well, CAN messages are eight bytes long [26:23.600 --> 26:28.840] and CAN messages contain small sensor and actuator data like turn the main beam on. [26:28.840 --> 26:34.120] This is not the sort of thing that you throw huge overheads of mainstream IT solutions for. [26:34.120 --> 26:39.320] Car electronics is a distributed, real-time, embedded, safety critical, mechatronic system [26:39.320 --> 26:46.020] controlling wheels. It is not a phone on wheels, it's not a computer on wheels, it's a distributed [26:46.020 --> 26:51.860] control system. And it's all about short, worst case latencies, not about bandwidth. So even [26:51.860 --> 26:57.520] though CAN is relatively slow, because the data is relatively small, this is a perfect solution for [26:57.520 --> 27:02.680] it. A car isn't this data center on wheels and all these mainstream IT solutions, they're solving a [27:02.680 --> 27:06.840] completely different set of problems. And so those solutions are not appropriate for real-time [27:06.840 --> 27:13.160] control. And number one, just use a relay to turn the headlights on. Why do you need a CAN bus in [27:13.160 --> 27:20.040] headlights? Well, first of all, it's not called a headlight cluster for nothing. Inside that are [27:20.040 --> 27:24.100] the main beam, the low beam, side lights, the indicator lights, the daylight running lights, [27:24.100 --> 27:30.460] different lighting modes, washer pump motors, wiper motors, LED projector lights, and then [27:30.460 --> 27:34.760] there are multiple ECUs that want to control all of this stuff. And some cars, of course, even [27:34.760 --> 27:39.480] have motors for steering the headlights. The idea that you can just turn it on and off with a [27:39.480 --> 27:49.680] switch is simply not workable. But a superlative suggestion and one that we'll bear in mind. [27:49.680 --> 27:55.220] No, we're not going to do that. Can't just chuck it back to a relay. So on to media coverage. [27:55.220 --> 28:00.740] Here is a sample of the different reports about what happened after the blog post was released. [28:00.900 --> 28:06.420] Most of them come out with, oh, headlight hacking. It's not the effing headlight. It's the effing [28:06.420 --> 28:12.820] headlight wire. Yeah, you unplug the headlight. The headlight is now nothing to do with it. But [28:12.820 --> 28:18.920] life happens. They make up the stories. It's quite interesting. There was a story in Sweden [28:19.480 --> 28:25.660] about a shed load of RAV4s and RX450s being found in a container warehouse which were [28:25.660 --> 28:31.460] allegedly stolen for payment for drugs to be shipped abroad. So they sort of pinned it together [28:31.460 --> 28:37.180] that it was actually done by can injection after we published our details on our blog post [28:37.180 --> 28:42.040] because they actually thought it was done by a relay attack because both of them look exactly [28:42.040 --> 28:49.500] the same. I will go on to another bit in the press. If you know of the AA in the UK, [28:49.760 --> 28:56.380] Automobile Association, the chairman Sir Edmund King had his wife's Lexus stolen and he then [28:56.380 --> 29:03.980] published a post saying, by the way, put your keys in the microwave because that's a Faraday cage. [29:03.980 --> 29:11.400] Yep, great. He then said his keys were actually in the microwave. So how did they steal it? [29:11.400 --> 29:18.100] Probably can injection. Didn't go anywhere near his keys. So I did send him the details and he [29:18.100 --> 29:21.720] is going to have a look at it and get back to me. But he was busy with some smart motorway [29:21.720 --> 29:28.820] stuff. So that's an interesting story that the man in charge of AA had his Lexus nicked and he [29:28.820 --> 29:34.440] still doesn't know how it was nicked. He does now, but whatever. On to a bit more media [29:34.440 --> 29:42.520] coverage. Vice.com did this video. Try the door handle. Cable is already plugged into the back [29:42.520 --> 29:49.620] of the headlight under the wheel arch. Plug the thing in. It's doing some messages. He now tries [29:49.620 --> 29:56.320] the door handle again. Oh no, it's still locked. Whoops. Press the play button on the side. That [29:56.320 --> 30:01.780] triggers the locks. Now we just unplug the thing because you don't need it anymore. [30:01.780 --> 30:09.160] Wander around to the side of the vehicle. Open the door. Press your foot on the brake. And if [30:09.160 --> 30:17.680] you look carefully, the rev counter now shows 1,000 RPM. That again, less than two minutes. [30:17.900 --> 30:25.580] There is a Vice video with the same story showing the older 3210 Nokia version which will steal [30:26.420 --> 30:33.620] 2012 to 2015 type varieties. So there are links on my website to all these stories and things and [30:33.620 --> 30:39.420] videos. So if you want to have a look later, my website is at the end. There's also been quite [30:39.560 --> 30:47.400] a lot of industry coverage. Upstream producer, half year 2023 auto cyber trend report. Our [30:47.400 --> 30:53.920] research got mentioned and our blog post was linked. Oh no, can injection. Yep. It's been [30:53.920 --> 31:00.500] around for years. Just no one speaks about it. They think things are secure. It's not. C2A [31:00.500 --> 31:08.760] also published this other one, can injection, a rising threat to the auto security. Yep. Again, [31:08.760 --> 31:16.120] links are on there to my website, on my website to those. So we actually got the CV issued by [31:16.120 --> 31:23.140] ASRG and we did that so that other manufacturers can be made aware. That website, I bought the [31:23.140 --> 31:30.620] device for Toyota and Lexus. Sell devices for every make that is available at the moment. [31:30.620 --> 31:42.680] Ranging from a few hundred dollars to $25,000-ish. So no manufacturer is immune. And yep, I'll go [31:42.680 --> 31:51.740] on to some of that later. I did actually log the name of the CVE as can injection with the [31:51.740 --> 31:58.040] emojis. That's the U.K. spec emojis because we drive on the correct side of the road. That's [31:58.040 --> 32:02.860] the American spec emojis because you drive on the wrong side of the road or the right, whichever [32:02.860 --> 32:10.080] you want to say. But I'm English. I'm right. Currently the CV is only listed against my 2021 [32:10.080 --> 32:16.280] RAV4 because that's my car. I'd like to get it updated with the other ones when we confirm [32:16.280 --> 32:25.060] which ones actually do work. But that may take time. So on to actual numbers. So in the last six [32:25.060 --> 32:32.120] years, the RAV4 has sold just over 5 million vehicles. The Prius, about half a million. CHR, [32:32.120 --> 32:38.680] about 4 million. Land cruiser, 100,000. Highlander, 2 million-ish. Lexus, I couldn't find [32:38.680 --> 32:45.300] individual details of all the different models. But over that five, six years, 4.2 million [32:45.300 --> 32:51.060] vehicles. So potentially across the globe, there's at least 15 and a half million cars that can be [32:51.060 --> 33:00.800] stolen by this $20 worth of electronics. Yeah. Great. Wonderful. And going back to that number [33:00.800 --> 33:08.200] of 50 million-ish cars, over the last six years, they sold 56 and a half million cars. Again, [33:08.200 --> 33:14.780] times that by $10, that's half a billion dollars. Security ain't that cheap. All these figures [33:14.780 --> 33:21.880] were taken from either Wikipedia or Google or Toyota's website themselves. So when we [33:21.880 --> 33:29.780] actually bought this device, I did some testing on a friend of mine's car. Lexus NS300H. I made [33:29.940 --> 33:35.660] a device here. As you can see, it's got a little missile switch. That does the unlock. The other [33:35.660 --> 33:42.560] switch here turns off and on the additional transceiver component. I went over to see my [33:42.560 --> 33:47.800] and we tried it without the additional transceiver because I didn't want to break his car [33:47.800 --> 33:55.240] because I know when my car was stolen, it threw 26 DTCs and probably had to be reset. So I was a [33:55.240 --> 34:01.160] bit cautious. Check the one for unlock. That worked. Check the one for start the engine without [34:01.160 --> 34:07.680] the additional transceiver. Didn't work. After I left, curiosity got the better of him and he [34:07.680 --> 34:14.100] used my version of this and had a little play himself. No keys in the car. Nowhere near. Plugged [34:14.100 --> 34:21.420] it into the headlight. Let it do its thing. Pop the thing up. Press the button. Car unlocked. [34:21.600 --> 34:28.280] Drove it around the car park a couple of times. Yeah. Oops. He then put it all back together, [34:28.280 --> 34:34.640] started the car with a key properly, with a key present, et cetera. And the rotating headlight [34:34.640 --> 34:38.740] on the left-hand side of the vehicle stopped working. So he had to take it back to the dealer [34:38.740 --> 34:44.720] and say, ooh, my headlight stopped working. I haven't been playing around with it. Luckily it [34:44.720 --> 34:50.520] didn't cost him anything because I feel a bit guilty that he broke his car for me. So, yep, [34:50.520 --> 34:55.620] thank you very much. Yep, cheers. I'd like to actually get access to all of the different [34:55.620 --> 35:01.340] models that are actually claimed to be used and then have the full Toyota diagnostic tool [35:01.340 --> 35:07.360] with the cooperation of Toyota to then reset them and then update the list on the CVE to then [35:07.360 --> 35:14.760] actually see which ones are and are not possible. The interesting one is, though, if you know [35:14.760 --> 35:23.380] anything about the Toyota Supra, that may or may not be a BMW Z4. So is the BMW Z4 also vulnerable [35:24.000 --> 35:30.480] to the same thing? I don't know. I would like to check it. If you have a Z4 in the car park, [35:30.480 --> 35:36.820] hit me up later. We'll have a go. No, don't, please. I don't want to get done doing anything [35:36.820 --> 35:42.520] stupid. And the Toyota Proace van, if you know anything about that one, that's based on the [35:42.520 --> 35:48.300] Peugeot Citroen platform in Europe. So, again, there are other vehicles also based on that [35:48.300 --> 35:55.140] platform that could potentially be vulnerable. Onto the disclosure process. This was fun. In [35:55.140 --> 36:02.660] March earlier this year, I put a tweet out, does anyone have a contact in Toyota, either Japan or [36:02.660 --> 36:09.500] U.S. or anywhere, to help us with the disclosure. I've got this thing that's used to steal cars. [36:10.040 --> 36:16.280] I got nothing. I said, okay. I rang my local dealer. I nearly bought the car off and said, [36:16.280 --> 36:21.540] by the way, have you had any issues with cars being stolen? And the receptionist was really [36:21.540 --> 36:26.240] helpful and said, no, but I'll get the service manager to ring you back. About a half hour [36:26.240 --> 36:30.820] later, the service manager rang me back and went, actually, yeah, one of my demonstrators, I was [36:30.820 --> 36:37.320] out for a night a couple of weeks back or a couple of months back, parked it up, went home, came [36:37.320 --> 36:43.660] back the next morning, it wasn't there. He did a bit of an investigation and then found out, yep, [36:43.660 --> 36:49.580] they've been nicking it by the headlights. I spoke to him and he said, at one point late in [36:49.580 --> 36:56.720] last year, there was his garage alone that he worked at was getting three instances a week of [36:56.720 --> 37:02.420] vehicles either being stolen or being potentially stolen. There was a memo put out by someone [37:02.420 --> 37:07.320] somewhere in Toyota UK or Europe or something saying, by the way, make sure you lock your [37:07.320 --> 37:12.640] vehicles up behind the bars and things because they will go walkies off your forecourt. So, [37:12.640 --> 37:19.340] yes, they are aware of it. They've known about it. Great. I then sent some details to him about [37:19.340 --> 37:25.220] what we found out. He then sent them off to somewhere who he was dealing with and then a few [37:25.220 --> 37:31.160] days later I got a direct email from someone from Toyota Japan copied into quite a few people in [37:31.160 --> 37:38.280] Toyota Europe and it basically said, use hacker one vulnerability disclosure program. So, yeah, [37:38.280 --> 37:44.300] that one that I went to in 2019 to talk about vulnerability disclosure, that was at Toyota's [37:44.300 --> 37:50.620] headquarters. Great. Their vulnerability disclosure program has a couple of caveats. There's a [37:50.620 --> 37:56.120] restriction to modifications to the vehicle. Tell that to the criminal, rip the bumper off to [37:56.120 --> 38:00.980] actually get to the headlight. So, yeah, you can't do that to steal my car. Yeah, no, you're not [38:00.980 --> 38:07.420] allowed to do that. So, yeah, great. And there's an implied NDA. And then implied NDA says when [38:07.420 --> 38:13.720] you tell hacker one something about it, basically you then can't tell anyone else about it. So, [38:13.720 --> 38:19.820] you can't warn anyone that you've actually told Toyota via hacker one. So, great. Wonderful. [38:20.800 --> 38:25.600] I did actually get an email back from Toyota Japan saying, by the way, we're going to waive [38:25.600 --> 38:34.640] that NDA. But a few weeks later I got someone I know was on the auto Isaac panel and they were [38:34.640 --> 38:39.840] discussing our vulnerability in one of their meetings and the discussion basically went along [38:39.840 --> 38:46.580] the lines of how can we shut these people up? Because it's cheaper to silence them to actually [38:46.580 --> 38:53.380] then fix the problem. So, someone sends me a random NDA disclaimer thingy that may or may not [38:53.380 --> 38:59.900] be on an email that I can't guarantee is genuine. You think I'm going to trust that? Do anyone [38:59.900 --> 39:06.500] see what happened to Carlos Ghosn? Yeah? Great. No. Got done for fraud. Had to be smuggled out [39:06.500 --> 39:12.860] of Japan in a flight box. So, currently we're in the process of disclosing via ASRG, [39:12.860 --> 39:17.700] automotive security research group, and they are, again, getting exactly the same response [39:17.700 --> 39:24.340] from Toyota and the response is report it by hacker one. This morning I actually had a [39:24.340 --> 39:31.520] meeting with someone from Toyota USA and basically told them some of the details of my [39:31.520 --> 39:36.200] findings and they basically said it needs to go via hacker one because we need to track [39:36.200 --> 39:41.460] things, which I understand. That's fine. And I said to him, as long as you get me a piece of [39:41.460 --> 39:47.600] paper that is a signed proper piece of paper on Toyota headed paper, we will do it. We will [39:47.600 --> 39:51.960] share some information. There may have to be an NDA in one direction because you might tell me [39:51.960 --> 39:56.600] some stuff that you don't want getting out, which is fine, but anything that is currently out [39:58.540 --> 40:02.300] isn't dangerous because I'm not going to tell you all the secrets. And I can't tell you all [40:02.300 --> 40:09.280] the secrets because it's how to steal a bloody car. So, yeah. After that thing, I did [40:09.280 --> 40:13.860] actually put a LinkedIn post with a bit of tongue in cheek thing that basically said, by the [40:13.860 --> 40:19.480] way, if you want some information on this stuff, hit us up. We can have a private meeting [40:20.060 --> 40:27.980] without too many people around so that we can discuss it with other OEMs, et cetera. So back [40:27.980 --> 40:32.560] on to my colleague, Ken, with some potential fixes. [40:32.600 --> 40:37.380] So we've talked a lot about how this theft device works and how it uses a transceiver to bust [40:37.380 --> 40:42.380] through all kinds of defenses and we've talked about all the things that won't work like [40:42.940 --> 40:50.340] relays to headlights and $50 billion of money spent on electronics. What fixes are there? So we [40:50.340 --> 40:57.460] offered two. One of them is to do a quick and dirty short-term fix. So make the gateway [40:57.900 --> 41:03.580] paranoid about CAN bus errors at startup. So when the vehicle is first being started up and [41:03.580 --> 41:09.060] this theft device is working, it's a very crude device so it blasts its frames onto the CAN [41:09.060 --> 41:14.860] bus and everyone else's frames don't turn up so there are heartbeat messages missing and stuff [41:14.860 --> 41:21.000] like that. So if the gateway device is a bit paranoid and sees a bunch of errors on the CAN [41:21.000 --> 41:25.900] bus, its own frames are not being sent, it's on, it can basically say I'm not going to forward [41:25.900 --> 41:30.320] any messages until that happens, until it's all gone away. And if there was a false positive on [41:30.320 --> 41:35.720] that, you would just try your smart key again. So this is a quick and dirty hack. The theft [41:35.720 --> 41:40.780] device vendors, I won't explain how, but they could work around this after a while with a bit [41:40.780 --> 41:45.960] more work and effort or maybe just move on to someone else's car. But either way, it's a [41:45.960 --> 41:54.220] short-term fix. A permanent fix to this is to use cryptographic messaging between the smart [41:54.220 --> 42:03.040] key, up here, smart key, see you, and the doors, and the smart key, and the engine management, [42:03.040 --> 42:10.020] or possibly just the gateway. And you can use solutions like CryptoCAN, which I developed, [42:10.580 --> 42:16.720] CanisLabs, or you could use SecoC, which is Autosar's secure on-board communication, to [42:16.720 --> 42:22.100] secure those messages against spoofing. There's no need to encrypt everything, of course, [42:22.100 --> 42:26.700] you don't need to encrypt everything, because thieves are not going to get by with some of the [42:26.700 --> 42:32.940] boring sensor messages. It's important, it's the smart key, traffic to the immobilizer and the [42:32.940 --> 42:41.260] doors are the things to encrypt. Just a couple of slides left. This one's quite funny. I think [42:41.260 --> 42:47.960] Toyota might be trolling me. 2024 Toyota Tacoma gets a JBL speaker that has a nifty [42:47.960 --> 42:54.940] removable speaker. Looks a bit like this. Is this just in case you lose the keys out on the [42:54.940 --> 43:00.200] trail? It's got the hardware in it, a little extra wire, poke it underneath the wheel arch, [43:00.200 --> 43:06.140] job's a good'un. I don't think it does, but it would be bloody hilarious if you could retrofit [43:06.140 --> 43:12.220] it. I could do that. I'm not going to, because we don't get the Tacoma in the UK, but it would [43:12.220 --> 43:18.960] be funny. This is potentially my last slide with any sort of information. The fallout of [43:18.960 --> 43:26.960] our findings, a friend of mine, David Rogers, found this article about Jaguar Land Rover. [43:27.520 --> 43:33.100] Insurance companies in the UK are not insuring them anymore, because they are so easy to be [43:33.100 --> 43:38.960] stolen, or they're basically pricing it out of the market. So car makers need to get their [43:38.960 --> 43:47.160] finger out their ass and fix it, because cars are going to be either uninsurable, or no one's [43:47.160 --> 43:50.940] going to want them, because no one's going to be able to afford a few grand a year to [43:50.940 --> 43:57.260] actually insure their car. But the problem is, they will fix it going forward. They won't fix [43:57.260 --> 44:03.040] it going back, so all those cars that are previously made are still vulnerable. So yeah, not [44:03.040 --> 44:11.780] much more, but on to my final slide. I'd just like to say thank yous. First to the ASRG, to [44:11.780 --> 44:19.640] specifically John Hildreth, he's been helping us with the disclosure process to OTA Japan. We [44:19.640 --> 44:26.400] are doing this, this is exactly the same talk at the ASRG SOS conference next month in [44:26.400 --> 44:34.080] September, so look it up. I'd also like to say thank you to Bug Crowd and all the team of car [44:34.080 --> 44:42.200] hackers that were there in the 2018 and 2019 events. Wave if you're in the audience. There's [44:42.200 --> 44:47.660] some down at the front, there's some at the back, yep. Noel Loudon, my colleague, my friend [44:47.660 --> 44:53.620] that's an incident investigation chap, ex-policeman, he's the one that pointed me in the [44:53.620 --> 45:00.260] direction. Zoltan may or may not be the crazy bugger that broke his own car for me. Thank you [45:00.260 --> 45:06.760] very much. I didn't ask you to do that, you idiot. Finally I'd like to say thank you to [45:06.760 --> 45:12.360] Car Hacking Village for allowing me to be here and share this story. I don't have time for [45:12.360 --> 45:17.780] questions because cock ups with audio and I can't give you any more information than has [45:17.780 --> 45:24.560] already been given, so don't ask. Yeah? I can't give it. I cannot tell you anything about how [45:24.560 --> 45:28.960] it was made, the messages or anything. So thank you very much.