1 00:00:00,000 --> 00:00:11,220 Well, good morning everybody. Hello, my name's Ken, and I've got a short talk today to talk about some work we did on the Mitsubishi Outlander plug-in hybrid SUV. 2 00:00:12,180 --> 00:00:21,840 Now, the good news is, is right now this vehicle is not shipping in the US. I believe it ships in the fall this year, but we've got about 100,000 of these across Europe and Asia, so they're everywhere. 3 00:00:22,360 --> 00:00:29,820 I really, really wanted to bring the vehicle with me, but it wouldn't fit in my checked baggage, unfortunately, so you've got to put up with my videos, I'm afraid. 4 00:00:30,920 --> 00:00:44,040 It's not a long talk. It's a ridiculously simple hack. It's not complicated. I hope that you will be as surprised as I was when we found these bugs. Just blew my mind. 5 00:00:44,200 --> 00:00:48,980 Anyway, that is my vehicle. Those aren't my plates, I might add, unsurprisingly. 6 00:00:50,520 --> 00:00:56,000 A little bit of background, who are we? So, we're a company called Pentest Partners, clues in the name, we're pentesters, unsurprisingly. 7 00:00:56,720 --> 00:00:59,540 Back in the day, I'm really into electric vehicles. 8 00:01:00,260 --> 00:01:09,900 And a buddy of mine took delivery of a BMW i3 about two years ago, and then got an i8 about a year ago, which is an awesome vehicle. I love it. Absolutely love it. 9 00:01:10,700 --> 00:01:15,240 You've probably seen various issues with BMW Connected Drive, their mobile application. 10 00:01:16,500 --> 00:01:25,760 We found one the first couple of years ago. It was an issue to do with the way that iRemote, which is the mobile app for the i-series vehicles, is configured. 11 00:01:26,020 --> 00:01:29,400 And there was an issue to do with the way you could force password resets, temporary passwords. 12 00:01:30,560 --> 00:01:37,780 You could provision a new version of the mobile app, you could geolocate the vehicle, you could pop the locks, and then you're on. 13 00:01:38,660 --> 00:01:44,240 About a year ago, they had another issue where it was shown that the communications were done plain text, that was all fixed. 14 00:01:44,400 --> 00:01:50,940 And I don't know if you saw last week, there was another issue published, really interesting vulnerability to do with enumerating VIN numbers. 15 00:01:51,080 --> 00:01:51,660 Anyway, there we go. 16 00:01:54,140 --> 00:01:57,100 I want to tell you about the mobile app. 17 00:01:57,260 --> 00:01:59,900 So, this is the mobile app for my vehicle. 18 00:02:00,340 --> 00:02:01,620 You can do some stuff with it. 19 00:02:02,580 --> 00:02:06,620 The key function of it is to set up a charging schedule. 20 00:02:06,860 --> 00:02:10,260 So, if you've got an electric vehicle, you want to charge it on cheaper electricity overnight. 21 00:02:10,700 --> 00:02:17,380 You can use the application and say, right, we'll charge between midnight and 5am, which back home, that's when we get cheap rate electricity, which is really cool. 22 00:02:17,500 --> 00:02:19,300 So, my car is half the price to charge up. 23 00:02:19,660 --> 00:02:22,960 You can also, you can turn on the AC in the morning. 24 00:02:23,060 --> 00:02:24,780 So, if you're on a hot day, cool it off. 25 00:02:24,860 --> 00:02:28,740 But if you live in the UK, you need the heat in the morning because it's freezing and raining. 26 00:02:28,820 --> 00:02:29,200 There you go. 27 00:02:30,020 --> 00:02:31,400 It does some other stuff too. 28 00:02:32,640 --> 00:02:36,660 What's really unusual is the way that the mobile application connects to the vehicle. 29 00:02:37,760 --> 00:02:45,540 So, if you have a smart vehicle, you have a mobile application for it, you probably talk to it using an API, using cellular data or maybe Wi-Fi. 30 00:02:45,760 --> 00:02:46,680 This is different. 31 00:02:46,780 --> 00:02:51,180 It uses Wi-Fi to talk directly to an access point on the vehicle. 32 00:02:51,380 --> 00:02:52,400 And that's really unusual. 33 00:02:52,540 --> 00:02:54,940 I don't know, has anyone else seen another vehicle that works like this? 34 00:02:55,140 --> 00:02:56,240 It's the first one I've seen. 35 00:02:56,300 --> 00:02:57,780 I cannot find another one that does this. 36 00:02:57,920 --> 00:02:59,800 There is an AP on the vehicle. 37 00:02:59,800 --> 00:03:04,420 The mobile app talks directly to the vehicle over Wi-Fi. 38 00:03:04,500 --> 00:03:05,780 That's really, really unusual. 39 00:03:06,020 --> 00:03:06,980 And that got me interested. 40 00:03:07,880 --> 00:03:10,860 I genuinely was in the parking lot at my kid's school. 41 00:03:11,500 --> 00:03:12,580 I didn't make this up. 42 00:03:12,620 --> 00:03:16,880 I was looking for some Wi-Fi and I saw an unusual access point name pop up. 43 00:03:17,080 --> 00:03:19,360 I thought, whoa, what's going on there? 44 00:03:19,480 --> 00:03:23,340 I spoke to a buddy of mine who kind of looked roughly where the car went past. 45 00:03:23,400 --> 00:03:24,160 He said, yeah, that's my car. 46 00:03:24,380 --> 00:03:24,840 I said, what? 47 00:03:25,200 --> 00:03:27,220 You have an access point on your car? 48 00:03:27,320 --> 00:03:28,380 He said, yeah, yeah, it's pretty cool. 49 00:03:30,780 --> 00:03:33,920 So in order to talk, yeah. 50 00:03:35,200 --> 00:03:36,180 Is that working, guys? 51 00:03:36,240 --> 00:03:36,780 One, two, one, two? 52 00:03:36,840 --> 00:03:37,940 It's a bit crusty. 53 00:03:38,080 --> 00:03:38,500 You OK? 54 00:03:39,040 --> 00:03:40,000 I'll speak up, shall I? 55 00:03:41,860 --> 00:03:43,080 Yeah, one, two, one, two. 56 00:03:43,160 --> 00:03:43,420 Yeah. 57 00:03:43,780 --> 00:03:45,160 Can we get some more gain on that, guys? 58 00:03:46,840 --> 00:03:47,620 No, maybe not. 59 00:03:47,860 --> 00:03:48,520 Shall I just shout? 60 00:03:49,360 --> 00:03:50,380 Yeah, that's much better. 61 00:03:50,480 --> 00:03:50,720 Good. 62 00:03:50,800 --> 00:03:50,980 OK. 63 00:03:52,160 --> 00:03:54,280 So what's really weird? 64 00:03:54,380 --> 00:03:55,300 It's a big access point. 65 00:03:55,380 --> 00:03:55,940 It's encrypted. 66 00:03:56,280 --> 00:03:57,040 It has an SSID. 67 00:03:57,040 --> 00:03:58,000 It has a pre-share key. 68 00:03:58,140 --> 00:03:58,600 What a surprise. 69 00:03:59,500 --> 00:04:04,880 In order to connect to it, that PSK is printed on a piece of paper in O's mouth. 70 00:04:08,340 --> 00:04:08,780 Whoa! 71 00:04:09,540 --> 00:04:09,980 OK. 72 00:04:10,600 --> 00:04:16,100 What's really weird is the SSID, you can change in the field, although the function doesn't 73 00:04:16,100 --> 00:04:16,540 actually work. 74 00:04:16,640 --> 00:04:17,660 And in theory, you can change it. 75 00:04:17,820 --> 00:04:20,300 The pre-share key cannot be changed. 76 00:04:20,800 --> 00:04:22,580 So if you want to change, you can't. 77 00:04:22,580 --> 00:04:23,880 If you can change, cut your card. 78 00:04:23,900 --> 00:04:24,540 It just doesn't work. 79 00:04:25,440 --> 00:04:26,700 And that's factory set. 80 00:04:26,940 --> 00:04:28,060 And I've looked at it. 81 00:04:28,100 --> 00:04:28,320 I said, whoa. 82 00:04:28,480 --> 00:04:28,580 What? 83 00:04:28,580 --> 00:04:29,580 There's some trouble here. 84 00:04:29,640 --> 00:04:30,640 We need to start looking at this. 85 00:04:31,900 --> 00:04:34,180 So the SSID format can be straightforward. 86 00:04:34,560 --> 00:04:36,280 It's the way of remotes and capital letters. 87 00:04:36,460 --> 00:04:38,740 You then have two numbers, four letters. 88 00:04:39,320 --> 00:04:40,660 It doesn't matter so much. 89 00:04:40,880 --> 00:04:43,000 The scary bit is the pre-share key format. 90 00:04:43,200 --> 00:04:45,200 It is four lowercase alpha. 91 00:04:45,440 --> 00:04:46,640 It is six digits. 92 00:04:47,160 --> 00:04:50,980 And the chart set for lowercase alpha is the 21 characters, not 26. 93 00:04:51,520 --> 00:04:54,360 And that was really quick to crack. 94 00:04:54,480 --> 00:04:55,520 So we can't just back away. 95 00:04:55,580 --> 00:04:56,060 Handshake. 96 00:04:56,060 --> 00:04:56,600 We cracked it. 97 00:04:57,140 --> 00:04:58,560 We used some, you know, a little bit of code. 98 00:04:59,000 --> 00:04:59,800 We didn't have a lot of code. 99 00:04:59,800 --> 00:05:00,440 We've got four of those in rig. 100 00:05:00,540 --> 00:05:02,060 We've had it practised for two and a half days. 101 00:05:02,780 --> 00:05:05,560 We're building a bigger rig at the moment with 16 GPUs. 102 00:05:06,840 --> 00:05:07,680 That's going to go real quick. 103 00:05:07,880 --> 00:05:11,880 But if you're in a hurry, you can just upload this on one like AWS. 104 00:05:12,380 --> 00:05:14,920 We calculated the cost as being around $1,000. 105 00:05:15,460 --> 00:05:16,280 That's a lot of money. 106 00:05:16,480 --> 00:05:19,100 But this is a $40,000 vehicle, right? 107 00:05:19,220 --> 00:05:19,760 It's expensive. 108 00:05:19,860 --> 00:05:22,020 So that's kind of a trade I think I'd go for actually. 109 00:05:23,100 --> 00:05:24,220 We connected to it. 110 00:05:24,840 --> 00:05:25,640 Really unusual. 111 00:05:25,920 --> 00:05:28,540 So it has a stack of like p address, 192, 162, and one on the right side. 112 00:05:29,740 --> 00:05:33,960 Port 80 is there, but there's no service running, I don't know what that's for, I can't figure that out. 113 00:05:34,240 --> 00:05:37,480 But the TCP port 8080 is open and that's what we got. 114 00:05:37,700 --> 00:05:41,500 So you can retrieve the VIN, as you can see that's disclosed there. 115 00:05:41,620 --> 00:05:44,100 You can also see the SSID of the vehicle, that's not my car. 116 00:05:44,840 --> 00:05:46,440 And there's some other stuff in there as well. 117 00:05:46,860 --> 00:05:47,820 I promise you it's not. 118 00:05:49,500 --> 00:05:52,560 Pretty obviously a binary protocol, it's a gamespan WiFi module, 119 00:05:52,980 --> 00:05:55,800 very, very popular module, really interesting and quite good fun. 120 00:05:55,800 --> 00:05:59,900 So, why show up? What do we do? 121 00:06:00,340 --> 00:06:03,440 So, hopefully that's going to work, there we go. 122 00:06:03,600 --> 00:06:06,400 So we, I'm in the middle of the connection. 123 00:06:07,160 --> 00:06:09,360 We sniffed, making some requests. 124 00:06:09,680 --> 00:06:14,940 In this particular case we were actually turning on the lights, so let's follow that. 125 00:06:19,380 --> 00:06:21,020 And you get a bunch of junk. 126 00:06:21,160 --> 00:06:24,160 But of course, being a binary protocol, start into a hex dump 127 00:06:24,160 --> 00:06:25,780 and you get a load of junk. 128 00:06:25,800 --> 00:06:26,500 A load of interesting data. 129 00:06:27,480 --> 00:06:30,900 Very, very verbose messaging. 130 00:06:31,160 --> 00:06:35,080 So, the red is the vehicle talking to the mobile application. 131 00:06:35,380 --> 00:06:38,000 The blue is the mobile application responding back again. 132 00:06:38,680 --> 00:06:39,640 It's really hard. 133 00:06:39,740 --> 00:06:41,780 I mean, we first wanted to fuzz this and see what we could do. 134 00:06:41,880 --> 00:06:45,560 But it'll only pretty much stand up for one message every 15 seconds or so. 135 00:06:45,720 --> 00:06:48,700 The entire vehicle status, as far as we can work out, 136 00:06:48,840 --> 00:06:51,560 goes to the application and the entire status goes back again. 137 00:06:51,620 --> 00:06:52,560 So it's really slow. 138 00:06:52,860 --> 00:06:54,920 So we started playing around with this, had a bit of a look. 139 00:06:55,800 --> 00:06:57,360 We started seeing messaging popping up. 140 00:06:57,520 --> 00:07:02,540 Now, this particular one, we were, the only function we ran was just, 141 00:07:02,540 --> 00:07:04,000 let's turn on the lights. 142 00:07:04,340 --> 00:07:07,100 And that's a function in the mobile application that's quite useful 143 00:07:07,620 --> 00:07:10,740 if you want to find your vehicle in a car park or a car, in a driveway. 144 00:07:12,220 --> 00:07:16,920 The only slight challenge with this is that it only works when you're in Wi-Fi range. 145 00:07:17,460 --> 00:07:21,540 It's not like selling your data on Wi-Fi or an API where you can turn it on anywhere in the world. 146 00:07:22,180 --> 00:07:24,280 You can only do it when you're within Wi-Fi range. 147 00:07:24,280 --> 00:07:26,920 And I don't know if you've ever mislaid your vehicle in a parking lot. 148 00:07:27,120 --> 00:07:30,380 By the time you're close enough for Wi-Fi, you're there anyway, right? 149 00:07:30,480 --> 00:07:30,860 I don't know. 150 00:07:31,660 --> 00:07:33,600 So we started having a bit of a play around with this. 151 00:07:33,740 --> 00:07:34,640 And we did the classics. 152 00:07:34,680 --> 00:07:37,520 So we chopped up the packet we replayed. 153 00:07:37,600 --> 00:07:43,100 We chopped again, worked out which function, which part of PCAP was actually making it work. 154 00:07:43,320 --> 00:07:47,220 And we finally got down to a point where we could successfully, make a noise, 155 00:07:50,120 --> 00:07:51,680 start to analyze what the packets were doing. 156 00:07:51,700 --> 00:07:54,000 So the messages that were being sent to explain these, 157 00:07:54,280 --> 00:07:56,180 so it's all there, pretty straightforward. 158 00:07:56,900 --> 00:08:01,180 The bit that threw us a moment for a while was actually some of the messaging is six bytes 159 00:08:01,900 --> 00:08:03,780 and some of it is seven bytes. 160 00:08:04,000 --> 00:08:04,860 That really threw us. 161 00:08:04,940 --> 00:08:06,780 We were really struggling to make any progress with this. 162 00:08:07,320 --> 00:08:08,960 Send that bunch, add a checksum. 163 00:08:09,120 --> 00:08:12,400 It's really easy once you can understand how the protocol works. 164 00:08:12,480 --> 00:08:13,660 It's just not rocket science. 165 00:08:14,060 --> 00:08:20,080 So if you want to have some fun, capture the key, crack the key, send six bytes. 166 00:08:20,200 --> 00:08:22,560 And I have videoed this because I couldn't bring the vehicle with me. 167 00:08:22,600 --> 00:08:23,660 And this happens. 168 00:08:24,380 --> 00:08:25,940 So we're no longer replaying. 169 00:08:25,940 --> 00:08:27,740 We're just talking to the director of the car and the lights come on. 170 00:08:28,640 --> 00:08:28,900 Okay. 171 00:08:29,480 --> 00:08:30,120 So what? 172 00:08:30,580 --> 00:08:31,320 It's the lights. 173 00:08:31,480 --> 00:08:31,720 Okay. 174 00:08:31,800 --> 00:08:32,560 It's an electric vehicle. 175 00:08:32,680 --> 00:08:34,480 We're going to start draining the battery a little bit. 176 00:08:34,940 --> 00:08:35,540 So what? 177 00:08:35,940 --> 00:08:36,960 It's just lights, right? 178 00:08:37,600 --> 00:08:41,140 So then we started having a quick look at the mobile application. 179 00:08:41,860 --> 00:08:42,720 Got it over here. 180 00:08:42,940 --> 00:08:44,340 Went in the Android version. 181 00:08:44,540 --> 00:08:45,120 Come on. 182 00:08:45,140 --> 00:08:45,660 There you go. 183 00:08:45,780 --> 00:08:48,640 And started seeing how some more of the functionality was working. 184 00:08:48,720 --> 00:08:49,440 We'd done it by replay. 185 00:08:49,600 --> 00:08:51,780 We'd already achieved everything we wanted to. 186 00:08:52,280 --> 00:08:54,260 But now you can start having a bit of a look through it. 187 00:08:54,280 --> 00:08:57,000 So that class tells you how to construct the messages. 188 00:08:57,240 --> 00:08:58,960 The interesting bit is down here. 189 00:08:59,100 --> 00:09:01,140 You can start getting – sorry, the resolution is a bit crazy. 190 00:09:01,800 --> 00:09:04,420 You can start seeing various functions here. 191 00:09:04,660 --> 00:09:11,560 So these are the commands, the values you need to send that will trigger various actions on the vehicle. 192 00:09:11,760 --> 00:09:14,200 So it has a battery heater, a drive battery. 193 00:09:14,300 --> 00:09:18,120 So when it's cold, you can heat the battery up to make it run more efficiently. 194 00:09:18,400 --> 00:09:20,980 But there's loads and loads of other fun stuff in there. 195 00:09:21,860 --> 00:09:24,160 We've had some issues with making some of these work. 196 00:09:24,280 --> 00:09:25,820 But the commands that are quite interesting are these. 197 00:09:25,900 --> 00:09:26,700 KO kickoff. 198 00:09:27,560 --> 00:09:29,480 You can start seeing AC. 199 00:09:30,560 --> 00:09:32,320 You can start seeing the charge presets. 200 00:09:32,500 --> 00:09:33,880 And that's where things get quite good fun. 201 00:09:35,660 --> 00:09:36,640 Where have I gone? 202 00:09:37,900 --> 00:09:38,480 There you go. 203 00:09:41,000 --> 00:09:42,460 And that was the one that got us interested. 204 00:09:47,560 --> 00:09:49,640 What could possibly go wrong at this point, right? 205 00:09:51,820 --> 00:09:53,200 So as I said at the beginning, 206 00:09:53,200 --> 00:09:55,840 this is about playing around with the charging schedules. 207 00:09:55,940 --> 00:09:57,100 That's the primary focus of the application. 208 00:09:57,300 --> 00:09:58,420 So you could drive up to someone's car. 209 00:09:58,740 --> 00:10:00,800 You could hack the Wi-Fi key. 210 00:10:00,920 --> 00:10:02,140 And then turn on the AC. 211 00:10:03,320 --> 00:10:07,440 So when their vehicle is left on their driveway, run the AC permanently. 212 00:10:08,000 --> 00:10:09,000 And then you get down there. 213 00:10:09,200 --> 00:10:14,860 And believe me, it's really, really annoying when you forget to charge your electric vehicle in the morning. 214 00:10:15,100 --> 00:10:16,000 It's a real problem. 215 00:10:16,100 --> 00:10:17,660 I paid to hybrid, so you can still go somewhere. 216 00:10:17,760 --> 00:10:19,240 But I only like electric cars. 217 00:10:20,740 --> 00:10:22,600 You'll have to put up with my crazy video, I'm afraid. 218 00:10:22,600 --> 00:10:23,560 This is one we recorded. 219 00:10:23,680 --> 00:10:24,580 So I want to show you this. 220 00:10:24,820 --> 00:10:27,740 Keep an eye on the hazard lights here. 221 00:10:27,860 --> 00:10:29,940 You can see the lights are actually flashing there. 222 00:10:30,000 --> 00:10:30,720 So the alarm is on. 223 00:10:31,660 --> 00:10:33,100 It's showing the alarm is working. 224 00:10:33,220 --> 00:10:35,700 The interior volumetric theft alarm is operational. 225 00:10:35,960 --> 00:10:39,100 The only thing I cheated with there a little bit was I wound the window down. 226 00:10:39,200 --> 00:10:42,820 Otherwise, every time I do this demo, I have to replace my driver's side window glass. 227 00:10:43,940 --> 00:10:44,700 Kind of awkward. 228 00:10:44,960 --> 00:10:47,360 So that's operating as it should do. 229 00:10:47,540 --> 00:10:51,240 However, if you send it that, seven bytes, and this happens. 230 00:10:51,440 --> 00:10:52,400 That's all you need to send. 231 00:10:52,600 --> 00:10:52,760 That's it, guys. 232 00:10:53,660 --> 00:10:55,800 Watch the hazard lights there. 233 00:10:56,900 --> 00:10:58,120 See they're not going off. 234 00:10:58,140 --> 00:11:01,460 And the crazy bit is, unless you've deadlocked the vehicle, you can reach in and pop the door. 235 00:11:02,340 --> 00:11:02,700 Okay. 236 00:11:02,860 --> 00:11:08,040 So we've now deactivated the theft alarm for a vehicle over Wi-Fi. 237 00:11:08,300 --> 00:11:10,840 Now, the next phase, we've got quite a lot of work to do on this. 238 00:11:11,080 --> 00:11:13,200 So you've now got access to the onboard diagnostics port. 239 00:11:13,300 --> 00:11:15,400 So the next step was to code in your key. 240 00:11:17,400 --> 00:11:21,700 Just because the Wi-Fi key was too short. 241 00:11:22,820 --> 00:11:25,240 We coded this up into a nice Python script. 242 00:11:25,400 --> 00:11:28,380 So it's all there if you want to redo this, you know. 243 00:11:30,260 --> 00:11:34,140 Now, at the same time as disclosing this, we also disclosed a fix. 244 00:11:34,440 --> 00:11:34,760 Okay. 245 00:11:34,760 --> 00:11:37,020 This is a really, really easy fix for this. 246 00:11:37,120 --> 00:11:37,320 Okay. 247 00:11:37,540 --> 00:11:42,220 So if you go to the mobile application, you've got a pencil in registration there. 248 00:11:42,400 --> 00:11:46,220 And what that does is once the access point on the vehicle has no more Wi-Fi pairings, 249 00:11:46,220 --> 00:11:48,200 has no more associations, it powers out. 250 00:11:48,520 --> 00:11:51,680 And in order to re-enable it, you have to press the remote button. 251 00:11:51,680 --> 00:11:53,560 You have to press the remote key button ten times. 252 00:11:53,780 --> 00:11:55,560 And that brings it back to the pairing. 253 00:11:55,580 --> 00:11:56,960 So it's really, really easy to fix this. 254 00:11:57,200 --> 00:12:01,080 There's another way that Mitsubishi published, which you have to press the remote key 30 times. 255 00:12:01,160 --> 00:12:02,120 And that has the same effect. 256 00:12:02,380 --> 00:12:03,160 I like my version. 257 00:12:03,160 --> 00:12:03,760 It's quicker anyway. 258 00:12:05,500 --> 00:12:10,820 The other fun thing about this is because it uses Wi-Fi, it's terrible. 259 00:12:11,620 --> 00:12:17,260 And of course, if you only use Wiggle.net and WaterAve database, you can go find the vehicles. 260 00:12:17,640 --> 00:12:19,040 So this is the UK. 261 00:12:19,140 --> 00:12:21,280 As I said, these aren't shipping in the USA right now. 262 00:12:21,680 --> 00:12:22,380 But that's the UK. 263 00:12:22,540 --> 00:12:25,680 There are about 22,000, 23,000 of these vehicles on the road right now. 264 00:12:25,760 --> 00:12:31,160 And I've had a query on Wiggle and found 6,000 hits of these vehicles parked on people's driveways. 265 00:12:32,340 --> 00:12:32,740 Yeah? 266 00:12:33,300 --> 00:12:35,060 Now, that makes things quite different, doesn't it? 267 00:12:35,060 --> 00:12:36,440 It means you can find the vehicle. 268 00:12:36,820 --> 00:12:37,840 You know it's vulnerable. 269 00:12:38,120 --> 00:12:39,100 You drive to it. 270 00:12:39,240 --> 00:12:40,460 You capture the handshake. 271 00:12:40,640 --> 00:12:42,660 You come back a bit later having cracked the key. 272 00:12:42,760 --> 00:12:43,680 And you take the vehicle. 273 00:12:43,880 --> 00:12:46,340 Now, we did some fun little analysis here. 274 00:12:46,500 --> 00:12:49,220 So we analyzed it for three weeks before we disclosed. 275 00:12:49,520 --> 00:12:50,180 That's that lot. 276 00:12:50,180 --> 00:12:52,640 And then we analyzed the three-week window after disclosure. 277 00:12:52,860 --> 00:12:56,380 And still 400 people had left the Wi-Fi enabled on their Outlanders. 278 00:12:56,600 --> 00:12:57,040 Wow. 279 00:12:57,720 --> 00:13:01,260 So you're still disclosing exactly how to hack these vehicles. 280 00:13:01,380 --> 00:13:02,080 Go and find a car. 281 00:13:02,640 --> 00:13:03,420 Crack the key. 282 00:13:03,800 --> 00:13:04,620 Disable the alarm. 283 00:13:04,900 --> 00:13:05,600 Steal the car. 284 00:13:06,020 --> 00:13:06,460 Wow. 285 00:13:06,780 --> 00:13:07,760 That's just nuts. 286 00:13:09,120 --> 00:13:09,760 Longer term. 287 00:13:10,020 --> 00:13:12,200 So there is a function in the mobile app. 288 00:13:12,280 --> 00:13:14,620 You can actually update the firmware to the vehicle. 289 00:13:14,820 --> 00:13:15,640 And that's the firmware. 290 00:13:15,740 --> 00:13:16,740 Just unzip it. 291 00:13:17,600 --> 00:13:19,960 It's got very little debug information in it. 292 00:13:20,180 --> 00:13:21,600 I haven't spent much time looking at this. 293 00:13:21,660 --> 00:13:22,540 But there's a bunch of strings there. 294 00:13:22,580 --> 00:13:25,100 You can see how it's creating the Wi-Fi connection. 295 00:13:25,840 --> 00:13:29,520 I think the PSK is derived in here. 296 00:13:29,680 --> 00:13:30,680 I'm not sure how yet. 297 00:13:30,740 --> 00:13:31,720 We're working on that right now. 298 00:13:33,540 --> 00:13:36,720 I'm quite concerned though that in order to fix this bug, 299 00:13:36,800 --> 00:13:40,880 you're asking the consumer to download an update to the mobile app, 300 00:13:41,040 --> 00:13:44,540 connect to it over Wi-Fi, and push the firmware update to the vehicle. 301 00:13:44,760 --> 00:13:47,660 And one thing that concerns me is this Wi-Fi connection is quite unsafe. 302 00:13:48,020 --> 00:13:48,900 It drops out. 303 00:13:48,900 --> 00:13:50,160 And that's just what we're using normally. 304 00:13:50,380 --> 00:13:52,800 Let alone when you try and push the firmware update to something. 305 00:13:52,960 --> 00:13:54,760 I find that just a little bit scary. 306 00:13:55,780 --> 00:13:56,840 And I don't know. 307 00:13:56,920 --> 00:13:59,640 But if that firmware update went wrong, 308 00:13:59,840 --> 00:14:02,320 I'd have quite an expensive brick sat on my driveway. 309 00:14:02,460 --> 00:14:02,920 I don't know about you. 310 00:14:04,500 --> 00:14:05,860 I'll let you know how we get on with the firmware. 311 00:14:05,980 --> 00:14:07,360 But it's in the mobile application there. 312 00:14:07,620 --> 00:14:10,080 I want to talk about disclosure because this is a bit of a train wreck. 313 00:14:11,140 --> 00:14:12,700 We always disclose responsibly. 314 00:14:14,000 --> 00:14:14,780 That's what we're about. 315 00:14:15,580 --> 00:14:17,960 So we may come back to the disclosure process. 316 00:14:18,580 --> 00:14:19,360 We've made a contact. 317 00:14:19,660 --> 00:14:22,740 We've had a sense of conversation, not a speech in the UK. 318 00:14:23,680 --> 00:14:25,600 We've sent them all the stuff we've found. 319 00:14:25,760 --> 00:14:26,960 Said, here you go. 320 00:14:28,200 --> 00:14:28,800 Go fix. 321 00:14:28,940 --> 00:14:29,680 Have a chat with us, whatever. 322 00:14:30,060 --> 00:14:31,000 And we spoke to them. 323 00:14:31,080 --> 00:14:31,620 We got no response. 324 00:14:31,760 --> 00:14:32,680 We spoke to them 10 days later. 325 00:14:32,800 --> 00:14:35,940 And I've never had such a weird phone conversation in my life. 326 00:14:36,020 --> 00:14:38,080 I said, they've had no reports of this anywhere in the world. 327 00:14:38,640 --> 00:14:40,360 And therefore didn't consider it to be an issue. 328 00:14:42,580 --> 00:14:44,040 Which I was blown away. 329 00:14:44,220 --> 00:14:45,580 I mean, they're not to speak to us often. 330 00:14:45,660 --> 00:14:46,540 But that's one of those times. 331 00:14:48,380 --> 00:14:50,260 So I said to the guy, I said, well, look. 332 00:14:50,340 --> 00:14:55,000 Our only other option is to go and speak to the security press and try and see what 333 00:14:55,000 --> 00:14:55,540 their view is. 334 00:14:55,640 --> 00:14:58,300 And they said, we will say the same to the press except to you. 335 00:15:00,160 --> 00:15:00,480 Fine. 336 00:15:01,120 --> 00:15:03,280 You've just given me a couple of hours to speak to the press. 337 00:15:03,320 --> 00:15:03,620 So I did. 338 00:15:03,800 --> 00:15:04,700 And I spoke to the BBC. 339 00:15:05,260 --> 00:15:06,260 And now I'm at speech. 340 00:15:06,280 --> 00:15:07,300 You think it's a very serious issue. 341 00:15:07,360 --> 00:15:09,760 And I'm working, in fairness, really hard on it, actually. 342 00:15:10,180 --> 00:15:14,460 As soon as I came to realize, actually, it was a bigger issue than they thought, we were 343 00:15:14,460 --> 00:15:15,320 invited out for this speech. 344 00:15:15,440 --> 00:15:16,040 You were in a replay. 345 00:15:16,340 --> 00:15:17,540 They got a car off the line. 346 00:15:18,300 --> 00:15:19,320 Brand new software. 347 00:15:19,740 --> 00:15:20,220 They used everything. 348 00:15:20,460 --> 00:15:21,920 And the attack worked on that, as well. 349 00:15:22,060 --> 00:15:23,800 So they've actually been really good since. 350 00:15:23,940 --> 00:15:29,800 I think the reason they had a bit of a fail there was because when we disclosed them, 351 00:15:29,920 --> 00:15:33,220 it turned out subsequently to be the same time as the emissions scandal broke. 352 00:15:34,340 --> 00:15:36,160 I kind of wondered if they had a bit of a break there. 353 00:15:36,300 --> 00:15:39,060 But still no excuse not to deal with the security risk. 354 00:15:39,200 --> 00:15:39,580 Question. 355 00:15:39,980 --> 00:15:41,700 I have a question on that. 356 00:15:43,060 --> 00:15:44,140 I didn't go. 357 00:15:44,220 --> 00:15:46,540 I wasn't going to go anywhere with you on that. 358 00:15:46,900 --> 00:15:47,520 But I have a question. 359 00:15:47,520 --> 00:15:51,960 I find that there's some, I think, minor conflict of finish representing people at 360 00:15:51,960 --> 00:15:54,640 the institution around the same time as you did. 361 00:15:54,880 --> 00:15:56,220 I'm not sure if it's exactly that. 362 00:15:57,660 --> 00:16:02,200 And the thing with my thought is that the corporate structure of the institution and 363 00:16:02,200 --> 00:16:07,120 then the conflict of representatives is that when they go to the Pet Office, that the 364 00:16:07,120 --> 00:16:11,520 people who go to design the car probably never got involved at that point. 365 00:16:11,720 --> 00:16:14,280 So, you know, it's probably got lost somewhere. 366 00:16:14,720 --> 00:16:15,080 Yeah. 367 00:16:15,180 --> 00:16:17,500 I do know that you've seen the speech in the video. 368 00:16:17,520 --> 00:16:23,200 to HQ in town, but I'm not sure if they really passed on what we said. I think there's maybe 369 00:16:23,200 --> 00:16:26,380 some filtering going on there. I'm not sure yet, but great you found the same thing too. 370 00:16:26,520 --> 00:16:30,580 That's awesome. We know what disclosure should have happened. They should have said, 371 00:16:30,640 --> 00:16:33,500 yeah, that's great, send us everything. We go and show them what the problem is. 372 00:16:33,540 --> 00:16:36,420 They fix it and we only disclose afterwards. I wish that had happened. I really do. 373 00:16:37,280 --> 00:16:39,880 There's still lots of stuff we've got to work on. We found the module in the end. 374 00:16:39,940 --> 00:16:43,720 That took a lot of finding actually. It's tucked away behind the trunk liner. 375 00:16:43,720 --> 00:16:47,860 It's a costal body network control module. Usually these have GSM modules in, 376 00:16:47,920 --> 00:16:51,800 but unusually this has got a games fan Wi-Fi module. We're spending some time having a look 377 00:16:51,800 --> 00:16:55,300 at the connections between that module and the can. The stuff I'm going at the moment, 378 00:16:55,300 --> 00:17:01,100 that will be disclosed through Mitsubishi obviously. There is lots of extra functionality 379 00:17:01,100 --> 00:17:05,160 in the mobile application that's not used. For example, there is door lock control. 380 00:17:05,400 --> 00:17:08,900 You could pop the doors potentially, but we can't figure out how to make that go at the moment. 381 00:17:09,040 --> 00:17:12,520 We've just run out of time. The other crazy bit as well is the mobile app, 382 00:17:12,580 --> 00:17:13,480 it really is a bit... 383 00:17:13,720 --> 00:17:19,400 a bit flaky. You know how you're supposed to store sensitive data and stuff in a keychain 384 00:17:19,400 --> 00:17:23,880 or look after it like the OS provides? This is stored in an unencrypted SQLite database 385 00:17:23,880 --> 00:17:28,220 in the mobile app. Great. And there's some unexpected functions as well. We found that one. 386 00:17:28,360 --> 00:17:34,440 Change gun status. Wow. I totally need to find where that is on my vehicle. 387 00:17:35,120 --> 00:17:40,120 It's very James Bond I'm sure. But just to wrap up guys, we've been doing this for a long time. 388 00:17:40,280 --> 00:17:42,960 Our background is actually in industrial control systems and Scala. 389 00:17:42,960 --> 00:17:47,920 And actually, it translated quite nicely into vehicles and some of the other crazy stuff 390 00:17:47,920 --> 00:17:51,620 we've done and are doing. You might remember the work we did on the Wi-Fi tea kettle last year. 391 00:17:51,760 --> 00:17:56,340 We hacked the IoT fridge last year and are already working on their smart fridge this year. 392 00:17:57,600 --> 00:18:01,100 One of the crazy things came out, we were asked to help CSI Cyber write a hack script. 393 00:18:01,620 --> 00:18:06,780 And that didn't go well, unsurprisingly. We also do quite a bit of work in automotive as well. 394 00:18:07,020 --> 00:18:10,300 The big challenge you usually have is how do you get hold of the vehicles to have a good go 395 00:18:10,300 --> 00:18:11,440 and get something useful. 396 00:18:12,020 --> 00:18:14,440 Anyway, guys, I hope you enjoyed it. We tweet about this all the time. 397 00:18:14,480 --> 00:18:16,680 Do follow. Our blog's there. Everything's written up there. 398 00:18:16,860 --> 00:18:17,880 Hope you enjoyed it. Thank you. 399 00:18:24,260 --> 00:18:24,820 Any questions? 400 00:18:26,640 --> 00:18:30,200 Do you ever consider developing a third party app and selling it to make a little bit of money? 401 00:18:30,780 --> 00:18:36,060 Yeah. It's a great idea, wouldn't it? Yeah. I don't know. I think it's probably better to work with Avengers. 402 00:18:36,880 --> 00:18:37,700 There's probably more in there. 403 00:18:39,220 --> 00:18:42,080 How do you trace back the locations and know they're in front and then where? 404 00:18:42,260 --> 00:18:43,060 I'm sorry, say that again? 405 00:18:43,160 --> 00:18:45,420 What is the way you can trace the car locations? 406 00:18:46,840 --> 00:18:47,980 Oh, how do you find the vehicle? 407 00:18:48,360 --> 00:18:53,900 Okay, so this relies upon war drivers going out there and geolocating the vehicles. 408 00:18:54,000 --> 00:18:55,280 So there's always a lag. 409 00:18:55,820 --> 00:19:01,220 So, you know, you might see the vehicle on the road, but it's moved by the time you see it update on Wiggle. 410 00:19:01,420 --> 00:19:06,020 But when it's parked at someone's house, it's highly likely it's going to be there next time you drive by in the evening. 411 00:19:06,020 --> 00:19:09,060 So, yeah, it's obviously Wiggle takes time to update. 412 00:19:09,820 --> 00:19:16,800 Although, that said, my vehicle was located at a trade show at a booth in London, and it had been there 24 hours. 413 00:19:17,260 --> 00:19:19,240 So, yeah, it was pretty nuts. 414 00:19:19,540 --> 00:19:20,340 Was there another question? Yeah. 415 00:19:20,580 --> 00:19:22,980 Have you tried saying things on moving vehicles? 416 00:19:23,460 --> 00:19:23,900 On? 417 00:19:24,080 --> 00:19:25,260 Moving vehicles. 418 00:19:26,620 --> 00:19:27,700 That's what I want to do next. 419 00:19:27,880 --> 00:19:29,740 Yeah, and it's obviously you need quite a few people. 420 00:19:29,780 --> 00:19:32,460 You need someone driving both cars and, yeah, we believe it works. 421 00:19:32,740 --> 00:19:33,320 What was the question? 422 00:19:33,800 --> 00:19:35,460 Have we tried this on a moving vehicle? 423 00:19:36,020 --> 00:19:38,620 The answer is no, although it was a moving vehicle. 424 00:19:39,500 --> 00:19:43,840 So, yeah, like very much like Charlie Miller and Chris Taylor said, you know, we want to do the Jeep at speed next. 425 00:19:44,040 --> 00:19:47,840 But until we've reached the cane, it's probably not so surprising. 426 00:19:48,280 --> 00:19:50,020 But they have to be in the Wi-Fi range. 427 00:19:50,340 --> 00:19:50,700 Yeah. 428 00:19:51,040 --> 00:19:51,400 Yeah. 429 00:19:51,480 --> 00:19:52,760 So you've got to be right behind the vehicle. 430 00:19:53,060 --> 00:19:54,360 How did you get the Java? 431 00:19:55,660 --> 00:19:56,580 How did we get the? 432 00:19:56,780 --> 00:19:59,020 How did you get the Java, like, course of things? 433 00:19:59,240 --> 00:20:00,280 Oh, the APK. 434 00:20:01,160 --> 00:20:01,520 Sorry. 435 00:20:01,660 --> 00:20:02,520 Just APK. 436 00:20:02,940 --> 00:20:03,300 Oh. 437 00:20:04,720 --> 00:20:06,080 I think JD, but, yeah. 438 00:20:06,160 --> 00:20:06,480 Yeah. 439 00:20:06,480 --> 00:20:06,660 Yeah. 440 00:20:06,720 --> 00:20:07,500 JADX or JD. 441 00:20:07,660 --> 00:20:08,600 That'll do the job for you. 442 00:20:09,600 --> 00:20:11,000 How much time did it spend? 443 00:20:12,240 --> 00:20:12,660 Sorry? 444 00:20:12,900 --> 00:20:13,980 How much time did it spend? 445 00:20:14,060 --> 00:20:14,520 How much time? 446 00:20:14,640 --> 00:20:20,520 So probably about a week in total spread over a couple months. 447 00:20:20,780 --> 00:20:21,200 Yeah. 448 00:20:21,220 --> 00:20:23,420 So it wasn't a big, complicated, time-consuming hack. 449 00:20:23,500 --> 00:20:24,340 It was really easy. 450 00:20:26,000 --> 00:20:33,260 Do you think the reason they have a fixed PSA on the Casco is something deeper than they used to do? 451 00:20:37,940 --> 00:20:41,800 So there's probably a deeper question there, actually, which is why use Wi-Fi? 452 00:20:42,900 --> 00:20:50,960 I believe the reason is is it's a heck of a lot cheaper than setting up a GSM connection, an API, servers. 453 00:20:51,520 --> 00:20:54,260 It's just much cheaper, I think, to have a Wi-Fi module connect direct. 454 00:20:55,360 --> 00:21:02,780 So I think given that this was done in terms of cost, I think the answer to your question was probably it's done in terms of cost as well. 455 00:21:02,780 --> 00:21:06,500 It would have been more expensive to code up a method of updating the PSK. 456 00:21:06,760 --> 00:21:09,340 So you'd be having to push updates into the module. 457 00:21:09,560 --> 00:21:10,980 And I think that would have cost more money. 458 00:21:11,120 --> 00:21:13,660 So I think it's a question of cost, frankly. 459 00:21:15,040 --> 00:21:16,880 I'm terribly sorry, but . 460 00:21:17,900 --> 00:21:20,080 So this may be a repetitive question. 461 00:21:20,760 --> 00:21:25,140 But the app you're using on your phone, is that just directly related to the ? 462 00:21:25,780 --> 00:21:26,020 Yeah. 463 00:21:26,120 --> 00:21:26,560 Yeah. 464 00:21:26,640 --> 00:21:30,440 So just go and search the Play Store for InvenTech or Mitsubishi. 465 00:21:30,580 --> 00:21:31,640 You'll get that hit straight away. 466 00:21:31,940 --> 00:21:32,440 Thank you. 467 00:21:33,180 --> 00:21:35,720 Have you tried any of the vehicles or just Mitsubishi? 468 00:21:36,000 --> 00:21:37,180 Well, that's the thing. 469 00:21:37,260 --> 00:21:40,000 We've only really looked at this because it was obvious Wi-Fi. 470 00:21:40,140 --> 00:21:46,360 I haven't found any more vehicles that actually use Wi-Fi for the interface between the smart application and the vehicle. 471 00:21:46,520 --> 00:21:48,520 Everything else goes through an API. 472 00:21:49,020 --> 00:21:52,080 So the answer to the question is no, because I haven't found another one that does. 473 00:21:52,160 --> 00:21:53,140 But if you do, please tell me. 474 00:21:53,640 --> 00:21:54,840 Actually, some cars do. 475 00:21:55,220 --> 00:21:55,660 Really? 476 00:21:55,820 --> 00:21:55,960 Yeah. 477 00:21:56,120 --> 00:21:56,420 Wow. 478 00:21:58,000 --> 00:21:58,880 It's . 479 00:21:58,880 --> 00:22:01,320 So it's like . 480 00:22:03,720 --> 00:22:04,080 Cool. 481 00:22:05,420 --> 00:22:06,620 I'd really like to know about that. 482 00:22:06,640 --> 00:22:07,860 I'd really like to know about that. 483 00:22:07,900 --> 00:22:08,240 Thank you. 484 00:22:08,540 --> 00:22:11,500 Well, for the app, do they have also like information? 485 00:22:13,540 --> 00:22:15,480 Is there a login for the app? 486 00:22:16,320 --> 00:22:16,680 No. 487 00:22:16,960 --> 00:22:17,320 No? 488 00:22:17,360 --> 00:22:17,720 No. 489 00:22:17,780 --> 00:22:18,520 There is the function. 490 00:22:18,640 --> 00:22:20,360 You can put a pin in front of the application. 491 00:22:20,760 --> 00:22:22,020 But that's actually very easy to bypass. 492 00:22:22,900 --> 00:22:23,260 Yeah. 493 00:22:23,560 --> 00:22:24,960 So there is no auth. 494 00:22:25,020 --> 00:22:25,760 Because there's no API. 495 00:22:26,240 --> 00:22:26,440 Right. 496 00:22:26,560 --> 00:22:27,600 But there's a pin, right? 497 00:22:27,940 --> 00:22:29,920 If you set it one up, yeah. 498 00:22:30,000 --> 00:22:30,560 For the . 499 00:22:30,560 --> 00:22:31,300 So there's a . 500 00:22:31,300 --> 00:22:33,260 So there's a second pin you can enable in the cell phone application. 501 00:22:33,520 --> 00:22:42,640 So after you extract the APK, is there a chance that the pin will also be stored? 502 00:22:43,280 --> 00:22:43,980 I don't know. 503 00:22:44,000 --> 00:22:44,620 I've never looked actually. 504 00:22:44,900 --> 00:22:45,140 Yeah. 505 00:22:45,260 --> 00:22:51,700 Because I've seen a lot of apps do for cars where they store usernames and passwords. 506 00:22:52,560 --> 00:22:53,080 Okay. 507 00:22:53,140 --> 00:22:53,660 Yeah. 508 00:22:53,680 --> 00:22:54,500 I've never seen that. 509 00:22:54,680 --> 00:22:58,000 So I think maybe there's also a chance that they store things. 510 00:22:58,340 --> 00:22:58,740 Yeah. 511 00:22:58,760 --> 00:22:59,520 That's a good thought. 512 00:22:59,520 --> 00:22:59,600 Yeah. 513 00:22:59,820 --> 00:23:01,140 On the shared breaths. 514 00:23:01,400 --> 00:23:01,780 Yeah. 515 00:23:01,780 --> 00:23:03,020 Because like they remember. 516 00:23:04,460 --> 00:23:05,220 That's a good thought. 517 00:23:05,260 --> 00:23:05,440 Yeah. 518 00:23:05,440 --> 00:23:05,680 Thank you. 519 00:23:06,320 --> 00:23:06,840 Good. 520 00:23:07,260 --> 00:23:07,960 Question here. 521 00:23:08,020 --> 00:23:08,140 Sorry. 522 00:23:08,240 --> 00:23:08,860 I didn't understand. 523 00:23:08,980 --> 00:23:10,500 How are these . 524 00:23:10,500 --> 00:23:15,740 How is the local lab and the legit owner joined with not . 525 00:23:17,380 --> 00:23:23,320 How are the credentials changed like so that the legit owner . 526 00:23:23,660 --> 00:23:25,780 Without, you know, you have to write that key. 527 00:23:26,060 --> 00:23:26,580 . 528 00:23:28,060 --> 00:23:28,860 There isn't. 529 00:23:28,920 --> 00:23:29,500 There isn't. 530 00:23:29,500 --> 00:23:31,060 There is no further authentication to the vehicle. 531 00:23:31,320 --> 00:23:31,620 Right. 532 00:23:31,720 --> 00:23:32,400 It's the PSK. 533 00:23:32,500 --> 00:23:33,140 And that is it. 534 00:23:33,260 --> 00:23:33,540 Yeah. 535 00:23:33,800 --> 00:23:34,100 Yeah. 536 00:23:34,160 --> 00:23:34,900 It really is. 537 00:23:35,160 --> 00:23:36,520 Once you crack the key, you've got the car. 538 00:23:36,740 --> 00:23:37,600 But how does . 539 00:23:38,280 --> 00:23:38,880 I mean. 540 00:23:40,100 --> 00:23:40,680 But there isn't. 541 00:23:40,720 --> 00:23:41,820 So they get the key in the manual. 542 00:23:41,980 --> 00:23:43,840 So it's printed in the owner's manual. 543 00:23:44,000 --> 00:23:44,260 . 544 00:23:44,780 --> 00:23:45,080 Yeah. 545 00:23:45,840 --> 00:23:46,140 Yeah. 546 00:23:46,280 --> 00:23:46,560 Yeah. 547 00:23:46,560 --> 00:23:48,000 You do have to crack a key per vehicle. 548 00:23:48,140 --> 00:23:48,240 Yeah. 549 00:23:48,360 --> 00:23:48,660 Right. 550 00:23:48,760 --> 00:23:48,880 Yeah. 551 00:23:49,540 --> 00:23:49,840 Yeah. 552 00:23:49,880 --> 00:23:50,840 But there is no further all. 553 00:23:50,940 --> 00:23:51,220 I know. 554 00:23:51,300 --> 00:23:51,600 Crazy. 555 00:23:52,260 --> 00:23:52,560 Cool. 556 00:23:52,780 --> 00:23:53,480 Any more questions? 557 00:23:54,180 --> 00:23:54,320 Okay. 558 00:23:54,340 --> 00:23:57,920 Guys, if anyone, you know, wants anything urgent, I'll be in the IoT Village for the 559 00:23:57,920 --> 00:23:59,120 next two days working on the fridge. 560 00:23:59,220 --> 00:24:00,140 So maybe see you there. 561 00:24:00,240 --> 00:24:00,560 Thank you. 562 00:24:01,260 --> 00:24:01,560 .