1 00:00:00,000 --> 00:00:09,020 Hey, guys. Welcome to So You Want to Hack a Car. Just so nobody sues me, you can break your 2 00:00:09,020 --> 00:00:17,700 car with the tools I'm going to show you. I can't help you fix your car, so, you know, please 3 00:00:17,700 --> 00:00:24,620 don't whine to me if you do something dumb. A little tip, though, on most cars, if you unplug 4 00:00:24,620 --> 00:00:32,760 the battery for 20 minutes and then plug it back in, it works again. Like, I wish I was 5 00:00:33,120 --> 00:00:44,300 kidding, but that is the truth. And now I see why they didn't want to do the, sorry, the 6 00:00:45,040 --> 00:00:54,600 HDMI cable isn't working amazingly well. About my car, I'm going to show you a video that I 7 00:00:54,620 --> 00:00:58,640 made. My name is Jerry Gamblin. I'm the principal security engineer at a startup out of Chicago 8 00:00:58,640 --> 00:01:05,320 called Kenna Security. My personal blog is at jerrygamblin.com. And you can follow me on 9 00:01:05,320 --> 00:01:11,240 Twitter, at jaygamblin. I'm always available to answer questions and talk to you guys about car 10 00:01:11,240 --> 00:01:18,620 hacking or cybersecurity in general. So they gave me 45 minutes, but I need, like, 25 minutes. 11 00:01:18,800 --> 00:01:22,560 So we're going to get through this, and then everybody is going to get some time back to go 12 00:01:22,560 --> 00:01:23,620 enjoy the rest of DEF CON. 13 00:01:28,580 --> 00:01:38,400 Why carhacking.tools? Because we're not going to do this, right? If you're here to learn how to, 14 00:01:38,400 --> 00:01:44,800 like, take over a car and hit the brakes, go in 90 or whatever, this isn't the talk for you. 15 00:01:45,040 --> 00:01:53,340 This is hacking in the late 90s, early 2000s version, right? Your car has a ton of data. You 16 00:01:53,340 --> 00:01:54,300 want to see that data. 17 00:01:54,620 --> 00:02:02,140 Your average car probably gives you four to eight gauges, while it has about 150 to 200 data 18 00:02:02,140 --> 00:02:08,300 points in PIDs that it's just spitting out all the time. And if you're like me, you're like, I want 19 00:02:08,300 --> 00:02:13,900 to know what all that data is. You know, I might not have an oil temperature gauge on my dash, but 20 00:02:13,900 --> 00:02:18,540 if my car is spitting that data out, why am I not collecting that and looking at it and overlaying 21 00:02:18,540 --> 00:02:24,600 it on a map? Or why am I not figuring out, like, what my coolant temperature is? Why am I not 22 00:02:24,620 --> 00:02:32,320 monitoring my gas? So that's what we're going to do, because I love data. I want to have all the 23 00:02:32,320 --> 00:02:39,320 extra data I can. I want to be able to do stuff like this, right? I want to be able to use Torq Pro 24 00:02:39,800 --> 00:02:50,380 and overlay my car's data on top of the dash cam, right? It's useful. Your car has the data, and 25 00:02:50,380 --> 00:02:53,440 it costs about $11 to get this information out of your car. 26 00:02:55,860 --> 00:03:06,860 So what is carhacking.tools? I go on and off on carhacking. I like to get the data out of my car. 27 00:03:07,140 --> 00:03:12,900 It's just, here's how it starts. Like, oh, I really want to figure out something on my car. So 28 00:03:12,900 --> 00:03:21,100 then I spend, like, four days recompiling all the tools on Linux to get them to work. And then by 29 00:03:21,100 --> 00:03:24,080 that time, I'm on to another project, because I have ADHD. 30 00:03:24,620 --> 00:03:31,220 And, you know, just getting the tools installed was enough. And it's, so I just decided to put 31 00:03:31,220 --> 00:03:38,900 together some shell scripts to take about the 20 most popular Linux open source tools and let you 32 00:03:38,900 --> 00:03:44,460 guys build them automatically. They have all of the dependencies that are needed. So you just 33 00:03:44,460 --> 00:03:50,020 either just download the OVA and run it in VirtualBox or run it in VMware, or you just run 34 00:03:50,020 --> 00:03:54,340 the shell scripts that's on my GitHub page, and it'll just install all the tools. And I'm going 35 00:03:54,620 --> 00:03:59,660 to try really hard to keep those up to date over the next year. Oh, I should have put this slide up. 36 00:04:00,000 --> 00:04:05,680 Here's all the tools that are installed. Like, you have your CANutils and your CANbush utilities and 37 00:04:05,680 --> 00:04:12,180 your CANbacked app and, you know, SocketCAM and UDSim. So you can pull this OVA down right now, and 38 00:04:12,180 --> 00:04:17,940 there's a simulator on there, and you can start playing with it today at night in your hotel room. 39 00:04:19,920 --> 00:04:24,600 And it's also really affordable. The best OVD2 it has is, you know, it's the best OVD2 in the world. 40 00:04:26,760 --> 00:04:32,620 And you can get them on Amazon the next day. I will put these slides up, but all of this 41 00:04:32,620 --> 00:04:39,560 information is on the website with links directly to Amazon to these so that you don't have to take 42 00:04:39,560 --> 00:04:46,000 photos of the screen. I mean, unless you want to, because I just see it all the time. I don't 43 00:04:46,000 --> 00:04:52,940 know what people do with those pictures after conferences. Like, and this is what it looks like. 44 00:04:53,000 --> 00:04:54,600 This is the, this is the full build. This is what it looks like. This is the, this is the full 45 00:04:54,600 --> 00:05:04,380 build out. Like, if you download the OVA, you have a car hacking desktop. So it's, it has all the 46 00:05:04,380 --> 00:05:10,160 tools. You run it, and you can start pooling data with Wireshark or with SocketCAM or with 47 00:05:10,160 --> 00:05:18,980 CANtact right into your, into your system. Let's just talk about some of the challenges. Car 48 00:05:18,980 --> 00:05:21,420 hacking is hard and dangerous. 49 00:05:24,600 --> 00:05:30,300 There's probably 150 people in here. If we have two people who have the same car, like the exact 50 00:05:30,300 --> 00:05:37,600 same model car and the exact same year car, it would be super rare. And when you're trying to 51 00:05:37,600 --> 00:05:43,560 figure out the data your car is giving you, you can't Google it, right? Like, I can't sit there 52 00:05:43,560 --> 00:05:49,020 and Google, like, please tell me what my Toyota Corolla means here, because I'm the only person 53 00:05:49,020 --> 00:05:54,520 in the world in my garage at 2 a.m. trying to get PIDs out of my Toyota Corolla. 54 00:05:54,600 --> 00:06:00,900 Right? Like, this is old school hacking. You're not going to, like, find a proof of concept on 55 00:06:00,900 --> 00:06:05,840 some Pastebin page that somebody dropped there. Because like it or not, you're the only person 56 00:06:05,840 --> 00:06:13,760 looking at the data coming out of your car in most cases. And you can lock up your car. I, 57 00:06:14,260 --> 00:06:20,200 getting ready for this talk, I was in a hurry. I, I had to take my car in the shop about three 58 00:06:20,200 --> 00:06:24,580 times. So, that's mostly because I'm terrible at Python. But, you know, it's, it's, it's, it's 59 00:06:24,580 --> 00:06:35,320 Python. It's a super small hobbyist community. I will guarantee that whoever wins the CTF out 60 00:06:35,320 --> 00:06:43,900 there does it professionally. I, I don't, there are very few hobbyist car hackers that can get a 61 00:06:43,900 --> 00:06:48,020 foothold and spend the time necessary to do it. You talk to those guys. I love them. They're 62 00:06:48,020 --> 00:06:53,240 like, oh, yeah, I just get an ECU, which is a $500 computer that runs your car. And I put it on 63 00:06:53,240 --> 00:06:54,560 my test bench at home. And I put it on my test bench at home. And I put it on my test bench at 64 00:06:54,580 --> 00:06:58,520 home. And, like, so they're, they're sitting in their office doing this. I'm out in my garage 65 00:06:58,520 --> 00:07:02,800 with no air conditioning trying to work on there, right? Like, so that's, that's the split. If 66 00:07:02,800 --> 00:07:06,880 you're doing this as a hobbyist, you're likely doing it on something that you have to drive 67 00:07:06,880 --> 00:07:14,400 every day. And you don't want to break it. While if you're doing it professionally, they send 68 00:07:14,400 --> 00:07:18,420 you the brains of the computer and you can sit in your desk and, and work on it. So, it's a 69 00:07:18,420 --> 00:07:24,560 totally different way to look at it. And, and that causes this problem. And, and, and, and, and, 70 00:07:24,580 --> 00:07:31,880 that's a really, really, really big problem. People start open source projects and then they 71 00:07:31,880 --> 00:07:38,880 just abandon them in the, in, in this field. And I'm not sure why. I'm trying to get people to be 72 00:07:38,880 --> 00:07:44,060 better at this. And I'm trying to help where I can. You know, you get, I love Charlie Miller, 73 00:07:44,240 --> 00:07:48,220 but, like, this tweet is true, right? Like, he's, like, I don't know why people write, write 74 00:07:48,220 --> 00:07:54,560 these tools. I wrote a tool. And, yeah, and, you know, 2016, that hasn't been a problem. So, you 75 00:07:54,560 --> 00:08:02,880 updated and nobody touches it. So it just sits there and rots. And you get stuff like this. The 76 00:08:04,100 --> 00:08:10,140 Python OBD2 tools, the guy who maintains that moved to San Francisco, doesn't have a car now, 77 00:08:10,300 --> 00:08:17,060 so isn't updating the pip. So if you want to do pip install Python OBD, you're downloading an 78 00:08:17,710 --> 00:08:24,380 install package with 45 open bugs that are known, right? So this community in general needs 79 00:08:24,380 --> 00:08:30,080 help. So if you want to get into it, be willing to give back, be willing to share that 80 00:08:30,080 --> 00:08:34,220 information because that's the only way it's going to go from one person in their garage trying 81 00:08:34,220 --> 00:08:40,860 to do this to a thing where people can really start getting the data out of their car that they 82 00:08:40,860 --> 00:08:52,720 need. In reality, virtual machines and Bluetooth plus serial really, really sucks. I'm not sure if 83 00:08:52,720 --> 00:09:01,440 anybody's tried to do that, but all of the Elm adapters have FTDI serial, most of them, and trying 84 00:09:01,440 --> 00:09:12,660 to get that to run through. Sorry. 90% of the room is leaving in the back. I don't know what's 85 00:09:12,660 --> 00:09:19,140 going on. No 45 or something. Yeah, it's really hard to bring all of those tools together into 86 00:09:19,140 --> 00:09:22,700 one spot. So I recommend that if you want to get into it, be willing to share that information. 87 00:09:22,720 --> 00:09:28,400 And if you can afford it, to pick up the cheapest laptop that will run Linux and to do it there. 88 00:09:28,560 --> 00:09:34,980 It will make Bluetooth so much easier. It will make all your serial adapters so, so much easier. 89 00:09:38,440 --> 00:09:46,680 The future of car hacking tools. I'm going to add more tools. I have a few pull requests in to 90 00:09:46,680 --> 00:09:52,640 build out some stuff. There's going to be better OVAs. I'm really working on that to make this more 91 00:09:52,720 --> 00:09:57,020 useful for an organization and group. And then we're going to go to Docker and a Pi image because 92 00:09:57,020 --> 00:10:02,120 those are the next two steps. And hopefully by this time next year we can have this built out for 93 00:10:02,120 --> 00:10:09,720 Windows and Mac. This is a really short thing. I wanted to have a conversation. There wasn't a lot 94 00:10:09,720 --> 00:10:13,680 of data here. I wanted to just release the tool and get people who are interested in doing this 95 00:10:13,680 --> 00:10:20,960 to actually have the tools, right. It was much more about doing the exercise of building the scripts 96 00:10:20,960 --> 00:10:29,480 to install the tools. It probably took me, you know, a month of time to do that. So that's basically 97 00:10:29,480 --> 00:10:36,380 all I have. The OVA tools are at carhacking.tools. If you go to that site you can get a link to the 98 00:10:36,380 --> 00:10:45,980 GitHub page and you can download the OVA. I'd like to thank Kina Security. The engineering 99 00:10:45,980 --> 00:10:50,480 manager is in the back. So if you're in college and you're looking for a job, we have a great program. 100 00:10:50,480 --> 00:10:56,280 We have flex time. They gave me more than enough time to work on this during the week. So I just 101 00:10:56,280 --> 00:10:59,720 thought it would be, if you're interested, I want to thank them because they're a great place to 102 00:10:59,720 --> 00:11:07,820 work. And to be honest, if you guys are in college or you just don't have $11, I have probably 10 or 103 00:11:07,820 --> 00:11:14,380 15 OBD2 adapters that I'm not going to use that I want to give to people who will use them. So if 104 00:11:14,380 --> 00:11:19,720 you want the hardware to get started in this, please come and see me. I'm more than glad to give it 105 00:11:19,720 --> 00:11:26,040 to you. I just am going to start with people who either are unemployed or are in college first who 106 00:11:26,500 --> 00:11:32,120 want to jump in. And then anybody else is more than willing to have some of this hardware. I really 107 00:11:32,120 --> 00:11:37,000 do want everybody to take time possible to go and look at the tools and see if they can help 108 00:11:37,000 --> 00:11:46,180 improve this. And I'll answer all the pool requests we can. So thank you, guys. I'm sorry that we 109 00:11:46,180 --> 00:11:49,700 had, sorry it was so short. I'm more than, I don't know if you guys can hear me. I don't know if you 110 00:11:49,720 --> 00:11:54,060 can hear me. I'm happy to answer any questions anybody has. And I'm not sure what's going on in the 111 00:11:54,060 --> 00:11:56,140 back still. Thank you.