Topic is car infotainment hacking methodology and attack surface scenarios, so it's IVI or in-vehicle infotainment or ICE also, in-car entertainment. So my name is Jay. That's my Twitter handle. I work as an application security engineer at BugCrowd. Shout out to my colleagues also. I work as a, that's my day job, but my, in the Philippines, we organized RootCon, which is the hacker conference in the Philippines. We also, that also contributed some tools. I love playing games. I'm not the creator of Torla malware, despite my family name. I'm not, I'm not even Russian, so, you know. Yeah, so I love to party. Who doesn't, right? In Defcon. Yeah, so. Yeah, before anything else, we need an inspirational quote or whatever you think about it. It's not about the ride, so it's the rider. So, yeah. So here's our scope and limitations so that you won't be disappointed with what this topic is all about. So first of all, IVI or in-vehicle infotainment, infotainment systems, what you call a shortcut, it's what you have in cars wherein there's, it's anything that you can play with your videos. Also, music. You don't need to touch your phone. You can connect to your phone with it. And then call using that. So something like that. So it's purely infotainment bugs and it's not about infotainment. There's no canvas hacking. Sorry for that one. But if you want to learn that, there's also car hacking village. Yeah. Methodology, security bugs, but not full takeover of the car. Because sometimes infotainments have limitation. And some, there are some vehicles wherein you can control the steering wheel, but In some cases, it's in a separate module, so it's on a sandbox. It's different. In fact, there are also IVI, which are third-party add-ons for your car. So it's very inspired with what Jason Haddix wrote in his GitHub and presented at DEF CON. So it's the bug hunter's methodology, but in my case, it's how to find bugs in an IVI. So I'm going to probably miss out some attack services. So if you know anything, let's talk, or maybe you can share it to the audience. So yeah, for the car hacking handbook by Craig Smith, I'm going to share it with you. So these are the common attack services that you have in your car. Those are the most common, the things that you can do to exploit your car. I mean, some of these entry points, you can use it to maybe take over the car or play some videos on it or crash the system, something like that, or install malicious firmware on the car. So that's the IVI. But in this talk, these are the attack services that we have. We have the Bluetooth. We have the Wi-Fi. USB ports, because, you know, that's where you charge your phone or you play your music sometimes using a USB flash drive. So SD card ports to update the maps, the GPS. Or a load something, probably apps, so the CD room or the DVD room. So that's also where you play some videos or maybe music or your DEF CON CD that you have to play that music. And we also have the touch screen, so it's not just, even though you have physical access to it, it's also OK. So you can control the console. So it's not just a, an attack surface. It's an entry point for hackers. So it allows you to control the console, of course. And there are things that you can do by just touching the touch screen of the dashboard. So audio jack, I don't have any proof of concept for this yet, but probably short out something for the IVI. And then we have the audio jack. We have the cellular connection, the GPS, et cetera. So for the Bluetooth, they say that everything better, everything's better with Bluetooth. Not really. So, but it's a good. So for cars, for IVI, it's coupled with Bluetooth vulnerabilities, OK? So like, I think two weeks ago, there was a new Bluetooth vulnerability. You can jam. So most of the IVI have Bluetooth, right, to connect your phone to your car, then play some music or call someone, anything, GPS also. So you can jam the Bluetooth to render the owner of the car not be able to play his songs or Justin Bieber songs. Yeah. They have one song on his car. Yeah. So there's also code execution. You can execute arbitrary commands on the car on an IVI. So for Bluetooth, but I haven't seen a PLC for this yet. Maybe it will come out with other hackers in the car hacking village. And of course, the default pairing numbers for Bluetooth. We have the 0011, 1234 or whatever. So, yeah. So those are the things that you can do, right? Pairing numbers. Or malform or format string vulnerabilities. With this kind of format, you can actually break the system or crash the system or probably take you to a desktop mode of the IVI. For example, if it runs on Windows ME. Yeah. Or Windows whatever it runs. So it could take you to a desktop because, for example, if it's a sandbox app only. So there's also memory corruption, send malform packages to the head unit so you can crash also the Bluetooth stack. So this one. So yeah. You can actually send. You have format string specifiers in a device name. You can rename your phone with this percentage sign. It's a format string. So yeah. A CV 2017-9212 was assigned to a BMW 330i 2011 car. The researcher was from IOactive. So like I said, test at your own risk. So what if it takes you, like I said, what if it takes you to the desktop environment or debug options, options of your IVI? So this guy, he tweeted it in Twitter. So basically set your smartphone's name to percentage X, percentage H or percentage C, percentage anything. Yeah. Format string. And connected devices. So here's a 2011 BMW 330i. So what it did is that he wasn't able to crash his car and yeah, wreck his system. Yeah. So yeah. You have badges, right? You can go to the people who are having their cars there right now and connect it to Bluetooth. Yeah. And yeah, if you don't know some, you can go to the sec list, which it is a GitHub repo where you can get some payloads, or you can fuzz, you can rename your phone, address book, or the song, the song of your mp3, something like that. You just need to go to this repo. So, fuzzing for format string vulnerabilities or strings. This is by Jason Haddix and Daniel Missler. Okay, Wi-Fi. So, after Bluetooth, we have Wi-Fi. When Wi-Fi is down and all you have is imagination. So, if there's Wi-Fi, of course. Come on, Wi-Fi. Wi-Fi vulnerabilities, right? So, you can de-auth the device so that he will be able to connect to the Wi-Fi. For example, if there are some IVI wherein it allows you to connect to your Wi-Fi. And you know what happens there after. You will have an IP address. And this is, you can do something. And we'll talk about that later. So, there is also a way for you to update your car wherein it's in one of the settings, update your firmware. Right. So, if it's connected to your own network and you press the update. So, why don't you try to sniff the packet and check the firmware, where the firmware came from. And, you know. You can also change the firmware if it doesn't have firmware signature validation. So, you can reverse the firmware that maybe send a backdoor firmware to someone's car. So, you can also connect to the Wi-Fi, fetch the IP address. Then, so if it's in your network now, what are you going to do? You just need to scan your network or if you own the network. Right. You can see it in the router. The host name. So, just scan the port of the IP address that you have. And then, what services does it have? What services does your car have for the IBI? Does it have FTP? Does it have Telnet? Does it have SSH? Okay. So, we have. If it does have Telnet and the car, the guy that owns the car. Is also a hacker or maybe a techy person. But, you know. He wasn't. He tried to log in his credentials. So, you can actually sniff the credentials. Because it's insecure. Telnet and FTP, for example. So, some of these interfaces have no authentication. Okay. They don't have authentication. Some have authentication but have weak passwords. So, yeah. Netcat is your friend. So, exploit. If there are other services, try to check if it runs on older services. So, pretty much like the penetration testing methodology that you have. That you learned. So, this is from my car. So, if it has a weak password. So, try brute forcing the credentials. Right. For example, there's SSH. Okay. Try to brute force the credentials. Or if you know the default password, you can try it. So, get to know the default password of the system. This is from a Mazda 2. 2017. And, yeah. It has a SSH open and that's the default password. So, there's a video on it. Just to prove that I'm not. There is. So. It's not complete. It's just like. It's just a shell. Yeah. So, I'm kind of slow in typing because I was holding my camera. Yeah. Friends on Linux. CMU. And, yeah. They didn't continue from there. Just to let you know that there are things under the JCI. So, this was reported. So, if there's people from Mazda, don't sue me anymore. Yeah. This is reported already. I value responsible disclosures. Yeah. Right. So, another case. Dan Cooper and Tedgist Alchemy from Computex gained access to the IVI's root account for Volkswagen and Audi. So, this is the link to their report. They didn't give enough details. They didn't give enough details or POC for the attack. But they have an exploit. So, by just knowing the IP address, connected to the same network they have there, their own exploit, SH. So, as you can see, it was able to execute uname space minus A. And it's running on QNX. And look at the board. It's an NVIDIA Tigra 2 boards arm. Yeah. And yeah, there's also this one from one of their reports also. So, Telnet and there's the default password. So, yeah. If you also have access to the network, you can also sniff the credentials because it's Telnet, right? It's from Audi. Okay. Who owns Audi here? Yeah. Don't throw away, but just keep away from hackers right now. Okay. So, key takeaways from Charlie Miller. They look at 2015 vehicles. This is a big difference between car hacking and, say, browser hacking. So, 2015 is still an old browser. But 2015 vehicle is still a pretty new car. In fact, if you own a Mustang 2015, that's still a pretty new car, right? Or if you own, like, 2010 something and it's a very high-end car or, like, for example, maybe Mercedes-Benz. So, it's still a pretty new car. And for browser, that's very old. I mean, some of the XSS, for example, for XSS attack in the web. So, if it's already that kind of browser. So, some XSS payloads won't work already, right? So, this is another one from Ian Tabor. So, he also showed an analysis of the IBI system within the 2015 DS5 1955 limited edition. So, he was able to connect the device to the device over here. This is the TCP port 23. It's still telnet. So, the problem with this one, it doesn't have any authentication, right? So, just maybe use netcap or telnet and, yeah, here you go. You can already access the IBI. So, the things that you can do there, call logs, data leakage, those are the things that you can do. What the driver has been. Doing, like, where did he go because of the GPS navigation and also some call logs that they have. Pretty much like that. So, yeah. Even though it's already 2015, so some manufacturers have this kind of issues. So, next, we have the USB port or the universal serial box. Okay. So, things that you can do, you have the, you can install malicious apps or apps with it. You can update the firmware via the USB. And you can do, sorry, you can do RCE or remote code execution if it's vulnerable. So, killer USB. Have you heard of this USB? So, if you plug it to your computer, it, like, destroys your computer. So, maybe if you do, if you plug it, it's possible that you can crash or maybe, like, erase the data on your IBI. So, in most, in some cases, if you don't, if your IBI doesn't have Wi-Fi but it has a USB port. So, you can, you can buy a USB to Ethernet adapters. So, it's another way for your car to have an IP address if the Wi-Fi is locked down. So, in my case, this is what I did. So, owners of Mazda have been modding and installing apps to their infotainment system using the Mazda all-in-one. So, it's all-in-one tweak. Tweak. It's in the Mazda 3 revolution. So, I tried to check on what's with the app and tried to look at how it's done. So, putting it all together from the documentation. Can you hear? Can you still hear me? Okay. Putting it all together in the documentation, there's a documentation that allows you to update the CMU of the car. So, I tried to read it. And there's actually a website for it. And you just need to put what you can download from that website to a USB flash drive. And you can already retrieve the CMU details. So, in one of the files of that zip file that you downloaded from their website. There's actually a text file like this. So, CMD, as what you can see in the last line, a number, it actually is executing a shell script. So, yeah. I put it all together to prove that this is what... A valet parking can do to you. Like, hey, can you park my car? And then the attacker has a USB. And, yeah. That's what I did. So, that's the PLC. So, I created PLC on the SH file. So, this is one of the snippets from the shell script. So, that's what I did. I executed the you name a. And there's actually a video of this one. So, I apologize for the chicken in the video. Yeah. This is the one that I did. So, you can see the files. Yep. So, that's what you can see. There's a USB flash drive. So, I was playing music. So, let's just try to fast forward. Here. There. So, I did... From the shell script, you have the echo command. So, you have... I was able to execute the you name space minus A. Yeah. It's shown in the screen. So, those are one of the dangers, you know. So, aside from you can install apps, you can actually execute some arbitrary commands for your car. So, yeah. So, yeah. That's the code again. So, from the update file that you can just have on your flash drive. So, this is the... Let's go back. This is one of the text file. On the text file of the update. This executes the info.sh. And this is the... What's inside the file. Inside the info.sh or shell script. So, I'm calling one of the JCI tools that allows you to show to your screen. And, yeah. That's it. Just to prove that there's RCE. So... Also, another case. Researchers from Keen Security Lab also found local code execution via the USB through an update. They were not... They were not able to show a PLC for this one. Maybe because of, like, they don't allow full disclosure but just a PLC that... Or an evidence of the attack that they did. There's no PLC. So, yeah. So, still the same thing with an SD card slot. Basically, you load the same thing. So, if there's an update for your car or you can update the firmware via the CD room or the DVD room, then you can load something. Right? So, for Mazda, using this known CMU bug, you can actually deploy apps through the custom Mazda application SDK. So, yeah. You can create your own apps with this one. It's free. And, yeah. It's... You can just test. Test it. And, like I said, there's also touchscreen as one of the attack surface. So, you just need to connect to Wi-Fi to establish IP address. So, that's for another attack which is the Wi-Fi attack. But for this one, if you just press anything. You try to rape the buttons of your car, you can actually cause an overflow with that one. So, picture below from my uncle. This is what he got. And, yeah. It's the dialog box. Seems familiar, right? Yeah. So, when you try to close that one, what happens is that it takes you to the Windows desktop environment. And you can actually run CMD from there. Yeah. So, one of my friends from RootCon also, he has a third party to his Honda car. He also, he was not doing anything. But the application just crashed. And it also took him to the Windows desktop environment. And there's a start menu. Locate CMD. And, yeah. Do something like that. No PLC because during that time, we were not yet interested with cars security during that time. So, sorry. No PLC for this one. But, yeah. It happens. So, have you seen this YouTube video? So, how to mod your Porsche 911 or other car to run Doom in three easy steps. So, is this true? Nope. It's just a joke. So, he has a lot of videos. So, what he did is that he just insert a Doom, then the Doom play on his Porsche. But it's not true. Because he also has a funny video or a prank video wherein he was able to run Doom on his toaster. That's the toaster there. He did a lot of prank videos. And other... Other security guys thought that it was true. But it's not. So, yeah. For GSM, cellular connection, phone app, they have an app that connects to your car. So, it's time for some mobile testing for this one. So, you're going to try to intercept the request. Or you can use Burp to test the app and see how it goes from there. So, there is one finding from this one wherein you can test the URLs you intercepted while testing the app. And Troy Hunt, he wrote a POC... No, I mean an article about this. But he didn't specify the correct... The exact URL. So, what it does is that from the mobile app, there's an API. That allows you to control the steering wheels. And he was able to intercept that one. And if you know the VIN number of a certain car from Nissan LEAF, you can actually control the steering wheels of another car. Okay? It's Nissan LEAF. So, you can eavesdrop on the connections. So... If you have a mobile app to your car, you can reverse engineer the app. And if you reverse engineer the app or like view the options there at the source code, you can get the... Maybe you can get the API key. So, I don't have POC for this one. But I was able to look into one of this one to destroy someone. Yeah. So... Like I said, because I promote... I work in a company that does responsible disclosure. So, that's why I don't have POC for the other app to your phone. But here are some of the programs where you can report some issues if you find bugs to your car. So, yeah. Earn money on some of the cars that you have there. So, you have the FCA. So, buggrad.com. And you have Tesla Motors. And also General Motors. JM from HackerOne. So, yeah. So, yeah. It's not just XSS for reporting bugs. So, I already did a demo on the car. So, yeah. That's from CSI whatever. CSI whatever. Oh, yeah. It's... Sorry. Yeah. Sorry. Okay. So, here are my references to the talk that I have. So, thank you, Google, for the memes for some of the researchers that has POC for the cars. So, as much as you can see, it's really risky. Final thoughts on this one is that maybe limit the connectivity and don't just leave your car alone to the one who parks your car. Yeah. Maybe there's a vulnerability that allows you to update the firmware and, you know, steal some of the data in your car. Those are my references. And that's it. Just a short talk. But, you know, if you have any questions, let me know.