uh welcome to my talk i'll be talking about a framework that i've just recently open source it's called can talk um and the title of my talk will be can talk the canvas hacking framework to compile fun hacks and vulnerabilities so what's the agenda for this talk of course self-promotion which is who am i and then backstory and background about why i started this framework and project and then a quick start and basic usage of can thought and of course simple demo onto how you can get started with can thought and then if you have i have a slide for q a but you know you can just ping me at twitter at ship code if you have any questions regarding can thought and if you want a a real demo about cancel so let's start with woman so my name is jay turla slash ship code that's my twitter handle and i currently work right now as a principal security consultant at viking cloud i do netpan web application pen tests and a couple of iot hacking as well and then i'm also a root gun and cfp review board so despite my family name um some people will dm me if i'm the author of turla malware so i'm not the author of turla malware i'm filipino uh that turtle malware originated from russia so yeah definitely innocent about that and then i've also contributed to some auxiliary and so Чтобы wir alle them alle besser. modules to metasploit include hardware bridge so that's why this framework is also one of the things that i want to develop and then i also organize the car hacking village at rootcon for the car hacking village and ph would like to thank robert and the rest of the car hacking village team in the u.s for allowing me to you know organize such event here in the philippines so Aside from that, I also love hacking botnets. So I've written a couple of modules or exploits regarding hacking botnets as well. So the background story of CanThot is it's actually inspired upon the idea of Metasploit's hardware bridge and the post-modules related to automotive. So maybe you're familiar with Metasploit hardware bridge. It allows you to interact with the CAN bus network using Metasploit and Craig Smith and some other Metasploit contributors contributed some modules that can be used for pentesting your cars, also fuzzing the CAN bus network, and also there's even a one module that I really like from that one, which they call as automotive PDT, which allows you to pop the airbags of your car. So it's really cool. I mean, that module is one of the coolest that I've seen from Metasploit. So it is like Metasploit. CanThot is pretty much like Metasploit and it is a framework in Python. It's not coded in Ruby, it's actually coded in Python and it's based on the exploit development kit. So instead of writing from scratch my own framework, I've used the exploit development kit for interfacing with automating some of the vulnerabilities or fun car hacking vulnerabilities. So next. So this is the inspiration. If you use Metasploit, if you type or type in the console once you launch Metasploit, if you search automotive, you can see a lot of you can see some of these modules. You've got the CAN flood and this is the one that I'm talking about, the PDT, which is which allows you to check for prep and pyrotechnic devices like the airbags, battery clamps, and then there's also some of the modules that I've actually contributed, just like the ECU hard reset and the diagnostic state using Metasploit. So the realization and development with CanThot is the last Metasploit module for automotive related to CAN bus hacking was last October 2021, which was the module that I contributed and I was the one who created the previous Metasploit modules related to car hacking, diagnostic state modules, ECU hard reset, and the master 2 instrument cluster accelerometer mover, which allows you to you know fuzz um the instrument cluster for master 2 as long as you're connected to the bus so I tried pushing some modules related to the gpacks by Charlie Miller and Chris Vlasic but we're close uh by the Metasploit team so um this was the one that I actually tried contributing uh a year ago and um the module will bleed all the uh air brakes on the 2000 I mean the brakes sorry that they are rakes but on the 2014 uh Jeep Cherokee we all know that's very old right but I just want to you know put it in Metasploit to have it as a reference and you know for people to try it on um but sad to say it was closed and you can see the uh the comments on there that even with a default mode option provided I am in favor of not accepting this module into the main branch as I can see this module being reused by other community members or pen testers now I'm not hurt on this one um I do understand their decision so from there uh this was actually the unreleased module or you know for the Cherokee kill breaks related to Charlie Miller um you can still see the code even though it's closed but you know it was not um added to the Metasploit module which is understandable because they don't want to you know build with the hardware bridge anymore so um another thing that I've that I've known since then is there are a lot of open source can fuzzers and analyzers already out there um we have canned tools which is uh really good and then carrying caribou which is one of my favorite for fuzzing UDS diagnostic services and then um the savvy can which is a good a good tool as well and then the C map which was presented by uh Robert which is a good tool as well and then the canalizator and then kayak and other open source tools out there um which I I didn't just you know put it on the slide because there there are really a lot but these are some of the awesome and good tools that I've actually tested so so why not create my own framework that contains known can bus hacks and attacks uh similar to Metasploit so I think about it and okay why not why not try uh doing so because uh it's a good learning experience and also to improve my skill in python and also because i want to create you know a couple of contributors that could develop their python for car hacking so cantot was born and um i believe uh it is a fun canvas hacking framework that you can try and maybe you can also help contribute so it's a quick and dirty canvas hacking framework i mean um there needs uh there needs to be a lot of things that needs to be done and um i was hoping that the reason why i presented this is to compile other vulnerabilities and maybe open up other car hackers to contribute to this framework so i want to start something out of the things that i'm doing with my car hacking research so this is the you can see uh i've if you try to launch cantot and then search tesla there are two modules there one is the tesla disabled esp abs this module will inject uds data frames through gateway and disable esp or abs ecu at low speed on a tesla model s and then we have the tesla open truck which uh which will open a truck on a tesla model s 85 um this was patched because this was discovered in 2016. but hey the idea of cantot is to have um you know non-vulnerabilities and also to compile non-vulnerabilities in automotive security so the basic usage of cantot is there are three commands that are you know easy to be familiar with uh you you've got help which gives you a couple of commands with cantot and then you also have use just like when you try to call a metasploit module so when you try to um use a module or call a module you just need to use and then the module name so take for example use scan. and then if you want to run the module you can just type the command run but there are also options which i'll be showing later on so this is a sample module execution and this module is what you call as reset mileage so this module clears diagnostic travel codes and resets the mileage what you can see here from the screenshot uh you just need to call use and then space reset underscore mileage with the module name because that's the module name and then And just like Metasploit, you also have the show options. So if you try to show options, you can see the options that you can set. So, for example, you have the ARP ID as the option one, and then the option two is interface. So if you want to edit those options, you can just use set ARP ID, set space ARP ID, and then space the value of the arbitration ID, because this is the arbitration ID. And then if you want to set your interface, you can do it like this in the command. Set interface, set space interface, space, and then the CAN interface. So, for example, if you have CAN 0, so set space interface space CAN 0. And then from there, after all of the options are set, you can run the module directly. And if you try to view the CAN dump, you can see. You can see the dump from there. So that's what you can see here on the, there's a small image at the bottom where it says clear DTC, DTC, because I was using an ECU simulator from Craig Smith when I tried to test this. So next up, there's, this is the code snippet of the sample module. And that's what you can see. This is the snippet. This is the snippet of the diagnostic module. And you can see here that this is how the option is coded. And then this is the main function of the module. So the frame data, you can see the frame data from there. And then let's check one sample module code again. So this is one module code that I've added. So this is the Cherokee kill breaks. And of course, I want to give credits where the credits are due. So this is from the research of Charlie Miller and Chris Vlasic, and I gave a reference as well from ilmatics.com. And this is the whole module, the one module from the Cherokee kill break. So if you use this module, it will bleed all the breaks on the 2014 Jeep Cherokee. Okay. While the car is moving. So that's the fun stuff that I've added in Canva. So there are a lot of modules aside from that. So I'm going to show a demo regarding the tool. So let me just point you to my VM. So this is my VM. And I'm running Canva on my Calendly Linux. So... I'm just going to try to zoom this one, zoom in, and you can just, if I'll give the link on how you can clone this one. So once you install Cantop, this is the main files that you can see and the directories, and then you can just run Python three main.py. So there's an error. I'll try to fix on that one because I haven't had this error before. So. I'll try to fix on this one. And then I tried to run show modules and you can see that there are 29 modules as of now, which are uncategorized, which I'll be fixing in the, uh, in the, in the long run or after a few weeks. So you have show modules, and then you've got some of the modules that are here. You have CanDomp, Canva SIDS. Uh, Cherokee Kill Engine, uh, ECU Hard Reset, and then a couple of things like Kill Bus, which, uh, will perform a known Canbus Denial of Service attack, called the Firehose Attack. And then we have the Malibu Overheat. Uh, this module will flood TempGauge on a 2006 Malibu. And then you, you have a couple of, uh, Tesla OpenTRAW, uh, UDS Fuzzer, uh, UDS SAC Access Fuzzer. And then, uh, PDO Input Output Controller. So, yeah, you can actually try to install a clone, the repository and try out some of these modules. So if you want to, you know, search, for example, a cop, um, a certain module, like, for example, Masda. So you can see that there are three matches. And if I want to actually, um, try the... And if I want to actually, um, try the... try one of the modules take for example the uh let's just say I'm gonna try on the previous Park kill engine so I'm just gonna copy this one and then use the previous Park kill kill engine so use and then the module name call on the module name and then show options okay um for the for demo purposes uh purposes we're gonna just gonna perform this one on a virtual can device that I set up so vcan0 that's the can device that I have uh the virtual can device and that's the only option that I have because that's the most important thing that you're gonna set if you want to um use the previous Spark kill engine so we're just gonna try to run that one I don't need to uh set up set up the options for interface so if we try to run um it will do this sending a packet that will kill fuel to all cylinders to the ice and then if we try to do a dump can dump so I've already run a um the canned up module so let me just try to zoom that one so yeah I did try to run this one and then this is the uh uh the message that will be sent to the candles and in my case the virtual can so um here are some of the uh snippets of the code so I'm using actually uh can on some of the modules and then I'm also using py by bit for some of the modules and here you can see some snippets for my code like I said you can just clone in order for you to view all of the modules that are actually written on this framework so you have the PG rxt8 which allows you to send or spoof the instrument cluster for Mazda rx8 so there's the rx8 rpm fuzzer so there's a lot of things that I've included as well and then a UDS fuzzer uh Tesla open truck and then of course um some of this uh were discovered already so there are credits to it and also the reference from the modules and then kill bus this is the typical power host attack wherein you'll be sending arbitration ID 0 and then frame data with 8 bytes for so yeah and then if you want to stop the attack you can just press ctrl c so yep that's it and here's a sample video of an actual instrument cluster that i've tried with can thought so there it goes um so this is uh me on the can thought and i'm actually using the pg207 instrument cluster so and also um this uh can device sl can device which is can talk pro so i've run i run the pg207 ic mover there's also a buzzer for it so that's why it's set to the maximum values so it moves the speedometer and accelerometer for a pg207 instrument cluster and if we try to start that one again you can see the the the output and we know that uh a successful message was sent to the instrument cluster and that's why it reacted that way so yeah um i'm planning to really you know put some fun uh things that you could try when you use uh cancer so that there are uh some instrument clusters that you could try as well so i guess that's it for the demo so i guess that's it for the demo and um where's the download link for uh can saw so this is the github repo of cancer it's under github.com slash ship code which is my handle and slash canton so starts with uh letter uh after can uh it's big letter t it's capital letter t then cancel it from there you can see the modules so this is the one this is the uh the github repo github link and there are some installation so you just need to clone it and then go to the directory and then just install the requirements the text for the dependencies of this uh framework and based on my test uh it works better with cali and ubuntu um with dbn um i have a friend who is actually trying to test that one and we're still trying to fix the dependencies and then after you've installed the requirements uh you just need to run python3 main.py and then you already have canton so yeah um if you want to try just clone it install the requirements and then you have your own um known uh canvas hacks and vulnerabilities so let's proceed so what is the uh the roadmap for canthought um the general plan is to compile no canvas hacks and vulnerabilities i want it to be um a vulnerability database for canvas hacks as well and um spread the word about cam tot so that i could invite other car hackers and automotive security initiatives to collaborate and create modules um i already have one friend who wants to contribute and he said that he will be adding some of his fuzzers from the car that he is actually testing so i guess he will try so shout out to peer up i think he will he will with me with some of the scripts and then he will try to port some of the scripts to can talk and then yeah I've said this before Canada can thought as a vulnerable database for canvas hacks known canvas hacks um what are my future dev plan uh improve other options and add info about the modules so I'm trying to add the option info so if you try to just you know use the module and then say info you can see what the module will try to do and also more information and then add more commands uh from the directory commands of exploit kit and then I want to add more fuzzers and also ECU unlock modules and then some can analyzer module and then of course I want to improve some exceptions to some errors because maybe you will have errors when you try to send a command uh some can messages on the canvas Network so I want to try to add more exceptions to that and then other plan maybe port some caring caribou modules I mean carry caribou is great I love it and maybe I want to port some of the modules that I really like to carry car to can thought and then the other plan that I have is reach out to the author of can tools which is aka uh aka yacht which is yet another car hacking tool I tried to test on that uh on that python um toolkit as well and it's really good I've seen some good work from can tools so I want to reach out and you know um add something similar to can talk so I want to improve can thought in the long run and I'm inviting all car hackers to somehow help me um you know improve can talk so I do not claim to be uh an expert in automotive security but I plan on you know improving my skills and car hacking and canvas so yeah this is uh this is my start in compiling known canvas hacks so I would like to give some tips to nickel bogum for CVE 2022 2629 and allowing me to support his findings uh his finding is actually part of can thought right now I asked his permission and then we have Charlie Miller and Chris volasex for their research and papers so some of their canvas hacks are added to can thought and then of course to Ian Tabor uh maintenance for his advices and mentorship the car hacking Village for being an inspiration to me um it's when I go to Defcon it's one of the villages that I really want to visit always and then Eric evanchik for bybit and or can tack as well um I've used some bybit uh python modules which I've integrated with canbot and then for Robert Leal aka car for the canvas underscore since the py inspiration so um I've written a similar module to the canvas seeds that I found on wilcarona's repository called chv pi and then from there I learned that it was part of Robert Leal's or car fuckers code so I also gave credits to that one from that module the canvas for the car hackers handbook and hardware inspiration and then of course memes and images from Google and I'd also like to give credits to other car hackers out there who helped me on you know understanding some other canvas hacks out there so if you have any questions um please do reach out to me on Twitter um ship code so the uh my e is spelled as three so ship code you can just um you know DM me on Twitter or you know email me so yeah um thank you and uh thank you to the car hacking Village for allowing me to present my talk for my framework about um car hacking and also I would like to thank um the audience who will be listening to the stuff and I hope that you can spread word about can talk you subscribe to my channel if you haven't already and I'll see you in the next video bye bye you you you