start	end	text
0	7800	Hello. Welcome to my presentation. For me, it's a pleasure to stay here.
7880	13420	I'm so happy to share that research. So, I'm going to show how I discovered
13420	16300	that I can unlock those avatars in my country.
16300	19260	So, the principal topic is breaking learning codes.
19780	24540	Please, get up your hands if someone knows about learning codes,
24540	26280	how to hack learning codes.
28040	31040	Two people. Okay.
31060	39440	So, right now, I'm going to show who I am.
39440	43500	My official work is a penetration tester.
43780	47460	Why do I say that? Because in South America, you know,
47460	51020	we don't have automatic cybersecurity companies.
51020	56260	So, I do the research alone because I learned car hacking alone.
56260	63560	So, in my free time, I do hardware security research.
63600	67640	Okay. I create a reference everything, a YouTube channel,
67640	70220	where I upload all my research.
70220	73980	So, I am 28 years old from Ecuador.
73980	77360	You know, we don't have anything about car hacking security,
77360	80720	nothing about that. So, I do alone.
81460	84600	I'm going to show about introduction, about learning codes.
84600	86920	After that, the hardware hacking.
86920	91700	After that, I'm going to learn how to set a backdoor in the KLS entry system.
91700	96860	After that, collision progress that appears if you use learning codes.
96860	99720	And after that, I'm going to show the auto RAF killer.
99720	104800	It is the tool that I developed to unlock cars with fixed learning code
104800	107900	and rolling code using the no attacks.
107900	114900	So, eh, I was trying to find, um, can injection.
114900	120200	So, when I connect my OBD port to the interface OBD2,
120200	127080	I find the can ID 545 is the ID that appears when you unlock or lock the car
127080	130880	with the KFOB, eh, control. Okay.
130880	134460	So, I say, hey, let's go to, eh,
134460	139760	do the research about the KLS entry system, the radio frequency system.
139760	142820	So, here we have a universal radio hacker.
142820	144460	I record the signal.
144460	146740	This is the signal to unlock the car.
146820	149840	And after that, I proceed to demodulate the signal.
149840	153440	The signal is in 370 megahertz.
153560	156920	I demodulate with ASK modulation.
156920	161820	And I use a symbol per second of five hundreds.
161820	168080	Okay, so, you just see, we have the unlock, eh, signal to, and after that, the lock signal.
168080	169520	After that, unlock signal.
169540	176040	Again, and if we, if we see, we have the first row is a fixed code.
176040	178220	The second row is the same fixed code.
178220	180100	So, I say, hey, what the hell is that?
180100	181520	This isn't really code.
181520	186340	Okay, so, I say, I need to do a deep, eh, a deeper research about that.
186340	191040	So, the unlock signal in, eh, in hexadecimal format, eh,
191040	194140	the previously slide is in bit format.
194140	197340	In hexadecimal format is that signal.
197340	206740	So, what happen, eh, if you, you see that there is a fixed code that, eh, repeat many times.
206740	210980	And the lock signal is very similar to the unlock signal.
210980	216000	So, just the three last hexadecimal digits change.
216000	219260	Okay, so, I say, hey, let's go to verify the replay attack.
219260	220980	So, this is a fixed code.
221000	225420	And right now I am in the fifth floor, eh, in Abandoned Builded.
225460	227300	And the car is in the fifth floor.
227300	232940	So, this is the first time that I was able to unlock, eh, my car.
233280	238200	So, let's go to listen the song when the car is unlocked.
239200	242860	So, with Universal Radio Hacker, I send the signal.
251710	256110	And after that, eh, I send the signal to lock the car.
256110	261310	So, I don't know if you, eh, listen, but, eh, from here I listen.
261730	267990	So, I verify with that, eh, replay attack that my car use, eh, something like fixed code.
268010	272610	So, I disassemble the K4 and I found a learning code chip.
272610	275430	The learning code chip is HS2240.
275550	282510	Eh, if you find, eh, that in internet, you are going to find that this is a learning code chip.
282610	284450	So, what the hell is learning code?
284450	286550	Learning code is similar to fixed code.
286550	288930	The difference is in the programmation mode.
288930	294730	In fixed code, you have a soldered, eh, you have the code soldered to the board in the K4, OK?
294910	299870	But in learning code, you have the pin into the integrated circuit.
299870	308650	So, eh, another difference is that when you are going to program, eh, in fixed code, you, eh, don't have to do a programmation.
308650	316030	In learning code, you have the teacher that uses the K4 that learn, the learning code to the microcontroller, eh, receiver.
316030	326130	So, when the microcontroller receiver, eh, receiver, eh, listen the codes to the antenna, eh, microcontroller save that code in his memory.
326130	330350	And he's able to, eh, save up to four different learning codes.
330350	339510	Keep in mind because, eh, this is, eh, useful information to set up backdoor in a few minutes in the other slides.
339570	346130	So, this is learning code, eh, each K4 has a different learning, eh, code, OK?
346130	349930	Each K4, and each card has a different learning code.
349930	353250	And each K4 has a different learning code, OK?
353830	355110	So, keep in mind.
355110	357510	So, let's go to the hardware hacking.
357510	369490	Eh, if you disassemble that, the, that, your, the vulnerable K4, we found, we found, eh, oscillator, LR370 megahertz, eh, batteries.
369490	371490	That we assume two batteries.
371490	373870	We have 6.38 volts.
373870	379150	It's important to do mathematics calculation to the brute force data that I am going to do in a few slides.
379150	382170	After that, we identify the ASK modulation.
382170	389070	Remember that, eh, we have to do a modulation to set to the LED RF transmit.
389270	394370	So, the final signal is ascending to the LED RF transmit.
394370	398650	And, also, we have here a multimeter to, to check.
398650	400790	So, let's go to the burn the circuit.
400790	402930	Eh, we have four inputs.
402930	407730	Eh, remember that the K4 have, eh, has four, eh, buttons.
407730	411030	So, each button, eh, is translated to one.
411030	415990	So, for example, if I press, eh, one button of the four buttons, I have 1, 0, 0, 0.
415990	419950	If I press the second button, I have 0, 1, 0, 0.
419950	425470	And each, eh, signal pass through a pull-down resistor.
425670	431650	So, after the pull-down resistor, eh, enter to the integrated circuit.
431650	433890	Okay, so, we have four entries.
433890	436550	Key K0, key 1, key 2, key 3.
436550	439110	And the output is to the pin number 3.
439110	443870	So, the learning code encoded, eh, exit through the pin number 3.
443870	449570	And in the left, we have the ASK modulation with capacitors, resistors, inductors, um, and more.
449570	456670	So, the final modulator learning code encoded, eh, go out by the LED.
456890	459910	So, keep in mind because we have four modes.
459910	462270	So, how to the learning code is formatted.
462270	463690	It's like the frame.
463750	465370	The, the frame is a preamble.
465370	467790	After that, we have 20 bits code.
467790	470890	After that, we have, eh, four bits of the mode.
470890	472610	Remember, each mode is a bottom.
472790	476070	So, in 20 bits, we have one million possibility code.
476070	480310	So, 2 to power 20 bits, we have one million possibility code, okay?
480970	483350	And in mode, we have four bits.
484090	492830	So, eh, here we have the different modes that we can, eh, the, the, are able to enter to the integrated circuit.
493650	495450	Okay, so, the preamble.
495450	498010	Here we have the bits of the learning code.
498010	500030	20 bits of learning code, four bits more.
500030	502670	So, the preambles, I get 96 bits.
502670	507550	So, 96, eh, subtract 20 bits of the learning code, subtracts 40 bits of the mode.
507550	510650	We have 72 bits preamble, okay?
510650	513330	And here we have 96 bits.
513450	518350	But, eh, 72 bits of preamble, I don't know sure.
518350	522710	So, eh, that's the reason that I do a hardware hacking with a logic analyzer.
522870	530550	This is logic analyzer LA5016 that is able to record up to 500 megahertz.
530550	532950	So, here's the connection.
533130	537150	Channel 1 is to the transmit bit, the pin number 3, ground to ground.
537150	540650	And channel 2 into the edge input, eh, system.
540650	543130	For example, K0, K1, K2, and K3.
543130	550190	And a multimeter to check the voltage, eh, pin, okay?
550190	557990	So, what we get when we do that, for example, if we press the bottom, eh, the first bottom, the K0,
557990	560970	we have that signal in the transmit pin.
560970	566690	This is the learning code that this is, eh, that repeat 25 times.
566690	569130	And after that, we have the preamble of the next signal.
569130	573350	So, when we press the button, we have the pulse in the channel, eh, 1.
573550	577710	So, the duration of the pulse is the duration that we press the button.
577710	582730	So, if we press the button one more, we have one more of learning codes, the same learning code.
583430	584050	You understand me?
584050	589430	So, at the same with K1, the same with K2, that is the button to unlock the car.
589430	592490	The same with the K3, that is the button to lock the car.
592490	598070	So, if we assume, eh, what we have, for example, here is the learning code.
598070	602370	Here is the learning code, 1, 2, 3, 4, and more learning code.
602370	613170	If we do assume to the learning code, we have a pulse, a 0, a pulse, eh, eh, more, with more duration, and a 0 with less duration.
613170	615030	So, I say, hey, what that means?
615030	623370	If I, eh, get in, when I get, when I record the signal with, eh, HackRF, I say, I have, I get 1, 0, 1, 0.
623370	626650	But, how I translate that to 1, 0, 1, 0?
626650	631250	Because, here, I have a pulse that is, eh, longer than that pulse, okay?
631250	634810	And, here, I have a 0 that is longer than that 0.
634910	637770	So, I say, hey, this is encoded.
637770	639110	So, this is encoded.
639110	647470	So, eh, after reversing the encodification, after read a lot of data sheets, I achieved to discover the encoded to the learning code.
647470	650210	So, I get the learning code with logic on the large cell.
650210	660430	So, eh, the integrated chip send, eh, a 0 with 4 bits, and send, eh, 1 bit with 4, 4 bits.
660430	667450	So, for example, if the integrated code want to send 0, he, eh, send 1, 0, 0, 0.
667450	675830	And, eh, the integrated circuit, eh, want to send 1 bit, eh, the 1 bit is sent to 1, 1, 1, 0.
675830	680490	So, for example, here, we have 1, 0, eh, 3, 0s.
680490	684050	And, also, we have here 1, 1, 1, 0.
684050	687450	So, here, we have a 1, and here we have a 0.
687530	690710	So, after that, the preamble is a constant.
690710	697110	The preamble, eh, the preamble is a constant, eh, of the 1 bit, and 3, 1, 0s.
697390	705490	So, that's the reason that we, when we get, eh, that signal with logic analyzer, we have here the preamble, 1 bit, and 3, 1, 0s.
705490	710990	And, after that, here, for example, we have 0, 1, 0, 1, 1, 0, 0, and so.
710990	713870	And the mode also is encoded with that codification.
713870	717690	We have here, eh, 1, 0, 0, 0.
717950	718690	Okay?
719110	724050	So, after that, we have all the information to encode or decode any signal.
724130	725650	So, how I verify that?
725650	728350	Remember that, eh, 96 bits.
728350	738590	If we multiply 20 bits by 4 bits, and plus 4 bits by 4 bits of the mode, we have 96 bits.
738590	744330	So, this is the reason that, at the start of the presentation, we have recorded 96 bits.
744430	745010	Okay?
745010	751530	So, eh, and after that, we have the preamble of the next frame, of the next learning code.
751530	752930	So, why do I do that?
752930	761430	Because, eh, I see data sheets that save me bad information, fake information for use for us, like, hackers.
761430	764670	For example, there are another vulnerable radio frequency chips.
764670	778470	For example, there are also the HS1527, 2024, eh, the HS2241, and more, the HTCP20D, the HTCP20B, and more.
778470	787350	So, if you read the data sheet, the data sheet say something like, eh, it can reduce any code collision and authorize it code-scanning possibilities.
787350	794890	So, eh, are you sure we are going to probe the opposite, because I discovered the encodification, the encodification, and more.
794890	799610	So, I built a genuine radio block that do a brute force attack.
799610	805210	This is the brain of the attack, is that block that I built.
805210	810770	And this is ASK modulation, we have here our repeating interpolation to better the signal.
811010	820490	Here we have the carrier signal, multiply, we have the modulated signal, and a trouble to maintain to the symbol rate.
820490	827870	Okay, and after that, we send that to the OSMO com scene that is compatible with our hack LF.
827870	840470	Okay, so, let's go to see how I am able to unlock the car with my genuine radio brute force attack.
840470	855270	So, the car right now is locked, I run my genuine radio script, and right now the car is unlocked.
855270	865250	So simple, the brute force is customisable, you can set parameters, for example, the delay between each signal.
866230	876530	And after that, I created AutoRefKiller, it's a tool that I developed to unlock whatever car that use learning code, fixed code, or rolling code with roll jam attacks.
876530	882470	So, let's go to the city to unlock hundreds of vulnerable cars.
882470	888610	Here we have the real gangster hacker, this is a pet bug hacker, don't use my pet, please.
889470	900470	So, here, I show about how I perform in Akia Soluto.
900470	906570	Okay, so right now, I run the brute force attacks.
906570	919770	I remember that the brute force attack take one minute, I guess, and in one minute, my script was able to unlock the car.
920490	932070	So, okay, remember, each car has a different learning code, and each car is able to save up to four different learning codes.
932070	943730	Okay, so right now, I'm going to check the car is locked, and after I run my script, let me...
943730	951490	Right now, the script is running, and let me...
957180	961860	And let's go to wait, and in a few minutes, the car will be unlocked.
961860	973960	You know, each signal is sent through each 30 milliseconds, but you can set that parameter to, I don't know, 60 milliseconds.
973960	980120	If you have more interference, you are able to send with more delay.
980120	983180	Okay, right now, we have a Kia Rio.
985920	998660	So, it's the same attack, the same attack, so the Kia Rio was able to unlock the car with two different learning codes.
998660	1005940	Remember, each car has between two learning codes up to four different learning codes.
1005940	1011660	So, let's go to see quickly.
1013720	1021460	So, we check the car is locked, and after I run my script, I am able to unlock the car.
1022980	1025380	Alright, now the car is locked.
1025380	1030160	Okay, and final, with another Renault X, I don't know.
1030900	1040600	Remember, there is a possibility that you go to a car keyless entry system,
1040600	1050520	and there are a possibility that the car dealership install you a vulnerable keyless entry system with learning code.
1050520	1054960	So, I guess that in Renault, I don't see the model.
1054960	1056880	I guess that this is the case.
1059460	1065420	Also, there are vulnerable cars like Kia Picanto and more cars in Ecuador.
1066040	1070160	So, I'm from Ecuador. I forget to say that, I guess.
1073700	1077840	So, this is a real attack in the streets.
1080850	1084870	Right now, I unlocked the car.
1084870	1086830	So, let's go to the next part.
1087210	1090430	Let's go to the setting bug during keyless entry system.
1090430	1099110	How do we know that a malicious actor doesn't send a backdoor into our keyless entry system?
1099110	1100070	We don't know.
1100070	1103030	So, there is a high probability.
1103030	1111150	Because in Latin America, in South America, there is something like a universal case.
1111930	1121550	Because this is a case of the malicious actor sent into the keyless entry system of many cars.
1121550	1123770	So, this is the rolling code.
1123770	1127470	So, 1K unlocked N cars.
1128310	1133550	Because previously, the car was backdoorized.
1133550	1137010	Okay, so let's go to the keyless entry system.
1137010	1140770	For that, we have the receiver microcontroller with STM8.
1140770	1144970	The horn, the voltage source to power on the circuit.
1150500	1153800	We don't have sound, but don't worry.
1153800	1156040	Right now, I am...
1156040	1160300	Also, we have the HackRF, my SD device.
1160300	1167000	And also, the AutoRF killer that I created to create a custom signal to create the backdoor.
1168940	1174100	Basically, I put in programmation mode the keyless entry system.
1174300	1179900	We connect the ignition to the voltage and press a button six times.
1179940	1184140	So, this is how to backdoorize the keyless entry system.
1184140	1193040	After the keyless entry system is in learning code programmation mode, I send whatever signal.
1193800	1199780	For example, I put 1-0-0-1-0-0-1 or 0-0-1, whatever.
1199780	1202460	Or 0-0-0-0-0-0-0-0-1.
1202460	1204480	So, this is the backdoor code.
1204660	1208340	So, right now, I use my tool.
1208340	1211020	I put the backdoor code right now.
1211180	1217620	And after that, the receiver will save that in his memory.
1221720	1230840	So, right now, I connect ignition to the voltage to put in programmation mode the all sounds.
1230840	1234980	And after that, I send the backdoor code.
1235820	1240140	And finally, I exit programmation mode.
1240200	1247060	And after that, I am able to unlock the car with my backdoor code.
1247960	1254260	So, basically, I am able to unlock that car with my HackRF.
1268000	1271200	So, right now, I am going to send the signal.
1271200	1276120	I am going to unlock the system with the HackRF.
1276120	1280840	So, let's go to send the signal with the HackRF.
1282240	1284540	I lock the system.
1284540	1291220	And if you listen, I know that you don't listen right now.
1291220	1294620	But, trust me, the system is on.
1294620	1297380	So, the system is unlocked with the backdoor.
1297380	1301720	Okay, there is also a collision problem.
1301740	1303640	What means the collision problem?
1303640	1310460	The most integrated chip learning code uses the same tool to power 20 bits.
1310460	1316140	So, the most integrated chip learning code has one million possibilities.
1316140	1317560	So, what I mean?
1317560	1329400	For example, if we take the AV1527 chip, there is a high probability that that chip has the same learning code that has another chip that uses the same range.
1329400	1334360	For example, the HS2240, HS2241, and more.
1334360	1343200	Why do I say that? Because, just in my country alone, there are tons of cars that use that KLS entry system, vulnerable KLS entry system.
1343200	1362280	So, if we join all the cars in one place, all of the cars of the world in one place that use the learning codes, there is a high probability that if I take a random KFOB and press the button, there are another car that will unlock or lock.
1362280	1377100	And why do I say that? Because there will come a time where the million codes will be filed all over the world, and there will be a collision, and no one will figure it out.
1377140	1384760	Or maybe this figure will be found out, or maybe this figure has already been reached.
1384760	1387740	So, that question I put you in your mind.
1387740	1404160	So, for example, my KFOB code unlocks my car, or I unlock a garage door in the United States, because that learning code is also used in garage door and radio frequency devices protection.
1404160	1407260	So, finally, I'm going to exploit everything.
1407260	1415260	So, this is a tool with 1,300 Python lines of code.
1415260	1418520	So, the first feature is to brute force learning codes with our database.
1418520	1424500	I created a database that has all codification of the integrated learning code chips.
1424900	1430320	So, also, you can discover backdoor codes in your car running that brute force attack.
1430320	1437900	So, for example, if you run and your car was unlocked by another learning code, your car is backdoorized.
1438340	1441720	Another is the brute force attack with arbitrary parameters.
1441720	1452560	For example, if you want to run your chip with custom parameters, you also are able to run that.
1452560	1460820	You also create a backdoor custom code or signal, and also you are able to perform a replay attack.
1461760	1464360	And, finally, a roll jam attack.
1465680	1471720	To do that, you need two SDR devices to unlock cars with rolling code.
1471800	1476860	So, finally, let's go to see the tool.
1479400	1483580	So, I entered the integrated chip name.
1483840	1488660	So, the program sent me the information about that integrated chip.
1488660	1493160	So, we don't have anything more than put the radio frequency, whatever frequency.
1493160	1497840	For example, in this case, 350, and the brute force attack is performing.
1497840	1500520	So, we need to wait and nothing more.
1501840	1515880	Also, here we have, we perform, we execute a perform brute force attack with 22 bits, not just 20 bits.
1515880	1519780	So, you can set whatever number of bits.
1520720	1529620	Okay, you enter the start number to brute force attack and the end number to finish the brute force attack, the delays and more.
1529620	1538320	And, after that, I execute the option number 4 to send a jamming signal.
1538320	1547920	So, you also can use that tool to create jamming signals in whatever frequency and you set the duration of the jamming.
1548600	1568260	And, finally, also, we can choose the option number 3 to record and replay a radio frequency signal to discover your car is vulnerable to fixed code or learning codes.
1568620	1576700	So, you set the frequency, you need my script and also the hack RF and nothing more.
1576700	1585180	So, you record in 10 seconds the signal and immediately in 10 seconds your signal is replayed again.
1587360	1596730	And, finally, set a backdoor into the Kali's entry system.
1596730	1602790	You set the frequency and you put the bits, for example, 110, whatever.
1602790	1607090	So, the script create the modulation, do everything.
1607090	1610070	So, you just need to put the bits and nothing more.
1613220	1617520	So, thank you so much. This was breaking learning codes in my country.
1619480	1620640	Thank you so much.
