Next up we have Kevin2600 doing the Grand Theft Auto with digital key hacking. Please give him a warm Packet Hacking Village welcome. Hi, yeah, thanks. Yeah, thanks for attending my talk. It's my first time DEF CON speech, so bear with me. Yeah, so today I'd like to share with you my research results regarding one of the digital car key system. Yeah, okay, let's do it. My name is Kevin. Yeah, you can follow me on Twitter, Kevin2600. I'm a security researcher from InGeek Security Consulting based in Shanghai, China, and we are focused on automotive automotive securities. For my area I'm focused on wireless and embedded systems, right? So, yeah. Today's agenda is going to be like this. First I will run a very quick introduction on key for ops 101 and then I will walk through the structure and functionality of our target today which is called the army key. It's like right here. And then I will talk about how am I analyzing and what kind of attack vectors I found for this army keys, right? So, like for example, we got to talk about from physical layer, RF layer, and up to applications and then eventually we can see how can we sniffing up Bluetooth traffic and eventually we decrypt the encryptions. Okay, so introduction. So, I think key fob is most one, one of the most common items we can find in our pocket. The, you start with a very simple, it's just a mech, in the early days it's only just mech, mech, mechanic keys. And then they implement some kind of remote control. In the very beginning, they start with infrared and then there's RF with the fixed code and then RF with the rolling code. So, they also have some kind of passive entry. Um, so basically they put a RFID chip inside your car keys. So, for authentication reason. Now, here, nowadays they come with a new, uh, game changer because, um, you, uh, so nowadays you can actually use in your mobile phone, you can use your phone as, uh, uh, as, as your car keys. And for example here, the Tesla Model 3, if you're buying one of these, you not going to have any physical keys. They could only give you, uh, uh, RFID tag and then also, um, you can download a mobile phone app to actually, to start engine unlock, lock your cars. And Tesla is not the only one doing it. Uh, I think probably everybody, um, going to have this, uh, feature in, uh, in, uh, uh, other, any other, uh, manufacturers, right? So, um, let's take, talk about, little bit about what has been done in the past. So, in the past few, few years, in the past years, many, uh, researchers has found the vulnerabilities, uh, dedicated to key fobs, right? So, for example, uh, one of the loading code, uh, mechanism key lock has been cracked. And somebody, some researcher has, uh, worked with, uh, some of the, uh, working on a high-tech tool. Um, yeah, but, from what it is, if you notice, uh, in 2015, there's one of the, uh, uh, a researcher has found the vulnerability in B&W connected drive. Um, and also another, uh, researcher from Pentax partners. They found, uh, issues on wifi, uh, access point from the outlanders. And those two are the new, uh, attack vectors. Uh, these, uh, it's not just dedicated to key fobs anymore. There's more technology involved. So yeah, let's talk, let's take a look at more details. And so this one is for a BNW connected drive. So basically a German researcher he found, he able to set up a fake base station to and then the main issue here is the BNW rely on HTTP to communicate with backend server. So basically the researcher can set up a fake base station and once he reverse engineered the entire protocols, he able to send a replay, right? Okay and then another example here is the pen test partners researcher, they found the Wi-Fi access point provided by Ms. Bush or Lander is so easy to crack. So they can set up a fake base station to send a fake base station to the server. So basically they can connect to it and reverse engineered the protocols so and then they can turn on and off at conditional heating and even a lot of systems, right? So those are new attack vectors. So I say if when the new trends, new technology being implemented, they're always going to be some kind of new hacks, right? Okay so let's walk through our main target today. So like this, very simple. Yeah, it's called a ME key. It's AKA digital car keys. It's invested by a company called Xiaomi in China. So basically this one is able to enable people with the old model of the cars which don't have those fancy features. So if you still want to use, to control your car doors with mobile phones, you can use it just connecting this little device to your car and you're good to go. Right? So and here are some features, the highlights. So yeah, it's basically, it relies on Bluetooth low energy and we can unlock, lock your cars. And the, now the one of the interesting features here is remote key sharing, right? And this, I think this is a good feature. It's really really distinguishing with the traditional car keys because if you want to share your cars with your friends, you can do that in different countries, right? For ME key, they limit it, they only can limit to up to 20 users. So you see this little picture here, it's basically, you're just connecting your ME key to the keyhole here and you have to left there, right? And then you lock it and then once you come back, you can lock and unlock it. Do the normal thing, right? Okay, so here are just the components. You see, as you can see, it's very simple. It comes with a blank key. And also this is the actual main board here. We're going to look at more details in this particular, this one. And here is another square little box across key sensors. Yeah, sensors, yeah. So here's how you're going to get the work. First, we download the application from ME key and then we do the normal process, like we, we do the normal process, like we, we do duplicating the key and then we need to scan the barcode form a ME key in order to get activation code. Now, once we get the activation code and then we do it, and we put it in the application and activate it, once we activate it, we can lock and unlock. Right? And you know, just like, like if you lost your key, you go to the card dealers, you need to register your key with a new key to the red code. So, we need to do the same thing over here. So, from there need to register our AmiKey to the, to the cars. Right? Very simple. Um, also as AmiKey claim they support many models of the cars. So, so as you can see you, you find like Ford, uh, Volkswagen, uh, Toyota, Hong Tai, yeah. All those cars. Pretty, pretty much, uh, probably maybe everyone. Um, yeah, so now we take a look more details, right? Uh, the, the first, the first thing when you, when, when we're targeting, uh, reverse engine in the, uh, embedded systems, most, uh, the first stage is to, to, to sound recon. Right? So we, at this stage we try to get as much as possible, uh, the information as much as possible. So first, um, when I received this car keys, I, I'm not sure what's inside it. So I want to see more details, right? But, uh, sometimes, uh, the manufacturer may have some kind of protection mechanism. Uh, preventing us to open it. Right? If, if, if you open it, it may, may, may damage the, uh, the, the erase the firmware automatically. Uh, we don't know yet. So, what I would do is I go to, I suggest we can, if we possible, we go to using some kind of x-ray machine. We take pictures, take a look inside. Then we can make sure there's nothing to prevent us to open it. Right? So, yeah, that's the case. Uh, AmiKey didn't have anything, uh, inside. So, let's go ahead and open it. Okay, so now we, well, once we open it. We see actually, there's actually two boards inside. One, uh, the yellow board here. And then there's a green one here. So, uh, the middle one here is just the back side of the, the back side of the, uh, uh, the green board. So, what, we can use this, uh, connector to connect into each other. Right? So, yeah. Um, so, if any of us have do, done much, uh, reverse engineer embedded systems, then we, we know the first steps we like to just take a look at the, uh, uh, the, uh, the to find out, uh, the model of the chip. Right? So, for this one, um, it's called CC2640. Once I, I googled it and I found out this is, okay, this is actually the PDLE module to all of us. And the other, the green board is, uh, from NSP. And that's the one to actually, uh, emulate the, uh, lock and unlock command to RF. And also, uh, when, when, when we're dealing with wireless devices, usually, uh, they will come with the FCC, the ID. But since this one is only dedicated to Chinese market, they're using a similar system called a C, uh, CMIT ID. Well, it's, it's really just, uh, same, same, same thing. Right? So, now, there's one thing interesting. Remember I mentioned that there's a, uh, square, uh, little square box there. It's called, uh, sensors. Now, I don't know why they, they have there. Because I, I read the manuals. I read, uh, official website. And even just, uh, for the official applications. There's no, no sign of the how can we use it and what, what it really for. Oops. What, what is it really for? So, yeah, functionalities unknown. Um, but still, I, I like to find out more. Um, so I take, uh, open it. Um, even, uh, using the, uh, Bluetooth to connect into it. Um, yeah, as you can see, it is really just, you mentioned that this is a smart key sensor. And then we can find out your ID here. But still, we don't know what to do with it. Right? So, I look at it a little bit more. Um, I check out the data sheet. I try to connect into it, uh, through UART port or through, uh, try, talk to the spy. And, but still, not much useful information. But anyway, uh, since this, uh, key sensor here, not, not, will not bother, uh, it won't affect any other, uh, general, uh, normal operations. So, I'll just leave that for, for a moment. Maybe in the future, I find more details. Okay. Always just come back to, to, to do more research. Okay. So, let's take a look at the, uh, RF, uh, module, uh, green board. So, on the back, back side of it is, there's a crystal here. We can, we can see the, um, the value is a 13.56 megahertz. So, when, when, when known, we can do a very simple math. We can find out the B rate, uh, and potential frequency range. Right? Very simple. And now, we need a way to verify it. So, I set up a very simple, simple SDR, uh, environment. We're just using, uh, uh, HackerRF here. And then, then, then, then, then, connect to antenna. And now, I just keep pressing the button, try to see if we can find anything. Right? So, yes, um, we can see clearly, uh, it is within a 433 megahertz, uh, ISN band range. Right? There's a, there's peaks here. Um, yeah. Um, oh, I also take a look at, uh, uh, uh, the yellow, uh, yellow, uh, board. This is a, uh, Bluetooth board. Uh, now, when I'm connecting to it, using live blue or NF connect, the, uh, it doesn't matter. Um, it, what, what you can see here is the, uh, it constantly broadcasts these MAC address. Right? So, basically, maybe it is, uh, uh, I can see, okay, this is maybe the way we can track you because this is a, uh, unique MAC address here. And also, uh, most interesting thing is those, uh, you, what kind of UID they have provided. Right? Uh, okay. So, if, if we wanted to do more interactive with you, uh, Amici here, we, we're not just, we're not just we're, we're, we can also using, uh, some tool called get tool and then in Linux. Um, yeah. So, here's a picture I connecting to it. I list the, all the UID here. So, if you've ever done, uh, Bluetooth hacking, then you will know the UID is actually the, uh, one of the most, uh, important, uh, information you need to find out. And, yeah. So, and also, if we want to see more details, um, we can enable, uh, um, function from Android phones that, which is in-depth, in, in developer mode, we can actually dump all the, uh, BTLE traffic and then we can, uh, route this log file into a wireshark and start to analyzing every steps of the, uh, traffic. Right? So, if you come here, I request the, the battery level and then we just tell you how, how many battery still left. Right? So, okay. The mobile application is going to be like this. Uh, uh, part of this is actually in Chinese, but it's, actually, it's, I can translate and it's very simple. First, you need, you need to connect, connect to your car, uh, I mean, key. And then once you connect it, there's a couple of function here. Just, uh, lock or unlock it. Right? And also, there's a key sharing feature here. So, let's take a look more. Um, just like, uh, uh, every, probably everyone else, they don't bother to huddling your APK files. So, it's easy. We can just, uh, actual, uh, Java code. And almost like a reading source code here. So, for example, this type, uh, here is just, um, how, how they generate those UIDs. Uh, okay. Now, sometimes, uh, developer go too much, go for, uh, go too far. Uh, um, yeah. So, uh, okay. Um, so, here they, they, they, some, uh, sensitive information inside the code. So, basically, this, this, they, they have this web page inside the code about when I try to access it, it actually mentions, this is like, uh, their internal systems. It's, uh, if you are not an employee, you shouldn't be accessed. So, what, what was the point you leave there, right? Uh, and then, also, well, if you, you're able to understand Chinese, this is, they, they, they left some, so, way so many, uh, funny comments like, what the hell here? Yeah, yeah. He actually said, what the hell. I don't know. Maybe he, he's in a, uh, she or he in, not in a very good mood. Uh, okay. Now, now even more, uh, uh, more fun. So, when I try, when we try to re, uh, try to, to investigate some, uh, systems, we usually, uh, do some, uh, main in the middle, uh, using main in proxy or, uh, burp, we could do the same. Uh, the, the, actually, the first thing I, I expected, I expecting is, uh, uh, to see if the application has enabled, uh, search pending or not. But turns out, we don't need to, uh, all the, uh, uh, to worry about any of that, because it, it completely rely on HTTP, right? Um, so, so we all understand, once the, your traffic go HTTP, so everything is gonna be in plain text. So, yeah, if we able to sniffing with the, uh, in, in your network and then we able to find out some information regarding your, your devices. For example, this is key information, oh, you probably not can see, but it's actually IMEI numbers. Uh, but, yeah, so they, they leaking, uh, all your private information. So, here's one more. Here, when, when we register, register with a system, um, you, you, when you, when you register account, you, you really, they, they, they, they, they, they, they, they, they, they will ask you some, set up some security questions, um, in order to, you, in case you are, uh, lost your, uh, password, you can always have a way to get back. So, yeah, you, if they go through all this process through HTTP, you, you, and when we sniffing it, we are able to find out, uh, um, all your answers. So, maybe in the future we can, yeah, some, find a way to hijack your, your, uh, account. Right, so, uh, this is summary here. Really, uh, unmaking application communicate with backend server completely rely on HTTP. So yeah, no more PRAC. But there's more here. I was going to talk about later. I'll show you how actually leading us to compromising the, the, the AMI key. So there must be some encryption, right? Because in their manual they actually put specific mention their product is using Bluetooth 4.0 technology but they are using very secure, unique, AMI-owned proprietary encryption. So, right, cool. This picture I, I borrowed from the, the official website. As you can see they, they put all the fancy words there, right? Maybe just, I don't know, try to scare you off maybe? Right, so, but still I, I, I, when I look at this picture I always get impressed. Wow, they, they are, they are spend much effort in their product, right? But anyway, let's, let's, yeah, let's, let's find out if this is true or not. So first I like to do some physical access. Now remember, um, the AMI key by request we have to left the key inside the car, right? So maybe those theft will not, um, can, a simple way to do just breaking your glass by force and get your key. They have the key, however they cannot connect in to your key to, to, to, to, to start your engine, for example. So, so, so, so, so, so, so, so, so, so, that's exactly right. Uh, so uh, fortunately we have that, uh, to for example. Um but what we can do here is there, is when you get a blank key, uh, we replace the Chip a lot from the RF module from the AMI key to a blank one. And then that way we can actually just re-unlock you know the vehicles, right? So here I would like to play uh, very simple uh, uh video just to prove my point. That would work. Yeah, the car is, really locked down, so now we justå­¸ using a blank key with the chip replaced. Yeah, very simple. Yeah, it's working. However, this process involves kind of violence. You need to actually break in. Hold on, just let me go back to the... Okay. You need to break in the glass, right? So I don't like this. So I don't like this method, but it actually works. So, okay, let's do some RV jamming, right? So when we start to research a little bit more, I found out that it's quite popular in the theft world, maybe. Those thefts like to use the device called car key jammer. So basically, they can actually make a lot of money from it, even just by selling those key file jammers. So the way it works is really simple. When the thief will use the car key jammer, the thief will just simply wait in the car park. They can't turn on the key jammer. And then, say, some waiting, maybe in a rush, they just simply press the lock button and then just run away. They didn't notice that actually your car, it doesn't actually lock. So let's see if then you can just go get in, take the goods from you, right? So, but since AmiKey is a smart key, right? So I wonder, is AmiKey smart enough to detect, to avoid in this kind of situation? Yeah, it's kind of attack. So turns out, maybe it's not. Because AmiKey is actually a one-way communication. It's really just you send, you're using your mobile phone, sending command to the Bluetooth board and Bluetooth will send, trigger your green RF module to send unlocking or lock command here. There's no response from the green board, say, if it's working or not. So here I'm going to play another very simple demo. So, I'm going to play a demo of the AmiKey remote. So, yeah, okay, just a little bit quick. Yeah, well, you see, when I press the button here, we can see the, the, the signal is, so that means that, that, that everything's work, fine, okay. Um, oh, sorry, it's too quick. Okay, so I'm going to, I'm going to, I'm going to send out uh, and then I'm using a, a yardsticker to send out uh, uh, the jamming signals. Alright? And we're back to uh, we can see clearly that uh, that your frequency buttons are being occupied. Now, let's see again. When, when we press the, uh button here. The LED is going to light up, it means that RF module is working, is sending all the signal. But that actually it's not working and from application we have no sign of it so we cannot tell if it's working or not, right? Really. So, yeah. The AmiKey will not be able to help to avoid the jamming attack. Okay, right. Now, so what's next? Uh, next, uh, I recommend you check out Sami Kamker's talk. He, he gave a presentation a couple years ago regarding, uh, called a, uh, drive fit like you hacked it. So basically he found a way called a roll jammer so you can use that to bypass the, uh, uh, Q-rolling, uh, a low rolling code, uh, this, uh, mechanism. Um, yeah. However, um, the AmiKey, the RF module is, it go, it's gonna be vary from different models. So, because, uh, for example, the one I, I, I have is a talk dedicated to home dock. Um, but it doesn't mean if my, uh, you, if you want to play with, uh, uh, uh, maybe Volkswagen, they, they have different RV module here. So which means if I, I, my, but my goal here is actually com, I want to complete, complete, uh, compromise this, this, the key. But if they have different modules, I, I, I won't have the source to buy every one of them. So, yeah, I, I did, I, so I start this stage but, yeah, I recommend, I recommend this if you want interesting to hack it more in a RF. Um, yeah, but let's, let's look at the key sharing, right? Since this is a very cool features. Um, the way it works is very simple. We can create, uh, uh, a name for the key you want to share and then there's a timing here. You can, you can set, uh, permanently or you can, uh, say, uh, the time, set a little time limit. And then the key, as I mentioned, is only up to 20 users. And once you reach that point, uh, the, the application will not allow you to go any further. So, once you create, uh, the, the, the key you want to share, then there's the only, uh, couple ways you can dispute it to the, to the, to your friends, right? So, one is you can just, it will generate a, a barcode. You can just, uh, scan it and then get the key. And then there's, you can send the, the key through, uh, text message or you can just copy control, uh, copy to, to your friend. And then there's one, one interesting way here is actually you can send your key to your, uh, to your friend. Through WeChat. Now, WeChat, aka Weixin, is one of the popular, uh, IM software in China. So, probably everyone has one of them. So, once, so, so basically once your friend get those keys, you can simply, again, you type into the activation window and then simply activate it. And, and then you're good to go. So, what could possibly go wrong here? Remember I mentioned that, uh, their traffic completely on HTTP. So, basically, when you, when, when they send out, uh, there's, uh, uh, interesting behavior begin, uh, in the very first stage when they try to dispute your code to, to your friend, they actually gonna send the code, complete code in plain text to one of their website. And then website will respond with a shorter, uh, URL. So, maybe, uh, that way it's easier to, to share instead of very, uh, very long. Right? Now, really, inside that URL, you just, you're gonna return back, uh, uh, entire key anyway. So, yeah, if we can do something in the middle and we can simply sniff it and we got the key. Now, from client side of it, we can also do, um, uh, when we, when we receive the, the key sent by the owner, it's actually, there's a barcode here. Uh, we can, once we decode it, then we get another URL here. And really, again, it's, it, it, we have all, uh, uh, actually all the, uh, virtual keys inside. So, that means if we're sniffing it, we're able to unlock a key, a card. So, here I, uh, just play one more video to, for, uh, for, for my point here. So, oh, sorry, yeah. So, yeah, here you get, uh, the key from, uh, by sniffing it. Main, uh, there's no main, main, uh, question. So, and then, uh, you can, you can, you can, you can, you can, uh, you can, uh, we can just type this URL to the browser, and then we're leading us to, uh, activ, activation page from our army key applications. Now, once we register we set a, a name that will work to set a simple name for your key to remember. Okay, uh, we got, uh, working. We try to lock and lock. See the light up. So that means if we simply by sniffing your code, key code, that will work. Right? So, yeah. Okay. Um, yeah, again we can see that signal from it. So just, yeah, it will work. Now. So once you, if you are coming car owner, when you find out that your car been stolen, what's the reasonable, uh, what's the reasonable next move? We want to cancel it. Right? Okay. Ah, sorry. What we do is. Uh, yeah. So let's see, uh, the cancel it. Cancel. When we try to cancel the car, this key, what, what going to happen? So, right? So, let's see, let's see, let's see, let's see, let's see. I try to, I gonna cancel it. So, alright, it's canceled. So, now, ah, you see, you see, if we still able to, to lock and lock your keys, what happened? So, I could, maybe it's because we're connected to it. So I, now I disconnected and reconnected again. Still connected. And we still can turn off your, your, your keys. So, what the hell going on here? Let's go back to the, uh, uh, owner's application. Uh, let's go back to the, uh, owner's application. You see, it actually mentioned here, is the way the work, the update, you, we need to, uh, from the owner's side, we have to, uh, to sync nine with, uh, uh, army key in order to update the cancellation. It, it, it, you see what I mean here? The, the logical is really, if you lost your cars, you lost your keys, how can you can reconnect your key to re-cancel it? Right? So, you're never able to cancel it. Okay. Um, so, if you cannot cancel it, what about, let's just wait until you expire, right? Will that work? Uh, yeah, another video. So, when, when I try to do, uh, uh, try to, to research a little bit on timings, I try to bypass this. So, by, by doing that, I, uh, I'm time back to few days ago, so I should see if, uh, it will not work. Right? So, so here, see, uh, you, career says the, the car is already expired and the time, uh, is like 1 30. The time, uh, the car is by, x, expired right? Now, even the car is, career said is expired, but still work. It's still connected to it. And yeah, locking, unlock command works. But what's what's going on here? Even the card owner on the screen says it's already expired. But actually we're still, from user side we're still able to uh operating the ME keys. Right? Yeah, still work. So uh let me just further through this. So we're still working with the confirm. The time is 140 now, 143. So yeah, it's already, it should be just expired. So again, in order to let the timing actually expired, we have to connect into our ME keys. Right? We have to update this information to our ME key. Now again, if you, if you share a key, other people, other people has your key and they have your card, how can you connect into it to, to, to, to say it's expired? Uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, you can't. So that means you're expi-, you, the key never expired. Right? So I think they have done very funny, uh, logic on this kind of, uh, key sharing. Okay, so what about the boot tools? They, as they keep mention they have very strong, secure uh, encryptions. Let's find out if that's true. Uh, so, again I, when I analyzing it from the beginning, I'm gonna traffic, they keep sending, uh, same, same fit, uh, same command to, uh, direct request to the, uh, particular UID and that UID will respond to some kind of random number here, but for now we don't know what that is, what that's do. So, and then following will be another 70 bytes of the long, long, uh, random strings. Again, we have no idea what's that, what, what was that. Um, but finally here, and if you, you have ever done, uh, uh, uh, research, you will know, uh, what we, if we want to open, uh, smart locks or any sort of, uh, virtual device, we can just simply write a, a value to your, uh, uh, UIDs, right? Um, now, sometimes the job can be easier because they always constantly write a fixed code. So, once we have this fixed code, fixed code, we can, we can, we can, we can, we can, we can, we can, we can, we can, we can, we can. And now we, we can, hear the bought, in an, eh, customer coming in call out. So it's probably much, scan off, scan over. Um, but now, eh, I'm actually sending two, uh, fixed code here. I think, this, uh, one is actually simulating, that, that press the button, the other one is therals it. So it's actually tool movement here. Um, the reason why I know this is, uh, unlocking command because I, I actually pressed it three times and I see the three identical card, uh, code, ah, uh, so let me turbines better run. So, two Augusta arms and inside of this log file. So, can we, is it getting over yet? Can we just simply write this two code to the UID and get unlocked the car? Unfortunately, the first attempt failed. So what's going on? What happened is there is a, they, they, actually in order to lock and unlock your army key, you, there's a, some kind of logins, uh, process involved. So you take a look at the code again, um, we, I check the code here, it's called a login record package, so from here we, we, we're able to find out how much, uh, uh, what kind of parameter we need to, um, to provide to, to, to create a login packet, right? So then I check the, uh, uh, that super secure algorithm, what we see here is XOR all over the place. So really they're just relying on XOR to, uh, with the different parameters. That's their, their secret, uh, formula, right? So, turns out this is the login protocols. Remember the first, uh, I mentioned that you, uh, in the very beginning they will send, uh, fixed, uh, command to the, to the key and it, it will give out some kind of, uh, random value. And that's the seed to, to get it from your key to, to encrypt it with your, uh, to, to generate another encryption code. So once we have the encryption code, we're able to create, uh, a login packet to log into it. And that's where you see the, uh, very long 70 bytes. And that's, uh, uh, uh, login packets in there. So once we log in, we can send, uh, those two fixed commands to unlock the car. And if, if we success, we, we, we, we're going to get a response packet that was to, uh, OXAA. Um, yeah, so here is really the, we need to find out where's the, how do we find out this, uh, encryption code. So we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we, we So once we look at the code again, we were able to see, uh, it's actually the, the way it work is they, we get a random key from the Me, key, only key, random value here. Um, and then we act, again, it's XOR with a, a secret key here. And the secret key is a, a fixed random, uh, keyword number again from the device initializations. Um, but turns out it's actually the secret key, they only, they only ran out of only one byte. right? Um now here's the login pocket and they they have uh all this uh parameter we're gonna need to create one to create a login pocket right? So I notice one over here is uh called encrypting data right? Uh so uh date so I check the date how they generate the date as you can see they actually see the uh calendars so and then they have a secret uh method here so you're using current character calendar date to minus 2000 and you get the uh the key value and then you uh convert to the uh OX uh convert to hex and that is your one byte encryption key. Right? So for that we can uh so for example uh for example uh this year is 2018 we minus 2000 we get 18 and convert to to hex we get 12 so that is our uh encryption key here. Um and and and then once we do that we can um create our uh with with our other value with need from Bluetooth through Bluetooth traffic we're able to create our own uh login pocket. So here's the uh uh you probably cannot see clearly but yeah so uh the the Python call very simple PLC here to uh communicate to to create our own pocket and then try to unlock the car. So but there's a uh interesting here thing I it's a surprise I didn't expect to see that is that we remember I mentioned in order to get a car it's supposed to see uh AA back but in the response I I actually see this the OX6 t6 so what's going on here. Um I spend uh we spent a many night to to try to figure out what's going on uh the the algorithm is so easy to understand why it's do not work. Eventually um we take a look the uh uh the firmware that uh provided in IPK file is for the Bluetooth module. And we find out that OS66 code is actually means that error codes indicate us here is we actually need to fully, we actually need to have this, put everything back in one piece. Remember when I do the research I take those two parts apart, right? So if apparently uh uh AmiKey has firmware function here error codes say here if we take apart it will not work, right? So we have to put it back together. Okay that's fine we put it back together. Yeah we got the locking pockets working fine. So now remember um as those uh locking pockets we we got is actually from a uh a um a Bluetooth lock file. So we have to put in lock down um in in a in a protocol we we're not we're not able to do that. So uh an easy way we in order to get those information is through to sniffing the pocket. So but that's easy to do. We can using uh uh we're using this application here called TI, Smart RF, uh Smart Sniff. So you can see we sniff all the um that's those 70 bytes of the encryption uh uh data and also the command not uh unlocks the data. So I can see that it's on our card. So yeah again we can get exactly the same details from the dump files right? So once we have enough information we can just create our login pockets right? So really the one byte encryption key is not secure right? And SOR again is not secure. And if we can easily to get access those information is not secure. So here I'm going to play one final demo just to prove my point it will work here. Alright. So I have it running. So I send it three times as you can see we log in successfully and then we send it back to the unlocking commands and it will just burp, burp, burp three times and then that means everything is working fine. Right? Yeah. Okay. Alright. So as a responsible disclosure I like to contact the vendor maybe just tell them or maybe just apply a CV if possible. However I contact them a couple of times through the telephone number, numbers here, emails. I got no reply at all. Right? So yeah. Anyway this conclusion here is the security by obscurity is not definitely not going to work. Um yeah we really we have to test our product in a good way before actually going on the market. Right? So yeah that's my presentation today. Thank you. Thanks.