So it's my first time talking at DEF CON, so just bear with me. My talk is a bit about all the supply chain and all the areas around the car. So I saw lots of talks are talking about the vehicle itself and like how to hack into CAN bus and how to hack into through the different areas. But my expertise and where I came from is from outside the ecosystem, from the areas beside the car. So I will talk about this in my talk. So a bit about me. So this is me. I work for Simotive. It's a company partially owned by Volkswagen. What I do in my company is we do lots of stuff. We do lots of end-to-end security testing. And what I mean is like really end-to-end, like going from the vehicle itself and hacking into a vehicle but also hacking into different IT environments and trying to go through these IT environments towards the vehicle in different ways. And I will show you part of my, the ways that I do. But then we also go into the components themselves and we mainly focus on research in order to build security products for the different companies. So I have here different concepts I built. Partially I built them, partially the company did. And it's just, this is what I do in my day job. More about me. From the age of 15 I was playing with robotics. I was winning contests around, if you know the Trinity firefighting contest or the first NASA, there was a NASA competition. So I was playing around with robotics from very, from when I was very young. I participated in bug bounties inside car hacking. Different, we won the most bugs awarded last year in a private car hacking event. And most important of all, last year I was on vacation. I took my four-year-old daughter and my wife and just went on one year vacation in Southeast Asia. So that was very fun. And I came back. So it's good. A bit of a disclaimer about what I can say and I cannot say. So because I work with all these different companies, I have lots of NDAs and lots of stuff, nothing in my presentation exposes any of my clients. And I want to really go into technical areas. And so I didn't put any name dropping of any client or anything. And this is very important for me to, so you will understand, like I have lots of examples I cannot show you. So I'm trying to put the examples that I can show you over inside my presentation. So if we start a bit, we look at different connectivity evolutions. The vehicle industry is moving from a very unconnected area to a connected area and different fields which are connected in different types of areas. For instance, the keys. In the past, we had this very old key that didn't have any digital protection. We very fast went into getting keys that are digital, that have a mobilizer and have RFID and different types of protection. They are not good. You can ask Leonard if he's here. He hacked most of them. But then they are getting better and better. But one thing is we need to remember, we have lots of suppliers working with us. So each key, this has the production key, the physical key itself is building, but also the digital, like Siemens and Bosch and Conti are creating all these issues that you need to connect with the keys. And we are getting even more into the connectivity with the iPhone or Android. So we are trying to move the keys towards the mobile phones. And this gives us more connectivity issues. We want to now have a trust with Apple and a trust with Google and a trust with different mobile providers like Verizon. And we have all of this connectivity going on in the life of the key. If we look at charging, it's the same happening. Well, we have the old bottles. When I was in Thailand, I saw lots of bottles and lots of gasoline bottles. But then we go to pumps and we also have a plug-in charge and different capabilities of the charging models. And now today we are having NFC and different charging providers that are not part of the OEM. They are a different third-party supplier that you pay to them through Apple Pay or through the credit cards. And then you have all this connectivity together. Again, in diagnostics, we have the old diagnostics area. This is old engine diagnostics. We went into OBD. OBD diagnostic, the garage and the different service providers want to connect to your car. But then they have this device and this device is also connected to the internet. So when it wants to download data, new data, so how can I diagnose my car? So I connect it through the support. So the garages have support and it is a new... the right to fix my own car. So I can download part of the software. So I'm getting connected over here. And now in the future, cars are getting into remote diagnostics. So I have diagnostic OIP. So when I want to diagnose my car, I just need to have to approve a third-party company or the OEM company in order to get the access to my car that it already has 4G access and is able to diagnose my car automatically. So this is... we are getting more and more connected. And we are getting over to a way that we have different types of players inside. So we have insurance companies and we have content providers that give web apps and different applications, media. We have the repair shops. We have fleet companies that have like different fleet management solutions. And of course, we have the driver and the owner that he wants to connect his phone into the car. But then we also have the V2X and V2V. And we have cars talking with cars and the Bluetooth telematics. And we have this whole mess of connectivity happening in a very short time span. And this is really interesting for me. And if I'm looking, I did a very 2D simplified overview of what I see as a connectivity area inside the digital key. So we have this key and we have the phone. Like let's say we have digital phone. But then the phone has access to a TSM enrollment from the mobile chip. The OEM doesn't own the phone and cannot enroll by itself the key. So it will have to trust the mobile chip OEMs. So the mobile chip OEMs are connected to the OEM cloud. The OEM cloud needs to be monitored and needs to be accessed by the OEM IT. So there's connections over there through VPN or a few different other areas. The OEM IT has connections to the production plants. And we have third parties that most of the OEM companies are now using third party. I say third party, but sometimes it's just like second tier companies like Bosch or like Lear or like whatever company it is. But we have also fleet management services and different startups starting to aggregate data. And we have all of this mesh of access in order inside our companies. Furthermore we have this production plants and different stuff are like also 3D. So we have different continents. We have different continents have different technology. And it's very hard to secure this ecosystem. It came very fast and it's very hard to secure it. So a bit about technologies. I see that we have lots of MQTT and HTTP connections from the cloud to the OEM cloud. We have just-in-time connections. We have SSH connections. We have REST APIs through the third parties to the OEM chips. OEM through the mobile OEMs. But then we have HTTP connections and WebSocket and different propriety connections. So this is a hacker's paradise. You can start playing with all of the different stuff. So one of my thesis and one of my thoughts that I'm looking at is that this is a normal cloud like that talks with all these vehicles. And now let's say I own the cloud. And if I can own the cloud I can send over their updates to the different vehicles. And if I can send over their updates to the different vehicles I can send and create all the vehicles to go into the evil cloud. This is like my personal doomsday scenario. I hope that we will never get to that. Because this is a total recall of all vehicles. Or I don't know what else we can do. But if we start to go further so I want to show you how to attack this area and how I play around with stuff. So first of all I will want to start searching for clues and this is a regular recon. Like looking in different embedded devices and applications. The internet and different resources and NISTF on the internet also is a good clue to getting information about automotive area. So at first what I want to do, I want to attack the cloud. But in order to attack the cloud and attack everything I want to go to the area that is least probable that nobody will start hacking from it. And this is low level. If I get off the chips, I get the passwords and I get different URL and back end end points from the chips after I read them in JTAG and different capabilities. I can have secret keys and access to the cloud services. So I would just like get like Amazon URLs, S buckets, S3 buckets, different uh different communication layers that the chip is talking with the OEM. Or with the third party or with the supplier or with uh whoever I'm targeting. This is a very basic because nobody has access to it or only you guys have access to it. Then usually they don't protect these end points. And this is uh or even if they protect sometimes the secret keys and uh are inside over here inside the chip. And also HSMs. You can break the HSM and say different areas and it's fun to look at it. Other places is like APKs. So I was starting, I started downloading different APKs and different applications inside like I saw a bus and truck driver or like a E-fleets mobile or different uh different applications that are not connected to the OEM but are connected in some way. And then I started like looking for different back-end URLs I can start hacking into them. So what I did eventually I created like uh there's a open source uh library over here, LibSearch. That what it does, it downloads all of the APKs that I want and it extracts all the metadata, all the resources into it and puts them into Elasticsearch so I can search easily like resources. It searches over here you can see the like URLs and resources but I also found passwords and secret files and like Twitter APIs and stuff like that inside. Actually what is interesting is the WeChat. The WeChat secret actually has API payment capabilities and like you have, it's not only a messaging app, it has much more stuff over there. So I won't show you everything over here because some are confidential and I cannot talk about them but I found a lot of stuff over here. Um but more if I'm looking for different endpoints. So I use DNS dumpster but I also just sometimes run my own list of subdomain searching and I found so much domains of the different companies. So I didn't try to hack them but you can just, each one of them you can start understanding which languages, programming languages are over here and then understanding what you want to attack. But not only the endpoints, I would also go to the suppliers themselves. But this is sometimes you get redirected to different sub-suppliers through these domains. But using Shodan is also a possibility. In Shodan I looked for like Autosar. Autosar is a very, it's a, I don't know how to call it. It's like a method or compliance for developing stuff. For developing stuff for ECUs. So the whole industry uses it. If there's someone for Autosar here, actually it was pretty nice because I found some passwords of them. So I can access, I didn't use them but then you can find also Continental and different other, like I saw some scattered devices, some, some devices that was interesting and different IPs and this is another way to go, get in. But what's most interesting is that you can just ask for all of the sub-domains. You don't need to go start scanning because NISTF has all of the right to repair components, software components that I want to, in order for me to diagnose my car. So if I want to diagnose my car and I want to have access to different, I can like Bendix commercial vehicle systems, I can access over there or Aston Martin and it has different softwares I can download. And with the softwares I, I can uh, find again back-end connectivities because these softwares usually work with a back-end and then if I try to hack into the back-end, I can get more information about all these uh, different areas. So I was looking inside uh, different uh, ISA software updates. It's a diagnostic software. You can buy them. You can download them at uh, different forums like different uh, hacker forums or uh, diagnostic forums. There's lots of uh, car forums of uh, like hobby car makers that uh, you can download and uh, illegal uh, tech uh, illegal diagnostic software and in this uh, diagnostic software, you can find lots of back-end endpoints and lots of keys and secrets into different areas. So, but what eventually I did, I built a big dictionary of lots of words and lots of stuff that are from this different areas. And I started searching them on the deep web on the, on different open source uh, areas. So, I don't know how much of you know GitHub, but on GitHub you can, when you delete stuff, you know, you don't really delete them. So, I like to look and uh, what I like to do usually is I go to GitHub and I look in the comments. I deleted secret keys and my company, the company target I want to look at. So I find lots of uh, the commits that they deleted and you can see the change. You can see the change itself over here that the change request that they deleted the secret keys but they still have them. And they didn't remove them and they didn't deprecate the keys and it's just over there. So you can start looking at different stuff and uh, connecting to the back-end services and it's uh, pretty fun. So I found a Terraform, a Terraform uh, code. Terraform code is a way to create your own infrastructure. Inside this Terraform, I found a secret in the sub-ID of one of the clients I was looking for and was targeting. And uh, this was one of the suppliers I found over here from, from this area. So it wasn't one of the OEMs, it was a supplier of these OEMs. So this code gave me eventually access to about 100 servers around inside the supplier. And at first it was a, this was a test Terraform but this same Terraform gave me access also to production environments. So I now had production environment access. I had full root access to different 100 environments. And this is like a good place that I, I like to be. So I'm now inside one of the third parties, one of the suppliers. And uh, and this was one of the diagnostic services inside this specific example. But I want to go further. I want to go and hack into the OEM cloud. Now because the trust, the OEM cloud is very, they trust each other and the, the, this is a technology going back a decade ago, two decades ago. So eventually I just like found the FTP open. I scanned, I started scanning the OEM cloud from inside and found FTP open, HTTP open. And next thing I know I have a shell access on one of the, one of the servers inside the OEM cloud itself. So inside the OEM cloud I now have access and I'm trying to think of where I should I go. And this is a real question because I can go start lateral expansion inside the OEM cloud and go start looking at different stuff. But what I learned from the automotive industry is that you have the monitoring servers. Like they like to monitor everything. So what you want to do or what I usually like to do is go after the monitoring servers, the development servers, the different areas. And this is why I'm focusing on the monitoring server. So from here what I found out that the server that I hacked into had like, it was a non-critical server. It wasn't connected to any production areas. It wasn't connected to any interesting stuff. But the monitoring server did log in into my server every midnight. It logged in into my server, it ran some code and then got the result and fetched it back into its monitoring capabilities so they can show the IT what, what's happening. And this was very interesting because now the question is how does it log in into my server and can I use it some way? So I replaced my SSH server and I did a strace. And I found out that every midnight it connects to all of the servers and I have the password of the, of the monitoring server that is connecting to me and is connecting to all other servers beside me. So this is pretty nice. This is a, it took me one day. Actually it was a very fun, interesting area. This particular area, the password when I tried it the next day was, was wrong. And why it was wrong? Because they had a policy on the passwords to change the password every day. So they put a date as the password. Like the company name and then the date. And then every day it was just change the date so I knew exactly what was the password the next day and I got in. So I have access to lots of different areas over in the IT area. And I have different access to the OEM and also in the production plant. A bit. And this is like I don't, the monitoring server did, when I connected it and I saw it, it did have different like very specific areas. It also wanted to monitor production. And this is interesting because you don't want to have the IT area and the cloud area connected to the production but the monitoring server does want to monitor everything. So if you have one monitoring server that monitors everything that you will behave and you will be able to jump into production a bit. So now I'm trying to look what I want to do. So I'm inside the room and I want to like look, I'm looking all around, I'm looking inside the different areas and I'm trying to find what is my targets. What do I want to do now without I'm inside this automotive area cloud. So most companies use jump servers. This is a very secure way to access, to give suppliers access to different things they want. So when I want to access, when I want to give a supplier access to some web server of mine or other web server, lots of IE. So it's good. I like IE. And when I give them the access, they have access to a terminal server. But this is not, I don't give them access only to our Internet Explorer. This is Citrix. So the first thing I do usually, I try to break out of the Internet Explorer. I try to break out of the different stuff. Usually it's pretty easy. You just go to file open, go to find a command and you open it. Nowadays it's a bit more harder. You need to find different or PowerShell tricks or different FTP. Nobody knows about FTP. If you go open an FTP console, you press enter. The exclamation mark runs code. So you can just like use that. There's different methods of uh, getting into. And when you, when you get access to the Citrix server, you can find everything. All the suppliers are connected over there. All the different companies go through this jump servers and this like uh, when you own this, you own everything. But what I found out looking inside my network is I found like a server connecting with lots of lots of different printers. Like I had 100 printers connected to the server and I asked myself why? Why should I have a server connected to so many printers? And after investigating and understanding the reason why, inside the factory, in order to know which part you want to install into the vehicle, you need to print out a barcode or a QR code and they scan it. So this is the printers that you print out the QR codes and then you scan it and then you know what part you want to take and you put it into the, into the other part. Like if it's a door, you put it into the chassis. So what I did, I did a POC. I did a POC over here. I printed a different QR code. This was in another country. I printed a Pikachu and I showed them how I can, how can install the printer. What's interesting over here, so if I disable one printer, I basically disable the production line. The production line will stop working. If one place and one printer stops working, the whole line will stop. This is how production line works. It's a line. So this is a pretty interesting target. I also have lots of other targets like web-based targets that I can find. But I'm looking for robotics and I like robotics. Robotics, the whole shop floor is full of robotics. And usually because there's a rule, you do never stop production. Never do something in production, so you never upgrade production also. You never do changes. And for instance, I had some, some robots I wanted to hack. So I looked up inside the web, different forums and just saw, use this administrative password, this user administrative password. And the fun thing about this is that they cannot change it. Because this is hard-coded into the device. And you will, to give, to send a supplier to change this password, it's almost impossible. And to change stuff in production, it's also almost impossible. So for this reason, this is the password of the, and it cannot change. Maybe some in the future they will change. Maybe there will be different stuff. And different robots have different passwords and different back doors, like support back doors. But even if you cannot find, usually what I do, I find out who installed the robot itself, and which supplier installed it, and try username and password as the supplier name. It works 50% of the time. The other 50% you need to add a 1, 2, 3, 4. So this is, this is an area. Another area I like is development. So if I'm inside the office IT area, I want to go to development. In development, I find different areas about connectivity projects. Like I was looking around the whole day and found like different areas. And then private keys. And this is like a live private key of some kind of update Apple. Before I told you the key is like a, we are talking about keys. So this is like a, some kind to update the Apple certificate in order to have access to it. But then if I continue and I saw like some IoT hub connections going over there and with, together with this key, I found out I got access to lots of different, uh, this was over MQTT. So I subscribed to this MQTT endpoint and I got lots of different devices coming to me. So now I'm monitoring all the devices and I'm just like seeing and writing, uh, seeing all the live vehicles that are on the system right now. And this is not even from production, this is from development areas. Development areas have weaker passwords, have developers, they don't like security so much, so it's pretty interesting to see. So I found a connectivity organization a bit. I found the stuff on the desktops. Uh, so I'm just like playing around the network now. I own the network, I have like different stuff. I have even memorable words and favorite school subjects and the IoT admin and different like, uh, stuff over here. But in the main thing, like what I'm looking at is that we are getting connected. All of the different companies, if we're looking at Bosch or over here I put FCA, but all of the different companies over here have connectivity areas and they're becoming connected and they are relying on the suppliers and they're relying on different other third-party vendors to help them build their own ecosystem. Nobody does it by themselves. They do it by, oh, Microsoft or, uh, Amazon or Continental or Bosch or Lear or whoever, or the other third, smaller third-party vendors are looking, are helping them connect everything. And we have all these connections, the insurance companies and the vehicles and everything is becoming connected. And because of this, this, you need to look at a more general approach and to understand how to secure this stuff. How, how do we secure this ecosystem that we got into over here? So a bit about my conclusions over here. It's important to understand like the whole ecosystem to look at this stuff. Not usually when a client comes to me and wants me to secure stuff, he wants me to look over just in one place. I want you to secure this issue. I want you to secure this backend endpoint. I tell him I want to decide my own. I want to start research and understand exactly on my own, out of scope, out of your scope, how to hack into your system because usually the ways to hack into the areas are out of scope. And this is, I have a lot of problems with bug bounty. I'm always out of scope. It's, it's a problem. That's, but also like how everything is connected and doing security architecture and putting security into areas before SOP. It's very important going from the beginning and talking together with other suppliers. And this is like, we just need to work together. And I know this is a place that has lots of NDAs and lots of competition and lots of areas that the suppliers, the suppliers know more than the OEMs sometimes. Because they see all the OEMs and the OEM sees only itself. So sometimes you need to look at the different suppliers. You need to talk with them. You need to communicate and to be open in security. So I don't know how much time we have, but if we have questions. I cannot hear nothing. Yeah, there's a microphone or something or I'm just like, I can answer this. This is actually, I'm, my focus, I came from more pen testing applications and networks and I don't have any knowledge in embedded at all. So I came to the company and like, I tried to understand how to do it. So I have from robotics, a bit of embedded knowledge, but then I have knowledge like reverse engineering is something that I just don't have. And for me now at the age of 35 to learn reverse engineering, it's with a kid and everything, it's almost impossible. So you need to have different capabilities in the team. So I have, I have a pet reverse engineer always beside me. So I can always ask him and I found this interesting area. Can you help? Oh, I find, found this binary. Can you help me? And this way, when you have, you need to, like, I, I like to know a lot and I like to look from above, but then there's places I cannot go and you have to have like people. So in this industry, you have to know OT, you know, you need to know a bit of like SCADA. And when you go into SCADA stuff, this is a different perspective, but you also need to know embedded security. So for once, sometimes we see an embedded board and the supplier just removed some of the chips. So we need to guess which chips to put back on. And to guess which chips to put back on, it's like, I don't have this capability. So I go to my hardware guys. And to do reverse engineering, I go to my reverse engineering. Also for new stuff, like I'm in this world that I came, even from my one year vacation, I came back, everything moved, everything changed. I have lots of like different SSRF vulnerabilities and different subdomain takeovers and stuff that I, I didn't know when I was, when I was studying this. So you always need to be on your edge and learn stuff, but also have this team because you will never be able to know everything. Yeah. So, so this is like an example from a four day assessment only. So we were like crazy going to the targets, going in low level, not a shallow level, not, not going deep into stuff, just seeing that we found going on. And so you don't have time. And it's a very important thing to understand as an OEM. So what kind of assessment you want, if you want a one week assessment, but so you will find like lots of shallow stuff, but you will get a feeling of what's interesting for you. And then you need to deep dive into different areas. So let's say the barcode, you want to make sure that if somebody hacked into the system, he can't do nothing. Or you can't have a fraudulent barcode that can hack into the system by some kind of putting a dash or one. So yeah, I, next time I find it, I'll try. Yeah. Over there. Yeah, of course. Yep. Yeah. I cannot talk about it. So yeah. Any, any more questions? Yeah. Yes, this is, I'm working with the OEMs directly. So they're reported. This is why I didn't put anything that is, I didn't put any names, any clues, any way. I have so much more I want to tell you. And this is like a big problem in this industry. I cannot, um, it's a problem. I don't know how to solve it. If someone can help me, or I don't know how to make the research better. It's, I have vulnerabilities from a different bug bounties I've done in the past for different OEMs. And I'm already waiting eight months for stuff to, for them to acknowledge it and fix it. And I'm sure that even there are much more, there are two-year plans and stuff. And it's basic. Like if I go to Google and, and give the same thing, they will fix it in two days. They just have this whole process and it's very hard for them to fix currently because it's not them. The OEMs don't do the stuff. They, the suppliers do it. So if I, if I give the OEM a problem and then LG is, uh, needs to fix it, they need to convince LG. And then there's a change request. And if after a change request, you need to convince them why it's security and it's such a long process at the end, it takes you so much time just to fix stuff. No, so, no, so I, I don't know there are capabilities, like you can access the servers. Sometimes the keys and it depends on each company. I, I don't, I don't want to go into the companies that I know. So like, I don't know how to answer this, this in a political way. Yeah. Any other questions, comments, thoughts of, uh, experiences maybe, what you thought? Yeah. Yeah. So Tesla has a bug bounty program. And FCA has one. And I think GM has one. And who else? Trying to think. You guys don't have one yet. Um, I don't know. Maybe soon there will be better, but most of the bug bounties are non-disclosure. And this is too bad. This is like one problem. It's, uh, you have this bug bounty, but it's a full non-disclosure bug bounty. So even after they fix, you cannot say nothing about it. You cannot. Yeah, I think so. It's also, you mentioned China, for instance, China has different servers usually. Usually there's different requirements. So when we have like vehicles in China, so they go to different back ends and they behave differently. So this is a, when they're verifying and looking at security, you don't know, every country is different. Like China is very different, but also Europe is different than the United States. So you have different chips over and even different software, different hardware, different back ends. Everything is like different and, but everything is still connected somewhere in different areas. So yeah. Okay. So thank you everybody for coming.