Hi, I'm Specters. Uh, my talk is just on infotainment system hacking. I was going to initially hack ten infotainment systems and then show you guys all of them. Um, but then, you know, responsible disclosure and I did it in a bad time frame. So, I'm just going to teach you guys how to hack it. So, um, uh, my sponsors for this event are, uh, Ghost Express. Um, it's actually a meme. They sell ghosts in a box and you can ship it to your friends. Um, yeah. Uh, once again, I'm Specters. I'm a security enthusiast. Um, I really want to hack a Tesla. So, BitQuirk, please, let me hack your Teslas. And, uh, you know, shout out to Thug Crowd because, uh, they really, like, helped out with, like, the putting together of, like, these slides. So, uh, just a quick overview. I have 30 minutes to give you guys a talk on all of this. So, I may, like, have to cut it short. I may have to skip stuff. Um, but pretty much we're just going to go over Q and X hacking and we're going to go over Android hacking and then we're going to do some, like, a, some basic hardware techniques. Um, and then, like, kind of one advanced one that I learned online from some Russians. So, uh, first off, Q and X is made by Blackberry. Uh, just kind of an interesting fact. Uh, when we go through the Q and X high overview, we can see, like, your actual update package manager. Uh, this is just, like, how it works somewhat. So, uh, BSP is a board support package and, uh, essentially all it does is just updates, uh, your Q and X system. Uh, car companies will take this and, like, integrate their own software into this to do, like, over the air updates or, like, physical updates via USB. Uh, but when you're going in there and you're updating it, essentially it's going to go BSP and then the Q and X, uh, operating system. And if you have, like, something that's supposed to work with your phone, it'll go through the device gateway and then it'll go and update, like, any of the following, like, above it. Um, and then, like, the middleware is just pretty much made to, um, essentially, like, uh, mitigate, like, where these packages and things go. So, part of the Q and X update, Q and X update process is you need, like, a physical, uh, device. Uh, you're pretty much gonna take this package, you're gonna plug it in. The system's actually going to enumerate the device and look for this specific package. Um, if they're cert signing or if they're doing anything else, uh, SWUD, um, is pretty much going to, uh, read that cert and then it's either going to update or reject it. Um, after that, it'll pretty much send it on to the, uh, Q and X file system and it will start a reboot process. But when you start the reboot process, essentially, all your active, like, major car parts will still be working in the background. Um, and they'll just always be active. So, one of the big attack vectors is, uh, like, dosing vehicles. So, if you're able to, like, dos a Q and X system on a car, if you're able to, uh, dos, like, one of the other systems on a car, um, companies usually, uh, don't like that stuff because you can cause people to die. Sorry. Cool. So, uh, these are just co- some of the binaries that, uh, oh, wow, are, uh, on the system. So, uh, USB launcher is just made to, like, detect when you plug in your USB. Um, MCD is a, uh, it just mounts your file system. MM detect is multimedia detection. So, it'll detect, uh, which files are on that system. And QDB is the Q and X database server that it, uh, reaches out to. So, some of the ways to start off enumeration for Q and X, uh, let's say your radio system has, like, the whole nine yards. You, like, buy the most expensive car and you get, you know, GSM, Wi-Fi, Bluetooth, uh, custom ap- applications that the, uh, car manufacturer's made. Uh, you also get USB for, like, loading your songs and other files, like, maybe movies or something onto it. Um, some of the things that you're able to do once you get onto their system is, like, you know, connect to the Wi-Fi, do a port scan. I- it's not as common as much anymore. They've been starting to, like, push them out, but there's still some things out there that exist where, like, you'll have Telnet open. Oh, Telnet drops me into a root shell. That's kind of dumb. Uh, and then, like, for hotspot GSM stuff, like, if you ex- if you, like, scan external IPs or, like, you man the middle of a socket connection, uh, sometimes you're able to just, like, get unencrypted data that, like, goes to a backend server and now you're, like, able to find that backend server and poke at that, which is also very cool. Uh, for Bluetooth, uh, BTLE jack, uh, form of DOS, which cause operator distraction, and then, uh, custom applications. There's a ton of people that are storing, like, passwords and stuff in custom applications, endpoints. Uh, once again, just more things to poke at, uh, things to get onto, um, things to, like, kind of distract from. So, one of my big tests, uh, after this was released, just in general, is to, like, kind of enumerate which files work on a system. So, uh, this is a quick script, uh, you can add more file headers to it pretty much, and all you're doing pretty much is just testing which file headers work on a system, which files read, which files don't, uh, like, which ones show up and which ones don't. So, this will pretty much just, like, uh, go to, like, a single, like, data file or just any text file and it'll just, like, change, like, the first couple bytes. And then you go onto your system and it'll just error out, um, which is kind of interesting as well. So, Android hacking, I've done a lot of bug bounties with this, so I'm trying to, like, steer away from all my, like, personal research and, like, my own research and stuff. Uh, so we're gonna try our best here. So, pretty much, um, Android is really different from QNX and other, like, Linux systems in the, like, in the sense that, like, first off, it replaced Glipsy with Bionic and it really utilizes SE Linux to separate, uh, user privileges and application privileges and things like that. Um, and even, like, when you get onto a system, like, some things are virtualized with, uh, can't remember that hardware, software. Um, but pretty much, like, there's just a couple other things where, like, they have custom versions of init, uh, you have, like, your own custom versions of, like, the startup daemons. Uh, and although you have Android that, like, uses a heavy, like, SE Linux, like, uh, like, uh, god, like, customized file, essentially, to, like, show you the rules that you're able to do, uh, all your, like, native binaries for Linux are still on that system, so you're still able to take advantage of some of those things. Uh, most of the time, Sue is not on that system, though, so escalating privileges is not as easy. So, we're gonna talk about SE Linux a little bit. Uh, pretty much, SE Linux is just, like, an enforcing of, like, the Mac policy. So, uh, pretty much, you have users, you have groups, um, and you're just, like, strictly assigning those user and groups together, together. Uh, once you drop, like, a shell onto their system, you can see if SE Linux is enabled with those three commands at the bottom left, uh, which is get enforce, uh, cse status, and if that doesn't work, uh, you can try to get to the SE Linux config file, um, but once again, like, dropping into the shell and getting access to that is not as easy, so, don't worry, I'll show you how to do that in a second. Um, so, we're gonna start off by downloading ADB, first off, um, and usually when you download ADB, you're gonna have to go to your device and put it into developer mode, right? So, if you have initial access and you're researching the device, uh, you can go into your car, open up the settings, put the car into developer mode, uh, download ADB onto your, you know, Mac, Windows, Linux laptop, um, and then you connect either USB, uh, through the Wi-Fi or through your own hotspot, and then, like, the car has to connect through that. Um, and then after that, you go to, like, ADB start server, and that'll pretty much start your Android bridge to the device, list your devices, make sure it's authenticating properly, make sure it's authorized, um, you can drop an ADB shell, and then you can also do those other commands I showed you earlier to see, like, if, uh, SE Linux is enabled, and you kinda wanna, like, pray for permissive, I spelled that wrong, um, and then you also wanna see who you are, but usually the response that I get is shell, um, and, you know, we just sell, like, we can just drop any ADB shell, any Linux command that's on the system, and we can, like, out that to a file, so we're actually able to go and enumerate the system pretty quickly with that. So, uh, some of the eight Android, like, users, uh, these are known as Android IDs. So, uh, some Android users, pretty straightforward, you have root, you have system, you have app, you have user, and then you also have shell for when you drop the Android shell. Um, something interesting about ADB is it actually starts off as root, so when you're first getting onto the system and, you know, you ADB into, you know, your radio system or whatever it may be, um, you're actually going to, like, initially start off as ADB root starts process, and then it lowers its privileges, and then it just makes you a shell user. So, if you find a way to interrupt that, um, then you can pretty much get onto the system and, you know, start a root shell, or if you find a way to, like, configure the files in the process because I see Linux isn't, like, mandating properly, it's going to allow you to just, uh, write onto, like, file, like, specific file systems, and then, you know, once again, you get root shell. Um, some of the Android groups on the system, just for network configuration, and, uh, you'll also see, like, something that looks like users, but are actually just read and write access to SD cards and other, like, hardware devices on that system. So, abusing ADB. Um, so some of the things I usually try is, uh, I go to, like, datalocal.prop, and I try to see if rrosecure is set to one, um, because if it is, then, uh, I'm pretty much, like, kind of screwed. So, if I can modify that, then I can actually go in and drop an ADB shell that is add- as root. So, if I set rrosecure to zero, um, I can get on there as root, or if I go to rocolonelkimu, uh, and set it to one, then I can also drop a shell as root. And, um, this is kind of interesting because there's just, like, a ton of attack vectors that you could use to try to get to this point, such as, like, you drop a, uh, application onto the system that, you know, gives you a shell, and then that shell is, uh, able to modify a couple of other files and, like, rewrite files, right? So, by doing this, you're able to, like, traverse file systems, but at this point, if you're able to modify those files, then, uh, you know, you're probably able to just drop a root shell in the first place. Uh, but this will give you, like, persistent ADB root privileges if you wanted to go and change those. So, um, a couple of ways to, uh, you know, get root again is you can go online and find an unlocked bootloader, which is way more prominent than usual. Um, you can configure your device to be in fast boot mode, and then once you go into fast boot mode and you update the bootloader, um, you can compile a binary, like supersu, onto their system, and then you can either privask or do anything else, or once again, you can modify, uh, local.prop to allow root, uh, once ADB is active. So, we're going to go into a little bit of hardware hacking, because hardware hacking also has some, like, very interesting stuff that usually drops you into root shells. Um, so, you are, it's a very big hardware hacking one. This is actually a picture I took of, uh, one of the things I had to do, and it's, like, awful, um, but bear with me. So, uh, when do you try hardware hacking? Um, I wish I could say it was at the end of everything else I've done in these slides, um, but usually I go right for it right at the start, and I always break something, and it, like, ends up never working at the end, um, so that's why you buy multiple systems. And, like, a little bit about UART is, uh, uh, like, UART was probably my first introduction to hardware hacking in general. Um, identifying TX and RX, uh, and ground pads are pretty straightforward. Um, more examples will be on the way. And, uh, pretty much when you, like, set up UART, you're, all you're gonna do is, like, solder a couple pins onto a board, and, uh, connect a UART to USB cable, and pretty much, um, find, like, a specific baud rate, which is, like, a clock speed for this, and then drop into some type of system shell, or you're gonna have to, like, interrupt the boot process to, like, drop into some system shell. So, uh, for example, this was one of the UARTs I found in a specific infotainment system owned by JVC. Um, and pretty much you have TX, RX, and then you have ground up on the top. This was before I touched it. This is what it looked like after I touched it, um, because I suck at soldering. So, I tried to, I tried to solder just TX and RX, and I thought I'd be good soldering ground to somewhere else because the pads were just way too close to a lot of things on the board. And then when I went to go finally solder the, uh, ground pin, I actually broke off the pad and the pin that I, uh, soldered onto RX before. So, I had to pretty much, uh, scratch out, uh, this line right here, and then I had to solder pins directly to that copper spot, um, just to try to get, like, the flow of traffic again, uh, which actually worked, surprisingly. And I got the advice, uh, from someone on Twitter, which is, uh, fairly interesting. Uh, and I mean, usually once I drop into a shell, this always drops me into a rich shell. This is why I, like, go for this attack vector first because I could waste, like, 20, 25 minutes, like, enumerating a bunch of stuff, like, uh, like via ADB or, like, via, like, some QNX system or, like, uh, enumerating, like, wireless connections that it's making or trying to intercept sockets traffic to a web server. Um, but a hardware attack is just so much faster sometimes. So, why waste the time? Um, and the reason you want to waste the time, like, looking for is just because of, uh, documentation. You can go through and, like, document literally everything from beginning to end once you do this. But if you want to drop into a rich shell immediately, you just get more system access and you get to see what everything is doing when you're trying to enumerate everything else, uh, which is really nice. So, another big method that, uh, I actually learned on a Russian forum was reflashing chips. So, that chip that's actually right in front of the, uh, pins that I soldered on or, uh, the wires I soldered on, pretty much. Uh, you can actually remove that and you can buy a device on Amazon for, like, $40. And pretty much all you do is you have to, like, take that cable, connect it to it, uh, take this clip, put it on top of the chip or you can desolder the chip and put it into this, uh, nice little setup here and you're pretty much able to just dump all the flash from it. So, on that flash, you pretty much get, like, the whole file system and you're pretty much able to modify parts of it. Um, you can dump it, you can binwalk it, you can extract stuff, um, like Yass file system, things like that. And after that, you can just re-upload it because this also writes to that flash. Um, so you're able to just re-write the file system if you wanted to. Um, but to do that, you want to kind of do it in, like, the least, uh, evasive way as possible so you don't re-write the whole file system and, uh, screw a ton of stuff up. But, uh, yeah, that's, uh, that's pretty much it. So, I kind of have, like, a couple more minutes for questions or anything if anyone wants to ask some. This is my first talk, so I'm, like, very nervous. So, if I went too fast, please let me know. Thank you. What's up? Thank you. Right. That's a good question. Um, so, getting, like, the SC Linux policy is probably going to be your best bet. Um, other than that, finding global read and write files that are, like, running under, uh, certain users. So, like, looking at, like, processes, finding out which users are running which processes, and then seeing if those files are just global read and write is also a big attack vector that a lot of people use. Um, so, like, I've seen, try not to break NDA once again, uh, I've seen some systems from some very big manufacturers, uh, run a shell script that, uh, pretty much is able, is, like, global read and write, and when you, like, put an APK that has a reverse shell that drops you to a system app shell, um, you're able to write to that shell script file and then just, like, pivot into a root shell after that. Um, which is weird. I don't know why people set it up that way, but it's mostly just going after, like, small misconfigurations like that within SC Linux because SC Linux is so strong if you can implement the policy properly. Um, but yeah, mostly just going for, like, global read and write files is going to be, like, the best way to, like, pivot to a root shell on a system after you upload a malicious APK. Yeah, or you can, like, uh, like, try to find ways to, like, unlock the bootloader and, like, uh, pretty much upload, like, super sue APK and then try to sue. Um, that's also a good one. So, yeah. Any other questions? Alright, thank you.