1 00:00:00,000 --> 00:00:02,000 All right, I guess we should get started. 2 00:00:02,520 --> 00:00:04,020 Right, so welcome to our talk. 3 00:00:04,200 --> 00:00:10,740 We are going to be looking at kind of hacking some EV chargers and more specifically kind of communication in the modems they actually use. 4 00:00:11,380 --> 00:00:15,420 So yeah, it should be a fun one and we're excited to share this research with you. 5 00:00:15,700 --> 00:00:17,260 First of all, who are we? 6 00:00:18,880 --> 00:00:20,820 So my name is Jan Behrens. 7 00:00:20,840 --> 00:00:25,860 I work as a red teamer at Alpertronic, one of the largest charger manufacturers in the world. 8 00:00:27,020 --> 00:00:33,760 And yeah, and in my free time I volunteer at different conferences like here at DEF CON as a goon and do my own research. 9 00:00:33,760 --> 00:00:36,020 But most of it can't be publicized, unfortunately. 10 00:00:38,020 --> 00:00:39,580 Right, and my name is Marcel. 11 00:00:39,580 --> 00:00:43,460 I'm a PhD student at the System Security Lab at the University of Oxford. 12 00:00:43,460 --> 00:00:46,900 And I'm doing my PhD on the security of EV charging. 13 00:00:46,900 --> 00:00:49,880 So I get to kind of do this type of work on a daily basis. 14 00:00:50,220 --> 00:00:56,040 But we have certain expectations in academia about, you know, publishable work. 15 00:00:56,040 --> 00:01:02,000 And then at night time, I get to do kind of the more fun aspects of the projects that you can't necessarily publish. 16 00:01:02,000 --> 00:01:05,780 It's more something that we can show to you guys here today. 17 00:01:06,320 --> 00:01:12,860 In my work, I'm also supported by our colleagues at Armasviz who give us some funding as well as technical expertise and equipment. 18 00:01:14,680 --> 00:01:18,360 But before we get started, a few disclaimers as usual. 19 00:01:18,520 --> 00:01:23,180 So we do not represent our employers or our university. 20 00:01:23,180 --> 00:01:26,660 These are our own opinions. 21 00:01:28,520 --> 00:01:40,660 We can't share everything we know because we have different kinds of NDAs with manufacturers and so on, which unfortunately restricts what we can share today. 22 00:01:41,860 --> 00:01:53,160 And if you want to get started in hacking EVs or EVSEs, please be careful when connecting to these chargers or cars. 23 00:01:53,180 --> 00:01:56,760 They can go up to one megawatt these days. 24 00:01:56,900 --> 00:02:01,440 So it will kill you if you connect to the power pins. 25 00:02:01,440 --> 00:02:06,460 But for this kind of research, which we present today, it's not necessary at all. 26 00:02:06,460 --> 00:02:15,760 But please be safe when testing these systems because there's a high voltage involved. 27 00:02:17,780 --> 00:02:22,520 And also, only hack what you own. 28 00:02:23,260 --> 00:02:32,860 There are a lot of clients and customers who do pentest our product, for example, but ask for permission first. 29 00:02:33,780 --> 00:02:40,280 Today we are looking at the three charging blocks for level three charging. 30 00:02:40,580 --> 00:02:44,500 CCS1 and NACS is most common here in the US. 31 00:02:44,500 --> 00:02:47,460 CCS2 in Europe. 32 00:02:47,460 --> 00:02:56,080 There are a couple of other standards as well out there, like Shodemo or GPT, or now with MCS as well. 33 00:02:56,080 --> 00:03:00,520 But these work on different protocols and different technologies. 34 00:03:00,620 --> 00:03:08,300 Today we purely focus on these three blocks, which are defined in an ISO standard. 35 00:03:08,940 --> 00:03:13,220 So how does EV charging works boil it down? 36 00:03:13,220 --> 00:03:18,000 First you have the connection cable, which connects to the car. 37 00:03:19,100 --> 00:03:22,260 And there you have a basic power signaling. 38 00:03:22,300 --> 00:03:25,300 There's no real data transfer to this. 39 00:03:25,300 --> 00:03:28,360 This is basically just a connection check for the cable. 40 00:03:29,080 --> 00:03:32,940 After that, the power line communication is initiated. 41 00:03:33,920 --> 00:03:45,960 And only if this power line communication is successful, the actual communication between the car and the charger starts, which is based on IPv6. 42 00:03:47,060 --> 00:03:51,600 And after all of that, the actual charging session starts. 43 00:03:51,680 --> 00:03:57,900 So there are a lot of different layers beforehand before the car gets any power. 44 00:03:58,220 --> 00:04:03,020 But today we are only focusing specifically on the power line communication. 45 00:04:04,900 --> 00:04:07,560 Since we found multiple issues there. 46 00:04:10,980 --> 00:04:12,160 Yeah, all right. 47 00:04:12,160 --> 00:04:16,220 So we saw earlier that there's this high-level IP stack. 48 00:04:16,220 --> 00:04:22,940 And there's actually quite a lot going on there in regards to different versions of the protocol, as it's evolving over the years. 49 00:04:22,980 --> 00:04:30,480 And we initially set out on a quest to actually understand what kind of protocols are being used by the EV charging system. 50 00:04:30,480 --> 00:04:37,800 There are currently three different standard versions, which are kind of standardized as part of ISO 15118. 51 00:04:38,340 --> 00:04:43,000 It's an old one from 2012, then one from 2014, and then one from 2022. 52 00:04:43,500 --> 00:04:54,940 And they kind of started adding more and more security features, adding support for TLS, for the charging communications itself, some more authentications, great things like that. 53 00:04:54,940 --> 00:04:59,940 So we originally set out on a quest to understand whether these are actually deployed in the real world. 54 00:04:59,940 --> 00:05:14,160 And along the way, we discovered that the modems themselves actually end up being a similarly interesting topic, because even though it standardized exactly what power line communication should be used, and it's the same across all versions of CCS so far, 55 00:05:14,160 --> 00:05:17,420 with no signs of changing, because after all, this is the physical layer. 56 00:05:17,420 --> 00:05:21,820 You can't really just change the physical layer while keeping the plug the same. 57 00:05:21,820 --> 00:05:24,890 People will expect their chargers to keep working. 58 00:05:24,890 --> 00:05:33,150 So we, but anyways, there are still some implementation differences that you can have, even just with the software, with the choices of the chip. 59 00:05:33,150 --> 00:05:37,750 So we set out on a quest to kind of understand what is out there in the real world. 60 00:05:37,750 --> 00:05:39,730 And so we built this EV emulator box. 61 00:05:39,730 --> 00:05:41,110 I actually have it with me. 62 00:05:42,290 --> 00:05:44,950 So it's this basically small little transport case. 63 00:05:44,950 --> 00:05:47,330 It fits quite nicely into a backpack as well. 64 00:05:47,410 --> 00:06:01,870 And inside of it, we have a Raspberry Pi, a custom circuit board, and then a power line communication modem, like the one you see here, which has basically the exact same chip you would expect to find inside of all the other devices as well. 65 00:06:02,350 --> 00:06:10,490 And on the software side, it's basically running a combination of Python and C that we made, and it just pretends to be a car. 66 00:06:10,490 --> 00:06:12,690 You plug it in to the charging cable. 67 00:06:13,050 --> 00:06:20,810 We very carefully designed our plug, so it just entirely avoids the DC pins, as we heard earlier, that's dangerous and absolutely not required. 68 00:06:20,810 --> 00:06:24,350 All the data is going on entirely separate wires inside of the cable. 69 00:06:24,630 --> 00:06:35,910 So we just connected the data cables, and then we go through the communication stack as shown before, and in the process, collect data from the charger about what it actually supports, what versions. 70 00:06:36,850 --> 00:06:43,170 So we found a lot of kind of results as part of this work. 71 00:06:43,310 --> 00:06:50,790 Some of them are actually published up in a paper that's linked in the references at the end, if you want to see about how many chargers support the ALS. 72 00:06:50,810 --> 00:06:58,110 Currently about 12% of them in Europe, even though this is now a 10-year-old part of the EV charging standard. 73 00:06:58,750 --> 00:07:00,250 But for the purposes of this work... 74 00:07:02,230 --> 00:07:05,310 Yeah, sorry, how did we end up collecting this data? 75 00:07:05,310 --> 00:07:08,670 As I said, we need to connect via the charging cable. 76 00:07:08,910 --> 00:07:13,430 So we had to go to chargers in person to actually get this data. 77 00:07:13,810 --> 00:07:19,110 And so we went on a road trip and collected up data from, in total, four different countries. 78 00:07:19,110 --> 00:07:23,230 The UK, Switzerland, Hungary, and Croatia in the locations shown here. 79 00:07:23,230 --> 00:07:25,430 The full dataset itself is also public. 80 00:07:26,370 --> 00:07:30,430 And so we ended up going to 397 CCS plugs in total. 81 00:07:30,430 --> 00:07:39,350 We tried to be a bit random with our selection, going to small towns, villages, highways to get a kind of cross-section of what's out there. 82 00:07:39,350 --> 00:07:41,470 We found 26 different manufacturers. 83 00:07:41,470 --> 00:07:47,210 There are definitely a few more out there, but we at least managed to cover most of the ones that are widely used. 84 00:07:48,110 --> 00:07:56,470 And we've also seen devices as old as 2013 or manufactured as recently as 2023 in our study from 2024. 85 00:07:56,970 --> 00:07:59,490 So we've got kind of a good idea of what's out there. 86 00:08:00,110 --> 00:08:07,610 So as I said, we had some fun results about how TLS or some of the other security features are being introduced by the manufacturers. 87 00:08:07,690 --> 00:08:10,930 But for the purpose of this talk, we'll just be focusing on the modems. 88 00:08:12,130 --> 00:08:23,330 So one of the things you can do in the Powerline protocol is actually you can query the chip version as well as the firmware version from the Powerline modems. 89 00:08:24,210 --> 00:08:35,510 This is basically the equivalent of if you were to connect to a Wi-Fi access point, the access point all of a sudden will know the exact chip ID and firmware version running on your Wi-Fi chip. 90 00:08:35,790 --> 00:08:37,670 This would be quite ridiculous. 91 00:08:37,670 --> 00:08:41,750 I do not know why you can do this in Powerline, but it is nonetheless a feature. 92 00:08:41,790 --> 00:08:44,530 And so we were able to collect this alongside with our study. 93 00:08:44,530 --> 00:09:01,550 And what we found is that there are only two chips out there in the world on all of the chargers we tested, the QCA7000 and the QCA7005, which are furthermore, as far as we can tell, essentially the same chip with some minor differences between them perhaps. 94 00:09:01,810 --> 00:09:08,310 And then we also looked at the firmware versions and we found that there's quite a lot of stuff from 2013 from 2015. 95 00:09:08,310 --> 00:09:13,850 So over 60% of chargers have firmware that is more than 10 years old on their Powerline modems. 96 00:09:14,530 --> 00:09:20,090 Now we're not looking here at the actual main board, but for example, the Linux or the screen would be connected to. 97 00:09:20,090 --> 00:09:28,170 This is just the communication modem, but it's just a chip that I have circled in yellow, but it's still quite interesting. 98 00:09:28,850 --> 00:09:34,250 Specifically, there are actually known vulnerabilities in the Powerline communication system that is being used. 99 00:09:34,510 --> 00:09:38,710 For example, one of my colleagues, Sebastian, published a work called Broken Wire. 100 00:09:38,710 --> 00:09:41,130 It was also a talk here at DEF CON two years ago. 101 00:09:41,290 --> 00:09:43,610 Actually, I think in the car hacking village specifically. 102 00:09:44,090 --> 00:09:47,270 But it's also out as an academic paper if you'd like to read. 103 00:09:47,390 --> 00:09:59,770 And what that showed is that you can actually jam the wired communications with very little amounts of power from reasonably long distances away due to just how the protocol is designed. 104 00:10:00,130 --> 00:10:03,310 And this is something that we think could be potentially solved in firmware. 105 00:10:03,310 --> 00:10:06,570 So we had to look whether these updates are being deployed. 106 00:10:06,570 --> 00:10:15,250 And even though the attack was disclosed in 2022, two years before we conducted our study, not a single charger has firmware newer than 2021. 107 00:10:15,670 --> 00:10:21,930 So even if it could be fixed, even if it might have been fixed, no one's actually deploying it. 108 00:10:22,890 --> 00:10:31,910 So this is starting to get kind of interesting for us now because we have these PLC modems, which are absolutely necessary for all of the EV charging communications. 109 00:10:31,910 --> 00:10:38,490 They sit right behind or right between the main EV board as well as the charger. 110 00:10:38,490 --> 00:10:49,010 They want to communicate via Ethernet, so they send these Ethernet packets to the communication modems and then they transform it into this packet, which looks like what you can see over there. 111 00:10:49,190 --> 00:10:53,330 It looks very much like a wireless packet if you were dealt with wireless security. 112 00:10:53,450 --> 00:10:56,870 This is for a good reason because it essentially is. 113 00:10:56,870 --> 00:11:03,550 They are not running it through the air, they are running it through a cable, but it is still entirely identical to a wireless protocol. 114 00:11:04,570 --> 00:11:07,370 And so everyone's also just using these two identical chips. 115 00:11:07,370 --> 00:11:15,310 We know that manufacturers are not really on top of updating the firmware either, so this is starting to look like a really interesting potential target. 116 00:11:15,710 --> 00:11:21,010 So the first thing we wanted to do is try to get as much information as we possibly can. 117 00:11:21,590 --> 00:11:26,270 So you look up the datasheet, try to download the firmware, basic things like that. 118 00:11:26,590 --> 00:11:31,090 Turns out you can't download the datasheet for the chips, it's under an NDA. 119 00:11:31,810 --> 00:11:33,970 You also can't download the firmware. 120 00:11:33,970 --> 00:11:40,330 For a while it was available on GitHub and then they realized that that's a really bad idea for some reason and deleted it. 121 00:11:40,630 --> 00:11:47,930 Now if you know how to use the internet, you might be able to get some files, but we can't obviously give you direct links to anything. 122 00:11:49,170 --> 00:11:57,750 But we can give you this link because the Powerline is actually the same technology you might be very familiar with at home. 123 00:11:57,750 --> 00:12:06,430 So if you've ever bought these Ethernet to the Powerline adapters, they basically just plug one into each wall socket and the Ethernet traffic magically teleports between the two of them. 124 00:12:06,550 --> 00:12:10,770 And this is the exact same thing that is being used in the EV charging system. 125 00:12:16,530 --> 00:12:24,890 Yeah, so at home you use HomePlug AV and then in the EV chargers you use something called HomePlug Green PHY, but they are actually interoperable standards. 126 00:12:27,090 --> 00:12:34,190 Yeah, so they have these tools released publicly because if you have your home network, you actually want to be able to configure it. 127 00:12:34,190 --> 00:12:39,430 And so they released OpenPLC Utils, which is a bunch of tools to change the configuration. 128 00:12:39,430 --> 00:12:45,650 And it's also open source C, so we can have a poke through and actually see kind of how the modems can get configured. 129 00:12:50,740 --> 00:12:53,120 So what do you actually find out if you do this? 130 00:12:53,120 --> 00:13:00,100 Well, first of all, we find that every one of the Qualcomm modems has something called the Parameter Information Block or PEB. 131 00:13:00,420 --> 00:13:10,120 This is a large kind of proprietary format binary blob that contains various important configuration options, only some of which are actually publicly understood. 132 00:13:10,240 --> 00:13:16,060 So basically there's no real headers or something you would expect in some of the settings file formats. 133 00:13:16,060 --> 00:13:21,360 It's just specific fields located at specific binary positions throughout. 134 00:13:22,440 --> 00:13:27,060 So if you know where they are and what they mean, then you can look at them, but otherwise it's all meaningless. 135 00:13:27,140 --> 00:13:41,500 So for example, things that are in there and known to be in there are the MAC address, manufacturer device string just for display purposes, or the network membership key, which is coming back to the Wi-Fi analogy, very similar to the pre-shared key. 136 00:13:41,500 --> 00:13:47,020 It is what is the root of all encryption as well as kind of authentication to create the home plug networks. 137 00:13:48,060 --> 00:13:55,940 And what you can do is because it contains important settings that you might very legitimately want to change, you can read it and write it from the host system. 138 00:13:55,940 --> 00:14:02,760 So to do this, you just send a special Ethernet packet to your modem chip and it will read or write the PIP accordingly. 139 00:14:03,160 --> 00:14:10,840 However, and yes, the command to do this is provided very nicely in PLCutils, quite simple to use. 140 00:14:10,840 --> 00:14:25,200 You just need to type in the MAC address, which is very interesting because in the home usage setting, you actually, when you create these networks, you actually authenticate all the devices into your own home power line network. 141 00:14:25,200 --> 00:14:29,600 And from then on, they are essentially treated as part of a trusted group. 142 00:14:29,760 --> 00:14:39,980 So what they added is a nice feature is that you are able to send these commands to read and write the configuration to remote modems as well via the power line. 143 00:14:39,980 --> 00:14:50,200 So if you just put in the MAC address of one of the remote chips, the management message will go to your chip, it will get put out onto the power lines and it will go to wherever the other remote chip is. 144 00:14:50,460 --> 00:15:06,220 And this is perfectly fine in the home setting, but in the EV charging context, even though the EV and the charger form a power line network, this is not because they are an inherently trusted network, they just need to communicate and that is just how they do that. 145 00:15:06,520 --> 00:15:13,060 So we wondered whether this feature has kind of been actually left enabled in the EV setting as well. 146 00:15:13,400 --> 00:15:25,780 And this is how we came up with the PipBuster attack, which shows that yes, you absolutely can do this, which means that a rogue EV could write to the configuration of a charger and the rogue charger could write to the configuration of an EV. 147 00:15:26,240 --> 00:15:28,800 Now, how bad can this realistically be? 148 00:15:28,800 --> 00:15:33,360 You can change the MAC address, which is weird, but not necessarily a catastrophe. 149 00:15:33,800 --> 00:15:38,440 The Pip contains a lot of settings, you can absolutely brick a modem with it permanently. 150 00:15:38,440 --> 00:15:45,900 You can tell it to stop talking both to the host system and stop talking over the power line, turning into a very nice brick just sitting there. 151 00:15:45,900 --> 00:15:51,500 And without power line, there is no EV charging, at least no DC EV charging. 152 00:15:52,000 --> 00:15:59,320 Sometimes now even AC systems use it, though they can potentially fall back to older non-advanced communication schemes. 153 00:16:00,220 --> 00:16:08,980 So we went around our lab testing this on all of the various devices we own, but we found that it only works on some of the devices, not all of them. 154 00:16:09,340 --> 00:16:11,000 So why could this possibly be? 155 00:16:11,000 --> 00:16:14,200 The firmware is always stock, it's always Qualcomm firmware. 156 00:16:14,200 --> 00:16:19,220 As far as we can tell, charger manufacturers cannot kind of create their own. 157 00:16:19,220 --> 00:16:22,580 The only thing that they can really change is the Pip itself. 158 00:16:22,960 --> 00:16:30,480 So there must be some sort of security setting in there that actually controls whether you are able to do this read or write. 159 00:16:31,060 --> 00:16:35,500 Now the problem is we're looking at a binary blob of approximately 10 kilobytes. 160 00:16:35,500 --> 00:16:41,900 We're looking for what is most likely one bit, and there's documentation for about 10% of it. 161 00:16:42,660 --> 00:16:45,900 So this is going to be a somewhat tricky challenge to find. 162 00:16:45,900 --> 00:16:52,640 So what we did is we first obtained the Pip from one of the vulnerable devices, and then one of the secure devices as well. 163 00:16:52,640 --> 00:16:57,460 It was a portable EV charger we had, as well as a development board. 164 00:16:57,860 --> 00:17:06,680 And we compared the files side by side, and there are many differences between them, including the file size, because turns out one of them had a slightly newer firmware version. 165 00:17:06,680 --> 00:17:12,940 A newer firmware adds a few more settings, so they just keep making the Pip longer and longer by a few bytes each time. 166 00:17:13,960 --> 00:17:20,440 But they were also entirely different in basically all the other areas, so no easy way to narrow down the one bit that differs. 167 00:17:20,900 --> 00:17:28,520 So the first thing we did, we took both of the Pips, truncated them down to the same length, put them on one of our modems, and tested them. 168 00:17:28,980 --> 00:17:31,620 So we created this kind of test workflow. 169 00:17:31,680 --> 00:17:38,480 Basically you have two powerline modems, a victim modem and an attacker modem, and then you have just a Raspberry Pi connected to both of them. 170 00:17:38,540 --> 00:17:48,380 So you have Ethernet interfaces going to both of the modems, this is kind of a privileged interface, this is how they connect to the host, but then they are also connected to each other over the powerlines. 171 00:17:48,660 --> 00:18:06,640 So what we can do if we want to test how a modem behaves with a certain Pip, we can put it onto the victim modem directly via Ethernet, and then we can get the victim and the attacker to pair to each other, communicate through the powerlines, and then start sending commands to the victim via the attacker. 172 00:18:06,640 --> 00:18:10,920 So we send it out on Ethernet to the attacker, and it goes via the powerline wires between them. 173 00:18:10,920 --> 00:18:26,640 And then we can send a read command, a write command, we can check if the commands actually succeed, they do usually send back some sort of status, and then as a final test we can actually take the Pip off of the victim again directly via the Ethernet interface just to see, 174 00:18:26,640 --> 00:18:35,620 for example, if the write actually persisted, because it might be that it says, yep, I definitely wrote that configuration file, and then it just doesn't, because that would be insecure. 175 00:18:36,840 --> 00:18:43,840 So we are in this way able to test what a Pip actually does on a real modem without having to think about it. 176 00:18:43,840 --> 00:18:50,780 And if we did our testing with the vulnerable and the secure Pips we obtained from the two devices, they did in fact produce different results. 177 00:18:50,780 --> 00:18:52,840 So the setting is somewhere in there. 178 00:18:53,740 --> 00:19:06,780 So as the next step, we took the first half of the vulnerable one, second half of the secure one, concatenated them together, really hoped that we are not breaking over some very important setting right in the center, and put it on a modem. 179 00:19:06,840 --> 00:19:10,700 And in this case, the device behaves securely, so it's somewhere in the second half. 180 00:19:10,820 --> 00:19:22,940 And rinse and repeat for a binary search, and we quickly narrowed it down to a Pip offset at 1F8C, which is if zero, then reading and writing is allowed, and if one, then it is blocked. 181 00:19:22,940 --> 00:19:25,220 So I have dubbed it the security bit. 182 00:19:26,560 --> 00:19:28,260 So we know it exists. 183 00:19:28,260 --> 00:19:31,600 We know what controls it. 184 00:19:31,600 --> 00:19:36,440 But as I said, some of the devices in our lab were vulnerable, whereas others were perfectly safe. 185 00:19:36,440 --> 00:19:42,300 So do real devices actually deploy the secure configuration or not? 186 00:19:42,880 --> 00:19:45,120 Well, first of all, let's have a look at the modems. 187 00:19:45,120 --> 00:19:47,740 If you buy these by default, no. 188 00:19:47,800 --> 00:19:59,680 So it's clearly not some sort of default setting, but this might still mean that real device manufacturers have seen the setting and they've changed it, or they've been told in some documentation to change it. 189 00:19:59,800 --> 00:20:02,120 So we need to go out into the wild and test it. 190 00:20:02,120 --> 00:20:07,400 So back on the road, traveling to EV chargers to collect some more data. 191 00:20:07,440 --> 00:20:16,100 Now, it would be incredibly unethical for us to actually go up to chargers and start writing to their configurations, because, well, yeah, we just can't do that. 192 00:20:16,100 --> 00:20:21,360 And it might also actually break devices if something goes wrong in the writing process. 193 00:20:21,940 --> 00:20:32,980 So instead, we did a read, where if the read request was blocked, then we assumed that the device is secure because there's no realistic way it will let us write, but not to read. 194 00:20:32,980 --> 00:20:36,400 That would just be a very bizarre option to have. 195 00:20:36,580 --> 00:20:39,680 But if it allows us to read, it might still be write-protected. 196 00:20:39,760 --> 00:20:47,240 So we took the PIBs and we put them onto our own test setup again and basically checked if they are actually writable. 197 00:20:48,020 --> 00:20:50,800 So we went to 69 chargers in California. 198 00:20:50,800 --> 00:21:05,120 And if you're wondering what a test like this looks like from the perspective of the security operations center of an EV charging company, someone shows up with a backpack and plugs in a cable to your charger and then they leave about a minute later. 199 00:21:06,160 --> 00:21:10,060 In total, out of the 69 chargers, we managed to download 41 PIBs. 200 00:21:10,320 --> 00:21:13,540 So quite a few of them don't have the security bit set. 201 00:21:13,660 --> 00:21:18,760 And out of the 41, all of the ones that were readable also appear to be writable. 202 00:21:19,280 --> 00:21:27,020 So this is now a vulnerability that we've seen and it's actually kind of has a real impact in terms of number of devices affected. 203 00:21:27,020 --> 00:21:31,520 So the next logical thing to do for us was to disclose this to Qualcomm. 204 00:21:31,520 --> 00:21:38,800 We also disclosed it to a bunch of industry working groups so they can coordinate more directly to the charger as well as the vehicle manufacturers. 205 00:21:39,220 --> 00:21:42,520 So we contacted Qualcomm back in February of 2025. 206 00:21:43,540 --> 00:21:48,720 They actually responded acknowledging that, yes, this seems like a vulnerability, they will fix it. 207 00:21:48,720 --> 00:21:50,120 All good, thanks. 208 00:21:50,120 --> 00:21:54,480 And from our perspective as academics, this kind of at this point concluded the research. 209 00:21:55,300 --> 00:21:58,440 We had found something, we had reported it, we had written the paper. 210 00:21:58,460 --> 00:22:00,960 I am actually going to present it in a week. 211 00:22:02,100 --> 00:22:04,780 So yeah, kind of nice end to the story. 212 00:22:04,960 --> 00:22:11,360 So how did I end up at DEF CON giving a talk together with someone from one of the largest charger manufacturers? 213 00:22:13,160 --> 00:22:25,200 Yeah, so it turns out we did basically a similar research in our Red Lab to see if it's possible to hack the charger via the charging cable and also reported to Qualcomm. 214 00:22:25,200 --> 00:22:30,920 And the response was basically, isn't it the same stuff Oxford was reporting to us? 215 00:22:30,920 --> 00:22:34,120 And we weren't in any kind of communication back then. 216 00:22:34,120 --> 00:22:43,320 But this was the first time when reporting a vulnerability that the manufacturer points you to a different research group. 217 00:22:43,600 --> 00:22:45,560 Never heard of this. 218 00:22:45,900 --> 00:22:48,880 So how does this look like? 219 00:22:48,880 --> 00:22:58,060 So here we have one modem connected to F0 and it's already connected to the power line. 220 00:22:58,060 --> 00:23:01,860 And our attacker modem is connected to Ethernet 2. 221 00:23:02,860 --> 00:23:14,720 And basically, if you use PLC tools, which are open source, you can basically also see and list all devices connected to the power line communication network. 222 00:23:16,940 --> 00:23:24,680 And here in this case, we take the factory PIP and add the security bit setting. 223 00:23:25,300 --> 00:23:29,440 ModPip is basically just to make the checksums correctly. 224 00:23:29,440 --> 00:23:36,250 So the chip is really sensitive for checksums, checks not only for the PIP file, but also for the firmware. 225 00:23:37,580 --> 00:23:43,480 And then we basically write the edited PIP to the local device. 226 00:23:43,480 --> 00:23:45,740 So our victim device. 227 00:23:45,740 --> 00:23:51,720 And then we verify by reading it from the module that the setting is actually set. 228 00:23:51,720 --> 00:24:02,520 And when trying to connect via the attacker modem on F0, the device refuses to give out any information about the chip. 229 00:24:03,100 --> 00:24:10,800 But what happens if we try to reset the device via power line? 230 00:24:10,800 --> 00:24:15,480 And it turns out it actually works. 231 00:24:15,480 --> 00:24:23,920 So in this case, we send first the information request to the victim device via Ethernet 2. 232 00:24:24,220 --> 00:24:27,380 And as you see, it's still refusing the request. 233 00:24:27,380 --> 00:24:30,980 But for some reason, the reset command is accepted. 234 00:24:31,520 --> 00:24:39,980 And after the device is reset successfully, it then gives out any information you want again. 235 00:24:39,980 --> 00:24:51,240 So it turns out that even if you write a customized PIP file to the chip, it still stores the factory PIP. 236 00:24:51,840 --> 00:24:57,660 And by resetting, it automatically falls back to this unsecured version of the chip. 237 00:24:57,660 --> 00:25:00,620 And you can basically do whatever you want to it. 238 00:25:03,520 --> 00:25:08,200 So there are different modes you can run the chip basically on. 239 00:25:08,200 --> 00:25:10,680 And one of them is called host booting. 240 00:25:10,680 --> 00:25:13,990 This is mostly used for car ECUs, for example. 241 00:25:15,060 --> 00:25:18,200 And they don't have an external flash. 242 00:25:18,380 --> 00:25:28,420 So as shown in the picture before, we have a really tiny flash here on the board where all the firmware and PIP configuration is stored. 243 00:25:28,640 --> 00:25:34,160 And in car ECUs, this is basically done without external flash. 244 00:25:34,160 --> 00:25:35,900 It is done via a host controller. 245 00:25:35,900 --> 00:25:46,460 So every time after each charging session or however the car manufacturer set it up, it's reflashed with a customized own firmware. 246 00:25:46,460 --> 00:25:52,540 So even if you manipulate the firmware, it doesn't really stay persistent. 247 00:25:53,420 --> 00:25:59,120 This is not the case for all car manufacturers, but I'm not gonna say any names. 248 00:26:01,820 --> 00:26:12,860 And it's still vulnerable even if you have host boot enabled, but it's not a persistent exploit till the next reboot cycle. 249 00:26:12,900 --> 00:26:16,000 But it still crashes the charging session. 250 00:26:16,580 --> 00:26:24,060 But how can you actually exploit this if you don't own the car already or if you don't own the charger? 251 00:26:24,680 --> 00:26:29,100 So we need to attack it somehow remotely in best case scenario. 252 00:26:29,800 --> 00:26:35,800 So this here is basic signaling for normal powerline communication. 253 00:26:35,800 --> 00:26:38,920 It goes from 1 MHz to 30 MHz. 254 00:26:38,960 --> 00:26:44,620 The gaps in between are frequencies, for example, for home radio frequencies. 255 00:26:44,620 --> 00:26:52,040 So when they created the standard, they already knew there might be some interference with other protocols and standards. 256 00:26:52,040 --> 00:26:55,620 So they intentionally left these gaps out. 257 00:26:55,620 --> 00:26:58,720 That's why also the signal drops in between these gaps. 258 00:26:59,980 --> 00:27:04,800 So in development, you normally use vector CCS listeners. 259 00:27:04,800 --> 00:27:06,820 So this is basically by design a tool. 260 00:27:06,820 --> 00:27:10,500 It's an induction coil around the charging cable. 261 00:27:10,540 --> 00:27:14,400 And the vector listener basically decodes everything for you. 262 00:27:14,400 --> 00:27:16,720 And you have everything in clear text. 263 00:27:17,020 --> 00:27:22,160 You can also do the same thing if you don't want to spend 4,000 euros for this. 264 00:27:22,940 --> 00:27:27,680 280 bucks for this, which basically can do the same thing. 265 00:27:27,680 --> 00:27:32,440 In this case, also with an induction coil, because it's easier to handle. 266 00:27:32,940 --> 00:27:37,460 But you can also just use a plain wire. 267 00:27:38,980 --> 00:27:46,200 So it doesn't really matter how much you spend, because you can always spend less. 268 00:27:46,740 --> 00:27:51,160 So this was basically just a little wire we had laying around. 269 00:27:51,280 --> 00:27:52,700 And why not? 270 00:27:53,020 --> 00:27:56,900 And even with just a wire, you can already get through a distance. 271 00:27:56,900 --> 00:28:01,560 Because since it's high frequency, the common mode is quite strong. 272 00:28:01,560 --> 00:28:04,280 So the magnetic field around the charging cable. 273 00:28:04,320 --> 00:28:07,060 So it's really easy to pick up. 274 00:28:07,960 --> 00:28:16,280 We did try to replicate the research Oxford did beforehand with broken wire, what he mentioned. 275 00:28:16,600 --> 00:28:23,440 The issue was we had a 5G antenna above our lab and all kinds of other antennas. 276 00:28:23,440 --> 00:28:30,020 So we had so much interference, we weren't able to really get it working and replicate it. 277 00:28:30,040 --> 00:28:36,920 So one of our interns had the crazy idea to do this. 278 00:28:37,080 --> 00:28:43,100 He connected the antenna, so to speak, to the ground of the house. 279 00:28:43,920 --> 00:28:47,180 And it turns out this works. 280 00:28:47,280 --> 00:28:51,180 You can attack PLC communication via the ground itself. 281 00:28:52,360 --> 00:29:00,500 Because in electric charging, the car and the charging station create a pen system. 282 00:29:00,500 --> 00:29:03,620 So PE and neutral is the same. 283 00:29:04,120 --> 00:29:14,960 And in the charging cable, we have a really thick ground cable, which is basically also directly hooked up to the building in this case, because the charger was inside. 284 00:29:15,800 --> 00:29:21,160 But yeah, you can send data and you can read data depending on the sensitivity settings. 285 00:29:21,160 --> 00:29:23,940 On your attacking device. 286 00:29:23,940 --> 00:29:25,980 And it does work. 287 00:29:25,980 --> 00:29:31,200 The easiest way to use this as an attack is in the denial of service. 288 00:29:31,860 --> 00:29:38,100 Because PLC communication or power line communication is basically a sliding window protocol. 289 00:29:38,460 --> 00:29:46,480 But if you fill up all the spots, the charging won't work because they can't do the slack handshake anymore. 290 00:29:47,700 --> 00:29:59,260 So you could basically build a very, very small implant device and hide it next to a charge park, which would be basically impossible to find. 291 00:30:00,020 --> 00:30:04,040 And make sure that EV charging never works in this location. 292 00:30:05,600 --> 00:30:08,640 And there is no real fix for it. 293 00:30:08,640 --> 00:30:19,020 We did do some testing and we found some ways to block the signals from external with ferrite cores, for example. 294 00:30:19,580 --> 00:30:26,480 But it's not a really good solution because you can also just use the screw of the wheel, for example. 295 00:30:27,260 --> 00:30:37,060 We also used the isolation of an Ethernet cable, connected it to a switch somewhere in the building, did the attack and the charging still failed. 296 00:30:37,560 --> 00:30:42,580 So you'd only need some way of ground communication and the ground is everywhere. 297 00:30:43,000 --> 00:30:51,200 And if you amplify the signal into the ground, as long as you don't trip any fuses, the range is basically unlimited. 298 00:30:53,840 --> 00:30:59,900 So what do you actually do, can you do to get into the network? 299 00:31:00,140 --> 00:31:12,020 So at the beginning, there's the slack protocol or slack exchange, which is basically the exchange of a network key, which is sent in plain text. 300 00:31:12,020 --> 00:31:24,840 So you can just open Wireshark, if you have a module which does all the decoding for you, read out a key and then join the PLC network and you're in. 301 00:31:25,160 --> 00:31:31,020 But obviously we're lazy, so here's a Python script to automate it. 302 00:31:31,020 --> 00:31:38,240 I'm using the Home Plug Pawn library, which is out there for quite a few years now. 303 00:31:39,280 --> 00:31:49,880 But with this, you can basically also get started with researching this topic, because most of the actual Qualcomm functionality is strictly under NDA. 304 00:31:50,320 --> 00:32:00,960 It has been leaked all over the places in older versions, but if you want to do it fully legally, this would be a good way to get started. 305 00:32:03,500 --> 00:32:06,000 So how does it look like when we actually run this? 306 00:32:06,000 --> 00:32:11,240 So here I'm basically just connected to this development board. 307 00:32:12,240 --> 00:32:18,120 I have my wire around the charging cable and listening to the slack exchange. 308 00:32:18,120 --> 00:32:23,640 I then read out the key, set it to my own module and can join the network. 309 00:32:24,240 --> 00:32:30,280 In this case, I also spoof the MAC address of the charger itself. 310 00:32:31,120 --> 00:32:41,040 Because the module does filter a lot of traffic by default, which can't really be disabled in a normal firmware stack. 311 00:32:42,080 --> 00:32:46,800 So this is the best way to get more traffic out of it. 312 00:32:46,800 --> 00:32:53,240 Else all the IPv6 traffic, for example, will be filtered out and you don't only see the broadcast messages. 313 00:32:55,380 --> 00:33:08,840 So when you join the network, you can then, for example, dump the configuration file from a car or a charger, depending on what your victim wants to be like in this case. 314 00:33:09,340 --> 00:33:21,860 And if you do a strings command on the PIP file, you then also can see the firmware version of this specific PIP file. 315 00:33:22,040 --> 00:33:29,340 And as you see here, it was a quite late model of a car and it's running one of the very, very first firmwares. 316 00:33:29,780 --> 00:33:35,000 So there hasn't been any kind of update for at least eight years or plus. 317 00:33:36,320 --> 00:33:39,560 But yeah, you can even do more fun things. 318 00:33:41,160 --> 00:33:48,580 All right, so next up, we've seen that these models can do a lot if you've kind of used them in somewhat unintended ways. 319 00:33:48,580 --> 00:33:52,120 So now what happens if you use them in a really unintended way? 320 00:33:52,120 --> 00:34:00,680 So for this, we need to kind of start looking at the firmware even more to really understand what's in there and potentially what could we put in there. 321 00:34:01,720 --> 00:34:06,640 So it's basically time to start kind of having a bit of look at the reverse engineering of these chips. 322 00:34:06,640 --> 00:34:12,600 So first, if we just start to look at the developer board, we have the kind of small chip, which is the QCA7000. 323 00:34:12,600 --> 00:34:14,520 That's the communication model itself. 324 00:34:14,600 --> 00:34:17,540 And I said that it connects to the host system via Ethernet. 325 00:34:17,640 --> 00:34:23,100 Turns out that's not entirely true because the chip doesn't have an Ethernet hardware in it. 326 00:34:23,100 --> 00:34:26,100 So it needs this external Ethernet to SPI adapter. 327 00:34:26,480 --> 00:34:31,020 But the packets themselves, logically speaking, are still full Ethernet frames going through. 328 00:34:31,760 --> 00:34:40,900 More importantly, though, it also needs an SPI flash chip, at least if you're not using the host booting setting, where it stores the firmware and it stores the PIB. 329 00:34:42,120 --> 00:34:53,680 So the next logical step, if you kind of want to see what's going on inside of the chips, especially since you are not able to just download the firmware from the Internet, is to dump the flash chip and see what's really on there. 330 00:34:53,680 --> 00:34:55,280 What is this chip running? 331 00:34:56,360 --> 00:35:07,460 So conveniently, if we take a look at OpenPLC utils and start digging through the source code, there are actually all the tools necessary for doing a firmware update for modifying the PIB. 332 00:35:07,460 --> 00:35:14,920 Turns out they like reusing code, and the code is to do something called NVM chains, the non-volatile memory chains. 333 00:35:14,920 --> 00:35:18,920 This is the kind of way they store data in flash. 334 00:35:18,920 --> 00:35:22,000 It's essentially a doubly linked list of headers and blocks. 335 00:35:22,020 --> 00:35:29,440 Each of the headers contains the checksum for itself, the checksum for the data, as well as some metadata about what's to follow. 336 00:35:30,080 --> 00:35:36,320 I should note that I didn't find any signatures anywhere, so it's all just a really, really simple XOR checksum. 337 00:35:36,320 --> 00:35:40,840 And the code for it, again, is conveniently provided by OpenPLC utils already in C. 338 00:35:40,840 --> 00:35:43,040 So no need to reverse engineer any of that. 339 00:35:44,140 --> 00:35:47,700 So we understand this kind of structure of the chains. 340 00:35:47,700 --> 00:36:04,220 They actually are really convenient, because the first block in every chain is always something called a manifest, which is a bunch of actual, quite human-readable text of build numbers, build dates, version numbers, this type of thing that might be interesting to understand what you're looking at. 341 00:36:04,500 --> 00:36:10,020 So if we dump the flash chip, what we're really expecting to find is basically the firmware and the PIB, right? 342 00:36:11,000 --> 00:36:16,680 Well, we did the dump, and the first thing we see is, indeed, right at the start of the flash chip. 343 00:36:16,680 --> 00:36:19,500 It's only two megabytes, so not too much to go through. 344 00:36:19,740 --> 00:36:23,080 It's something that describes itself as a soft loader. 345 00:36:23,540 --> 00:36:28,760 It's also reasonably short, and it just seems to be some sort of, essentially, bootloader code. 346 00:36:28,800 --> 00:36:36,740 And additionally, it has something at the end called the flash layout section, which describes everything else that we are about to find on this flash chip. 347 00:36:37,020 --> 00:36:39,720 So the next thing is the firmware chain. 348 00:36:40,040 --> 00:36:44,320 So this contains a bunch of modules with the names as shown on the screen. 349 00:36:44,320 --> 00:36:47,260 I don't fully understand what they actually do yet. 350 00:36:47,260 --> 00:36:52,160 They seem to be probably some sort of initialization modules to really set everything up. 351 00:36:52,700 --> 00:36:57,140 And then at the end, we have the actual firmware section. 352 00:36:57,260 --> 00:37:11,440 And inside the firmware section, they really like NVM chains, so there is an entire second NVM chain inside of this data block, which contains a very, very short firmware section and a very, very long high-entropy binary blob. 353 00:37:11,960 --> 00:37:20,560 Now, this, when I saw it, kind of really sucked because if it's some high-entropy blob, this obviously means that they've done the logical thing to encrypt their firmware. 354 00:37:21,400 --> 00:37:24,420 But let's just keep poking around just to see what else we can find. 355 00:37:24,420 --> 00:37:28,440 So there is an area for custom modules, apparently, which is entirely empty. 356 00:37:28,440 --> 00:37:30,880 I'm not entirely sure who uses it. 357 00:37:31,000 --> 00:37:33,820 There is also a PIB section, which is as expected. 358 00:37:33,900 --> 00:37:39,700 A scratch area, which just seems to be kind of fragments from memory copying, probably during the firmware update process. 359 00:37:39,780 --> 00:37:43,280 And then an entire backup of the firmware, just in case something were to happen to it. 360 00:37:45,000 --> 00:37:56,420 So, an approximation for how the boot process works is that some sort of boot loader loads the soft loader, and then the soft loader loads all of these initialization modules. 361 00:37:56,440 --> 00:38:07,780 The initialization, and after that, it loads the actual kind of the small firmware image, which is probably some sort of decryption final loading stage, and then it jumps into the big blob. 362 00:38:08,840 --> 00:38:19,140 So, we wanted to kind of go deeper in and we started by looking and reverse engineering the code for the actual firmware loading section. 363 00:38:19,480 --> 00:38:22,920 So , it is just ARMv5 instructions. 364 00:38:26,540 --> 00:38:39,380 And yes, what it does is, much as we expected, it loads in the big binary blob from Flash, and then it calls to a function in the high F address range, and then it jumps into the blob. 365 00:38:39,380 --> 00:38:44,800 Now, this high F address range is entirely separate from everywhere where content from the Flash is getting loaded. 366 00:38:45,020 --> 00:38:48,140 So, if we want to track down this code, we must look somewhere else. 367 00:38:48,780 --> 00:38:56,820 And with a bit of research, we quickly also found out that ARM uses an entry point up in the high Fs, at least it's one of the options. 368 00:38:57,220 --> 00:39:01,860 And so, we assume that this must be in somewhere in the boot loader, which is great. 369 00:39:01,860 --> 00:39:04,780 However, the boot loader is on the chip itself. 370 00:39:05,300 --> 00:39:09,300 And if they don't give us the firmware, they're definitely not going to give us the boot loader. 371 00:39:09,900 --> 00:39:11,740 So, how do we get this? 372 00:39:11,740 --> 00:39:13,560 Well, we do have code execution. 373 00:39:13,900 --> 00:39:21,140 As I said, a bunch of these modules right before the firmware itself gets loaded, they're just plain binaries on the Flash. 374 00:39:21,460 --> 00:39:25,300 I can easily write to them via a chip clip, at least. 375 00:39:26,280 --> 00:39:29,160 And, yes, I can create my own custom code. 376 00:39:29,160 --> 00:39:31,660 This is easy, and there's also no signature checking. 377 00:39:31,700 --> 00:39:34,040 The checksums are very easy to calculate. 378 00:39:34,100 --> 00:39:35,180 So, that's all good. 379 00:39:35,180 --> 00:39:37,060 I just need some sort of IO. 380 00:39:37,480 --> 00:39:39,760 Now, this is a communication modem after all, right? 381 00:39:39,760 --> 00:39:40,980 So, that should be very easy. 382 00:39:40,980 --> 00:39:42,800 The whole thing is full of IO. 383 00:39:42,900 --> 00:39:51,620 It has PLC, which is true, except the PLC subsystem is only ever initialized by the firmware, which I have not seen. 384 00:39:51,620 --> 00:39:54,220 So, I have absolutely no clue how to use the PLC hardware. 385 00:39:54,600 --> 00:39:58,460 Same thing applies to the Ethernet interface and to the GPIOs. 386 00:39:58,500 --> 00:40:01,980 The only IO we've actually seen is reading from Flash. 387 00:40:02,000 --> 00:40:11,480 Because of how the write protect works, I don't exactly know how you can write to Flash, because I would need to toggle some more GPIOs to actually enable the write feature of the Flash chip. 388 00:40:11,680 --> 00:40:13,140 But at least I can read. 389 00:40:13,560 --> 00:40:17,320 So, I came up with a rather simple little attack script. 390 00:40:18,000 --> 00:40:19,460 Don't mind the assembly. 391 00:40:19,460 --> 00:40:27,880 That's just to make sure that relative memory addresses are aligned exactly as they need to be when you actually slot this code in somewhere into the soft loader. 392 00:40:28,280 --> 00:40:39,840 But essentially what it does is it goes through the bootloader address space and takes the data that we would like to exfiltrate and treats it as a Flash address and then issues a write command to that address. 393 00:40:40,140 --> 00:40:45,140 Now this is in a sense entirely useless because we're just reading from random locations on the Flash chip. 394 00:40:45,140 --> 00:40:46,340 It's a null operation. 395 00:40:46,540 --> 00:41:00,020 But if we hook up a chip clip or some sort of chip debugger, we can actually record the SPI traffic coming out of the chip and by slowly reassembling all of the addresses, we can actually figure out what the entire data it's sending is. 396 00:41:00,400 --> 00:41:02,880 And so this is how we got out the entire bootloader. 397 00:41:03,600 --> 00:41:08,060 So now that we have the bootloader, we could actually start engineering this as well. 398 00:41:08,360 --> 00:41:11,840 And we found quite a lot of interesting stuff in here. 399 00:41:11,960 --> 00:41:16,220 So we found the SPI subsystem, which connects to the host interface. 400 00:41:16,320 --> 00:41:21,520 We also found SPI to our Flash in slightly more detail than we've been able to see so far. 401 00:41:21,760 --> 00:41:25,580 We've also found evidence of an entire Ethernet driver. 402 00:41:26,340 --> 00:41:33,980 So even though the chip itself doesn't directly support Ethernet, it seems like there might be other hardware variants which have the hardware integrated. 403 00:41:33,980 --> 00:41:36,880 And so the bootloader code already contains this as well. 404 00:41:37,500 --> 00:41:45,340 Now, all of this is pretty painful to go through because it seems to have been compiled from C++ or some similar language. 405 00:41:45,340 --> 00:41:51,320 So there are a lot of virtual function tables and similar other kind of complexities. 406 00:41:51,320 --> 00:41:58,160 Also many, many layers of pointers jumping around, even though they all point to entirely fixed hard-coded addresses. 407 00:41:59,880 --> 00:42:02,500 So anyways, it's been a fun reversing task. 408 00:42:02,500 --> 00:42:05,060 And we could also look at the mysterious decryption function. 409 00:42:05,120 --> 00:42:09,940 Turns out it was standard LZMA compression with default settings. 410 00:42:11,300 --> 00:42:17,580 So that's in a sense good, because at least it means I don't need to break any encryption here. 411 00:42:18,800 --> 00:42:21,760 So for the next steps, what can we do? 412 00:42:21,760 --> 00:42:25,460 Well, we would like to create proper C headers for all of the peripherals. 413 00:42:25,460 --> 00:42:36,740 We've been able to kind of find some of the functions which do certain tasks with the peripherals, but we don't fully understand the memory-mapped IO registers themselves or necessarily all of the parameters in detail yet. 414 00:42:37,740 --> 00:42:48,020 And then also now that we know how to actually decrypt the main, or decompress the main firmware image, we can start decompiling that to see what sort of secrets are hiding within. 415 00:42:48,540 --> 00:42:55,520 We can also, once we have this firmware, start reversing the interface towers, the PLC subsystem, so the actual PLC hardware. 416 00:42:55,920 --> 00:43:00,560 I have a suspicion that there is quite a lot that's happening purely in software. 417 00:43:00,860 --> 00:43:15,620 So if you're able to really reverse this firmware and start creating your own, then that's going to open up the whole possibility of doing a lot with kind of the building block RF hardware that's inside of this chip to make kind of weird new custom protocols. 418 00:43:16,760 --> 00:43:21,460 So yeah, this would then allow us to do everything that we need to properly create custom powerline firmware. 419 00:43:21,820 --> 00:43:35,900 Now, unfortunately, we didn't quite get this far before the talk started, but in one of our calls, kind of planning for this conference, Jan asked me, but we really should do a demo and can it run Doom? 420 00:43:37,500 --> 00:43:42,120 So a normal person would have probably laughed this off as a joke. 421 00:43:42,600 --> 00:43:45,360 Anyway, I started reviewing the situation carefully. 422 00:43:45,360 --> 00:43:48,420 First of all, we have very limited flash and very limited RAM. 423 00:43:48,420 --> 00:43:53,160 I also don't know how much RAM we have, and I don't know what address the RAM is at. 424 00:43:53,880 --> 00:43:55,240 Again, no documentation. 425 00:43:55,240 --> 00:43:57,960 I only know some small address spaces that I can use. 426 00:43:58,640 --> 00:44:00,020 We have I.O. 427 00:44:00,020 --> 00:44:05,560 We have, now that we've seen the bootloader code, actually access to the Ethernet to get off of the chip. 428 00:44:05,820 --> 00:44:09,940 There is, of course, no screen or human input device or anything like that connected, though. 429 00:44:10,320 --> 00:44:12,000 There's also no operating system. 430 00:44:12,000 --> 00:44:13,020 It's just a single core. 431 00:44:13,020 --> 00:44:14,660 It's essentially a microcontroller. 432 00:44:14,820 --> 00:44:17,460 I mean, after all, this is a communication chip. 433 00:44:17,460 --> 00:44:20,920 This is not supposed to be the brain of your charging system . 434 00:44:20,980 --> 00:44:23,460 This is an equivalent of a Wi -Fi chip. 435 00:44:24,020 --> 00:44:26,240 There's also no floating point, as you may assume. 436 00:44:26,240 --> 00:44:29,140 So yes , so in short, yes, yes, it can. 437 00:44:30,000 --> 00:44:37,560 So we created this simple little demo here where we have the power line modem and it's connected just to my computer via Ethernet. 438 00:44:37,620 --> 00:44:46,360 And then as I power on the modem, it will slowly start to boot, initiate a UDP connection and start sending back frames. 439 00:44:46,360 --> 00:44:53,140 Now the frames are somewhat low resolution because I needed to fit every frame into a single UDP packet. 440 00:44:54,440 --> 00:44:59,240 But yes, and then in turn my computer sends back, 441 00:45:06,560 --> 00:45:11,460 yes , and then in turn I just send back the keyboard and mouse input to the chip also via UDP. 442 00:45:11,460 --> 00:45:13,960 And so all the rendering is just happening on chip. 443 00:45:14,520 --> 00:45:17,280 And then as we unplug it, as expected, the frames stop coming. 444 00:45:18,840 --> 00:45:20,800 And yeah, this can run in real time. 445 00:45:20,800 --> 00:45:27,320 So the chip does have some amount of processing power to it, though it did take some optimizing to get it to run at a reasonable frame rate. 446 00:45:27,780 --> 00:45:30,500 It's a communication chip not designed for 3D graphics. 447 00:45:35,020 --> 00:45:40,400 All right, you shouldn't take everything so serious when I say. 448 00:45:45,400 --> 00:45:54,780 All right, so as we've shown, there are multiple issues with the standard and the chip everyone uses. 449 00:45:55,060 --> 00:46:01,160 And one of the issues is even these development boards can't be bought privately. 450 00:46:01,160 --> 00:46:08,400 This can only be bought business to business, which makes security research quite limited. 451 00:46:08,400 --> 00:46:14,860 But we definitely need more research in this field. 452 00:46:14,860 --> 00:46:25,360 There's basically nothing public and security by obscurity never works, especially as soon as you dump the firmware in the bootloader. 453 00:46:25,480 --> 00:46:26,980 It's kind of open source anyway. 454 00:46:26,980 --> 00:46:39,670 So therefore, we would recommend that the standard goes fully public, even though it's vendor-specific implementation. 455 00:46:40,360 --> 00:46:46,120 For the signal leakage, well, yes, you could use shielded cables. 456 00:46:46,120 --> 00:46:51,360 I've seen a lot of discussions about this when it came to the original broken wire tech. 457 00:46:52,820 --> 00:46:56,780 Yeah, you need to connect the shield to something, right? 458 00:46:56,780 --> 00:46:59,420 And what is it connected to in most cases? 459 00:46:59,420 --> 00:47:00,880 To ground. 460 00:47:00,880 --> 00:47:03,560 But we can attack near the ground as well. 461 00:47:03,560 --> 00:47:06,500 So the shielding doesn't help at all. 462 00:47:08,060 --> 00:47:16,900 Something I like to tell people, maybe I show them like a piece of wire, and I say, what's the difference between this piece of wire and an antenna? 463 00:47:16,900 --> 00:47:17,520 Nothing. 464 00:47:18,020 --> 00:47:21,600 Yeah, so everything radiates. 465 00:47:21,600 --> 00:47:35,320 So you could add some kind of ferrite cores at some end, but then you can still attack via the other one because the communication in between still needs to be undisturbed. 466 00:47:36,200 --> 00:47:38,200 Then what about network intrusion? 467 00:47:38,200 --> 00:47:40,440 Yes, you could implement secure slack. 468 00:47:40,440 --> 00:47:42,310 It's actually defined in the standard. 469 00:47:42,620 --> 00:47:44,180 It's not there anymore. 470 00:47:44,180 --> 00:47:52,920 But even if you would implement secure slack so you can't intrude into the network, it wouldn't work. 471 00:47:52,960 --> 00:48:03,700 The issue is there are already a lot of chargers out there, a lot of cars out there, and not all manufacturers are able to remotely update the firmware. 472 00:48:04,080 --> 00:48:09,880 So you need to have a downgrade version where this attack is still possible again . 473 00:48:10,340 --> 00:48:18,280 So with these issues, we're probably talking about five to 10 years in a reasonable time frame to be resolved. 474 00:48:19,520 --> 00:48:24,960 And this is a big issue because the EV industry is growing. 475 00:48:24,960 --> 00:48:26,600 It is critical infrastructure. 476 00:48:27,500 --> 00:48:32,620 So we need more people to take a look at it, break it. 477 00:48:32,880 --> 00:48:42,220 We are happy if people break our product, but please ask for permission from the owners because we don't operate the chargers. 478 00:48:42,220 --> 00:48:46,720 We sell them and some other company is actually managing them. 479 00:48:46,720 --> 00:48:50,460 So please ask for permission again and be very careful. 480 00:48:51,280 --> 00:48:57,780 But in my personal opinion, we should get rid of PLC in the long term anyway. 481 00:48:57,780 --> 00:49:03,760 It should stay where it should be in your home network if you really need it. 482 00:49:04,300 --> 00:49:17,740 Because what we have found, and again, we can't share everything yet, it is fully broken, in my opinion, and I don't see any reasonable fix coming. 483 00:49:17,760 --> 00:49:21,540 And there are different standards out there, like CAN. 484 00:49:21,540 --> 00:49:25,560 Yes, CAN is also not really secure, but it's better in a sense. 485 00:49:25,560 --> 00:49:28,760 Or now with MCS, it's basically Ethernet. 486 00:49:28,820 --> 00:49:31,500 Remove the unnecessary complexity. 487 00:49:31,760 --> 00:49:37,860 There are not more than enough attack vectors in the Ethernet IP stack in itself. 488 00:49:38,240 --> 00:49:40,800 No need to make it more complex as need be. 489 00:49:42,960 --> 00:49:44,700 And yeah, that's it. 490 00:49:44,700 --> 00:49:45,840 If you have any questions... 491 00:49:52,580 --> 00:50:02,920 And we also put some references here, which might get you help started in researching this topic. 492 00:50:03,920 --> 00:50:05,080 But yeah. 493 00:50:06,880 --> 00:50:07,980 All right. 494 00:50:08,360 --> 00:50:09,280 Sure. 495 00:50:10,240 --> 00:50:11,160 Yeah. 496 00:50:18,120 --> 00:50:22,080 It depends on the manufacturer. 497 00:50:22,080 --> 00:50:26,760 Most car manufacturers, especially in Europe, I haven't tested any in the US. 498 00:50:26,760 --> 00:50:30,060 I did have a chance to test some in Asia. 499 00:50:30,060 --> 00:50:34,100 They use host boot, so it wouldn't be a persistent attack. 500 00:50:35,460 --> 00:50:39,100 But you can still attack the PLC communication. 501 00:50:39,160 --> 00:50:51,220 And depending how their internal ECU network setup is, you could theoretically, with some spoofing attacks, break into internal networks , for example. 502 00:50:51,220 --> 00:50:57,940 So it's more like an initial attack vector than a full exploit you have root or something. 503 00:51:16,880 --> 00:51:20,480 So the spec explicitly says it should be interoperable. 504 00:51:20,480 --> 00:51:28,360 And I don't think we did, but there is some work out there of people using these home adapters and getting them to talk to chargers. 505 00:51:28,360 --> 00:51:29,480 So you can do it. 506 00:51:31,520 --> 00:51:42,240 So with the home plug modules you have at home, they run on AC and neutral most of the time. 507 00:51:42,380 --> 00:51:48,520 And here it's PE and DC, or yeah, 24 volts. 508 00:51:48,520 --> 00:51:50,040 But it's basically the same. 509 00:51:50,040 --> 00:51:54,620 So it does work somewhat, but it really depends on the firmware versions. 510 00:51:54,620 --> 00:51:58,300 So there are some hoops you need to run. 511 00:52:01,520 --> 00:52:10,080 Interface into this kind of an app, or you're actually, what you're doing is it's superimposing itself on what's called a control pilot system. 512 00:52:10,520 --> 00:52:11,440 Exactly. 513 00:52:11,560 --> 00:52:16,060 It's a matter of really just changing up the coupling transform of what they use. 514 00:52:16,280 --> 00:52:17,040 Yep. 515 00:52:20,910 --> 00:52:22,590 Any more questions? 516 00:52:34,190 --> 00:52:40,690 The box you talked about, again, to do the grounding attack, have you all tried that or is that the next step of research for you both? 517 00:52:41,510 --> 00:52:44,490 We have attacked via the ground successfully. 518 00:52:44,490 --> 00:52:50,590 It does work, but we're not sharing everything at this moment. 519 00:52:51,790 --> 00:52:58,750 And the whole vulnerability in itself, like with the security bit, is unpatched, by the way. 520 00:52:58,750 --> 00:53:01,830 There's no security fix by Qualcomm yet. 521 00:53:09,230 --> 00:53:11,210 Is it enabled to secure the good things by 522 00:53:14,980 --> 00:53:15,580 Qualcomm ? 523 00:53:17,280 --> 00:53:21,320 Yeah, so funnily enough, Tesla actually just recently made a change. 524 00:53:21,320 --> 00:53:29,040 Tesla used to be CAN, and then they wanted to be interoperable with everyone else, so they now switched to ISO 15118. 525 00:53:30,720 --> 00:53:37,820 So yeah, it can probably be, you can probably start doing it in a way that you make, put both hardware in there and you eventually switch it over. 526 00:53:38,000 --> 00:53:42,460 Evidently, if Tesla could put both into the same car, then it is possible to do. 527 00:53:43,760 --> 00:53:51,640 But yeah, I don't know if anyone's really going to start doing this, because first you need the standards to be set up, and then for them to be some reason to do. 528 00:53:54,900 --> 00:53:56,160 I know, of course. 529 00:54:02,710 --> 00:54:07,690 Yeah, I would say it's not really feasible for the big picture. 530 00:54:08,130 --> 00:54:15,230 There are some manufacturers, car manufacturers, who claim they build MCS cars. 531 00:54:16,030 --> 00:54:20,690 So with the MCS adapter, which would be just Ethernet, automotive Ethernet. 532 00:54:21,210 --> 00:54:25,990 But I don't believe this will be widely adopted. 533 00:54:28,830 --> 00:54:36,370 Yeah, also we did, so we did this measurement study I mentioned, also looking into the protocols is the archive link you can see on screen as well. 534 00:54:36,410 --> 00:54:44,390 And there we found that about half the chargers still use the 2012 version of the actual communication, like IP stack. 535 00:54:44,390 --> 00:54:46,590 So like protocol. 536 00:54:46,790 --> 00:54:49,870 So it's even though this is, this is really just a software update. 537 00:54:49,870 --> 00:54:53,110 And this whole protocol is designed in a way that it has version negotiation. 538 00:54:53,110 --> 00:54:56,590 So if you just put the new ones on, it won't harm anything. 539 00:54:56,870 --> 00:54:59,150 They still just don't have the new ones on. 540 00:54:59,450 --> 00:55:00,190 So yeah. 541 00:55:00,990 --> 00:55:01,870 Cool. 542 00:55:03,330 --> 00:55:05,230 Yeah, thank you for the answer. 543 00:55:05,430 --> 00:55:06,230 Thanks.