Charta Aetatis Cyberpunk

Console For you Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · DEF CON · · 39:22 runtime

DCSG1 - RFIDrive: Access Badges for Cars - Kamel Ghali, Smriti

In the wiki Also namedCar Hacking Village
Transcript 7601 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

I'm going to go ahead and officially introduce uh Camel and Seriti and they are going to talk about uh ARID access control for cars which I'm sure should be exciting. So a big round of applause for the two of them.

>> Okay. Uh this is a new experience for me. I I talk a lot in a lot of different places, but I've never done like a silent stage here. So, if I'm too loud or like too low, like just like give me like a like a up or a down thing to give me, you know, give me an idea of of what I need to be doing better. Um, so yeah, today uh my friend and I, uh, my friend Sabriniti and I, we're going to be talking about RFID technology in cars, uh, and kind of the different, you know, maybe not so unique applications of it, but take a look at how it's been attacked in vehicles systems specifically. Um, but we will be covering, you know, the basics of RFID if that's something you're not really familiar with. Uh really quickly before we get into the uh the content um do some quick introductions. My name is Camil Gali. Uh I'm the CEO and chief scientist at uh Mo Connect. Um but I actually live in uh Tokyo in Japan for about six years now. So I've been living in Japan since 2020. Um a lot of my

experience is in automotive cyber security and cyber physical system security in general. So anything that you can touch in the real world that also has a computational or aspect to it is what we'd call a cyber physical system. Uh, and that's really where I like to spend most of my time um, you know, in my work. I'm here in Singapore not only as a speaker but also as a member of the car hacking village. So car hacking village is a one of the um, you know, longtime standing village communities of the defcon you know ecosystem. Uh, and I'm the vice president of said organization. So car hacking village is a nonprofit organization. We attend different events around the world like Defcon, like other cyber security events in different countries where we talk about the need for cyber security in vehicles um like you know what we'll be talking about today. Uh so I typically handle the events outside of the north North America but we're also going to be you can see me at Defcon in North America in Las Vegas as well. Uh and then finally I'm an organizer for besides Tokyo. If any of you had any, you know, looking for an excuse to visit Tokyo, come by uh in about three weeks. We'll have besides Tokyo on May 16th, 2026. So, you know,

the weather's great. Come on down. Uh I cook pizza. I have two cats and my main selling is, you know, yapping as a service. So, that's really what I'm doing here. So, please introduce yourself. >> Hi all. Um as Camille, I would say it's also a new experience for me speaking like this with headphones. So and sorry

similar to him I am also very loud so please let me know if it's really hurting your ears and for the introduction I am smitti gaba and I've been uh doing hardware hacking IoT assessments embedded systems automotive security RF and whatn not I'm just a very curious person doing all of these things it's been more than seven years now in the industry in this field and uh currently I'm working as a senior security research at ALP Petronic it's a EV charger manufacturing company and I do a lot of stuff there so it's related to the same stuff and um yeah I'm kind of person who buys a new appliance and opens it before even plug it in uh plugging it in. It's just my love for the PCBs and um I also gave a training at Defcon just two days and I'm also a speaker now. So yeah, here we go.

>> Okay. Uh let's get started. Uh I think your slides are coming up first. Go take us away. >> Okay. Um so we both are going to talk about RFID today and let's get started with what exactly RFID is. Now if you think around before we get into the technicals RFID is all around us. We everyone sitting here experiences it every single day because think it like that. You go you come with metro you go around in your offices. You tap your badge and you are in. But have you ever wondered how this thin plastic card without any battery is even working? I mean, it's just magic, right? There's no battery in it. There's nothing around it. But still, as you make it closer to the reader, it just works. And not just that, when you do payments, you might have sometimes experienced that you tap the guard, it doesn't work. Then you switch it to some angles, then you be like, "Okay, maybe tap here or tap there, then it works." Why is that so?

Why sometimes the tabs fails? Why come sometimes it's like completely successful. So we're going to see how that works. What is RFID and how then we use it to hack the cars.

So again RFID you can say it's like at its core it has two elements. One is the reader, the other one is the tag. The tag is basically the card that you basically tap on u uh the system and what you tap on it is the reader. So we're going to also see in detail that how it basically communicates what exactly is happening over there. What is the role of the reader and what is the role of the tag and all that stuff.

So RFID reader I am now going to bore

you a lot with the technical details and some physics. I mean of course you guys are out of colleges maybe you're still uh learning few things but physics never leaves you so you can't escape it. So let's go see what's what's exactly happening when you actually tap that card. So how does an RFID reader works?

Basically if you see here in the module

there is a host system where when you actually tap on it it says pay. So when you click on pay, it sends a command over to some serial interfaces inside it. It has a control unit basically doing a lot of technical jargon and more stuff. As soon as it encodes that command, it has done some uh operations on it. It sends it to the main module which is called the radio frequency module. And this radio frequency module is the main brain of what is going to happen next. So what this radio frequency module actually does? So you have a little oscillator circuit. It only generates a signal basically. So the it received a command. It tries to generate a signal over it. Then it sends it to the modulator because sometimes now what it has is just raw byes and sometimes you want to add some more information on it, load it in a specific format so you can send it over and then after the modulation it just goes to a power amplifier.

Why is that so? outside the world as soon as it leaves there is lot of noise. So you need to amplify a bit so the other reader or wherever it is going can actually understand what's going on or receive it most importantly and then after the power amplifier there is the most important element here which is the coil antenna. This is the one that is responsible to receiving whatever came from the oscillator circuit as a signal after modulation. And then the coil antenna basically tries to send it towards the reader. What is happening right here in the antenna is that at this point it has started generating an electromagnetic wave. Now what is an electromagnetic waves? So it's basically a combination of a time varying field. I mean I guess you all would have studied Faraday's law right? So as soon as the antenna receives all the information it starts generating the electromagnetic time varying waves and now it's radiating it outside. So what we have so far we had a signal that got generated from the command from a payment system.

It came through and now it's just emitting and we have a radiation coming out of it. Now we're going to see how that radiation is being treated by the other side and that will actually solve the mystery of how that thin plastic car without nothing is just working like amazingly magically. So here you see that that radiating uh electromagnetic waves. As soon as you

bring that card which also has a coil coupling antenna on the other side as soon as you make it come in contact with the reader, it comes into the electromagnetic radiation that the reader created and that induces current

in the other side. This is actually Faraday's law, right? And that current

now flows into the transponder circuit. That's how it gets energy and source of power and it gets activated. Now some transponders may have just UID. So you don't need microchip but some also has a microchip. So this is what powers it and then it does its own stuff. It understands the signal. It responds to it, packs it back and send it through the same possible way. So that's exactly how when you do it, when you tap it, that's how it gets powered. That's how every communication goes through and that's how it works. Now the next time you will go through the access systems on the metro, you know that it's not just a simple tab. There is a lot happening behind that. So you can also see in the image right there in the transponder, this is an antenna, the coil inside it. And this is what gets energy from the EM radiations that got generated previously.

Now there are two types of RFID. You might recognize these. So one is the low frequency RFID cards or tags and the other one is the high frequency ones. On the first side you can see there's a cow and you know there are animals that they get tags on them. We also have tags that we put on we put on our bags or somewhere to track them. And then we have some cards. So most of the time when you enter your company, you will receive a card to access the specific areas of your office, right? But that card can vary. Sometimes it's a basic one exactly like what you see in the images. These are low frequency cards, but sometimes it's a different one. And we will talk about it when we go to the high frequency ones. Now what is exactly the difference between low frequency and high frequency? Right? I mean so the low frequency ones they have a low frequency which is that it runs on around 125 kilohz but ironically it is a longer

range card not a shorter one so you can actually access them from a bit of a long distance. Why is that? Because as you have seen in the previous image there's an antenna in those transponders. In these ones, they are like very thin transponders uh very thin

antenna wires wrapped around. So it works for the longer ranges as well. But the problem with that is the data that gets transferred is very low. So that rate is low. And because of that you will see that all these low frequency cards are only based on just a tag because it's just communicating a serial number or tag ID. I'm number one, number two, number 100 and so on. Now let's

come to the high frequency cards. What does that mean? These ones are more common. You use it more more than ever. Like you have a transit pass, you have your visa cards, your payment terminal cards, you have your key cards for the cars as well. The difference is that

these one can perform more operations. So they have higher data rates like they can perform cryptographic operation, authentications and all that things. So these cards are more useful when you have some secure systems like your access to the offices like your transit system. So nobody can just clone your card and use your money on that and these have shorter range because of this very reason. So the data transfer is faster and it is more secure and you

have to come really close to make it work. It doesn't work from a long distance. So you have your own card until unless you come close it won't work. So that's how they are designed the way they have to be used.

Now here you will see some hacking stuff that I tried to do. In the first image you will see that uh we have something called Proxmark. There are multiple tools that you can use to access these cards to understand what information lies there, what type of card it is, what is happening and what can you do with it. So the LF parts as I said they have no security. They're beautifully designed. It's higher uh longer range, less time they take but no

security at all. So it's very easy to just read them. There's just a serial ID. You use it, you clone it, and you can get done with that. So you can see here that there's an ID and at the bottom I try to clone the card and use it. And the beauty is that this is being used with the prox marks and the software is so amazing. The script is designed well that it actually shows you what you can do next. So it's very helpful. And the next one you can actually for example the other side of the cards that I was showing you where there are keys there is authentication and cryptographic stuff happening. You can dump the keys using the same thing because sometimes when you read these cards and you're trying to read some sector or information, it will not let you because it is protected by keys.

It's some sector is protected but the others might not be to be able to read them. You need the key that was used to encrypt that and that's how this script if you run some commands it will also dump it for you. it will find it for you and you can actually read the secure data as well and also clone that card afterwards. Put that on some other information. Clone your colleagues cards maybe do some yeah hacky stuff. I don't want to mention details about that.

Yeah, I will hand over to Pamel now. >> Thank you. Thank you. Okay. So, uh I'm

now going to take a quick step back and we're going to talk about what I like to call, you know, technically RFID in cars, right? So, if we expand a bit, so Samita gave us a really beautiful deep dive into the technical um explanation of what really makes up an RFID system, right? You have the reader, you have the tag. Uh but the kind of essence of why it's called RFID, let's take a, you know, quick step back, right? Okay, the RF and RFID stands for radio frequency, right? We typically will use this, you know, term to describe any kind of wireless communication, any kind of wireless transmission or radiation that we're using for some purpose, either communication like sending data like your phone does on Wi-Fi or Bluetooth.

Um, but specifically here, we're using it for ID identifier, right? Uh so in a very broad sense uh your key is you know

the key to your car with like a key fob either if it's a clicky one or if one's it's if it's one of those newer ones with like the passive you know RF kind of transmission that gets sent out. Uh you could very well consider that to be an RF ID because your key is using that radio frequency transmission to identify itself to your car. So this kind of broader look at what RFID really means,

excuse me, is very relevant for vehicles because, you know, when a car is traveling very fast, you know, on the street, um, it's interacting with a lot of the world at once. And so in situations like that, while, yeah, it is like, you know, a little bit farther range than like an NFC card or like a RFID tag that you use to go into your office building or raise your hand if your hotel you're staying at has an RFID key like mine does. Yeah. great party trick. You can copy those with your cell phone. Sometimes you don't even need any extra hardware and your friends will be horrified. They'll be like, "What are you talking about?" Right? It's great.

Um, but you know, that same concept of what RFID really is is useful for cars because they use it in a different manner than we're typically uh accustomed to in our daily life in opening our hotel rooms or our, you know, the doors to our office. So this is an example uh a very very common you know well-known I guess vehicle hack that's been happening throughout the years as these passive keyless uh excuse me these passive uh RF keys began to be popular in the industry right um I don't have a video of this one particularly but this is an incident where someone is stealing a car by executing what's called a relay attack against a key that has a passive radio signal uh that they use to unlock the car right typically if you have one of these keys The way it works is that you bring the key close to the vehicle because the key is radiating that signal, that identifier, but it's not very powerful, right? It's very weak because it has to fit inside this little form factor. It's got a tiny little battery. You don't want to burn your battery out in like two weeks. So, it needs to be very, you know, passive, very, very, very light.

So, what this uh this individual here is doing is they're taking a big loop of wire, using it as an antenna, and then they actually will connect that antenna to an amplifier to basically increase the power of the signal and trick the car into thinking, oh, I can sense the the RFID signal. I should be, you know, very in close proximity to the car, so I'm going to actually unlock. And you can also, you know, use this kind of relay attack to start the vehicle and drive it away, right? something I like to talk about when I uh you know I I've taught you know car hacking at at Defcon in the past. I taught it at Defcon um Las Vegas last year. Did the car hacking training um in a couple different environments now. Uh and one of the things that a lot of people are really interested to hear is that you know [clears throat] automotive cyber security which is a huge industry in and of itself it was born out of the fear that oh what if the self-driving cars got hacked and crashed into things right? But if you look now in like 2026 and what's the most common like actually empirically observed uh form of cyber crime targeting vehicles, it's mostly vehicle theft because you know most hackers or you know criminals are not really interested in hurting anyone or blowing up buildings. They just want to make some money, right? And so this kind of attack against the RF systems inside vehicles is mainly weaponized to help steal the car because that's how you can profit, you know, most directly if you're interested in hacking vehicle for, you know, nefarious purposes.

Excuse me. Another interesting example of what I like to call technically RFID in cars uh is actually relevant to um I think a couple places in the world, but I know this to be called the ETC system. This is the electronic toll card system. Uh, so this is a look at a system that's very common place in Japan. So I've been living in Japan for six years now. I don't actually own a car because I live close enough to like the big city where I can just take the train everywhere. And I actually like that better. I don't want a car. Uh, funny enough. Um, you know, you work in car security all day.

You really don't want to get in a car and drive. It's just uh one of those things, right? But the etc system is

very very widespread in Japan. And how exactly does this work? So this uses you know radio frequency communication to allow the you know the car the kind of the passenger the client device authenticate to a toll road. These toll roads have these you know roadside um infrastructure devices that will receive a signal coming off of the vehicle and authenticate the vehicle's you know subscription to a toll base toll service. I think there are similar things in like the US and Canada. I think they have like the fast pass if you travel between the US and Canada. Very similar. Other parts of Europe as well that have tolls on their roads.

They have that kind of there are many different ways to automatically calculate tolls for the people who are driving because you know stopping and paying with cash is kind of you know 1995, right? Nobody wants to do that anymore. So we have technology now. And so what the car is doing is it actually has a special module inside the vehicle that every car sold in Japan has the ability to send this kind of communication. If you see here on the left, this is a look at what that ETC module looks like. This will connect to the radio inside your car. And that car will communicate at a very high speed while you're driving down the toll road with that roadside antenna and basically say, "Hey, I'm a subscriber. Here's my ETC card. I would like to pass through this toll gate. I don't want to stop.

Just charge my account." And you're identifying your account to this toll system. And that's the identifier, you know. So, you could call this an RFID. Funnily enough, this is actually an interesting use of what's called DSRC. So, um, anybody here, you know, done any research on connected vehicles or V2X technology in the past? Maybe one or two people. No, fair enough. So, DSRC is uh kind of like super Wi-Fi. It was Wi-Fi. It was an addition to the 802.11 standard that was developed pretty much specifically for vehicle to everything communications because cars had, you know, you know, they're moving very fast. testing a lot of bandwidth. They needed more, you know, resilience and robustness in their communications, but they wanted to adopt like the Wi-Fi paradigm for communicating wirelessly outside of the car. Um, and this is kind of a meta

narrative kind of thing, but over time, DSRC started to lose favor compared to like cellular communications and stuff. So now vehicles will actually communicate with their environments with cellular technologies more often. Um, but DSRC is still in use in some parts of the world. uh here in Singapore actually I believe that some there are a lot of buses that the uh you know the transportation industry or the transportation um authorities in the government have started using DSRC to track like when a bus enters its like resting area. I don't think buses need to rest, but you know, at night when the buses are done with their work, they all go to this special parking garage. They will use DSRC to communicate with the tolls there to actually let them inside.

And so, in this exact um uh excuse me, in this example, DSRC is used to carry that subscriber signal from a dedicated bank card. You can actually go to the card, not the card shop, the the bank that gives you a credit card and they will give you a separate etc card specifically for this application because this is just how tolls are managed in Japan. And this is another interesting area um where RFID is in use in vehicles. Unfortunately, I don't have any like case studies for this system being hacked in a car just because I feel like not a lot of people have looked at this particular system from the perspective of security um in a vehicle environment until now. And that's the kind of thing where I would now pause to make a very quick call to action. If you're interested in hacking this kind of device, uh come visit Car Hacking Village. Uh I'm hoping that next year or this year at uh Las Vegas we'll bring some ETC devices um to the to the uh to to the village and you'll be able to test out what they're like, how they communicate. Uh I would love to be able to do that and then hopefully have some research to publish on that in the future. So how is it used in the more

intuitive way though? Right? We talked about RFID cards and their most common application as you know keys to get into buildings and stuff. Well, you can get into a building with an RFID card. You can get into a car with an RFID card, right? So, I think the most well-known example of this is the Tesla uh card as a key, right? I think the Model 3 was one of the very first vehicles to adopt this technology. And you can see here on the left, I've got a photo of a guy with his car that says Tesla very proudly. He's tapping it on the windshield um or the sorry, the the side window of his car and it will unlock and he'll be able to get inside his car. And this is, you know, pretty sexy, right? People like the idea of using a card to like get into their car. It just feels nice, you know? And so you know companies like BMW other OEMs manufacturers have also started to adopt that kind of card as a key paradigm right. Uh so on the right you can see here this is an actual BMW card key uh that's being used but you know these kind of cars uh even you know with their keys they have uh some risks right in how they're you know communicating.

>> Yeah. So you can see on the title of this slide it's called death on fire. Just to be give a bit of context to some people as we as I showed you previously that there are different cards low frequency high frequency the high frequency ones there are multiple uh different cards which support different levels of cryptography authentication storage and they go by the name myfare classic ultralight comp compatibility and all these things one of them is known as desk fire the encryption on that is really extensive and it's very difficult to crack the keys out. But is it can you really not do anything with this card? We will see. So in this image

here, you can see what I basically did here is that as Camille said that there are key cards when you approach the card, uh when you approach a car with the card, you maybe scan it near the door or maybe the reader is somewhere else in the car. You put it, it will unlock your car, you get inside. And we also saw there was this guy with a big wire trying to get the signal out there, pass it on and open the car. But what was it? It was a relay attack. He didn't crack any keys and he didn't need to. All he needed to do was just take the messages, whatever was happening in the signal, make it more powerful, relay it to the key that is sitting inside and get it unlocked. And we will see how that communication actually works. So as I s also showed you in the previous image there was a prox mark a card on top. So what we do is we take a key card we put uh that we put the prox mark in

between the card and the car. So you can actually sniff what's going on in the communication to understand basically what is happening in that communication. Here is an example of uh what's happening to a car. In the first part you will see it sends a wakeup call. So the car reader is continuously radiating its signals to see if there is any cards along there. Is there any card around me? It's continuously broadcasting. As soon as the key comes in close contact, it takes that signal. It responds to the wakeup call. So that's what really happening here is exactly. So there's a wakeup call happening in the next part.

the car the reader it requests for the unique identifier of that key that is it really belonging to me like is it really the right car so that happens and then the car responds with its unique identifier it's in two phases because it is not able to give it in one part so it comes in two parts and then later on so

this was just exchange of a bit of raw byes right now starts the main authentication process so then there is a rats command and which basically upgrades this communication to another level. It's more like a TCP handshake you can say but not exactly. So what it does is it tries to send it says okay now I'm upgrading it. We're going to do some authentication. Let me verify through some challenges. So the challenge response mechanism starts right here. As soon as it starts that the card says okay let's go. It shares its own capabilities like we do in TCP handshake. It shares oh I support this protocol. I support this level and so on and so that's what really happening here and right in the next one you can see that the reader selects the car key application so there's a car key applicant the applets behind there which you need to tell okay let me fetch that let me start then now I'm going to start a authentication process with this card and check if it's really here and do the authentication process and in the very last part you can see that the reader sends a challenge change the cards accepts it in between there are some more um operations happening it's just a time of wait so the card says I need some more time to process what you sent right so it process it it and it responds to this challenge right away and then it successes it will open the lock it you will have access to the car otherwise you won't and we will see how this communication we only need to relay it we don't need to crack the keys and we'll see how it goes ahead Thank you. Yeah. So, uh, as Sami said, you know, the automotive industry realizes that, you know, RFID cards have these attacks that are very, you know, common or popular against them like copying card keys. And these do sometimes involve breaking the encryption to actually retrieve the contents of the card and then replicate or recreate a new version or I guess you know, copy the card, right? But like she just said, even if the encryption is like ironclad, if you can relay that signal between, you know, the the car and the card where they have this communication, this cryptographic communication for authentication, it doesn't even matter if it's encrypted.

You just pass it is pass it, you know, back and forth as it is, right? Uh and so these kind of advances in security around the the vehicle, you know, cards has, you know, advanced a lot in recent years. It's a bit of a cat-and- mouse game, though, because the hackers are still looking for ways to get around these advanced encryption uh techniques. So, I have a good friend, his name is Kevin. Um, he submitted a talk to the car hacking village a couple of years ago. Um, so I'm I'm borrowing his likeness for this this presentation. Kevin, I love you very much. Uh, and his talk is available on the car hacking village um archive on YouTube. So, if you do look up the car hacking village presentations from past years, you can actually find this presentation up there. Um, basically he did some work reverse engineering exactly uh the Tesla card system, right? Uh so he was actually able to demonstrate that it was very you know easy to perform a relay attack uh on a Tesla Model 3. Uh and that was you know using the card key that they had um you know as part of their their vehicle key system. Uh so basically he discovered a lot of different vulnerabilities in the system uh including like pins uh the pin you know generation lacking you know sufficient randomization only being you know four digital numbers for the entire thing and there was no rate limiting on brute forcing uh and no backup time right and so he this is a great presentation I encourage all of you to look into this in more detail it's not really my research so I I won't you know do him the discredit of going into it like that um but I can show you this very funny um demo video of him actually showing this off on his Twitter account of how he performed this attack. Right?

So, if you take a look here, uh he's in an empty parking garage with a Tesla Model 3. He's got his friend going here trying to try the door. And if you take a look down the the alleyway, you have a gentleman holding up a big antenna, right? Like we saw with the uh the guy trying to copy the the key through the door. And then he's able to send that signal over over like a Wi-Fi network or whatever. And they replay that signal back next to the vehicle and they're able to get inside and make off with the car, right? Is the idea. So really great piece of research uh from a good friend of car hacking village. Um but I do have another you know interesting case study to share with you as well. So like what's the point of these RFID attacks on the car right in the traditional sense of you know what kind of objective you're going towards for your you know attack on the RFID system right if it's typically being used for the lock the actual door of the car the idea is you want to execute your RFID attack on the vehicle you want to get access to the car physical direct access to the inside of the vehicle from there you've got you know the world's your oyster right you can start pulling panels you can start connecting to the canvas if you're familiar with what that is it's like the the backbone of the vehicle communication system, right? You can plant trackers or microphones or cameras or whatever you want. Uh, and the idea is, you know, that's where you can execute what we call like your damage scenario, right? You can steal the car, you can hack other parts of it, you can do espionage, but what if you wanted to work backwards instead, right? What if I told you uh a couple of other good friends of mine actually did some research where they went the reverse where they actually wanted to target the RFID system by attacking the other parts of the car first and they got a really interesting result and this was another one uh that was you know submitted to the car hacking village a couple of years ago. A couple of my old colleagues actually I used to work for um Accenture, a large consulting company in Japan. And so my colleagues actually submitted this research to the car hacking village uh in 2023. And this is another one you can find available on the car hacking village uh YouTube archive. Uh and I encourage you guys to watch this if you're interested in it.

But basically they were doing some reverse engineering [clears throat] of the firmware in the Tesla Model 3. I believe uh the the ECU inside the Model 3 that reads the car when you want to start the vehicle, right? Because the way Tesla uses their key, it's not only used to open the car door and get inside, it's also used when you want to start the car. You have to actually put that card on top of the little like center console area and it will authenticate the key and it will actually turn the car on and you'll be able to drive drive away, right? So, what they actually did was through analysis of this firmware, they discovered an interesting uh vulnerability. They found that one of the functions inside the firmware of this device uh actually had an improper input validation check. So when you would send a CAN frame, those of you who don't know what a CAN frame is, don't don't worry about it. We have a workshop, you can learn about that at the car hacking village here. Um but when you send a CAN frame, you report the size of the CAN frame you're sending, but it doesn't always have to match the actual size of the payload you send. And this is a very like basic you know thing you could check the input for you know very simple input validation you could do but in this particular system it was lacking this kind of input validation to check that hey wait a minute there's a mismatch the data length code of this can frame says it's you know six bytes but he actually sent me eight bytes and so long story short a lot of cool you know binary reverse engineering and testing and validation later uh they found that this you know by sending a CAN frame with a mismatched payload length and data length code, they could actually corrupt part of the process memory and you know a classic buffer overflow, right? So this would cause the stack canary of that process to get corrupted, right? For those of you who do a lot of exploit development, this would seem like a very you know normal step in you know running through the different security uh measures taking place for the the operating uh environment of that process. Right now the problem was in this particular instant the stack canary was actually

not implemented in a way where it would gracefully handle um you know it its own corruption. And so what it would end up doing it would actually end up looping itself in this error state indefinitely until you power cycle the device. Well what's the problem with that? You've basically locked yourself out now. So your security feature that you implemented the stack canary which is designed to help against these kind of like you know memory corruption attacks has ended up locking the poor guy out of his the ability to drive his car. So if you had access to the canvas and you were able to send this um attack you know this payload you could actually prevent someone from being able to drive their car because the RFID reader inside

the Tesla central console or sorry not central console like the the armrest area where that reader is would not be able to read your key. And so effectively you're kind of like locked out of the ability to drive your car. So a very interesting attack kind of a reverse psychology to what you would assume is like the standard damage scenario or attack path for targeting a vehicle's like you know RFID system. Uh but you know nonetheless a very valid application of RFID technology showing that kind of um you know expertise. So uh again that's also available on the car hacking village video archive on YouTube. I encourage you guys to watch that one if you want more details about it. So at this point uh we are uh at the end of our presentation. So just a couple of quick things that we learned just a really quick quick recap. Um you know RFID is a very relevant attack surface for cars. Um not only buildings and you know other secure environments or other places with you have doors the car itself and you know a lot of the interesting applications in there are a target as well. Um there's a lot of potential for attacks on payment and toll systems in addition to the doors right? So it's not just doors right.

RFID is a bigger part of our lives than we really like to admit, right? We use it to pay to get on the subway. We use it for any number of things, right? And that ETC system, excuse me, the ETC system I was talking about, I would love to find some people to collaborate on some research for that. Uh, and then in the vehicles, the RFID system can be both an entry point and a target. Last but not least, you know, please come by and uh visit the car hacking village. I'll be there pretty much for the entire event here at Defcon Singapore. Uh and yeah, it is uh been a great pleasure to to talk with you guys. Thank you very much.

>> Thank you. Thank you so much.

>> If anyone has any questions, I'd be happy to to take them. Uh we'd be happy to take them. If you want to connect with us or ask us questions over email later if you think of something, our contact info is uh up there. But yeah, uh the floor is uh for you all. I think we finished a bit early, but no big deal. Yeah. Yeah. Okay. Excellent. Oh, we have one question here. Yes, sir. Um, >> yeah. Yeah,

>> thank you. Can you hear me? All right. >> Can you hear? >> I can't hear you. I don't have a headset. [laughter] >> I'll come closer. Um, thanks for the talk. So, two things. I think you mentioned that the the card selects the protocol and so I'm wondering if it's susceptible to like a downgrade attack. uh the card selecting it and also when you're talking about the ECU from my own own car which is like 20 years old I remember it's quite an interconnected interface uh there's very little security between it so I was also wondering about whether or not you can attack these sort of areas through the ECU for unexpected areas >> you want to take the first question about the uh the downgrade attack >> yeah so I think I think you mentioned that the card rather than the car selects the protocol or the the application for authentication So that reminded me of a downgrade attack. So can I can I simulate the card and choose an inferior or weak application by design.

So um so basically it's like when it

shares its details it's more talking about the capabilities of which ISO standards it states but I don't have a lot of information on if you can actually make a specific protocol downgrade to make it work backwards. >> Very interesting question though for sure. I think something to look >> that's actually something to research and think about. It's a really nice one. I would say um on your question about like the vehicle architecture and going from ECU to other ECU. So um security boundaries in vehicles are still very much something that the industry I think is kind of improving at. So automotive cyber security has gotten much better over the last 10 years. Um but even as like far back as like three or four years ago, we're seeing vehicles being stolen because certain safety critical systems were on the same like vehicle network as like the headlights. And so you could actually

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 549 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks