1 00:00:00,000 --> 00:00:01,220 All right, welcome back. 2 00:00:01,220 --> 00:00:02,700 Thank you everybody for coming. 3 00:00:02,700 --> 00:00:10,380 Our next speaker is Ben Brecht with man-in-the-middle privacy attacks on mixed-mode butterfly key expansion protocol, which he's going to be saying three times fast. 4 00:00:10,380 --> 00:00:11,120 Go! 5 00:00:11,660 --> 00:00:12,860 Thanks a lot. 6 00:00:13,440 --> 00:00:15,300 Thanks for coming to my talk. 7 00:00:17,360 --> 00:00:19,300 I have some wobbly legs right now. 8 00:00:19,300 --> 00:00:25,540 I don't know if that's because I'm standing up here and giving this talk or if that's due to the DEF CON bike ride we did this morning. 9 00:00:27,920 --> 00:00:30,700 But let's go and start my talk. 10 00:00:30,700 --> 00:00:32,900 I'm going to talk about butterfly keys. 11 00:00:32,900 --> 00:00:36,800 I will explain what it is and a man-in-the-middle attack on the privacy there. 12 00:00:36,800 --> 00:00:39,400 But first of all, I have to give a disclaimer . 13 00:00:40,020 --> 00:00:42,840 I prepared this talk in my private time. 14 00:00:43,280 --> 00:00:46,880 I do not represent anything else than myself. 15 00:00:47,080 --> 00:00:50,100 No company, no organization, no nothing. 16 00:00:50,600 --> 00:00:54,360 I unfortunately have to do that at the beginning of the talk. 17 00:00:55,300 --> 00:00:57,520 So, butterfly keys. 18 00:00:57,520 --> 00:00:59,140 What are they good for? 19 00:00:59,360 --> 00:01:02,680 Why would you be interested in butterfly keys? 20 00:01:03,040 --> 00:01:15,260 Butterfly keys is, first of all, a key derivation function on public-private keys, not on symmetric keys, but asymmetric keys, which is rather unusual, I think. 21 00:01:15,260 --> 00:01:32,760 And it also is a protocol that can and is be used in low computational power devices that don't have that much bandwidth, so low bandwidth environments, and that maybe even have low secure storage available. 22 00:01:33,780 --> 00:01:41,480 But on the other hand, they might need certificates or maybe many of them, not just one, but a couple hundred or thousands. 23 00:01:42,820 --> 00:01:52,760 That is what this protocol was invented for, and specifically for V2X, vehicle-to-everything communication. 24 00:01:53,740 --> 00:01:57,600 But I think it can be easily transferred to other use cases as well. 25 00:01:57,840 --> 00:01:59,900 For example, IoT devices. 26 00:02:00,080 --> 00:02:06,160 So, V2X is just one example that I want to bring up here and give a little bit of background on. 27 00:02:06,320 --> 00:02:20,980 V2X is the direct communication between devices, vehicle and infrastructure, or vehicle and vehicle, in sometimes unmanaged settings, but sometimes also managed settings when we look at cellular V2X. 28 00:02:21,260 --> 00:02:24,020 Unmanaged means there's no infrastructure involved. 29 00:02:24,020 --> 00:02:25,780 They're immediately sending messages. 30 00:02:25,780 --> 00:02:28,740 There's no hotspot, no cellular tower. 31 00:02:29,100 --> 00:02:33,080 They are communicating really directly with each other, and managed is the other way around. 32 00:02:33,080 --> 00:02:34,840 There is some infrastructure in between. 33 00:02:36,200 --> 00:02:45,760 To give you a better picture, applications that are being implemented right now, or that are being researched right now, are, for example, forward collision warning. 34 00:02:45,760 --> 00:03:00,660 If there's a car braking, a couple of cars in front of you, you get a message, or your car gets a message, and the car then can show you a warning that there is a car braking, or even start incorporating that into active safety features, like engaging the brakes. 35 00:03:01,580 --> 00:03:09,520 This is something that you can't do with traditional sensors, because you most probably only see the car right in front of you, but not a couple of cars ahead. 36 00:03:10,580 --> 00:03:13,840 Or intelligent traffic signals. 37 00:03:13,940 --> 00:03:23,640 They can count the number of cars coming from any direction, and then react to this appropriately by extending green faces, for example. 38 00:03:24,720 --> 00:03:28,040 Another one is road condition reporting. 39 00:03:28,940 --> 00:03:35,780 This is more in my area, where I'm from, not probably over here, Michigan, the northern part of the USA. 40 00:03:36,660 --> 00:03:51,500 Vehicles that are out there to maintain the road, they could report back what the current conditions are, and traffic management centers could react to this, in order to traverse traffic to other directions, for example. 41 00:03:52,160 --> 00:03:59,520 And just to give you an idea where this could go, another last application, four-way stop. 42 00:03:59,520 --> 00:04:10,000 When you have a four-way stop intersection, you most probably, or in some cases, you wouldn't need to stop any of the cars approaching the intersection. 43 00:04:10,000 --> 00:04:23,880 For example, if a car is coming up and driving straight through, and or intends to drive straight through, and from the left-hand side comes a car that wants to turn right, they wouldn't collide, so both of them could go immediately. 44 00:04:24,640 --> 00:04:27,380 They can't do this today, because they can't communicate. 45 00:04:28,380 --> 00:04:32,280 Drivers have to communicate with each other, and therefore it's safer to stop. 46 00:04:32,660 --> 00:04:38,340 But in the future, there could be like a notification to the driver, just go straight ahead, just turn right. 47 00:04:38,700 --> 00:04:44,400 Or when we look more into the future, into automotive vehicles, they could do this on their own. 48 00:04:45,880 --> 00:04:47,460 Okay, what do you need for that? 49 00:04:47,540 --> 00:04:53,040 When you exchange messages between cars, first of all, integrity of the message. 50 00:04:53,040 --> 00:04:59,300 Nobody should be able to change the message content without the receiving end noticing that. 51 00:04:59,540 --> 00:05:05,260 And the other part, sorry for that, is authenticity. 52 00:05:05,560 --> 00:05:17,460 You need to make sure that the receiving end is able to distinguish messages coming from authentic devices that are allowed to send those messages from devices that are not. 53 00:05:18,120 --> 00:05:24,220 Like somebody sitting on the sidewalk, or somebody with a car from 54 00:05:27,540 --> 00:05:28,420 a junkyard. 55 00:05:28,800 --> 00:05:29,820 How do we do this? 56 00:05:29,820 --> 00:05:32,800 This is traditional technology, there's nothing new to that. 57 00:05:32,800 --> 00:05:36,160 You have a message, in this case a basic safety message that I brought here. 58 00:05:36,160 --> 00:05:39,880 There are a couple of payload data in there, speed, position, heading. 59 00:05:39,880 --> 00:05:43,640 And then you have a signature, and you have a certificate. 60 00:05:43,720 --> 00:05:48,940 And with certificates, there is a public key infrastructure for that, as we know. 61 00:05:49,480 --> 00:05:51,940 Nothing new about that so far. 62 00:05:52,240 --> 00:05:59,520 The issue is, when you have certificates, you could use that for tracking the device. 63 00:05:59,580 --> 00:06:12,780 You could use this as a fingerprint or an ID of the device, so you only have to put up listening posts in two places that you want to kind of figure out if a certain car is going to. 64 00:06:13,580 --> 00:06:25,180 And once you see that certificate in the first place, and can attach that to the car, and you see this certificate showing up in the second place, you know that this vehicle was in both places. 65 00:06:26,360 --> 00:06:29,140 And we want to avoid that for sure. 66 00:06:29,720 --> 00:06:31,440 So how do we avoid this? 67 00:06:31,440 --> 00:06:40,580 First of all, the overall communication stack in V2X is always required to change all IDs in a certain manner. 68 00:06:41,140 --> 00:06:47,600 This goes down to the MAC address, to anything that you could use for fingerprinting, and also the certificate. 69 00:06:49,580 --> 00:07:05,040 So what you need to do is, you need to have many certificates, and you need to have non-traditional certificates that don't include any identifying information like a domain name, or a vehicle identification number, or anything like that. 70 00:07:05,360 --> 00:07:07,100 There's a standard for this. 71 00:07:07,100 --> 00:07:13,980 The reference over there is an IEEE standard, which is defining the exact content of that. 72 00:07:14,700 --> 00:07:16,600 And then you get a whole bunch of them. 73 00:07:16,660 --> 00:07:26,480 Like, you have masks that you can hide behind, and you just exchange them every time you exchange all the other IDs. 74 00:07:26,680 --> 00:07:31,580 And you throw this certificate that you used before away, and never use it again. 75 00:07:31,700 --> 00:07:41,780 Therefore, listening posts that are in different places wouldn't be able to figure out by just seeing the certificates, or listening to any of the other IDs, that this is actually the same car. 76 00:07:42,440 --> 00:07:44,440 So this is new. 77 00:07:44,440 --> 00:07:46,220 We need a whole bunch of them. 78 00:07:46,640 --> 00:07:57,280 Currently in the European Union, for example, there are standards that require up to 100 certificates per vehicle, or per device, and week. 79 00:07:57,740 --> 00:08:03,660 In the US, the debate is currently at 20 certificates per weekend vehicle. 80 00:08:03,900 --> 00:08:07,420 I think the truth is somewhere in the middle. 81 00:08:08,120 --> 00:08:16,820 But it's more than traditional PKI so far have provided to any other devices that I know of. 82 00:08:16,900 --> 00:08:32,020 So if you look at the number of vehicles in the United States, for example, which is roughly something between, I don't know , 100 million to 450 million currently in the car, 70 million devices, new devices each year. 83 00:08:32,460 --> 00:08:41,160 This is easily going to be the biggest, largest PKI that existed so far. 84 00:08:41,880 --> 00:08:52,120 So we needed a new approach to issue certificates to those devices in an efficient manner. 85 00:08:52,120 --> 00:09:06,860 But at the same time, we need to ensure that certain privacy requirements are met, which is that none of the components within the PKI should know which certificate belongs to a certain device. 86 00:09:06,860 --> 00:09:10,140 Because with this knowledge, they could start tracking. 87 00:09:10,400 --> 00:09:21,360 So if I'm a PKI operator, and I know this 100 certificates went to Benedict's car, then I could easily start tracking. 88 00:09:21,360 --> 00:09:28,760 Again, I only need those two listening posts, and I just need to match the 100 certificates in the current week to the certificates that I saw over there. 89 00:09:29,400 --> 00:09:35,120 And the same goes for when I know which certificates belong together to a certain batch. 90 00:09:35,260 --> 00:09:37,140 I don't need to know which device it is. 91 00:09:37,140 --> 00:09:44,760 I only need to verify one of them against the target device, and then I'm able to track. 92 00:09:45,480 --> 00:09:51,040 So we need to avoid that in the overall architecture. 93 00:09:51,680 --> 00:09:57,180 This is the PKI as it is currently proposed in the United States. 94 00:09:57,180 --> 00:10:02,340 The European Union looks slightly different, but in principle, it's the same. 95 00:10:02,640 --> 00:10:04,960 I don't want to go into too much detail here. 96 00:10:04,960 --> 00:10:19,500 I want to focus on the components that are directly or immediately involved in issuing the certificates to the devices, which is the registration authority and the pseudonym CA. 97 00:10:19,880 --> 00:10:29,700 And then there's something called location obscure proxy in between to remove IP addresses, for example, so that nobody knows where the vehicle was when it was requesting these certificates. 98 00:10:29,700 --> 00:10:32,860 But that's just a minor detail. 99 00:10:34,400 --> 00:10:36,200 So butterfly key expansion. 100 00:10:36,200 --> 00:10:42,540 This is the solution that especially William White came up with. 101 00:10:43,080 --> 00:10:46,380 I have references in the end if you want to read up on this. 102 00:10:46,520 --> 00:10:47,920 How does this work? 103 00:10:49,060 --> 00:10:57,020 First of all, we have a key derivation function for public private keys, asymmetric keys. 104 00:10:59,600 --> 00:11:06,840 Just one promise, this is the only technical slide, I hope, or at least the black and white slide that I have today. 105 00:11:07,600 --> 00:11:12,680 So we have the typical public private key and the relationship between them. 106 00:11:12,900 --> 00:11:18,800 In this case, it's an elliptic curve that is being used. 107 00:11:18,800 --> 00:11:26,420 And we have P and A, which equals small cap A P. 108 00:11:28,440 --> 00:11:38,460 And if P is given the public key, but A is not, it's hard to compute the value of A. 109 00:11:38,460 --> 00:11:44,860 That's the assumption that goes for all asymmetric key systems. 110 00:11:46,780 --> 00:11:53,460 We have an agreed base point G of some order L, which is on the elliptic curve. 111 00:11:54,000 --> 00:11:59,720 And what we do now is the first new thing compared to traditional PKIs. 112 00:11:59,720 --> 00:12:02,200 We define a caterpillar key. 113 00:12:02,720 --> 00:12:04,760 We call it caterpillar key. 114 00:12:04,900 --> 00:12:11,220 In this case, because it's like the start of the butterfly, which is an integer. 115 00:12:11,220 --> 00:12:18,700 And the point A on that same curve. 116 00:12:21,180 --> 00:12:30,000 The certificate requester, so that's just a standard public private key pair. 117 00:12:30,000 --> 00:12:32,440 There's nothing special to it yet. 118 00:12:33,260 --> 00:12:48,300 The certificate requester provides to the registration authority the value of A, the key, and an expansion function, which is a pseudorandom permutation in the integers modulo L. 119 00:12:48,840 --> 00:12:55,760 For example, this could be a SHA-256 function that could be used for that. 120 00:12:55,760 --> 00:13:03,040 Just as one example, that's also the example where that's actually the function that we just used in the PKI that I've shown before. 121 00:13:04,620 --> 00:13:21,700 And what the RA now can do, and this is the magic in this, it can create as many cocoon public keys based on this info without the requirement that the device ever comes back for that. 122 00:13:21,700 --> 00:13:28,720 So the device really only needs to send the initial public key and this expansion function. 123 00:13:28,740 --> 00:13:46,380 And the RA can now execute this expansion time x times and adds this to the existing or the initial caterpillar public key to get a derived cocoon key, as we call it. 124 00:13:46,960 --> 00:13:53,220 The private key for that is generated in the same way but on the device side. 125 00:13:53,540 --> 00:14:09,860 So it takes the initial, the device takes the initial private key, executes the same order of expansion function on it and gets the matching private key to that public key at the RA. 126 00:14:09,940 --> 00:14:25,460 This is a really nice feature because with that we have decoupled the generation of public private keys and don't need any synchronization on that between devices and the RA. 127 00:14:27,240 --> 00:14:31,700 The protocol which is then built on top of that looks like this. 128 00:14:31,760 --> 00:14:41,940 We have in the beginning as I said the caterpillar key pair, the public key and the expansion function goes over to the registration authority. 129 00:14:42,720 --> 00:14:53,220 The registration authority does the expansion x times or n minus 1 times to generate as many keys as required. 130 00:14:53,220 --> 00:14:56,100 For example 100 for the current week. 131 00:14:57,840 --> 00:15:22,240 Then it shuffles them together so it takes multiple of those keys from different devices in order to avoid that the authorization CA which issues the certificate in the end can just take a sophisticated guess based on the order of incoming requests which of those certificates belong together. 132 00:15:23,140 --> 00:15:31,820 So that's another feature which is required in order to meet the two privacy requirements that I introduced in the beginning. 133 00:15:32,040 --> 00:15:50,220 So it shuffles them, adds the required metadata for the certificate like validity period for example and sends them over one by one to the authorization certificate authority or PCA as it's called in the STMS. 134 00:15:52,770 --> 00:15:59,250 The issue now is that the RA knows all of those public keys. 135 00:15:59,250 --> 00:16:04,870 So the RA at this time has the knowledge of all the certificates that belong together. 136 00:16:04,910 --> 00:16:09,030 It even has the knowledge about which certificate belongs to which device. 137 00:16:09,090 --> 00:16:25,690 So what the PCA needs to do in order to make sure that the RA actually doesn't know the certificate public keys, it adds a true random number to the private key. 138 00:16:26,490 --> 00:16:33,090 This is just another not expansion but just another random value which gets added to that. 139 00:16:34,250 --> 00:16:40,830 And then the issue is how does this information go back to the device without the RA knowing. 140 00:16:40,850 --> 00:17:01,810 So there is a relationship between the initial key which was sent over by the RA but as the RA doesn't know the random number which was added it only can guess how the final public key looks like. 141 00:17:01,850 --> 00:17:09,910 So in order to avoid that on the way back, the RA learns which certificate or which public key goes into the certificate. 142 00:17:09,990 --> 00:17:19,990 The device initially creates a second key pair, a second caterpillar PCA which is used for response encryption. 143 00:17:20,730 --> 00:17:36,250 Same thing at the RA does the expansion, it sends the encryption key together with the cocoon key for the certificate and the PCA takes all of this together. 144 00:17:36,250 --> 00:17:54,250 The final public key generates the certificate, signs that and then it uses the response encryption key E in order to encrypt the certificate itself and this random number that it just added to the public key. 145 00:17:54,250 --> 00:17:59,870 Both of that goes into one package which then is encrypted to the end device. 146 00:18:02,270 --> 00:18:03,370 Meddler's in the middle. 147 00:18:04,430 --> 00:18:16,550 If I would be a meddler in the middle I would try to get in this communication in order to figure out which of those keys belong together. 148 00:18:18,610 --> 00:18:26,370 So what I could do as a meddler in the middle is exactly at the RA level, I could just introduce my own encryption keys. 149 00:18:26,810 --> 00:18:47,530 If the device sends me a pair of response encryption key and I just inject my own, I can decrypt the response from the PCA and then just after I learned which certificate is in there, I re-encrypt it with the encryption key from the device because I just generated them. 150 00:18:47,530 --> 00:18:54,550 The device would never know because the package itself is encrypted with the right key. 151 00:18:55,890 --> 00:19:01,890 But the RA learned what's in the certificate of which public keys are used. 152 00:19:02,390 --> 00:19:21,470 So what the PCA does as a last and final step, it signs again the overall encrypted package so that if the RA would decrypt that, the signature would break and the device could easily see that there was a man in the middle attack on the privacy for this certificate. 153 00:19:22,330 --> 00:19:38,090 It sends it back, the RA deshuffles this, packs all of the or zips all of the 100 certificates or whatever it generated for the device together in a zip file and then provides it for download to the device. 154 00:19:38,350 --> 00:19:40,930 This is a completely asynchronous process. 155 00:19:41,290 --> 00:19:58,790 The device can come back at any time as soon as the certificates are generated and download them which is another nice feature of this protocol because when we talk about B2X communication, cars driving around, it's always a matter of connectivity. 156 00:19:59,750 --> 00:20:11,670 So if we just have to send the initial request and then come back whenever we have connectivity, that's a way better way of doing this in a synchronous protocol with this type of devices. 157 00:20:14,290 --> 00:20:40,550 The device generates the respective decryption keys with the same expansion function, decrypts the package and then it generates the respective signature private key in order to be able to use the certificate going forward for B2X communication or whatever else you want to do with this if you look at IoT devices for example or another use case. 158 00:20:42,490 --> 00:20:52,690 So the advantage of this approach is we have a single request from the device and this is not 100% true. 159 00:20:52,690 --> 00:21:05,010 This is true with the next more more optimized version of butterfly key expansion. 160 00:21:05,130 --> 00:21:25,910 So we have just one request in this case just two key pairs that have to be generated on the device and the generation process is actually way more optimized because we just do a char calculation instead of generating new public private keys each time we need a new certificate. 161 00:21:26,570 --> 00:21:34,190 So from a computational point of view, this reduces the load that the device has with certificate management a lot. 162 00:21:37,170 --> 00:21:46,410 On the backend side, we also have a big advantage and that is we can constantly pre-generate certificates for all the devices. 163 00:21:46,850 --> 00:21:56,570 When we look at traditional PKIs, we always have the issue that we most or oftentimes have a synchronous protocol where we get the certificate signing request. 164 00:21:56,570 --> 00:22:00,170 We have to sign it and turn around give it back to the device. 165 00:22:01,590 --> 00:22:07,610 And when we look at especially personal vehicles, they have peak hours. 166 00:22:07,610 --> 00:22:20,210 Whenever you go to work, whenever you come back from work, we have way more cars on the streets and active powered up than doing off hours. 167 00:22:20,230 --> 00:22:28,630 That means that the PKI has to have respective resources in place in order to manage those peak hours. 168 00:22:28,750 --> 00:22:36,890 But with this approach, we can constantly pre-generate devices 24-7 and we get away with all of the peak hours. 169 00:22:36,890 --> 00:22:46,530 There's a little bit for the download process, but this is just a regular file server and standard IT approach for that. 170 00:22:49,970 --> 00:22:52,930 Less computational power, I already mentioned that. 171 00:22:53,330 --> 00:23:04,830 The bandwidth usage is also less from a device to RA perspective because we only have a single request. 172 00:23:05,470 --> 00:23:10,810 And with a traditional certificate signing request, there wouldn't be a public key each time. 173 00:23:11,790 --> 00:23:14,310 And this is exactly what we save. 174 00:23:14,310 --> 00:23:22,590 We have a single request and therefore just a single public key that needs to be transferred from the device to the RA. 175 00:23:22,730 --> 00:23:31,170 Other way around, it's still the same, but this way we utilize less bandwidth. 176 00:23:33,730 --> 00:23:46,330 When we look at this protocol, you might have recognized that there are already two different keys on this string of signing keys that end up in the final certificate. 177 00:23:46,650 --> 00:23:53,130 We first have the cocoon key, which is generated at the registration authority, S. 178 00:23:53,990 --> 00:24:06,450 And then we have the final butterfly key, U, in this case, which is generated by the PCA through adding this random number. 179 00:24:07,710 --> 00:24:13,710 So why do we need to have a third key to do response encryption? 180 00:24:14,350 --> 00:24:15,970 We actually don't. 181 00:24:15,970 --> 00:24:20,690 And this is the approach called unified butterfly key expansion. 182 00:24:22,710 --> 00:24:36,190 What we do is, instead of using the response encryption key for encryption of the certificate and the random value, we just use the cocoon key. 183 00:24:37,190 --> 00:24:47,330 And that way we save another key that needs to be communicated from the device to the RA. 184 00:24:47,530 --> 00:24:51,730 And we save one expansion function at the RA. 185 00:24:51,730 --> 00:25:06,270 The nice thing about this is also that if we would now do the midless in the middle attack on this, the device would immediately know. 186 00:25:06,370 --> 00:25:28,390 Because if there is no encryption key that the RA could inject in this process, if it would change the cocoon key from the device in order to learn a certificate, in order to be able to decrypt, the keys wouldn't match at the device level anymore. 187 00:25:28,890 --> 00:25:36,990 Because the device does exactly the same expansions as the RA does to gain the private key. 188 00:25:37,330 --> 00:25:49,050 And if it would do this on a... or would try to use that decryption key on a package which was encrypted by a different key, this wouldn't work. 189 00:25:49,050 --> 00:25:51,130 So the device immediately knows. 190 00:25:52,190 --> 00:25:59,930 This is another advantage of this approach, because then we can get rid of this explicit signature of the encrypted package. 191 00:26:01,490 --> 00:26:12,330 So we have a more effective, more optimized way of doing public... of doing butterfly key expansion. 192 00:26:13,190 --> 00:26:15,370 The issue now with this is that... 193 00:26:17,030 --> 00:26:22,790 the advantages of this, again, less computational power at the device, because it's just one key that we need to generate. 194 00:26:24,010 --> 00:26:31,390 Even less bandwidth usage, because we only have one key that needs to be transferred, not two. 195 00:26:32,330 --> 00:26:38,430 But the issue with that is, what if we have a mixed mode setup? 196 00:26:38,530 --> 00:26:49,230 Like we have PCAs or authorization certificate authorities that support the traditional butterfly key expansion mechanism, where we use two keys. 197 00:26:49,230 --> 00:26:54,110 One for the certificate and one for response encryption. 198 00:26:54,110 --> 00:27:01,250 And another set of certificate authorities that provide the Yubikey protocol. 199 00:27:01,390 --> 00:27:10,350 Which can easily happen, because the traditional butterfly key expansion mechanism is already deployed in the US, for example. 200 00:27:11,250 --> 00:27:20,750 And going forward, there will definitely be interest of this more... into this more optimized way of doing butterfly keys. 201 00:27:20,970 --> 00:27:27,150 And with that, we will certainly see CAs doing... providing this more optimized way. 202 00:27:27,410 --> 00:27:37,150 So if we have a setup where we have both types of CAs, the meddlers in the middle, again, could start decrypting. 203 00:27:37,150 --> 00:27:56,690 So if we have an RA, an evil RA in this case, which promotes... I support the Yubikey protocol, but in actually in turn works with a authorization CA that provides the traditional butterfly key expansion mechanism. 204 00:27:58,110 --> 00:28:01,590 The device wouldn't send any response encryption key. 205 00:28:01,590 --> 00:28:13,870 It would assume that by generating the right private key for decryption of the package, it would be able to tell if the RA is in fact an evil RA. 206 00:28:14,650 --> 00:28:30,070 But by using a CA which supports the traditional butterfly key expansion and therefore expecting a response encryption key, the RA could just generate on its own a key pair for response encryption. 207 00:28:30,610 --> 00:28:35,030 And if it does so, it gets a package which is encrypted with. 208 00:28:35,610 --> 00:28:44,390 And then it could again decrypt those packages before it uses the right key for the device to encrypt again. 209 00:28:45,070 --> 00:28:49,770 And with that, the device wouldn't even know that there was somebody in the middle. 210 00:28:51,650 --> 00:28:56,310 And that's the issue that I came up with. 211 00:28:56,630 --> 00:29:05,070 And so far this overall mechanism is currently being standardized in IEEE. 212 00:29:05,250 --> 00:29:27,890 The only two solutions that we came up with so far for this is either we reintroduce the explicit signature on the encrypted package, which gives us the disadvantage that again we need to have a more powerful HSM at the CA because we not only have to sign each certificate, 213 00:29:27,890 --> 00:29:31,130 but we also have to sign it again after we encrypted it. 214 00:29:31,130 --> 00:29:36,010 So it's two signatures per certificate each time. 215 00:29:37,010 --> 00:29:46,710 The way that we discussed is that the CA would need to be explicit about which mechanism it supports. 216 00:29:46,850 --> 00:30:00,990 This could be for example a flag in the CA certificate itself saying I support the unified butterfly key expansion mechanism or the traditional way of doing things. 217 00:30:01,290 --> 00:30:11,510 And with that, the device could determine if there was somebody in the middle trying to learn the certificates that belong together. 218 00:30:12,990 --> 00:30:18,730 I personally favor the first approach because with that it's explicit to the device. 219 00:30:18,870 --> 00:30:25,290 There's no extra check that the device has to execute for that so nobody can forget to do this check. 220 00:30:26,630 --> 00:30:34,830 But the standardization process is not yet done and we will see what we will end up with. 221 00:30:37,160 --> 00:30:38,900 That's the end of my talk. 222 00:30:40,040 --> 00:30:42,020 I hope it was informative. 223 00:30:42,060 --> 00:30:47,080 I hope there is interest in using this in other setups than V2X. 224 00:30:47,660 --> 00:30:51,680 And if you have any questions, feel free to reach out to me. 225 00:30:52,020 --> 00:30:52,940 Those are sources. 226 00:30:52,940 --> 00:30:55,140 I will publish these slides later on. 227 00:30:55,140 --> 00:30:57,800 I think they will be published here by DEF CON nevertheless. 228 00:30:58,980 --> 00:31:00,760 Feel free to reach out to me. 229 00:31:00,760 --> 00:31:04,260 That's my Twitter handle or just catch me. 230 00:31:04,620 --> 00:31:06,700 If you're ready. 231 00:31:07,200 --> 00:31:08,080 All right. 232 00:31:08,080 --> 00:31:10,320 If anybody has questions, come on up. 233 00:31:14,520 --> 00:31:19,800 The requirement to have multiple certificates and randomize MAC address and things like that. 234 00:31:19,800 --> 00:31:26,940 That seems like an unusual amount of attention paid to privacy in the design of a protocol like this. 235 00:31:26,980 --> 00:31:30,260 Do you have any background or intuition on how that came to be? 236 00:31:30,260 --> 00:31:32,460 Why this cares so much about privacy? 237 00:31:32,640 --> 00:31:33,740 Yeah. 238 00:31:34,260 --> 00:31:40,800 Regulators are actually looking into regulating this technology or requiring it in devices. 239 00:31:41,300 --> 00:31:43,460 Or they did so in the past. 240 00:31:43,460 --> 00:31:55,910 The US DOT published a notice of proposed rulemaking for this, which would require each and every car to be equipped with this technology. 241 00:31:56,830 --> 00:32:01,630 Under the current government, nobody knows where this goes. 242 00:32:01,630 --> 00:32:04,330 It's stalled right now officially. 243 00:32:05,350 --> 00:32:15,010 And the European Union was about to issue another regulation which would require devices that do V2X to do it in a certain way. 244 00:32:15,010 --> 00:32:17,710 It's an if-equipped regulation. 245 00:32:18,030 --> 00:32:21,850 But this got rejected just a couple weeks ago. 246 00:32:23,370 --> 00:32:29,550 And that is the reason why this technique or this technology got invented. 247 00:32:29,550 --> 00:32:39,330 Because if you regulate it and each and every car has to have this technology, you need to ensure that certain privacy requirements are met. 248 00:32:42,210 --> 00:32:43,950 Other questions? 249 00:32:47,220 --> 00:32:47,860 All right. 250 00:32:47,860 --> 00:32:49,880 One big round of applause for Ben.