Hello. Welcome to my presentation. For me, it's a pleasure to stay here. I'm so happy to share that research. So, I'm going to show how I discovered that I can unlock those avatars in my country. So, the principal topic is breaking learning codes. Please, get up your hands if someone knows about learning codes, how to hack learning codes. Two people. Okay. So, right now, I'm going to show who I am. My official work is a penetration tester. Why do I say that? Because in South America, you know, we don't have automatic cybersecurity companies. So, I do the research alone because I learned car hacking alone. So, in my free time, I do hardware security research. Okay. I create a reference everything, a YouTube channel, where I upload all my research. So, I am 28 years old from Ecuador. You know, we don't have anything about car hacking security, nothing about that. So, I do alone. I'm going to show about introduction, about learning codes. After that, the hardware hacking. After that, I'm going to learn how to set a backdoor in the KLS entry system. After that, collision progress that appears if you use learning codes. And after that, I'm going to show the auto RAF killer. It is the tool that I developed to unlock cars with fixed learning code and rolling code using the no attacks. So, eh, I was trying to find, um, can injection. So, when I connect my OBD port to the interface OBD2, I find the can ID 545 is the ID that appears when you unlock or lock the car with the KFOB, eh, control. Okay. So, I say, hey, let's go to, eh, do the research about the KLS entry system, the radio frequency system. So, here we have a universal radio hacker. I record the signal. This is the signal to unlock the car. And after that, I proceed to demodulate the signal. The signal is in 370 megahertz. I demodulate with ASK modulation. And I use a symbol per second of five hundreds. Okay, so, you just see, we have the unlock, eh, signal to, and after that, the lock signal. After that, unlock signal. Again, and if we, if we see, we have the first row is a fixed code. The second row is the same fixed code. So, I say, hey, what the hell is that? This isn't really code. Okay, so, I say, I need to do a deep, eh, a deeper research about that. So, the unlock signal in, eh, in hexadecimal format, eh, the previously slide is in bit format. In hexadecimal format is that signal. So, what happen, eh, if you, you see that there is a fixed code that, eh, repeat many times. And the lock signal is very similar to the unlock signal. So, just the three last hexadecimal digits change. Okay, so, I say, hey, let's go to verify the replay attack. So, this is a fixed code. And right now I am in the fifth floor, eh, in Abandoned Builded. And the car is in the fifth floor. So, this is the first time that I was able to unlock, eh, my car. So, let's go to listen the song when the car is unlocked. So, with Universal Radio Hacker, I send the signal. And after that, eh, I send the signal to lock the car. So, I don't know if you, eh, listen, but, eh, from here I listen. So, I verify with that, eh, replay attack that my car use, eh, something like fixed code. So, I disassemble the K4 and I found a learning code chip. The learning code chip is HS2240. Eh, if you find, eh, that in internet, you are going to find that this is a learning code chip. So, what the hell is learning code? Learning code is similar to fixed code. The difference is in the programmation mode. In fixed code, you have a soldered, eh, you have the code soldered to the board in the K4, OK? But in learning code, you have the pin into the integrated circuit. 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. In learning code, you have the teacher that uses the K4 that learn, the learning code to the microcontroller, eh, receiver. So, when the microcontroller receiver, eh, receiver, eh, listen the codes to the antenna, eh, microcontroller save that code in his memory. And he's able to, eh, save up to four different learning codes. Keep in mind because, eh, this is, eh, useful information to set up backdoor in a few minutes in the other slides. So, this is learning code, eh, each K4 has a different learning, eh, code, OK? Each K4, and each card has a different learning code. And each K4 has a different learning code, OK? So, keep in mind. So, let's go to the hardware hacking. Eh, if you disassemble that, the, that, your, the vulnerable K4, we found, we found, eh, oscillator, LR370 megahertz, eh, batteries. That we assume two batteries. We have 6.38 volts. It's important to do mathematics calculation to the brute force data that I am going to do in a few slides. After that, we identify the ASK modulation. Remember that, eh, we have to do a modulation to set to the LED RF transmit. So, the final signal is ascending to the LED RF transmit. And, also, we have here a multimeter to, to check. So, let's go to the burn the circuit. Eh, we have four inputs. Eh, remember that the K4 have, eh, has four, eh, buttons. So, each button, eh, is translated to one. So, for example, if I press, eh, one button of the four buttons, I have 1, 0, 0, 0. If I press the second button, I have 0, 1, 0, 0. And each, eh, signal pass through a pull-down resistor. So, after the pull-down resistor, eh, enter to the integrated circuit. Okay, so, we have four entries. Key K0, key 1, key 2, key 3. And the output is to the pin number 3. So, the learning code encoded, eh, exit through the pin number 3. And in the left, we have the ASK modulation with capacitors, resistors, inductors, um, and more. So, the final modulator learning code encoded, eh, go out by the LED. So, keep in mind because we have four modes. So, how to the learning code is formatted. It's like the frame. The, the frame is a preamble. After that, we have 20 bits code. After that, we have, eh, four bits of the mode. Remember, each mode is a bottom. So, in 20 bits, we have one million possibility code. So, 2 to power 20 bits, we have one million possibility code, okay? And in mode, we have four bits. So, eh, here we have the different modes that we can, eh, the, the, are able to enter to the integrated circuit. Okay, so, the preamble. Here we have the bits of the learning code. 20 bits of learning code, four bits more. So, the preambles, I get 96 bits. So, 96, eh, subtract 20 bits of the learning code, subtracts 40 bits of the mode. We have 72 bits preamble, okay? And here we have 96 bits. But, eh, 72 bits of preamble, I don't know sure. So, eh, that's the reason that I do a hardware hacking with a logic analyzer. This is logic analyzer LA5016 that is able to record up to 500 megahertz. So, here's the connection. Channel 1 is to the transmit bit, the pin number 3, ground to ground. And channel 2 into the edge input, eh, system. For example, K0, K1, K2, and K3. And a multimeter to check the voltage, eh, pin, okay? So, what we get when we do that, for example, if we press the bottom, eh, the first bottom, the K0, we have that signal in the transmit pin. This is the learning code that this is, eh, that repeat 25 times. And after that, we have the preamble of the next signal. So, when we press the button, we have the pulse in the channel, eh, 1. So, the duration of the pulse is the duration that we press the button. So, if we press the button one more, we have one more of learning codes, the same learning code. You understand me? So, at the same with K1, the same with K2, that is the button to unlock the car. The same with the K3, that is the button to lock the car. So, if we assume, eh, what we have, for example, here is the learning code. Here is the learning code, 1, 2, 3, 4, and more learning code. 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. So, I say, hey, what that means? 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. But, how I translate that to 1, 0, 1, 0? Because, here, I have a pulse that is, eh, longer than that pulse, okay? And, here, I have a 0 that is longer than that 0. So, I say, hey, this is encoded. So, this is encoded. So, eh, after reversing the encodification, after read a lot of data sheets, I achieved to discover the encoded to the learning code. So, I get the learning code with logic on the large cell. So, eh, the integrated chip send, eh, a 0 with 4 bits, and send, eh, 1 bit with 4, 4 bits. So, for example, if the integrated code want to send 0, he, eh, send 1, 0, 0, 0. And, eh, the integrated circuit, eh, want to send 1 bit, eh, the 1 bit is sent to 1, 1, 1, 0. So, for example, here, we have 1, 0, eh, 3, 0s. And, also, we have here 1, 1, 1, 0. So, here, we have a 1, and here we have a 0. So, after that, the preamble is a constant. The preamble, eh, the preamble is a constant, eh, of the 1 bit, and 3, 1, 0s. 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. And, after that, here, for example, we have 0, 1, 0, 1, 1, 0, 0, and so. And the mode also is encoded with that codification. We have here, eh, 1, 0, 0, 0. Okay? So, after that, we have all the information to encode or decode any signal. So, how I verify that? Remember that, eh, 96 bits. If we multiply 20 bits by 4 bits, and plus 4 bits by 4 bits of the mode, we have 96 bits. So, this is the reason that, at the start of the presentation, we have recorded 96 bits. Okay? So, eh, and after that, we have the preamble of the next frame, of the next learning code. So, why do I do that? Because, eh, I see data sheets that save me bad information, fake information for use for us, like, hackers. For example, there are another vulnerable radio frequency chips. For example, there are also the HS1527, 2024, eh, the HS2241, and more, the HTCP20D, the HTCP20B, and more. 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. So, eh, are you sure we are going to probe the opposite, because I discovered the encodification, the encodification, and more. So, I built a genuine radio block that do a brute force attack. This is the brain of the attack, is that block that I built. And this is ASK modulation, we have here our repeating interpolation to better the signal. Here we have the carrier signal, multiply, we have the modulated signal, and a trouble to maintain to the symbol rate. Okay, and after that, we send that to the OSMO com scene that is compatible with our hack LF. Okay, so, let's go to see how I am able to unlock the car with my genuine radio brute force attack. So, the car right now is locked, I run my genuine radio script, and right now the car is unlocked. So simple, the brute force is customisable, you can set parameters, for example, the delay between each signal. 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. So, let's go to the city to unlock hundreds of vulnerable cars. Here we have the real gangster hacker, this is a pet bug hacker, don't use my pet, please. So, here, I show about how I perform in Akia Soluto. Okay, so right now, I run the brute force attacks. I remember that the brute force attack take one minute, I guess, and in one minute, my script was able to unlock the car. So, okay, remember, each car has a different learning code, and each car is able to save up to four different learning codes. Okay, so right now, I'm going to check the car is locked, and after I run my script, let me... Right now, the script is running, and let me... And let's go to wait, and in a few minutes, the car will be unlocked. You know, each signal is sent through each 30 milliseconds, but you can set that parameter to, I don't know, 60 milliseconds. If you have more interference, you are able to send with more delay. Okay, right now, we have a Kia Rio. So, it's the same attack, the same attack, so the Kia Rio was able to unlock the car with two different learning codes. Remember, each car has between two learning codes up to four different learning codes. So, let's go to see quickly. So, we check the car is locked, and after I run my script, I am able to unlock the car. Alright, now the car is locked. Okay, and final, with another Renault X, I don't know. Remember, there is a possibility that you go to a car keyless entry system, and there are a possibility that the car dealership install you a vulnerable keyless entry system with learning code. So, I guess that in Renault, I don't see the model. I guess that this is the case. Also, there are vulnerable cars like Kia Picanto and more cars in Ecuador. So, I'm from Ecuador. I forget to say that, I guess. So, this is a real attack in the streets. Right now, I unlocked the car. So, let's go to the next part. Let's go to the setting bug during keyless entry system. How do we know that a malicious actor doesn't send a backdoor into our keyless entry system? We don't know. So, there is a high probability. Because in Latin America, in South America, there is something like a universal case. Because this is a case of the malicious actor sent into the keyless entry system of many cars. So, this is the rolling code. So, 1K unlocked N cars. Because previously, the car was backdoorized. Okay, so let's go to the keyless entry system. For that, we have the receiver microcontroller with STM8. The horn, the voltage source to power on the circuit. We don't have sound, but don't worry. Right now, I am... Also, we have the HackRF, my SD device. And also, the AutoRF killer that I created to create a custom signal to create the backdoor. Basically, I put in programmation mode the keyless entry system. We connect the ignition to the voltage and press a button six times. So, this is how to backdoorize the keyless entry system. After the keyless entry system is in learning code programmation mode, I send whatever signal. For example, I put 1-0-0-1-0-0-1 or 0-0-1, whatever. Or 0-0-0-0-0-0-0-0-1. So, this is the backdoor code. So, right now, I use my tool. I put the backdoor code right now. And after that, the receiver will save that in his memory. So, right now, I connect ignition to the voltage to put in programmation mode the all sounds. And after that, I send the backdoor code. And finally, I exit programmation mode. And after that, I am able to unlock the car with my backdoor code. So, basically, I am able to unlock that car with my HackRF. So, right now, I am going to send the signal. I am going to unlock the system with the HackRF. So, let's go to send the signal with the HackRF. I lock the system. And if you listen, I know that you don't listen right now. But, trust me, the system is on. So, the system is unlocked with the backdoor. Okay, there is also a collision problem. What means the collision problem? The most integrated chip learning code uses the same tool to power 20 bits. So, the most integrated chip learning code has one million possibilities. So, what I mean? 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. For example, the HS2240, HS2241, and more. 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. 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. 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. Or maybe this figure will be found out, or maybe this figure has already been reached. So, that question I put you in your mind. 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. So, finally, I'm going to exploit everything. So, this is a tool with 1,300 Python lines of code. So, the first feature is to brute force learning codes with our database. I created a database that has all codification of the integrated learning code chips. So, also, you can discover backdoor codes in your car running that brute force attack. So, for example, if you run and your car was unlocked by another learning code, your car is backdoorized. Another is the brute force attack with arbitrary parameters. For example, if you want to run your chip with custom parameters, you also are able to run that. You also create a backdoor custom code or signal, and also you are able to perform a replay attack. And, finally, a roll jam attack. To do that, you need two SDR devices to unlock cars with rolling code. So, finally, let's go to see the tool. So, I entered the integrated chip name. So, the program sent me the information about that integrated chip. So, we don't have anything more than put the radio frequency, whatever frequency. For example, in this case, 350, and the brute force attack is performing. So, we need to wait and nothing more. Also, here we have, we perform, we execute a perform brute force attack with 22 bits, not just 20 bits. So, you can set whatever number of bits. Okay, you enter the start number to brute force attack and the end number to finish the brute force attack, the delays and more. And, after that, I execute the option number 4 to send a jamming signal. So, you also can use that tool to create jamming signals in whatever frequency and you set the duration of the jamming. 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. So, you set the frequency, you need my script and also the hack RF and nothing more. So, you record in 10 seconds the signal and immediately in 10 seconds your signal is replayed again. And, finally, set a backdoor into the Kali's entry system. You set the frequency and you put the bits, for example, 110, whatever. So, the script create the modulation, do everything. So, you just need to put the bits and nothing more. So, thank you so much. This was breaking learning codes in my country. Thank you so much.