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. 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. 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. 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. Anyway, that is my vehicle. Those aren't my plates, I might add, unsurprisingly. A little bit of background, who are we? So, we're a company called Pentest Partners, clues in the name, we're pentesters, unsurprisingly. Back in the day, I'm really into electric vehicles. 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. You've probably seen various issues with BMW Connected Drive, their mobile application. 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. And there was an issue to do with the way you could force password resets, temporary passwords. 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. About a year ago, they had another issue where it was shown that the communications were done plain text, that was all fixed. And I don't know if you saw last week, there was another issue published, really interesting vulnerability to do with enumerating VIN numbers. Anyway, there we go. I want to tell you about the mobile app. So, this is the mobile app for my vehicle. You can do some stuff with it. The key function of it is to set up a charging schedule. So, if you've got an electric vehicle, you want to charge it on cheaper electricity overnight. 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. So, my car is half the price to charge up. You can also, you can turn on the AC in the morning. So, if you're on a hot day, cool it off. But if you live in the UK, you need the heat in the morning because it's freezing and raining. There you go. It does some other stuff too. What's really unusual is the way that the mobile application connects to the vehicle. 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. This is different. It uses Wi-Fi to talk directly to an access point on the vehicle. And that's really unusual. I don't know, has anyone else seen another vehicle that works like this? It's the first one I've seen. I cannot find another one that does this. There is an AP on the vehicle. The mobile app talks directly to the vehicle over Wi-Fi. That's really, really unusual. And that got me interested. I genuinely was in the parking lot at my kid's school. I didn't make this up. I was looking for some Wi-Fi and I saw an unusual access point name pop up. I thought, whoa, what's going on there? I spoke to a buddy of mine who kind of looked roughly where the car went past. He said, yeah, that's my car. I said, what? You have an access point on your car? He said, yeah, yeah, it's pretty cool. So in order to talk, yeah. Is that working, guys? One, two, one, two? It's a bit crusty. You OK? I'll speak up, shall I? Yeah, one, two, one, two. Yeah. Can we get some more gain on that, guys? No, maybe not. Shall I just shout? Yeah, that's much better. Good. OK. So what's really weird? It's a big access point. It's encrypted. It has an SSID. It has a pre-share key. What a surprise. In order to connect to it, that PSK is printed on a piece of paper in O's mouth. Whoa! OK. What's really weird is the SSID, you can change in the field, although the function doesn't actually work. And in theory, you can change it. The pre-share key cannot be changed. So if you want to change, you can't. If you can change, cut your card. It just doesn't work. And that's factory set. And I've looked at it. I said, whoa. What? There's some trouble here. We need to start looking at this. So the SSID format can be straightforward. It's the way of remotes and capital letters. You then have two numbers, four letters. It doesn't matter so much. The scary bit is the pre-share key format. It is four lowercase alpha. It is six digits. And the chart set for lowercase alpha is the 21 characters, not 26. And that was really quick to crack. So we can't just back away. Handshake. We cracked it. We used some, you know, a little bit of code. We didn't have a lot of code. We've got four of those in rig. We've had it practised for two and a half days. We're building a bigger rig at the moment with 16 GPUs. That's going to go real quick. But if you're in a hurry, you can just upload this on one like AWS. We calculated the cost as being around $1,000. That's a lot of money. But this is a $40,000 vehicle, right? It's expensive. So that's kind of a trade I think I'd go for actually. We connected to it. Really unusual. So it has a stack of like p address, 192, 162, and one on the right side. Port 80 is there, but there's no service running, I don't know what that's for, I can't figure that out. But the TCP port 8080 is open and that's what we got. So you can retrieve the VIN, as you can see that's disclosed there. You can also see the SSID of the vehicle, that's not my car. And there's some other stuff in there as well. I promise you it's not. Pretty obviously a binary protocol, it's a gamespan WiFi module, very, very popular module, really interesting and quite good fun. So, why show up? What do we do? So, hopefully that's going to work, there we go. So we, I'm in the middle of the connection. We sniffed, making some requests. In this particular case we were actually turning on the lights, so let's follow that. And you get a bunch of junk. But of course, being a binary protocol, start into a hex dump and you get a load of junk. A load of interesting data. Very, very verbose messaging. So, the red is the vehicle talking to the mobile application. The blue is the mobile application responding back again. It's really hard. I mean, we first wanted to fuzz this and see what we could do. But it'll only pretty much stand up for one message every 15 seconds or so. The entire vehicle status, as far as we can work out, goes to the application and the entire status goes back again. So it's really slow. So we started playing around with this, had a bit of a look. We started seeing messaging popping up. Now, this particular one, we were, the only function we ran was just, let's turn on the lights. And that's a function in the mobile application that's quite useful if you want to find your vehicle in a car park or a car, in a driveway. The only slight challenge with this is that it only works when you're in Wi-Fi range. It's not like selling your data on Wi-Fi or an API where you can turn it on anywhere in the world. You can only do it when you're within Wi-Fi range. And I don't know if you've ever mislaid your vehicle in a parking lot. By the time you're close enough for Wi-Fi, you're there anyway, right? I don't know. So we started having a bit of a play around with this. And we did the classics. So we chopped up the packet we replayed. We chopped again, worked out which function, which part of PCAP was actually making it work. And we finally got down to a point where we could successfully, make a noise, start to analyze what the packets were doing. So the messages that were being sent to explain these, so it's all there, pretty straightforward. The bit that threw us a moment for a while was actually some of the messaging is six bytes and some of it is seven bytes. That really threw us. We were really struggling to make any progress with this. Send that bunch, add a checksum. It's really easy once you can understand how the protocol works. It's just not rocket science. So if you want to have some fun, capture the key, crack the key, send six bytes. And I have videoed this because I couldn't bring the vehicle with me. And this happens. So we're no longer replaying. We're just talking to the director of the car and the lights come on. Okay. So what? It's the lights. Okay. It's an electric vehicle. We're going to start draining the battery a little bit. So what? It's just lights, right? So then we started having a quick look at the mobile application. Got it over here. Went in the Android version. Come on. There you go. And started seeing how some more of the functionality was working. We'd done it by replay. We'd already achieved everything we wanted to. But now you can start having a bit of a look through it. So that class tells you how to construct the messages. The interesting bit is down here. You can start getting – sorry, the resolution is a bit crazy. You can start seeing various functions here. So these are the commands, the values you need to send that will trigger various actions on the vehicle. So it has a battery heater, a drive battery. So when it's cold, you can heat the battery up to make it run more efficiently. But there's loads and loads of other fun stuff in there. We've had some issues with making some of these work. But the commands that are quite interesting are these. KO kickoff. You can start seeing AC. You can start seeing the charge presets. And that's where things get quite good fun. Where have I gone? There you go. And that was the one that got us interested. What could possibly go wrong at this point, right? So as I said at the beginning, this is about playing around with the charging schedules. That's the primary focus of the application. So you could drive up to someone's car. You could hack the Wi-Fi key. And then turn on the AC. So when their vehicle is left on their driveway, run the AC permanently. And then you get down there. And believe me, it's really, really annoying when you forget to charge your electric vehicle in the morning. It's a real problem. I paid to hybrid, so you can still go somewhere. But I only like electric cars. You'll have to put up with my crazy video, I'm afraid. This is one we recorded. So I want to show you this. Keep an eye on the hazard lights here. You can see the lights are actually flashing there. So the alarm is on. It's showing the alarm is working. The interior volumetric theft alarm is operational. The only thing I cheated with there a little bit was I wound the window down. Otherwise, every time I do this demo, I have to replace my driver's side window glass. Kind of awkward. So that's operating as it should do. However, if you send it that, seven bytes, and this happens. That's all you need to send. That's it, guys. Watch the hazard lights there. See they're not going off. And the crazy bit is, unless you've deadlocked the vehicle, you can reach in and pop the door. Okay. So we've now deactivated the theft alarm for a vehicle over Wi-Fi. Now, the next phase, we've got quite a lot of work to do on this. So you've now got access to the onboard diagnostics port. So the next step was to code in your key. Just because the Wi-Fi key was too short. We coded this up into a nice Python script. So it's all there if you want to redo this, you know. Now, at the same time as disclosing this, we also disclosed a fix. Okay. This is a really, really easy fix for this. Okay. So if you go to the mobile application, you've got a pencil in registration there. And what that does is once the access point on the vehicle has no more Wi-Fi pairings, has no more associations, it powers out. And in order to re-enable it, you have to press the remote button. You have to press the remote key button ten times. And that brings it back to the pairing. So it's really, really easy to fix this. There's another way that Mitsubishi published, which you have to press the remote key 30 times. And that has the same effect. I like my version. It's quicker anyway. The other fun thing about this is because it uses Wi-Fi, it's terrible. And of course, if you only use Wiggle.net and WaterAve database, you can go find the vehicles. So this is the UK. As I said, these aren't shipping in the USA right now. But that's the UK. There are about 22,000, 23,000 of these vehicles on the road right now. And I've had a query on Wiggle and found 6,000 hits of these vehicles parked on people's driveways. Yeah? Now, that makes things quite different, doesn't it? It means you can find the vehicle. You know it's vulnerable. You drive to it. You capture the handshake. You come back a bit later having cracked the key. And you take the vehicle. Now, we did some fun little analysis here. So we analyzed it for three weeks before we disclosed. That's that lot. And then we analyzed the three-week window after disclosure. And still 400 people had left the Wi-Fi enabled on their Outlanders. Wow. So you're still disclosing exactly how to hack these vehicles. Go and find a car. Crack the key. Disable the alarm. Steal the car. Wow. That's just nuts. Longer term. So there is a function in the mobile app. You can actually update the firmware to the vehicle. And that's the firmware. Just unzip it. It's got very little debug information in it. I haven't spent much time looking at this. But there's a bunch of strings there. You can see how it's creating the Wi-Fi connection. I think the PSK is derived in here. I'm not sure how yet. We're working on that right now. I'm quite concerned though that in order to fix this bug, you're asking the consumer to download an update to the mobile app, connect to it over Wi-Fi, and push the firmware update to the vehicle. And one thing that concerns me is this Wi-Fi connection is quite unsafe. It drops out. And that's just what we're using normally. Let alone when you try and push the firmware update to something. I find that just a little bit scary. And I don't know. But if that firmware update went wrong, I'd have quite an expensive brick sat on my driveway. I don't know about you. I'll let you know how we get on with the firmware. But it's in the mobile application there. I want to talk about disclosure because this is a bit of a train wreck. We always disclose responsibly. That's what we're about. So we may come back to the disclosure process. We've made a contact. We've had a sense of conversation, not a speech in the UK. We've sent them all the stuff we've found. Said, here you go. Go fix. Have a chat with us, whatever. And we spoke to them. We got no response. We spoke to them 10 days later. And I've never had such a weird phone conversation in my life. I said, they've had no reports of this anywhere in the world. And therefore didn't consider it to be an issue. Which I was blown away. I mean, they're not to speak to us often. But that's one of those times. So I said to the guy, I said, well, look. Our only other option is to go and speak to the security press and try and see what their view is. And they said, we will say the same to the press except to you. Fine. You've just given me a couple of hours to speak to the press. So I did. And I spoke to the BBC. And now I'm at speech. You think it's a very serious issue. And I'm working, in fairness, really hard on it, actually. As soon as I came to realize, actually, it was a bigger issue than they thought, we were invited out for this speech. You were in a replay. They got a car off the line. Brand new software. They used everything. And the attack worked on that, as well. So they've actually been really good since. I think the reason they had a bit of a fail there was because when we disclosed them, it turned out subsequently to be the same time as the emissions scandal broke. I kind of wondered if they had a bit of a break there. But still no excuse not to deal with the security risk. Question. I have a question on that. I didn't go. I wasn't going to go anywhere with you on that. But I have a question. I find that there's some, I think, minor conflict of finish representing people at the institution around the same time as you did. I'm not sure if it's exactly that. And the thing with my thought is that the corporate structure of the institution and then the conflict of representatives is that when they go to the Pet Office, that the people who go to design the car probably never got involved at that point. So, you know, it's probably got lost somewhere. Yeah. I do know that you've seen the speech in the video. to HQ in town, but I'm not sure if they really passed on what we said. I think there's maybe some filtering going on there. I'm not sure yet, but great you found the same thing too. That's awesome. We know what disclosure should have happened. They should have said, yeah, that's great, send us everything. We go and show them what the problem is. They fix it and we only disclose afterwards. I wish that had happened. I really do. There's still lots of stuff we've got to work on. We found the module in the end. That took a lot of finding actually. It's tucked away behind the trunk liner. It's a costal body network control module. Usually these have GSM modules in, but unusually this has got a games fan Wi-Fi module. We're spending some time having a look at the connections between that module and the can. The stuff I'm going at the moment, that will be disclosed through Mitsubishi obviously. There is lots of extra functionality in the mobile application that's not used. For example, there is door lock control. You could pop the doors potentially, but we can't figure out how to make that go at the moment. We've just run out of time. The other crazy bit as well is the mobile app, it really is a bit... a bit flaky. You know how you're supposed to store sensitive data and stuff in a keychain or look after it like the OS provides? This is stored in an unencrypted SQLite database in the mobile app. Great. And there's some unexpected functions as well. We found that one. Change gun status. Wow. I totally need to find where that is on my vehicle. It's very James Bond I'm sure. But just to wrap up guys, we've been doing this for a long time. Our background is actually in industrial control systems and Scala. And actually, it translated quite nicely into vehicles and some of the other crazy stuff we've done and are doing. You might remember the work we did on the Wi-Fi tea kettle last year. We hacked the IoT fridge last year and are already working on their smart fridge this year. One of the crazy things came out, we were asked to help CSI Cyber write a hack script. And that didn't go well, unsurprisingly. We also do quite a bit of work in automotive as well. The big challenge you usually have is how do you get hold of the vehicles to have a good go and get something useful. Anyway, guys, I hope you enjoyed it. We tweet about this all the time. Do follow. Our blog's there. Everything's written up there. Hope you enjoyed it. Thank you. Any questions? Do you ever consider developing a third party app and selling it to make a little bit of money? Yeah. It's a great idea, wouldn't it? Yeah. I don't know. I think it's probably better to work with Avengers. There's probably more in there. How do you trace back the locations and know they're in front and then where? I'm sorry, say that again? What is the way you can trace the car locations? Oh, how do you find the vehicle? Okay, so this relies upon war drivers going out there and geolocating the vehicles. So there's always a lag. So, you know, you might see the vehicle on the road, but it's moved by the time you see it update on Wiggle. 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. So, yeah, it's obviously Wiggle takes time to update. Although, that said, my vehicle was located at a trade show at a booth in London, and it had been there 24 hours. So, yeah, it was pretty nuts. Was there another question? Yeah. Have you tried saying things on moving vehicles? On? Moving vehicles. That's what I want to do next. Yeah, and it's obviously you need quite a few people. You need someone driving both cars and, yeah, we believe it works. What was the question? Have we tried this on a moving vehicle? The answer is no, although it was a moving vehicle. So, yeah, like very much like Charlie Miller and Chris Taylor said, you know, we want to do the Jeep at speed next. But until we've reached the cane, it's probably not so surprising. But they have to be in the Wi-Fi range. Yeah. Yeah. So you've got to be right behind the vehicle. How did you get the Java? How did we get the? How did you get the Java, like, course of things? Oh, the APK. Sorry. Just APK. Oh. I think JD, but, yeah. Yeah. Yeah. JADX or JD. That'll do the job for you. How much time did it spend? Sorry? How much time did it spend? How much time? So probably about a week in total spread over a couple months. Yeah. So it wasn't a big, complicated, time-consuming hack. It was really easy. Do you think the reason they have a fixed PSA on the Casco is something deeper than they used to do? So there's probably a deeper question there, actually, which is why use Wi-Fi? I believe the reason is is it's a heck of a lot cheaper than setting up a GSM connection, an API, servers. It's just much cheaper, I think, to have a Wi-Fi module connect direct. 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. It would have been more expensive to code up a method of updating the PSK. So you'd be having to push updates into the module. And I think that would have cost more money. So I think it's a question of cost, frankly. I'm terribly sorry, but . So this may be a repetitive question. But the app you're using on your phone, is that just directly related to the ? Yeah. Yeah. So just go and search the Play Store for InvenTech or Mitsubishi. You'll get that hit straight away. Thank you. Have you tried any of the vehicles or just Mitsubishi? Well, that's the thing. We've only really looked at this because it was obvious Wi-Fi. I haven't found any more vehicles that actually use Wi-Fi for the interface between the smart application and the vehicle. Everything else goes through an API. So the answer to the question is no, because I haven't found another one that does. But if you do, please tell me. Actually, some cars do. Really? Yeah. Wow. It's . So it's like . Cool. I'd really like to know about that. I'd really like to know about that. Thank you. Well, for the app, do they have also like information? Is there a login for the app? No. No? No. There is the function. You can put a pin in front of the application. But that's actually very easy to bypass. Yeah. So there is no auth. Because there's no API. Right. But there's a pin, right? If you set it one up, yeah. For the . So there's a . So there's a second pin you can enable in the cell phone application. So after you extract the APK, is there a chance that the pin will also be stored? I don't know. I've never looked actually. Yeah. Because I've seen a lot of apps do for cars where they store usernames and passwords. Okay. Yeah. I've never seen that. So I think maybe there's also a chance that they store things. Yeah. That's a good thought. Yeah. On the shared breaths. Yeah. Because like they remember. That's a good thought. Yeah. Thank you. Good. Question here. Sorry. I didn't understand. How are these . How is the local lab and the legit owner joined with not . How are the credentials changed like so that the legit owner . Without, you know, you have to write that key. . There isn't. There isn't. There is no further authentication to the vehicle. Right. It's the PSK. And that is it. Yeah. Yeah. It really is. Once you crack the key, you've got the car. But how does . I mean. But there isn't. So they get the key in the manual. So it's printed in the owner's manual. . Yeah. Yeah. Yeah. You do have to crack a key per vehicle. Yeah. Right. Yeah. Yeah. But there is no further all. I know. Crazy. Cool. Any more questions? Okay. Guys, if anyone, you know, wants anything urgent, I'll be in the IoT Village for the next two days working on the fridge. So maybe see you there. Thank you. .