start	end	text
0	6520	My name is Woody, and I'm going to be giving a presentation on Ford vehicles and some
7780	12240	possible vulnerabilities, depending on how you look at it. I looked at them as vulnerabilities.
12780	17500	Some of the engineers who I talked to from their company said, nope, works fine the way
17500	24840	we tested, just don't do what you do. I wish I was making that up. So, I'm going to go
24840	30720	ahead. We're getting stuff going right now. I was going to do some really good slides
30720	36760	and put everything together, but when I thought about it, I said, you know, the last thing
36760	43580	I want to do is sit through some long, boring process of PowerPoint presentations. So, I'm
43580	53670	just going to do it live. I'm going to show you the exact steps that I used, how I figured
53670	59590	it out, what tools I used, and what I used to try to make things a little easier. So,
60110	65870	that way, you have the ability to go through the steps like I did, so you can find vulnerabilities
65870	72090	and exploits as well. I think the biggest thing about finding exploits is just looking
72090	77350	for them, you know? Too many people overlook stuff. When I give all the details of how
77350	82690	I made this work, some of my buddies that are engineers, that are really good, the guys
82690	86850	I go to for advice, they're like, why would you even do that? That doesn't make sense
86850	92370	to even try it, but then it worked. Don't think that just because something isn't supposed
92370	96310	to work, means it won't work, because sometimes it does. And that's what we're really going
96310	105810	to point out here. So, we, because the way we've got this set up right now, visual, there
105810	109450	we go, I might have a little bit of trouble seeing some of the stuff, so be patient with
109450	113970	me. So, the first thing that we're going to talk about is, how do you start looking
113970	121190	at and digging into these protocols, right? Well, the first thing I did was, I bought
121290	128170	a new truck. When I got that truck, it had key fobs. Like anything, I took it apart.
128530	132650	And when I took the key fob apart, what do you always look for when you want to start
132650	140970	doing RF research? FCC ID. Not only did the FCC ID tell me a lot about the fob, what it
140970	148690	looked like, internal parts, it told me the frequencies, it told me how wide it communicated
148690	154290	at, and it made my life a lot easier. It's documented. Some of the things will be, some
154290	163670	of them won't. Look for it and see. So, one of the things... yeah, tell me when I'm on
163670	173270	the one that says Ford. Here? Yay! Again, I didn't realize it was going to be this far
173270	178290	away. So, fortunately, we've got some stuff we're going to look at. So, I'm going to show
178290	182090	you some videos real quick of how some of this stuff worked, and then we're going to
182090	190610	talk about how it all came out. So, this is an example of vehicles locked. This was a
190610	196310	rental car. I leave the keys on there so you know that I'm not doing anything with them.
196310	206410	And now, I walk over to the side of the vehicle. Unlocked. So, one of the things that happens
206410	209250	when you do this is people are going to say, well, wait a minute, I thought there was rolling
209250	214110	code. There is rolling code. And what we're going to talk about is why rolling code is
214110	220290	great when rolling code works and why it's not great when it doesn't work. So, we're
220290	224470	just going to get into first, I'm going to explain a little bit about rolling code and
224470	229270	what we're looking at when we do that. When I talk about rolling code, what I want you
229270	234610	to think about is if I want to make something so that you can't just copy it and replay
234610	240470	it. Because most people in the room I'm sure have heard about the old replay attacks. Well,
240470	244290	the problem that happened is they said, you know what, we need to make it so you can't
244290	250130	just replay the same signal. So, what happens is at the end of the signals, they'll put a
250130	253250	code in there that changes. Now, that code is not supposed to just jump up by one because
253250	259890	then you can just guess what the next code is, right? It's not supposed to. So, I started
259890	264670	looking at that and I started wondering how the car's relationship worked with multiple
264670	270490	key fobs. Well, each key fob has its own count. Now, I've played with a lot of different
270490	274930	vehicles. The reason that I'm doing this talk on Ford is because I was able to document
274930	280210	Ford really well because I owned one. I've done exploits on some other vehicles and when
280210	286450	I talk about that, there's other vehicles that I've been able to own even more than the Ford.
292940	299060	So, the way that I was able to manipulate those, I'm not going to talk about those
299060	304160	manufacturers because I haven't been able to document it well enough to give them appropriate
304160	310960	time to fix it. Ford, I did. So, I take the relationship between two key fobs and what
310960	316680	happens is one will be the master, one will have a slave relationship. Whichever drove
316680	321420	it last is typically going to be the master and the other one is going to fall into a
321420	328680	subordinate category. With some manufacturers out there, I found that if I capture a signal
328680	334360	from the key fob that is not being used at that time, that hasn't driven it last, it'll
334360	338600	accept any of those codes because it doesn't look for rolling codes on the key fob other
338600	343220	than the one that drove it last. Absolutely works. That's not what we did with Ford. I
343220	348860	was looking for that vulnerability because I found that in other vehicles. Another trick
348860	354180	that I use is I'll replay a whole bunch of lock sequences at a vehicle. And when you
354180	360060	do that, there's some vehicles out there that if you start sending lock sequences to it
360060	366900	enough times, it actually goes, hey, I'm not supposed to let people unlock me, but why
366900	370660	would I stop someone from locking me? And then they let the car lock. And once they
370660	376960	do, after that, that manufacturer, while the code still rolls, the car doesn't care.
376960	383220	It'll accept any code after that. So you have permanent access. This wasn't that attack.
384120	390240	While I was trying those, I found something strange out. And this was documented pretty
390240	396700	well on the Hack 5 series. There's a way to do a denial of service on Ford. I want to
396700	404480	note, at no point did I do any jamming techniques. None. I don't do jamming. What I did is I
404480	413240	replayed the key fobs. That's it. When you replay a key fob against a Ford, Ford decided
413240	420340	that they wanted to stop replay attacks. So if I replay, we'll say key fob A, key fob
420340	425440	A, while you can still start the car with it, you can use the manual key, you can use
425440	429700	the RFID feature where you walk up and it'll unlock if you have that feature in your car.
430460	433960	That will still work. However, you won't be able to push any of the buttons because it
433960	438220	won't accept any codes from that key fob again until you reset it. So that's the first thing
438220	446180	I realized. If you replay, you're going to wind up getting a denial of service. So if
446180	450680	I don't want somebody to be able to use their key fob, all I do is catch it, replay it,
450680	454340	done. That key fob will not work again until you reset it. Don't worry, I'm going to show
454340	463280	you how to reset it. Then I started realizing that if I then took the second key fob and
463280	472620	I sent a signal from it, all of the old codes that I had for key fob 1 worked again. I started
472620	479540	looking at this and I figured out what happened. When Ford deauthorizes a key fob, when you
479540	489420	reactivate it, it resets the code count. So I was like, all right, sounds good. Now, to
489420	495600	do denial of service, I only need one key fob. To be able to do this, I need two key
495600	500460	fobs. Man, that's a little tougher. But I think we can work with this. We'll make it
500460	506240	happen. So there's a couple ways to look at that. Most people have at least two keys for
506240	513240	their vehicle, right? So if I go and drive my vehicle and then I come home and I have a
513240	517660	spouse, they go and drive the vehicle, there's a good chance we're each going to have our
517660	523020	own key fob. So if you live in an apartment complex or a housing area or anything else, it's
523020	527400	not hard for people to be able to just catch the signals because I'm going to show you how I
527400	532820	fingerprint which one comes from each. So that's not too hard. Then the other thing we
532820	546280	realized was that as you start doing these attacks, once I catch key fob A and key fob B and
546280	551900	I have codes from both of them and I'm going to release this weekend all the code that
551900	555340	you're going to see up here because we made an automatic key fob grabber that you run
555340	560580	through GNU radio so any time you hit a forward, it just records it for you and writes it
560580	567380	out. So when we started going through and looking at it, one of the cool aspects was that
567380	573820	now I could have either one. So hey, if I see that person A drove, now I use person B's
573820	578940	signal. Now how do I do that? When I see person A coming out to do something, I just
578940	585560	replay any old signal from key fob B. Key fob B is now disabled. Person B is not driving
585560	589880	the car, person A is. So when they get to their car and they unlock it, the moment that I
589880	595500	see the car do anything or have it automated, the moment that I see key fob 1 fire a signal,
595500	603860	I have to make sure that within, we'll say roughly 29-ish seconds, if I hit within that
603860	610180	window, key fob B, it's reactivated. That's how you reactivate it. You have to hit it
610180	614660	within a certain amount of seconds of key fob 1 being hit. Once I do that, I've reset
614660	623080	the code to zero. Every code I've caught up to that point now works. So, once we did that,
623080	626540	I wanted to be able to automate it. I wanted to be able to see how it works. And people
626540	629840	are like, yeah, so you can do this attack from fairly far, right? If you have key fobs,
629840	636300	you know, you can be fairly close. Interesting thing, my Raptor, when I looked up that FCC
636300	644640	code, it's not 315, it's not 433, it's 902 and 903. It actually broadcasts on 32. So
644660	647680	32 channels. We'll talk about that because that can be a little confusing at first when
647680	655400	you're trying to demodulate. So, that means that the range is now ridiculous. The reason
655400	658900	they do that, they want you to be able to be in the store or anything else and just
658900	663760	be anywhere near your vehicle. You can hit the lock button twice and then hold down on
663760	672500	remote start. Which, by the way, I capture and replay and now I start your vehicle. Don't
672500	677280	worry, we're going to dig into some stuff funner than that. So, I was like, okay, how
677280	681280	bad could this be? Well, my Raptor is the only one that did. I said, well, maybe this
681280	685660	is a new feature with the cars that use the 900 band. Nope, started testing on the ones
685660	692300	with 315, still worked. I was able to get back to about 2017 for vehicles that I tested
692300	699000	against and every time this worked, Raptor Captor worked. Yesterday, went to the car
699000	706120	hacking village and they have a mock-up of a 2012. So, I said, well, let's try it. Yep,
706540	714980	all the way back to 2012, I can do a deauthorization attack to your key fob and I can replay old
714980	721520	codes by resetting your rolling code count. So, we thought that was pretty interesting
721520	727240	and we wanted to keep moving with it. So, when you find something like this, you got
727340	731980	a couple roads you can go down. You can just sell it to someone, use it as an exploit.
732800	738140	I'm a big fan of freedom and I like being able to do stuff outside of a cage, so I decided
738140	742660	not to run down that route. So, I got a hold of Ford. Now, it was interesting when I got
742760	747740	a hold of Ford because for almost a month, I reached out, I emailed, I sent them videos
747740	756180	of me starting my truck remotely with a Portapak, a hack RF radio and the Portapak. This is
756180	762140	all I needed. I didn't even need a computer. I could catch, boom, replay, done, whole thing.
763780	768800	Finally nobody reached out to me. And I get it, they're busy. I tried going to Hacker
768800	776340	1, but they only had software exploits. There was nothing for hardware exploits. So, I teach
776340	783520	open source and I'm decent at finding stuff online. So, I just found Mr. Ford's email
783520	789140	address by some Google searches for at Ford.com and documents and sure enough, found it and
789140	793620	I emailed him. A couple hours later, I got a phone call from an assistant who said, our
793620	798680	cyber department will be getting a hold of you. There we go. So, when I talked to them,
798680	803460	we finally talk and I get the engineer on the phone and I'm like, hey, here's the thing,
803460	808360	I want to have responsible disclosure. He said, well, the first thing we're going to
808360	812460	need you to do is to run the test like this. And he gave me the parameters, exact parameters
812460	818880	and times of how he wanted me to test and I did it. And I said, yeah, it doesn't work
818880	824980	if I do it like that. He goes, all right, the protocol sound. I said, yeah, but I got
825080	828120	a lot of other ways I could do this, right? And he's like, yeah, but if you do it the
828120	831200	way I said, it doesn't work and nobody else is going to go through the steps that you're
831600	837740	doing. No one else is going to push two buttons in under 30 seconds. It's ridiculous. I said,
837740	841980	okay, now I will say, everyone else at Ford was, once we started talking, they were really
841980	850140	good to deal with. I like my vehicle. And I don't believe that Ford was being irresponsible
850140	853940	in the way they did this. I think they were being aggressive and trying to stop replay
853940	859900	attacks. I really do. The only negative impact I had with any of them was the one individual.
859900	862940	And it's probably because within the first five minutes of our conversation, he goes,
862940	866060	hey, I don't want you to get this wrong. I'm impressed a guy like you could even figure
866060	873290	this out. But everyone else, and I mean this, everyone else from Ford was actually really
873290	878550	good to talk to, very nice to deal with and it was a good thing. I recommend if you find
878550	885310	something, go to them. I did get a type of bug bounty. I got a $500 gift card for key
885310	893900	chains and hats on their website. But the bigger thing is I'm able to get the word out
893900	898800	about the safety of this and what you need. Because if you don't know how to take that
898800	903260	little piece of metal out that's in your little key fob and open your door, and they're all
903380	906700	a little different in how you do it. Some of them you have to break a piece of plastic
906700	911400	off. Some of them you have to, I mean it's just ridiculous some of the different ways
911400	914660	you have to do it. You have to pull the handle out, put the key in, turn it to unlock, pull
914660	920260	the key out, push the handle in, then pull it back open again. So when you do that, it
920260	925980	starts getting ridiculous. But you need to understand that it is extremely important
925980	930960	that you learn how to do that. You also, if you have a Ford, need to learn your door access
930960	936440	code. Because if you're someone and you get targeted, they can do a denial of service
936440	940220	on your key fob and if you don't have the RFID feature where the door automatically
940220	944920	unlocks when you're within a certain range, you're going to have to manually open your
945360	950540	car now. There's no way around it. You'll still be able to start it, but you're going
950540	954940	to have to manually restart your car. Now, there's a second way that you can reactivate
954940	962560	your key fob. Ford has an amazing policy where you can program your own key fobs if
962560	966800	you get them. So the cup holder, typically, if you open the cup holders up, there'll be
966920	970760	a little slot in there. You put your key in there, you turn the car on, and that key is
970760	975980	now reset. So you can do it either way. You can have two key fobs, so you reset one that's
975980	980280	been denial of service, or once you do get in your car, you put it in the center console,
980280	986600	you start your car, you're going to be good. It'll be reset. It'll be reset at count zero,
987680	995200	but it'll be reset. So we start going along and we start digging into this and we wanted
996720	1003640	to see what else we could do. So when we were looking at a couple other things, we found
1003640	1011480	something real interesting. Do you see the one, it's a CAN bus video? I apologize, I
1011480	1021910	didn't realize it was going to be that far. What's it say? What? So you see that right
1021910	1031330	there? That's the code to my door panel. You know how I got it? I simulated a lock sequence,
1031330	1038530	simulated the start the truck sequence, rolled an old unlock code, got in the car, plugged
1038530	1045910	in the OBD2 port, and queried it using force scan for the door access code. So now I have
1045910	1051190	permanent access without having to do another replay attack. Oh, you can change this, but
1051190	1061050	the master will always work. This is the master code. It happens. So let's get into it and
1061050	1065890	just kind of show some of the stuff that we can do because I think it will be fun. So
1065890	1070490	I want this talk to get people to realize that you don't need super expensive equipment.
1070490	1075070	You don't need thousands of dollars of equipment to start doing this. RTLSDR is right here.
1075070	1081390	That's it. This is how you start into these worlds. And then as you move up, you get the
1081390	1087690	PortaPak. I'm running the PortaPak with the Havok firmware. It is awesome. I love it.
1088690	1097250	I use it all the time. So what we're going to look at is how did I start figuring out
1097250	1102050	what was going on. One of the challenges right now in the capture the flag is actually to
1102050	1108570	recreate what I did and figure out what the coding sequence is. Because then you may not
1108570	1113590	need to capture both key fobs if you know what the key fob identifier is for the other
1113590	1117470	vehicle. And if you know what the lock sequence is. So I wanted to run down that and see how
1117470	1128330	hard it would be. So, most people in the software defined radio world are fairly familiar
1128330	1135750	with a program called Osmicon, FFT. This is a cool little program. So, what does this
1135750	1142590	program do? Well, I'm going to show you. I know that these key fobs, because I looked
1142590	1151310	at the FCC site, work around 90, we'll say 902. Right? So, now I'm listening to 902.
1151330	1157830	Now, one of the things that I want to do is I want to listen to enough information. Alright?
1158270	1165790	So, when I'm listening now, what's going to happen is I can just look, I can just start
1165790	1173250	looking around to see if there's any key fob activity around me. Hit here, hit average,
1173250	1180070	not too bad. So, whenever somebody hits their key fob, oh, I get a bump. Now, that bump
1180070	1184250	with two spikes lets me know that this is FSK, Frequency Shift Keying. So, that means
1184250	1188930	that it sends a zero on one frequency and a one on the other. It's a little harder to
1188930	1193430	demodulate than on-off keying and it's a little tougher to retransmit. But we're going to
1193430	1198030	show you the tricks to that and you'll be able to do it in minutes. The other thing
1198030	1205070	when you start looking at this is every time I hit it, I'm able to see this code. That
1205070	1221040	makes life really easy. Now, if I listen at 903, oh, I've got two signals. Now, I know
1221040	1226300	this because I looked at the FCC site. But if I hadn't, this might surprise me. This
1226300	1231480	might also throw you for a loop and you might think that it's a very wide FSK and think
1231480	1236000	that you have to work those two signals together. They're the exact same signal being
1236000	1243980	broadcast simultaneously on separate frequencies. So, I only need one of them. So, that took
1243980	1247220	me a little while to figure out. So, I'm going to give you a little hint if you're trying
1247220	1253660	to recreate this. You only need one side. That's why I make sure that what I listen
1253660	1258120	to, I'm only going to catch one of them. So, that's what I did. I just narrowed it down.
1258120	1265620	I know that 902 will put me pretty close to where I want to be and I'll push in there
1265620	1269900	and get it. So, that's how I use the first tool. Now, I can hit record and now I have
1270040	1274420	a copy of this file. That means I have a copy that I can use to replay, do whatever I want.
1274420	1280560	And this is a raw catch. This is the exact same signal. So, if I replay that same signal,
1280560	1284680	it's just like hitting the key fob. It's great. You just have to make sure that you got all.
1284680	1288960	The other problem I had is because it was so wide, I was worried I couldn't catch both
1288960	1293500	of them wide enough and play them right. I don't need to. You only need to catch about
1294160	1300180	if you do one meg wide sample, you're going to be fine. If you do two megs wide, no problem.
1300180	1306360	But make sure you shift either to the left to get the 902 or you shift to the right to get the 903
1306720	1313520	because it's 903.6 and 902.37. Don't try to catch them both because it'll make it harder
1313520	1317920	for the next step. So, then I'm like, okay, what's a cool tool that I could use to start
1317920	1321180	working with this? Those of you that have seen the stuff that I did with Iris and with some
1321180	1326520	infrared stuff in Gotenna know that I'm a big fan of Audacity. Well, this is Frequency
1326520	1330440	Shift Keen and I have a harder time using that with Audacity. For me, it's just, it's
1330440	1335020	not as clean. So, I was like, you know what? I really like the guys who make InSpectrum,
1335020	1344990	right? It's a great little tool. So, I'm like, all right, well, that'll work. So, now when
1344990	1353910	I'm here, all I have, all I have to do is, whoop, yeah, sorry about that. Control C.
1354130	1362910	There we are. All right. So, now all I have to do is record a signal. If I record a signal
1362910	1367430	and I put it in here, InSpectrum is going to show me how to crack this symbol. It works
1367430	1373410	really well. It works really, really nice, okay? So, we're going to grab a sample. We'll
1373410	1378230	put it in here just to kind of show you how easy it is to do. This is going to help me
1378230	1382610	break out 1s and 0s and give myself a sanity check to be able to figure out what it is.
1382610	1391510	If you're doing FSK stuff, this makes it really, really nice, okay? So, the next step after
1391510	1398090	I use InSpectrum is I say, all right, what else is out there? There's a program out there
1398090	1407980	called Universal Radio Hacker. This is a great tool. So, when I'm using this tool,
1407980	1411260	the first thing it says is, well, what do you want to do? Do you want to record a signal,
1411260	1415140	spoof it, or do you just want to see what's going on out there? Well, I just want to see
1415140	1421120	what's going on out there. So, first thing I'm going to do is go to the frequency where
1421120	1427660	I think this is going to be, right? Oh, also make sure I say U.S. RTL. Which one? Wasabi.
1428780	1443980	There? All right. Now, come over here and I'm going to put 902.3. All right. Now that
1443980	1450100	I do that, how wide is my sample? One meg? Good enough for me because I don't want to
1450100	1459300	catch too much. And I start. Now, what we're going to do, it's like, wow, there's a lot
1459300	1465440	of noise, right? Because we have this up here, right? So, man. Well, that's okay. We can
1465440	1471120	still work with this. We're just going to clean some stuff up. There we go. Adjust it
1471220	1476840	a little bit. Now, a little bit cleaner, right? So, even with all this noise going on out
1476840	1480880	here, I'm still able to clean this up. But am I going to be able to get a catch? Huh.
1480900	1488400	I guess we're going to have to see. So, the nice thing about it is... Oh, yep. I can get
1488520	1494480	a catch. So, what do I want to do with this catch? Well, the first thing I do is I want
1494480	1502540	to center my frequency. So, I bring this right to the center. I click it. I hit it again.
1504400	1509820	There we go. Now, I've got that pretty well centered. And the nice thing is, this is going
1509820	1513540	to hold it for me. This is going to store that position. So, I'm like, okay, well, let's
1513540	1519280	make this happen. So, I'm just going to go ahead and close this now. Now, when I close
1519280	1524200	it, I come back over and I say, hey, now I'm ready to record. This one's record, right?
1524540	1530760	Okay. So, what does all this say up here? It saved all my settings, right? That makes
1530760	1534540	it really nice. It's also going to label my file with these settings. I recommend
1534540	1538160	you leave that in the name. You'd be amazed how easy it is to forget what you actually
1538160	1542640	recorded at or, like, I don't know, your sample rate, which sometimes can be an issue if you're
1542640	1548740	trying to do a replay and you don't remember it. So, now I'm like, okay, I'm ready. So,
1548740	1553300	I just hit record. Now, once this starts recording, I'm just going to drop a couple samples and
1553300	1561840	see what we can do. Okay. So, boom, boom. Now, these aren't real huge, but we'll see
1561840	1571730	if it's good enough to do what we need to. So, I'm going to save them. Okay. Now, I'm
1571730	1576310	just going to go ahead and leave this right here. Save. And it automatically opens them
1576310	1582410	for me when I close this in a place that I can try to work with them. Now, we got a lot
1582410	1585950	of noise, so I might have to do another catch. We'll see if I can clean it up. The first
1585950	1591210	thing I do is I come right here and I hit this little filter button. Oh, that's a little
1591210	1596470	better. I can probably work with that. Now, I'm going to come down here and tell it, hey,
1596470	1601530	can you guess what protocol you think this is? And it's going to try. Now, with all the
1601530	1608210	noise we had, I may have to clean this up a little more. So, we'll see. There we go.
1608770	1612530	Nope, so it's not going to clean it up much more. So, this is the noise button right here,
1612530	1617690	right? Okay. So, what I'm going to do to the noise button is... what number is in there
1617690	1638970	right now? 110. All right. See if we can clean it up a little bit. Did it change it to 10?
1638970	1647090	All right. So, yeah, it's still got a little bit of noise. So, it's just straight 10 right now?
1648930	1654250	0010? Okay. So, that noise is still pretty high, right?
1657070	1663370	Is it? All right. So, what's the number?
1665670	1679600	All right. What's that? Yeah. Yay. Live brick, you got to love it. Yay. All right.
1681620	1690960	All right. There's a way around that. Okay. Here we go.
1693160	1699940	There we are. Good. We'll just hit it again. No scared. All right. So, now, if you already
1699940	1703860	have a file, the nice thing about it is, you can actually just come down here and open a
1703860	1718840	pre-existing file, right? So, I can come through here and I can look. So, here's what it looks
1719340	1723100	like if you just open a file that you've been working on trying to save. So, I'm going to open
1723100	1729320	it up. All right. So, I do the same thing. Let's clean it up a little bit.
1731180	1734640	Says, hey, I can't see the protocol. Well, let's go ahead and do our filter again.
1735320	1739660	The filter is going to try to get rid of all this extra noise. Now, here's the other kicker.
1739660	1745040	I don't need this, right? Well, let's just get rid of it. Delete, correct?
1746200	1751260	Now, I don't have to deal with it. So, if you've dealt much with radios,
1751260	1757180	man, that's a nice feature. I can just come in here and get rid of it. Now,
1757180	1766060	I still need to adjust this noise. It's way too much. What's the number there? Okay. So,
1770880	1778320	080? Oh, now we're getting some stuff we can see, right? Let's go a little bit further.
1779720	1792750	What's it saying? Okay. Here we go. Now, I can probably work with this. This is looking a little
1792750	1798510	better. So, my data down here doesn't look horrible, but if I want to see what's going on a
1798510	1803010	little more, it's going to give me a couple of ways of viewing it. So, when I click here, I can
1803010	1807790	come to the demodulation view, and now this gives me the ability to actually look at this FSK
1807790	1813050	signal. Okay. And that's what we want to do. We want to be able to actually come in here and look
1813050	1820770	at it. So, I can start drilling in, and now I can see, hey, you know what? Let's clean this up just
1820970	1829130	a little bit more. Now, this is going to let us come in and be able to see more stuff. Now,
1829130	1836450	I can actually see those ones and zeros. And now, if I say, hey, can you find this protocol? What
1836450	1841990	says, okay, I think we figured this out, and it's able to come in and start looking at this.
1842610	1848330	If I want to change it on my own, I can come in there and adjust it out. Gives you a nice
1848330	1854110	feature over here so that you can make it a little bigger, figure it out, drop it in.
1854550	1862550	There we are. This makes life really, really simple. It's really easy to do this. So,
1862550	1866970	that's one of the ones that I like digging into and looking at. Now, I'm going to go ahead and
1866970	1876450	close this one. Okay. Let's go ahead and, yep. We're going to open a file now. So, let me know
1876450	1896000	when it's down at the one that says Ford. Does that lock lock? So, now let's see what this code
1896000	1903260	looks like. So, let's say that we've spent about an hour digging into this. Wow. So, once I get
1903260	1909320	that cleaned up, this starts spitting this information out for me. So, what I've done is,
1910320	1914780	Tim Kerster, for those of you that know him, he's a great guy. Those of you that don't,
1914780	1918420	when it comes to software-defined radios, he's like the guy I go to. He's helped teach me from
1918420	1924720	the very beginning. He's just a really amazing guy. He helped me actually break this protocol
1924720	1929540	out. So, now when we get in here, we already have these labeled into what they do. Hey, there's a
1929540	1935720	unique identifier. Hey, here's this. Oh, wait a minute. Right here, this is the key fob identifier.
1935720	1941300	These are actually different for the two key fobs. So, I know if key fob A or key fob B was used.
1941300	1945860	That makes it really nice. Now, over here, I'm able to see the lock and unlock sequence. Now,
1945860	1951060	how do I know this? I know this because I caught some lock sequences from one key fob. Then I caught
1951060	1956040	some unlock sequences from the same key fob and I saw which bits changed. Then I did the same thing
1956040	1963860	with the other key fob. But this can get really tough to look at, right? So, the nice thing with
1963860	1968540	this program is it will actually come in and change stuff around for you. So, you can say,
1968540	1972480	hey, I want to look at everything in hex. So, it'll come in here and it'll let you look at
1972480	1993310	stuff in hex. Usually. All right. What's that? I'm sorry, I can't hear.
1994990	2006170	Yeah. Now, I just, yeah. Shit the bed. All right. Pop it up again. We're good. Here we go.
2006170	2017100	Nice and fast. Got it. All right. So, now we're in here. Drop it to hex. There we are. Now,
2017100	2021740	I've got hex. That's a lot easier to look at than ones and zeros, isn't it? And now when we come
2021740	2027640	over, do you see how these start changing? So, guess what? I know that this is the key fob
2027640	2033940	identifier. This is the unique key identifier. But here's the problem. I can replay stuff I've
2033940	2040120	already caught. But what if I figure out that if a lock sequence is this and I want to play an
2040120	2045280	unlock sequence from the other key fob, how am I going to figure that out? Because
2046440	2052540	if anything's off, if any of the way that I send the signals is off, encoding everything else,
2052540	2056800	I'm going to have a problem. Well, I did some work with TPMS and I figured out that they use
2056800	2065980	Manchester encoding. Manchester 2 encoding. Yeah. Threw me off too. I was like, no. So,
2065980	2070840	all I do, if I want to see how this is going to be affected, I just go ahead and highlight
2070840	2079700	everything I want. I come down here. Now, Manchester 2 encoding. So, let's look at this now.
2081300	2086560	A little easier. So, now when we look at this, what it's actually doing is
2086800	2092480	we're able to come in here, see what's going on, and it's just a lot cleaner. And that was one of
2092480	2099900	the issues that we had initially. And now, what do they have here? We can actually look.
2103490	2108710	Oh, instead of using a bunch of crazy characters that might be hard to read or maybe make it more
2108710	2115350	difficult for somebody to figure out the protocol, one is lock, two is unlock. Basically, it goes
2115950	2121550	right down the key fob, six is panic. So, you're able to put this in here. So, now,
2121550	2128290	I could get the code from figure out what the sequence is for key fob two, and I could just
2128290	2135370	flip a bit and have it now say unlock instead of lock. Now, where it got really funny was when we
2135370	2142650	started coming over towards the end. Because when we start looking at this protocol, anyone see any
2142650	2167850	funky counts? Rick, is there any sequencing it looks like? So, what I'm going to do is show you
2167850	2175370	what happens when you catch like 25 of them. All the way up to this point, they count by one.
2175370	2189230	Literally, one, two, three, four, five, six, seven, eight, nine, zero, A, B, C, D. One, two,
2189230	2190350	three, four, five, six, seven, eight, nine, zero, A, B, C, D. So, I know what the higher
2190350	2195210	rolling code would be, I just need to flip the bit to the left because I know there will be one
2195210	2203730	complete cycle away from it. Yeah. So, that's a recent find that we were just able to be able to
2203730	2210390	get into and start figuring out. So, when we do this and we start looking at it, it started
2210390	2216290	becoming very evident that there's some flaws with this protocol. But the other thing is,
2216290	2221270	there's some amazing tools out there for us to use. In Spectrum, you get in there,
2221270	2226550	you break the code out, you can tell FSK very simply. You get into this, you're able to find
2226550	2232070	some really, really cool stuff that you can play with. Now, once you get these codes and you get
2232070	2250700	them working, here we go. I'll show you the kind of thing you can do. So, I don't think we have
2250700	2265050	volume. So, Portapak, I fired up. Now, you'll see the lights. I unlock it. Now I start it
2267780	2276440	remotely. So, any thing you want to do that the key fob can do, you now have the ability to do.
2279790	2284770	Then, once you start it and then you unlock it, one of the next steps that you can do...
2288750	2302800	This is just another one. This is... Here we go. This is how, after I unlock your car,
2302800	2306900	well, I start it, then I unlock it. This is how I get permanent access.
2309440	2315660	Okay. Doing the same thing. I unlock it. I'm walking to the vehicle and I get in.
2320300	2321940	Trucks are supposed to be dirty.
2324860	2330900	So, now I get in. The reason I videotaped the entire process was because I wanted to make sure
2330900	2334840	that that engineer who I met wasn't going to say, well, I think you might have skipped a step. So,
2334840	2341400	I plug in. I use a program called 4Scan. Now, it's pretty expensive. $75 for a lifetime license.
2343180	2349380	So, again, you know, boundary set pretty high. Now, all I do is... This gives me the ability to
2349380	2356640	do some great stuff. I don't like having the volume control on the right-hand side of my
2356640	2361520	steering wheel because I typically drive my left hand. So, I just switch the controls all through
2361520	2372800	this. I hate the door chime. Got rid of it. Seat belt alarm. So, and then...
2376560	2382960	So, then I come into this and I don't want... I don't show the whole thing because I don't want
2382960	2388380	you to have the full code to it, but I showed you a screenshot of part of it. Go ahead.
2390780	2396880	I can. It sounds like a bad word. It's not. So, the question was,
2396880	2409440	can I tell you what the software is again? It's 4Scan. S-C-A-N. Yeah. Yeah. I know.
2412620	2417460	So, it's just an Elcam that you can buy. If you look up anything about 4Scan,
2417460	2423840	they'll tell you about it. It's about a $15 to $20 device. And if you have a Ford, a Mazda,
2423840	2427760	there's several other vehicles, you can now go over the OBD2 port and you can actually set a
2427760	2432360	whole bunch of your own features. It's a pretty cool little device. But it also gives me the
2432360	2438060	ability to get permanent access, as you're seeing here, to your door code, which means you can never
2438060	2444580	keep me out at that point. So, when we did this, I had no idea it was going to lead all the way to
2444580	2448540	the point where I could get permanent access to the door code on the side. I also hadn't thought
2448540	2454040	of the dangers of the denial of service part until later on. And then I realized how easy it would be
2454040	2457940	for somebody to do that. So, one of the things we really want to come out of this talk is we want
2457940	2463020	people to know how to get into your car if your key fob doesn't work. If your key fob just quits
2463020	2469660	working, have a high index of suspicion that maybe somebody's tried a replay attack. How can you
2469660	2475600	reset it? You take the key fob that works, you hit any button on it, and then you hit the other
2475600	2481600	one within about half a minute. It has to be pretty quick. And once you do that, the other key
2481600	2487560	fob works. Now, one of the kickers with this was you're like, well, okay, yeah, you make the other
2487560	2490540	key fob work again, but like you have to be right there. How are you actually going to be able to
2490540	2499480	use it? So, here's what I do. I can catch any code. So, what I do is key fob A, I catch a whole
2499480	2503180	bunch of codes because I haven't shown you the sniffer yet. We're getting ready to turn that on
2503180	2511720	because it's automated because I'm lazy. So, once I have those codes, when you drive your vehicle
2511720	2518060	and then you come back and then I see person B drive the vehicle, the moment that I D off your
2518060	2527380	key fob, as long as I play my codes in order and you don't use your key fob, it's indefinite how
2527380	2533600	long I have access. Until you use your key fob again and I play my codes in order, they're
2533600	2539300	valid. There's no time limit to use them. There's only a time limit for that reset factor. That was
2539300	2543060	another thing. He's like, well, yeah, you got to be there within 30 seconds. I said, no, I just have
2543060	2548660	to fire one message. Well, they'd see that something happened. No, not if one of the messages
2549100	2552880	is, oh, I don't know, the double press you use when you start the vehicle and I only send one of
2552880	2558460	them, doesn't matter. If it catches one symbol that it knows, key fob reactivated. So, we set
2558460	2564740	that up, tested it, it works great. So, how do we automate this and make it a little bit easier?
2564740	2570120	This is where Tim comes in. Why? Well, because I can lift heavy things, but I can't always spell
2570120	2579740	them. So, I call Tim. So, we use another really fun program. This is a program that if you have
2579740	2586200	not used it, you definitely should. All right. It is called GNU Radio Companion. All right. How
2586200	2591380	many people in the room have used GNU Radio Companion? This, yeah, this thing's awesome. So,
2591380	2596460	we're going to release this code for everyone this weekend and you're going to be able to have
2596460	2602700	Raptor Captor, which this is an automated system. It uses a module that Tim wrote that he calls
2602700	2609620	GR Revenge. So, it's designed to actually go out there and be able to sniff packets
2609620	2615360	and you set triggers. So, oh, if I have this preamble and then I see this sequence,
2615360	2620180	write it and it just writes it for you. We're going to turn it on. We're going to try it because
2620180	2629700	I could be lying. So, let me open. So, Rick, can I, or Rasabi, I'm going to need some eyes again.
2629700	2642980	So, where does it say open? There we go. Nope. And Raptor Captor, is that Raptor Captor lower?
2644560	2651960	Is it lower? Okay. So, we'll pop this one in real quick, see what happens.
2653680	2659780	So, yeah, make sure it's assembled. We'll go, there's two of them, so we'll see how this one
2659780	2671390	runs. All right. So, it's looking okay. We're getting some signals. But when we're getting
2671390	2677270	signals, we're not getting anything to write. So, it's like, oh, man. Well, if you listen to the,
2677270	2681010	remember I said you have to pick which side you're going to listen to? If you try to listen
2681010	2686770	to too much, you aren't going to get anything. So, let's go back here.
2689330	2704850	Open. File. Okay. Now, where's the other Raptor? Okay. What's it say? Which one says lower?
2705470	2712010	This one? Yeah. So, let's see what happens if we try to do this and we actually pick like
2712010	2716510	just one side of the spectrum instead of both. Because remember, it's kicking out of both, right?
2724030	2751810	And what did it say? Compiler. Yeah. Oh, it takes a minute for it to, okay. So,
2751810	2754810	oh, wait a minute. What's that?
2755550	2761690	Zero. Yeah. So, what happens is we're actually, we're probably getting some interference because
2761690	2767310	all this is at right at 902 as well. But now, because I picked one side of the spectrum, oh,
2767310	2774410	now I have a counter. This immediately spits out whatever code they hit. So, if I automate this,
2774410	2780830	it writes to a file, hey, I got unlock for key fob one. I got three locks for key fob one. I got
2780830	2786890	two locks for key fob B. I got a start for key fob B. I know how to categorize all of them because
2786890	2792950	they follow the same code. It's that simple. As long as you know the number, one, two, six,
2792950	2798830	whatever it is, you know it's either lock, unlock, panic, start. And you can now recreate,
2798830	2804270	use this and build your own captor and auto replay to be able to manually do this without
2804270	2809350	having to sit there and watch somebody. Which is what I was told by the engineer, well, nobody's
2809350	2818220	going to do that, so he's obviously never been divorced. So, now it's automated. I can put this
2818220	2825060	on anything. What makes this possible and very easy is that block that I told you about. There
2825060	2832900	we go. Catch. Catch. Now, it makes it easy because there's triggers set in. It's a great module. I
2832900	2839900	recommend if you use GNU radio, look up GR revenge. It is amazing how well, because you can
2839900	2845420	set these triggers to be able to do it. So, from start to finish, how did we work it? We were able
2845420	2852560	to come in here and get into a vehicle by watching someone else. We denied their access if we wanted
2852560	2858740	to or we just shut their key fob off when it was a key fob that wasn't being used and replayed all
2858740	2864160	the codes that we already had. Once we replay them, we can do anything we want. Then we can get inside
2864160	2868880	the car. Once we're inside the car, we plug into the OBD2 port. Once we plug into the OBD2 port,
2869920	2873980	now there's a lot we can do. But I'm just going to talk about the simple ability to pull the door
2873980	2881410	access code. We tried to take this and not be limited by one set of factors. I didn't want to
2881410	2886670	say, oh, hey, yeah, I can do an RF attack. Well, let's demodulate it. Let's see if maybe we can
2886670	2890950	work on this. So, the next step is we're going to start flipping bits. Because now that we figured
2890950	2895270	out what the coding was, because before when we were trying that, it wasn't working. Well, now I
2895270	2900910	know after doing some TPMS stuff that it actually had to be flipped to Manchester 2, which I never
2900910	2905670	expected. I was using Manchester 1. So, when I get home, I'm going to be out there trying to flip
2905670	2913090	bits and see, can I send a replay or a lock sequence from key fob 2? Can I jump by one
2913090	2917810	increment in that category that we saw and be able to make things happen? I don't know, but
2917810	2922210	it's worth trying. You're all going to have the tools to be able to try it as well, which means
2922210	2928350	you can give feedback and maybe figure out more than I did, hopefully. But all the tools are going
2928350	2934190	to be available to you. Inspectrum is out there. Universal Radio Hacker makes this so simple
2934190	2938770	to be able to. All you have to do is use the self-filter. Don't push it more than two or three
2938770	2946010	times. Use the self-filter. Adjust your noise levels. It makes FSK easy. Because FSK is not
2946010	2951370	always easy. Inspectrum does the same thing. I was going to do an Inspectrum demo, but from this
2951370	2954710	far away, it would be a waste of your time because it would take so long being able to see it. But
2954710	2960830	all you do is you put it in there. You say, hey, I'm doing some frequency sampling. And you just
2960830	2966790	drop it right in the center of the code that you can see or the signal that you see. And it helps
2966790	2970970	adjust all that for you. That way, you have multiple reasons. And the reason that I want
2970970	2974850	you to use more than one tool when you do this, if you use one tool and you're wrong, you don't
2974850	2980030	know you're wrong until you just start beating your head against the wall. I always compare,
2980030	2984210	especially if I'm pulling ones and zeros out of a signal, with multiple things. I'll use Universal
2984210	2989390	Radio Hacker. I'll use Audacity. I'll use Inspectrum. I'll use Raptor Captor. But what I
2989390	2994150	do is I put it all together and I see, was there a big difference? Was there something wrong?
2994750	2998830	One of the biggest things you're going to do wrong is you're going to record it at one meg.
2999310	3004230	And then you're going to use a default two meg for your sample rate. And when you try to replay,
3004230	3009610	you might have some issues. Make sure you remember that sample rate because you'd be
3009610	3014610	amazed how many times you're like, wow, this was just working. It was, but you didn't readjust
3014610	3019210	your sample rate. That's probably the easiest, fastest one that I've seen people make mistakes
3019210	3024370	with. And the other thing is just to have fun with it and try it. You know, I didn't dig into
3024370	3030870	the chip set. I didn't start going crazy doing a bunch of funky stuff. I started with the basics.
3030870	3036730	Can I get a one and zero out of this? From there, it just took off and it was great.
3036730	3042290	So the only way that we're going to get better at this stuff is if everybody tries doing it.
3042290	3046490	And that's what I want everyone here to do is just keep working at this and try and do stuff.
3046690	3053230	And it's not just with RF. Light does the same thing. Vehicles use a lot of light. The LIDAR
3053230	3062230	system to tell how far away you are. That's a designated coded laser. Yeah. Things can be done
3062230	3068350	there. TPMS. One of the challenges we have them doing over here is I set a TPMS challenge up.
3068690	3076210	We have a TPMS fox right now that's walking around that's broadcasting an actual Ford tire sequence.
3077250	3083750	It's a fox this year. They had to break the TPMS protocol and then be able to figure out the full
3083750	3090210	ones and zeros out of that. Jared, thank you for driving that research that got a lot of us
3090210	3096610	involved. Now, that's a capture the flag event. So, I mean, that's the thing. If you don't know Jared
3096610	3101190	and the stuff he's, it's amazing. Thank you very much. Please. He's the person who invented the
3101190	3120520	Portapak that goes on your hack RF. Oh, really? I didn't. Yeah. Those. Oh, yeah. Please. I'm sorry.
3120520	3125220	I didn't see you there. Yeah. Stand up. This is in spectrum right here. That tool, like I said,
3125220	3131120	I wish I had a monitor right in front of me, is amazing. And as a cross reference piece, that tool
3131120	3136480	is simply incredible. And if you're doing FSK, I can't imagine doing it without having that tool
3136480	3145760	as a backup. It's incredible. Thank you for making that. So, the big thing with this talk is I wanted
3145760	3150700	to make it where people could walk out of here with at least a little extra knowledge of how to
3150700	3154220	either do something or figure it out. And I also want you to have the safety feature. I'm not saying
3154220	3160800	Ford's bad. Trust me. Most manufacturers have errors in what they're doing. It just is. No one's
3160800	3165760	hack proof. I was just able to document this well enough to do a talk. There's other vehicles that
3165760	3170020	I'm able to lock and unlock. And some of them, I destroy the rolling code protocol altogether.
3171040	3176840	Test it. Try it out. Know what you have. But I'm going to go ahead and open up for questions and
3178060	3190140	anything. So, he asked, well, hey, you know, you're hitting your key fob a whole bunch. Is
3190140	3196820	that going to unsync your key fob? That I found because there used to be ‑‑ please correct me,
3196820	3200300	those of you that have done it, because I wasn't doing this when they were using the
3200300	3208480	first edition of rolling code. But it was only like 250‑some rolls. Now it's around 63,000.
3209000	3217160	So, you're good. So, yeah. I do these demos and talks and I've never had an issue. But it's a
3217160	3220540	good question. Something definitely to think of. But now you know how to reset it if it does get
3220540	3233800	out of sync. So, the question was, do these attacks work if the vehicle is moving? Only if
3233800	3238300	that vehicle allows the person with their key fob to do these. It depends on the protocol that
3238300	3243400	that vehicle has. Most vehicles won't let you do most of these things while the vehicle is engaged.
3243700	3249200	So, it would depend on what the protocol is. You're following their exact protocol. In fact,
3249200	3258330	you're following it the exact way the guy told me he wrote it. So, what? I did not test while
3258330	3272440	driving if the key fob will engage. But it's an area to look at. I did not try those. I'm not
3272440	3275300	sure what they would do, but it's definitely something that I think we could start running
3275300	3280740	down and working with. There's some great ‑‑ there's a lot of opportunities here. Flipping
3280740	3286500	bits. I'm excited for people to get this and start practicing flipping bits to see, can we make
3286500	3292380	it take a lock instead of an unlock? Can we make the other key fob the master? How does it work?
3292380	3298320	Let's see. You're going to be able to see the sequencing of counts up to a certain point.
3299300	3304280	Just back off one and move up. I don't know for sure. I just figured that piece out literally
3304280	3310200	in the last 48 hours. Just like I just found out that at least all the way back to 2012,
3310200	3317560	this works. So seven years' worth of vehicles, you can do this, too. At least. Go ahead.
3319880	3325360	Question was, is there a fix? I don't know if this can be fixed in software or if this would
3325360	3338220	have to be done at the body control module. So he asked if the door access code can be
3338220	3342540	reprogrammed through the CAN bus. Not that I know ‑‑ I don't know the code to do it. I'm
3342540	3349120	not saying it can't be. You can change it yourself. It's a feature you can do. However,
3349120	3357340	if you change it, the master code will still stay the master code. Yes, sir?
3366000	3369920	Looking to see whether it's encrypted or not. That's one of the things I'm looking at to check
3369920	3375880	because when you do the FCC search, it actually tells you which encryption protocol they're
3375880	3386480	using, which I apologize, off the top of my head, I can't ‑‑ yep, however,
3387000	3391040	if those products are sold in America, they've got to use the FCC.
3393240	3401920	So you can use our FCC. And it's a simple Google search. I just do FCC ID and whatever I'm working
3401920	3407840	on or looking at will have, it will say FCC ID, I just type it right in, put it in quotes,
3407840	3428370	do Uncle Google's thing and done. Any other questions? Oh. So he asked how long the packet
3428370	3439110	is and the other question is the sample rate. I'm sorry, symbol rate, but what was the second
3439110	3447230	part of it? Oh, a checksum. So we were looking at that and everything we found makes it look
3447230	3453970	like ‑‑ we ran checksum, in fact, Universal Radio Hacker will do a checksum check for you.
3454070	3461290	And each time it never matched up, so it ‑‑ I can't say it doesn't, but everything we found
3461290	3467050	looks like there's not a checksum. I can't say with 100% certainty, but we've looked and we
3467050	3472170	haven't been able to prove it is a checksum and we tried. We thought for sure it was.
3474030	3480710	Definitely, let's talk. Anything else? I appreciate your time. Thank you for coming to
3480710	3495220	the talk. Also, we did this entire talk on a CompuStick. I did all the processing, all the
3495220	3501220	data rates, all the collection, CompuStick, that's it. Didn't need any big crazy computers,
3501220	3506200	something I can put in my pocket, take anywhere and the presentation all off this. So you don't
3506200	3509480	need a bunch of crazy equipment to be able to make fun things happen.
