1 00:00:00,000 --> 00:00:07,420 hi hello everybody i hope that you are enjoying the congress and i hope that you enjoy my 2 00:00:07,420 --> 00:00:15,540 presentation for the next 45 50 minutes i will talk about hardware attacks hardware security 3 00:00:16,200 --> 00:00:23,740 more specific i will talk about fall injection and i will talk from my experience as professional 4 00:00:23,740 --> 00:00:31,380 evaluator that has been using pole injection and other hardware techniques for testing products so 5 00:00:32,580 --> 00:00:36,820 maybe you don't know what is full injection so the first thing i will do is make a short 6 00:00:36,820 --> 00:00:43,540 introduction before to pole injection then i will talk about real attacks on the real world 7 00:00:44,480 --> 00:00:48,720 products that have been hacked and then i will introduce some of the techniques or some of the 8 00:00:48,720 --> 00:00:53,520 tests we do on the products we evaluate and finally i will talk about protection 9 00:00:53,740 --> 00:01:00,540 and how to prevent these kind of attacks so let's start with this let's take a look at this code 10 00:01:01,640 --> 00:01:06,320 this is a code i took from somewhere from a product 11 00:01:08,720 --> 00:01:15,480 it's kind of the code iphone this code authenticates a pin or a password if you take a 12 00:01:15,480 --> 00:01:22,140 look there is three software vulnerabilities three problems so an attacker can bypass the 13 00:01:22,140 --> 00:01:23,720 pin check or the pin authenticator or the pin authenticator or the pin authenticator or the pin 14 00:01:23,740 --> 00:01:29,200 authentication in three different ways so first here in red i mark 15 00:01:29,980 --> 00:01:33,560 there is a problem with this loop that iterates through the password through the pin 16 00:01:34,280 --> 00:01:40,340 this loop only iterates as many bytes as the user provides so if the user provides one single byte 17 00:01:40,340 --> 00:01:47,460 as password of pin only one byte will be checked then here there is a buffer overflow 18 00:01:48,760 --> 00:01:53,720 the software does not check how many bytes you provide as a pin so the buffer can be all the way in one bit 19 00:01:53,720 --> 00:01:58,780 flow and the attacker can get runtime control of the target and finally we 20 00:01:58,780 --> 00:02:05,240 have format stream vulnerability so all these three attacks are very common are 21 00:02:05,240 --> 00:02:13,580 very well known and they are very easy to fix so this could be a possible 22 00:02:13,580 --> 00:02:20,160 solution in blue there is the changes that will fix this software so we fix 23 00:02:20,160 --> 00:02:26,760 the loop we put a limit to the number of bytes we get as a password or as a pin 24 00:02:26,760 --> 00:02:34,820 and finally we format properly the string so is this now secure well from 25 00:02:34,820 --> 00:02:40,200 the software point of view probably it is I don't find a way that you can attack 26 00:02:40,200 --> 00:02:44,160 this code from the software point of view I think that all the issues are 27 00:02:44,160 --> 00:02:49,960 fixed but if the attacker has physical access to the device that is running 28 00:02:49,960 --> 00:02:50,140 this 29 00:02:50,140 --> 00:02:55,880 software if he can use get this device because this is running on a smart card 30 00:02:55,880 --> 00:03:00,920 or on a IOT or embedded any kind of embedded device and has access to it 31 00:03:00,920 --> 00:03:08,940 then the attacker can try hardware attacks and I will talk today about one 32 00:03:08,940 --> 00:03:15,020 hardware attack which is fault injection and this code has at least four places 33 00:03:15,020 --> 00:03:19,800 where you can inject a fault and you can bypass this this check 34 00:03:19,800 --> 00:03:20,340 because it only takes a 35 00:03:20,340 --> 00:03:33,080 check in red here here here and here so I will explain what is wrong with these 36 00:03:33,080 --> 00:03:41,180 sentences and why you can bypass the tech here but before that let me 37 00:03:41,180 --> 00:03:48,900 introduce myself my name is Ramiro and I am a technical lead at risk your 38 00:03:48,900 --> 00:03:53,640 security lab in China so I were actually here in China we have a security lab 39 00:03:53,640 --> 00:03:58,300 here in China in Shanghai my company is specializing in hardware evaluations we 40 00:03:58,300 --> 00:04:06,160 evaluate chips we evaluate socks better system IOT devices automotive mostly 41 00:04:06,160 --> 00:04:12,880 hardware sometimes some software also we also do hardware we develop hardware for 42 00:04:12,880 --> 00:04:19,320 testing the security hardware security ok so let's talk out fall injection how 43 00:04:19,320 --> 00:04:24,820 this works so if we take the documentation of a chip if we have a 44 00:04:24,820 --> 00:04:28,220 chip that has been used to develop a device 45 00:04:28,300 --> 00:04:31,580 you would check the documentation of this tip there will be probably 46 00:04:31,580 --> 00:04:37,000 something like this in the data sheet or in the manual we will find a plot like 47 00:04:37,000 --> 00:04:44,380 this which indicates what is the safe area what is the voltage you can use to 48 00:04:44,380 --> 00:04:49,300 power this chip sometimes it's a plot like this 49 00:04:49,300 --> 00:04:56,800 sometimes it's a a table but the manufacturer tells that the steep can 50 00:04:56,800 --> 00:04:58,280 operate between one point and nine percent improvement the chip operating 51 00:04:58,300 --> 00:05:08,480 volts and 5.5 but what happens here in this area in red in red so if we try to 52 00:05:08,480 --> 00:05:15,220 power the tip with one below 1.8 volts or 5.5 what happens when the factors 53 00:05:15,220 --> 00:05:21,180 will not tell you they will only say that the behavior is undefined so what 54 00:05:21,180 --> 00:05:29,460 actually is happening okay so it's it's obvious that if we power the device at 55 00:05:29,460 --> 00:05:37,420 five point above the specifications for some time we will hit the tip and we 56 00:05:37,420 --> 00:05:42,880 will kill it we will burn in the same way if we operate the tip under voltage 57 00:05:42,880 --> 00:05:49,220 for some time we will put the tip to we will switch it off we will put it to 58 00:05:49,220 --> 00:05:50,940 sleep it will not be powers 59 00:05:51,180 --> 00:05:58,420 so we will not work but the question is what happens when the tip is going 60 00:05:58,420 --> 00:06:04,620 beyond the specifications for a very short period of time so for a just few 61 00:06:04,620 --> 00:06:13,260 nanoseconds or few microseconds we exceed the voltage limits above or below so 62 00:06:13,260 --> 00:06:21,100 this is what we call a glitch and this glitch might introduce a fault in the 63 00:06:21,100 --> 00:06:26,640 tip and an attacker by doing these glitches daddyplex we can get some 64 00:06:26,640 --> 00:06:35,160 benefits of the tip so let's see what happened inside it did so this is my CPU 65 00:06:35,160 --> 00:06:41,340 this is a cheep is powered with external power supply this CPU is composed of 66 00:06:41,340 --> 00:06:46,600 different modules has our medical logical unit as a control unit is run 67 00:06:46,600 --> 00:06:46,980 cast 68 00:06:47,880 --> 00:06:50,600 and all these models are powered 69 00:06:51,100 --> 00:06:54,340 using a power distribution network. 70 00:06:54,560 --> 00:06:59,220 Inside the chip there is a network that powers a different circuitry. 71 00:07:04,140 --> 00:07:07,780 If we look at this distribution, this power distribution, 72 00:07:08,900 --> 00:07:14,540 some modules are closer to the power pins, some modules are farther, 73 00:07:14,740 --> 00:07:19,420 so some power lines are longer and some are shorter. 74 00:07:19,420 --> 00:07:24,740 This power line, for example, is very close to the pin where the chip is powered, 75 00:07:24,900 --> 00:07:27,360 so the power distribution line is very short. 76 00:07:28,320 --> 00:07:32,660 The control unit is powered with a long power line, 77 00:07:32,780 --> 00:07:37,840 because it's farther from the pin, and because it's longer, 78 00:07:38,020 --> 00:07:41,800 the resistance, when the currents flow through this line, 79 00:07:41,940 --> 00:07:44,040 the resistance will be higher. 80 00:07:44,520 --> 00:07:48,600 The different modules will have different lengths in the power line 81 00:07:48,940 --> 00:07:49,400 that distributes power. 82 00:07:52,080 --> 00:07:54,340 These different modules have different capacitance. 83 00:07:55,060 --> 00:07:58,640 This resistance and this capacitance create filters. 84 00:08:00,840 --> 00:08:07,480 When I inject a glitch, this glitch, not all the modules inside the chip 85 00:08:07,480 --> 00:08:08,800 will see the same way. 86 00:08:09,240 --> 00:08:12,460 Depending on the shape of the glitch, how long is the glitch, 87 00:08:12,560 --> 00:08:19,160 how deep is the glitch, what is the shape, some circuits will filter 88 00:08:19,160 --> 00:08:21,960 the glitch and some others will not. 89 00:08:22,120 --> 00:08:27,260 In this example, I have here the arithmetical logic unit, 90 00:08:28,380 --> 00:08:32,040 because it's very close to the power pin, the resistance of the power 91 00:08:32,040 --> 00:08:35,780 distribution line is very small, the filter is very small, 92 00:08:35,880 --> 00:08:39,500 so the glitch, if an attacker injects a glitch, it will be affected. 93 00:08:40,100 --> 00:08:43,360 But the control unit will not, because it's farther and it's filtering 94 00:08:43,360 --> 00:08:44,260 the power better. 95 00:08:45,500 --> 00:08:49,140 An attacker, by injecting different glitches with different shapes, 96 00:08:49,140 --> 00:08:52,960 can affect different modules inside the chip. 97 00:08:53,880 --> 00:08:57,020 What exactly can he get when he injects the glitches? 98 00:08:58,240 --> 00:08:59,980 We have these effects. 99 00:09:00,320 --> 00:09:01,880 An attacker can get the following. 100 00:09:02,240 --> 00:09:04,620 The first is that he can disable the modules. 101 00:09:05,480 --> 00:09:10,540 We saw before, here, during the period of time 102 00:09:10,540 --> 00:09:15,260 that we are glitching the device, the chip, 103 00:09:15,400 --> 00:09:19,060 during that period of time, the arithmetical logic unit 104 00:09:19,140 --> 00:09:21,540 is under power, so it's not going to work, 105 00:09:21,680 --> 00:09:24,180 while the rest of the chip is working normally. 106 00:09:24,400 --> 00:09:27,360 And after the glitch, everything works and operates normally. 107 00:09:28,720 --> 00:09:32,440 So an attacker can try to inject glitches, 108 00:09:32,440 --> 00:09:37,800 hoping that a hardware security module or feature in the chip 109 00:09:37,800 --> 00:09:40,640 will stop to work during this small period of time 110 00:09:40,640 --> 00:09:42,920 that the glitch takes place. 111 00:09:45,260 --> 00:09:48,920 But something that an attacker can also expect when injecting glitches, 112 00:09:49,140 --> 00:09:50,040 is flipping bits. 113 00:09:51,000 --> 00:09:54,420 Flipping bits stored inside the chip, on the memory of the chip. 114 00:09:56,830 --> 00:09:58,500 So this is a flip-flop. 115 00:09:58,860 --> 00:10:03,900 This circuit is the standard memory cell. 116 00:10:04,040 --> 00:10:08,380 This is the basic unit that stores information inside a digital circuit. 117 00:10:09,120 --> 00:10:12,740 So any SRAM, any register in a CPU 118 00:10:12,740 --> 00:10:17,320 is composed of many of these flip-flops in series. 119 00:10:19,560 --> 00:10:22,020 It can store only one single bit. 120 00:10:22,320 --> 00:10:26,920 So here, this flip-flop is storing one bit, 121 00:10:27,080 --> 00:10:28,420 and the value is one. 122 00:10:28,760 --> 00:10:32,180 It's what we see in the Q output of the top right. 123 00:10:33,440 --> 00:10:36,200 So if an attacker injects a glitch, 124 00:10:38,560 --> 00:10:46,840 and this glitch makes the power of the gate, of the flip-flop, 125 00:10:46,840 --> 00:10:50,560 to go lower than the threshold level, 126 00:10:50,620 --> 00:10:52,460 the voltage threshold level, 127 00:10:52,560 --> 00:10:55,880 for the decision of whether the gate is getting a one 128 00:10:55,880 --> 00:10:57,240 or whether it's getting a zero, 129 00:10:59,160 --> 00:11:02,440 the NOR gate will see, instead of a one in this place, 130 00:11:02,580 --> 00:11:03,640 will see a zero. 131 00:11:04,600 --> 00:11:07,200 And this zero will be propagated through the flip-flop. 132 00:11:08,800 --> 00:11:13,100 Then, when the voltage, when the glitch is over, 133 00:11:13,580 --> 00:11:15,100 and the voltage gets normal, 134 00:11:16,560 --> 00:11:18,360 we, the flip-flop remains, 135 00:11:19,880 --> 00:11:21,980 will keep the value of the, 136 00:11:22,000 --> 00:11:24,100 the value, the flipped value of the, 137 00:11:25,280 --> 00:11:27,360 will keep the value we flipped. 138 00:11:29,200 --> 00:11:30,400 So, using a glitch, 139 00:11:30,600 --> 00:11:34,380 we managed to change the content of a memory cell 140 00:11:34,380 --> 00:11:35,820 from one to zero. 141 00:11:36,540 --> 00:11:38,920 But we can do the same to flip from zero to one. 142 00:11:42,380 --> 00:11:44,520 So it operates in the same way. 143 00:11:49,400 --> 00:11:53,120 So, what else can we get with glitches? 144 00:11:53,320 --> 00:11:57,300 So with glitches, we can also corrupt the code 145 00:11:57,300 --> 00:12:00,160 that is being executed in the, in the CPU. 146 00:12:00,860 --> 00:12:03,040 So this is the code I showed you at the beginning. 147 00:12:03,800 --> 00:12:05,500 And I told you that here, 148 00:12:07,280 --> 00:12:12,520 the red line is a place I can inject a fault. 149 00:12:12,620 --> 00:12:14,220 I can use glitching to bypass the secure, 150 00:12:14,220 --> 00:12:16,320 the secure check, the pin check. 151 00:12:16,840 --> 00:12:18,360 So why this happens? 152 00:12:19,680 --> 00:12:21,680 If we take this sentence in C, 153 00:12:21,900 --> 00:12:24,640 and we compile in ARM, for example, 154 00:12:25,320 --> 00:12:26,820 we have this assembly code. 155 00:12:27,820 --> 00:12:30,200 These three instructions do the same 156 00:12:30,200 --> 00:12:31,500 that we have here in C. 157 00:12:32,020 --> 00:12:33,900 If we look at how the branch, 158 00:12:34,100 --> 00:12:37,320 the assembly instruction for the branch, 159 00:12:37,340 --> 00:12:38,920 the branch is encoded, 160 00:12:42,440 --> 00:12:43,780 if we look at this, 161 00:12:43,900 --> 00:12:45,560 this is how the branch is encoded. 162 00:12:46,380 --> 00:12:48,900 Because we have a tool which is the glitches. 163 00:12:49,000 --> 00:12:51,060 We can use the glitches to flip bits. 164 00:12:51,900 --> 00:12:53,000 If we use a glitch, 165 00:12:53,080 --> 00:12:55,700 and this glitch happens to flip one of the bits 166 00:12:55,700 --> 00:12:57,080 in the instruction that is being executed, 167 00:12:57,920 --> 00:13:01,340 the CPU will execute the instruction in a different way. 168 00:13:01,700 --> 00:13:03,920 So in this example here, 169 00:13:04,120 --> 00:13:07,520 if we flip the first bit from one to zero, 170 00:13:07,520 --> 00:13:09,560 I will not execute a branch. 171 00:13:10,500 --> 00:13:14,580 I will be executing a store instruction instead. 172 00:13:14,900 --> 00:13:17,600 So my code changes completely. 173 00:13:18,460 --> 00:13:19,840 Here in the top left, 174 00:13:19,980 --> 00:13:22,400 you can see what is the actual code I've been executing. 175 00:13:22,720 --> 00:13:23,640 So with one glitch, 176 00:13:23,720 --> 00:13:25,120 I can change the flow of the code, 177 00:13:25,160 --> 00:13:26,620 I can change how the code is executed. 178 00:13:28,780 --> 00:13:29,660 Another example. 179 00:13:31,740 --> 00:13:34,560 The next instruction in the assembly, 180 00:13:35,980 --> 00:13:36,760 the store, 181 00:13:38,120 --> 00:13:39,460 is encoded like this. 182 00:13:39,540 --> 00:13:42,400 If we glitch up and we change one of the bits 183 00:13:42,400 --> 00:13:43,900 from one to zero, 184 00:13:45,140 --> 00:13:47,780 the instruction is executed in a completely different way. 185 00:13:50,540 --> 00:13:52,800 Again, we change the flow, 186 00:13:53,020 --> 00:13:54,020 we change the code, 187 00:13:54,180 --> 00:13:55,220 how it's executed, 188 00:13:55,400 --> 00:13:57,340 we change the software that the chip is executing. 189 00:13:57,860 --> 00:13:59,780 So an attacker can inject glitches, 190 00:14:00,240 --> 00:14:02,620 hoping that he will flip the bits that he needs 191 00:14:02,620 --> 00:14:05,120 in order to change the software in the way he is looking for. 192 00:14:05,260 --> 00:14:06,120 To skip instructions, 193 00:14:06,260 --> 00:14:06,740 or to correct the code, 194 00:14:06,760 --> 00:14:07,280 or to interrupt instructions, 195 00:14:07,320 --> 00:14:08,320 or to do whatever he wants. 196 00:14:12,980 --> 00:14:13,640 What else? 197 00:14:14,100 --> 00:14:14,860 An attacker, 198 00:14:15,060 --> 00:14:18,620 when he's trying to inject glitches, 199 00:14:18,700 --> 00:14:21,500 sometimes because we are putting the chip above 200 00:14:21,500 --> 00:14:24,860 or under the recommended voltage, 201 00:14:26,260 --> 00:14:28,260 sometimes we can destroy the chip. 202 00:14:28,520 --> 00:14:33,220 This is something as an attacker we don't want, 203 00:14:33,320 --> 00:14:34,760 but sometimes we will kill the chip, 204 00:14:34,760 --> 00:14:35,820 we will kill the CPU. 205 00:14:35,820 --> 00:14:38,780 But this doesn't happen too often, to be honest. 206 00:14:40,480 --> 00:14:44,320 Okay, so this might be a bit strange for you, 207 00:14:45,020 --> 00:14:47,820 that you can use voltage glitches 208 00:14:48,360 --> 00:14:51,200 to just change the code that is being executed 209 00:14:51,200 --> 00:14:55,560 and bypass security protections in a hardware device. 210 00:14:56,340 --> 00:14:57,360 It sounds strange, 211 00:14:57,580 --> 00:14:59,280 but the truth is that this has been used 212 00:14:59,280 --> 00:15:01,080 for many, many, many years already. 213 00:15:02,240 --> 00:15:05,320 And there is many things that have been hacked, 214 00:15:05,320 --> 00:15:06,360 using full injection. 215 00:15:06,660 --> 00:15:10,000 And now because we have all these new IoT devices, 216 00:15:10,180 --> 00:15:11,440 and because the security, 217 00:15:11,640 --> 00:15:13,320 the software security is being increased, 218 00:15:14,820 --> 00:15:18,420 many hackers found out that nowadays it's easier 219 00:15:18,420 --> 00:15:21,380 to hack an IoT device or embedded device, 220 00:15:21,540 --> 00:15:23,480 it's easier to hack using hardware techniques 221 00:15:23,480 --> 00:15:28,300 than using software techniques or software attacks. 222 00:15:29,980 --> 00:15:31,840 So for that reason nowadays, 223 00:15:32,080 --> 00:15:34,960 basically almost every few months, 224 00:15:34,960 --> 00:15:36,380 we see a new attack, 225 00:15:36,660 --> 00:15:38,860 somebody that is doing something with full injection 226 00:15:38,860 --> 00:15:39,940 and is getting some results. 227 00:15:40,240 --> 00:15:42,860 So I took this from Twitter a few weeks ago, 228 00:15:42,960 --> 00:15:43,820 somebody was publishing, 229 00:15:44,100 --> 00:15:47,760 he managed to break embed TLS using full injection. 230 00:15:47,920 --> 00:15:50,080 A couple of years ago in DevCom, 231 00:15:50,800 --> 00:15:53,620 there was somebody who was presenting 232 00:15:53,620 --> 00:15:57,480 how to bypass the authentication of a Tresor, 233 00:15:57,600 --> 00:16:00,300 a Bitcoin wallet, using full injection. 234 00:16:01,100 --> 00:16:03,420 And it's a video game arcade machine. 235 00:16:04,760 --> 00:16:06,320 But 30 years ago, 236 00:16:07,640 --> 00:16:12,520 kids were using these lighters that have a spark, 237 00:16:12,660 --> 00:16:13,540 spark lighters, 238 00:16:14,100 --> 00:16:16,140 that when you press the button there is a spark. 239 00:16:16,520 --> 00:16:20,740 So they were using this spark to shock the arcade machine 240 00:16:20,740 --> 00:16:23,180 or the video game machine and play for free. 241 00:16:23,460 --> 00:16:25,020 And this was 30 years ago, 242 00:16:25,120 --> 00:16:28,160 and this was a way of doing full injection or glitching, 243 00:16:28,200 --> 00:16:32,340 and kids were doing this even without knowing it. 244 00:16:33,120 --> 00:16:34,940 Funny thing is that still nowadays, 245 00:16:35,060 --> 00:16:35,780 30 years later, 246 00:16:35,960 --> 00:16:37,440 this is a very common attack. 247 00:16:37,820 --> 00:16:39,360 I found this video on the internet. 248 00:16:41,020 --> 00:16:42,820 This is a guy who sells this device. 249 00:16:43,000 --> 00:16:47,340 This is a device who makes full injection, 250 00:16:47,600 --> 00:16:48,620 is doing glitching, 251 00:16:48,620 --> 00:16:49,580 not with voltage, 252 00:16:49,720 --> 00:16:50,700 but with EMP, 253 00:16:51,360 --> 00:16:52,400 electromagnetic pulses. 254 00:16:53,040 --> 00:16:55,540 So this small device generates electromagnetic pulse, 255 00:16:56,000 --> 00:16:57,900 and this pulse generates a glitch. 256 00:16:58,540 --> 00:17:02,300 So he's putting this device close to the electrode, 257 00:17:02,300 --> 00:17:03,540 the electronics that counts the coins, 258 00:17:04,180 --> 00:17:05,160 and you can see here, 259 00:17:06,500 --> 00:17:09,000 the counter that counts how many coins 260 00:17:09,000 --> 00:17:10,820 you insert in the slot machine. 261 00:17:13,600 --> 00:17:14,700 And it's increasing, 262 00:17:14,940 --> 00:17:17,540 as long as he's pressing the button to glitch. 263 00:17:18,280 --> 00:17:19,240 And he can play. 264 00:17:19,680 --> 00:17:23,600 So he can just play and try to get the price of the machine. 265 00:17:24,480 --> 00:17:25,680 So this is an example, 266 00:17:25,780 --> 00:17:30,660 another example of real world full injection attack. 267 00:17:32,380 --> 00:17:32,940 Okay. 268 00:17:33,200 --> 00:17:37,660 So these attacks have been there for long. 269 00:17:38,760 --> 00:17:41,300 And some industries know this. 270 00:17:41,820 --> 00:17:43,720 So some industries like smart cards 271 00:17:43,720 --> 00:17:45,440 have been tested against full injection 272 00:17:45,440 --> 00:17:46,480 for many years already. 273 00:17:47,040 --> 00:17:49,760 And I have been doing this, 274 00:17:49,860 --> 00:17:52,580 testing against full injection for quite a long time now. 275 00:17:52,920 --> 00:17:55,560 So I will explain some different tests 276 00:17:55,560 --> 00:17:58,820 or different attacks we do on real products, 277 00:18:00,040 --> 00:18:01,840 on real products that we evaluate. 278 00:18:02,300 --> 00:18:02,560 And this is a test for customers. 279 00:18:03,840 --> 00:18:06,260 So before going through these examples, 280 00:18:06,500 --> 00:18:09,360 I want to introduce you the first rule of full injection, 281 00:18:09,600 --> 00:18:13,840 which is everything can be hacked with full injection, 282 00:18:14,620 --> 00:18:17,600 unless you protect against this kind of attacks. 283 00:18:18,800 --> 00:18:23,260 And the second rule is that even if you protect your product 284 00:18:23,260 --> 00:18:24,080 against full injection, 285 00:18:24,420 --> 00:18:25,280 it might be hacked. 286 00:18:25,580 --> 00:18:28,260 Because full injection is really difficult to prevent. 287 00:18:28,660 --> 00:18:30,820 And there are many ways that it can be used 288 00:18:30,820 --> 00:18:32,020 to attack a product. 289 00:18:35,000 --> 00:18:37,100 So let me show you some examples. 290 00:18:37,340 --> 00:18:42,160 I chose five different examples of tests we do on real products 291 00:18:43,080 --> 00:18:44,580 where we use full injection 292 00:18:44,580 --> 00:18:46,900 to try to bypass some kind of security. 293 00:18:47,840 --> 00:18:49,660 So the first one is bypassing authentication. 294 00:18:50,360 --> 00:18:53,340 This is what I explained before here, 295 00:18:54,220 --> 00:18:55,560 this pin authentication. 296 00:18:57,380 --> 00:18:58,600 I have some demos. 297 00:18:58,720 --> 00:18:59,920 I brought with me some tools. 298 00:18:59,920 --> 00:19:02,060 So if you are interested to see this in real life, 299 00:19:02,140 --> 00:19:04,420 I have my tools in my bag. 300 00:19:04,920 --> 00:19:06,300 I wanted to do some demos, 301 00:19:06,340 --> 00:19:07,780 but it's very hard to do demos here. 302 00:19:08,600 --> 00:19:10,700 So I made a video yesterday of this. 303 00:19:11,560 --> 00:19:13,920 This is the tool we use for injecting glitches. 304 00:19:14,320 --> 00:19:16,280 So the green board, 305 00:19:16,480 --> 00:19:17,820 the small green board, 306 00:19:17,920 --> 00:19:19,880 is an ARM processor. 307 00:19:20,080 --> 00:19:23,680 It's just a small embedded device with an ARM chip. 308 00:19:24,280 --> 00:19:25,780 And the green box, 309 00:19:25,940 --> 00:19:27,160 the green-yellow box, 310 00:19:27,280 --> 00:19:28,440 or the yellow box, 311 00:19:28,520 --> 00:19:29,300 the big yellow box, 312 00:19:29,300 --> 00:19:31,760 is the tool we use to inject glitches. 313 00:19:32,560 --> 00:19:35,080 So this tool powers the CPU 314 00:19:36,000 --> 00:19:38,640 and you program it in such a way 315 00:19:38,640 --> 00:19:40,180 that you inject a glitch when you want. 316 00:19:40,460 --> 00:19:41,740 So I made a program 317 00:19:43,100 --> 00:19:47,000 that is trying to bypass authentication 318 00:19:48,280 --> 00:19:50,080 of this code I show you here. 319 00:19:50,360 --> 00:19:52,020 So what this program is doing 320 00:19:52,020 --> 00:19:57,400 is waiting for the chip to send you the message, 321 00:19:57,520 --> 00:19:58,200 insert a pin, 322 00:19:58,200 --> 00:20:01,000 sending 000 as a pin, 323 00:20:01,120 --> 00:20:03,400 in that moment injecting a glitch, 324 00:20:04,120 --> 00:20:05,720 and reading the response. 325 00:20:06,180 --> 00:20:09,120 If the glitch succeeds to bypass authentication, 326 00:20:09,580 --> 00:20:11,120 then I will have a pin correct. 327 00:20:11,320 --> 00:20:13,140 If not, I will have a pin incorrect. 328 00:20:14,120 --> 00:20:17,080 Sometimes I will have a response which is random garbage 329 00:20:17,080 --> 00:20:18,420 because sometimes the chip crashes. 330 00:20:19,700 --> 00:20:24,900 So this is the operation of this attack 331 00:20:24,900 --> 00:20:26,260 I made a video yesterday. 332 00:20:28,200 --> 00:20:30,120 So most of the times we see that the pin is incorrect 333 00:20:30,120 --> 00:20:32,520 because we don't succeed on glitching properly. 334 00:20:34,520 --> 00:20:35,840 And from time to time, 335 00:20:35,860 --> 00:20:37,080 this will be a pin correct. 336 00:20:41,060 --> 00:20:42,020 Here, there it is. 337 00:20:42,340 --> 00:20:44,100 So this was one attempt. 338 00:20:44,800 --> 00:20:46,180 We have to try many times 339 00:20:46,180 --> 00:20:48,220 until one of the glitches 340 00:20:48,220 --> 00:20:50,080 affects the chip in such a way 341 00:20:50,080 --> 00:20:51,160 that bypass the software 342 00:20:51,160 --> 00:20:53,240 the way we are looking for. 343 00:20:54,060 --> 00:20:56,600 And sometimes these lines, 344 00:20:56,600 --> 00:20:57,900 which are empty, 345 00:20:58,600 --> 00:20:59,920 is because we crashed the chip. 346 00:21:00,040 --> 00:21:01,760 Because probably the software crashes 347 00:21:01,760 --> 00:21:02,640 or jumps somewhere. 348 00:21:02,880 --> 00:21:03,220 I don't know. 349 00:21:06,800 --> 00:21:07,920 This kind of test, 350 00:21:08,100 --> 00:21:09,640 trying to bypass authentication schemes, 351 00:21:09,960 --> 00:21:12,380 we use this a lot on smart cards. 352 00:21:12,680 --> 00:21:15,000 Basically, there is no smart card nowadays 353 00:21:15,000 --> 00:21:16,020 on the market 354 00:21:16,720 --> 00:21:17,960 that has not been tested 355 00:21:17,960 --> 00:21:19,380 against this kind of fall injecting attacks. 356 00:21:20,280 --> 00:21:22,660 We also test this a lot in smart meters. 357 00:21:22,940 --> 00:21:25,160 Smart meters, they have a debug interface. 358 00:21:25,160 --> 00:21:28,160 So an operator can physically go to the meter 359 00:21:28,160 --> 00:21:29,820 and debug it. 360 00:21:30,240 --> 00:21:33,160 And there is an authentication protocol 361 00:21:33,880 --> 00:21:36,440 to be able to debug the smart meter. 362 00:21:37,800 --> 00:21:41,680 We recently tested a couple of Bitcoin wallets 363 00:21:41,680 --> 00:21:42,560 and password wallets. 364 00:21:44,000 --> 00:21:45,640 Basically, any kind of device 365 00:21:45,640 --> 00:21:47,000 with some kind of Linux. 366 00:21:47,260 --> 00:21:47,900 Normally, with Linux, 367 00:21:48,020 --> 00:21:50,340 you have a UART port 368 00:21:50,340 --> 00:21:52,300 with some kind of shell 369 00:21:52,300 --> 00:21:54,800 and you need to know 370 00:21:54,800 --> 00:21:55,620 the password to go in. 371 00:21:55,700 --> 00:21:57,840 You can bypass quickly using fall injection. 372 00:21:58,320 --> 00:21:59,780 And also automotive. 373 00:22:01,980 --> 00:22:04,100 It might be not trivial 374 00:22:04,800 --> 00:22:06,180 why or where 375 00:22:06,800 --> 00:22:08,880 there is some authentication scheme in a car. 376 00:22:10,320 --> 00:22:12,900 We use fall injection to bypass UDS. 377 00:22:13,680 --> 00:22:15,220 UDS is a protocol, 378 00:22:15,460 --> 00:22:16,640 a diagnosis protocol 379 00:22:16,640 --> 00:22:17,580 that is implemented 380 00:22:17,580 --> 00:22:19,400 in most of the cars in the market 381 00:22:19,400 --> 00:22:20,840 or most of the new cars. 382 00:22:21,420 --> 00:22:22,380 This protocol 383 00:22:23,580 --> 00:22:24,140 allows 384 00:22:27,000 --> 00:22:29,580 to get locks from the car, 385 00:22:29,940 --> 00:22:33,740 do some diagnostics on the car. 386 00:22:33,940 --> 00:22:35,380 So if something is failing, 387 00:22:35,520 --> 00:22:36,420 you can use this protocol 388 00:22:36,420 --> 00:22:37,580 to see what is failing. 389 00:22:38,000 --> 00:22:39,920 And one of the features of this protocol 390 00:22:39,920 --> 00:22:43,880 is that you can extract the firmware 391 00:22:44,420 --> 00:22:45,820 and you can change the firmware. 392 00:22:46,020 --> 00:22:47,400 You can allow the new firmware. 393 00:22:47,520 --> 00:22:48,520 So this is very interesting 394 00:22:48,520 --> 00:22:49,640 from the hacker point of view. 395 00:22:49,800 --> 00:22:51,920 If you can recover the firmware 396 00:22:51,920 --> 00:22:52,760 and then you can change 397 00:22:52,760 --> 00:22:54,020 and put it back or something like that. 398 00:22:54,800 --> 00:22:55,600 So how this, 399 00:22:55,740 --> 00:22:56,260 well, 400 00:22:56,740 --> 00:22:58,140 to prevent hackers 401 00:22:58,140 --> 00:22:59,140 to access to this protocol 402 00:22:59,140 --> 00:23:00,040 and get the firmware 403 00:23:00,040 --> 00:23:00,780 or modify the firmware, 404 00:23:01,340 --> 00:23:03,300 there is some kind of authentication scheme. 405 00:23:04,240 --> 00:23:05,020 This authentication 406 00:23:05,020 --> 00:23:06,920 is just basically a challenge response. 407 00:23:09,820 --> 00:23:12,860 The car sends a random number. 408 00:23:13,140 --> 00:23:14,660 The random number is encrypted 409 00:23:14,660 --> 00:23:16,860 with a secret password. 410 00:23:18,480 --> 00:23:20,280 The response is sent to the car 411 00:23:20,280 --> 00:23:21,700 and if the response is correct, 412 00:23:21,860 --> 00:23:23,080 the car allows you to debug 413 00:23:23,080 --> 00:23:24,260 using this protocol. 414 00:23:24,820 --> 00:23:27,840 So we can use fall injection in the car 415 00:23:27,840 --> 00:23:28,920 or in the ECU, 416 00:23:29,000 --> 00:23:30,160 which is the computer of the car, 417 00:23:30,280 --> 00:23:33,280 to bypass this check. 418 00:23:36,000 --> 00:23:39,100 So probably there will be a code like this one 419 00:23:39,100 --> 00:23:41,700 where we check if the key 420 00:23:42,360 --> 00:23:44,120 that we receive is the correct one. 421 00:23:44,280 --> 00:23:44,840 If not, 422 00:23:44,880 --> 00:23:47,420 we just jump to a place 423 00:23:47,420 --> 00:23:48,800 that probably will reset the car 424 00:23:48,800 --> 00:23:50,400 or will just ignore the authentication. 425 00:23:52,000 --> 00:23:53,060 So we can just check 426 00:23:53,080 --> 00:23:53,940 and let's use a glitch 427 00:23:53,940 --> 00:23:55,660 to corrupt these instructions 428 00:23:55,660 --> 00:23:56,620 in such a way 429 00:23:56,620 --> 00:23:57,440 that they are not executed. 430 00:24:00,640 --> 00:24:01,120 Okay. 431 00:24:01,900 --> 00:24:03,140 What else we can do? 432 00:24:03,700 --> 00:24:05,580 We test a lot of secure boots. 433 00:24:07,960 --> 00:24:09,020 So secure boots, 434 00:24:09,040 --> 00:24:09,660 probably you know, 435 00:24:10,160 --> 00:24:11,580 is a security feature 436 00:24:14,100 --> 00:24:17,720 that is implemented in many SOCs 437 00:24:17,720 --> 00:24:18,720 and many CPUs 438 00:24:18,720 --> 00:24:19,540 and many devices 439 00:24:19,540 --> 00:24:20,420 to be sure that 440 00:24:22,040 --> 00:24:23,000 only software 441 00:24:23,080 --> 00:24:24,280 that has been signed 442 00:24:24,840 --> 00:24:26,020 and has been authorized 443 00:24:26,020 --> 00:24:28,400 is running on the device, 444 00:24:28,620 --> 00:24:29,300 on the CPU. 445 00:24:31,820 --> 00:24:35,280 So normally this is ROM code 446 00:24:35,280 --> 00:24:36,160 that is in the chip 447 00:24:36,760 --> 00:24:37,800 that at boot time 448 00:24:38,780 --> 00:24:39,260 authenticates, 449 00:24:39,920 --> 00:24:40,960 calculates the signature 450 00:24:40,960 --> 00:24:42,700 and authenticates the signature 451 00:24:42,700 --> 00:24:44,120 of the software 452 00:24:44,120 --> 00:24:46,720 that is stored in the flash 453 00:24:47,400 --> 00:24:48,840 before loading into the RAM 454 00:24:48,840 --> 00:24:49,800 and executing the code. 455 00:24:50,000 --> 00:24:51,300 And normally there is a chain. 456 00:24:51,440 --> 00:24:52,680 So there is like different faces, 457 00:24:53,080 --> 00:24:53,260 different stages 458 00:24:53,740 --> 00:24:55,080 where we are authenticating 459 00:24:55,080 --> 00:24:56,140 different parts of the firmware. 460 00:24:57,780 --> 00:25:00,080 This is used a lot in smartphones 461 00:25:00,080 --> 00:25:01,780 to prevent anybody 462 00:25:01,780 --> 00:25:04,580 to just put any firmware 463 00:25:04,580 --> 00:25:06,320 or custom ROM in the phone, 464 00:25:06,940 --> 00:25:09,200 especially if your phone supports TE. 465 00:25:09,940 --> 00:25:11,200 And we test a lot of this. 466 00:25:12,100 --> 00:25:15,040 We test a lot of secure boots in phones 467 00:25:15,520 --> 00:25:16,880 to check if they are secure. 468 00:25:17,780 --> 00:25:20,320 We also test a lot of pay TV systems 469 00:25:20,320 --> 00:25:21,240 or smart TVs. 470 00:25:22,900 --> 00:25:23,860 And basically, 471 00:25:24,480 --> 00:25:25,440 almost nowadays, 472 00:25:25,600 --> 00:25:27,140 almost any IoT device 473 00:25:27,140 --> 00:25:28,060 or embedded device 474 00:25:28,060 --> 00:25:29,000 have this secure boot. 475 00:25:29,220 --> 00:25:30,560 So routers, 476 00:25:30,560 --> 00:25:31,080 or cameras, 477 00:25:31,340 --> 00:25:31,640 whatever. 478 00:25:32,200 --> 00:25:33,380 Almost every device 479 00:25:33,380 --> 00:25:34,440 has one of these secure boots. 480 00:25:34,580 --> 00:25:36,260 And we test them 481 00:25:36,260 --> 00:25:38,640 to be sure that nobody can use 482 00:25:38,640 --> 00:25:39,720 fall injection to bypass them. 483 00:25:41,060 --> 00:25:42,820 How can you bypass a secure boot 484 00:25:42,820 --> 00:25:43,360 with fall injection? 485 00:25:43,660 --> 00:25:43,960 Well, 486 00:25:44,760 --> 00:25:45,760 if we have a tool 487 00:25:45,760 --> 00:25:46,840 that allows us 488 00:25:46,840 --> 00:25:48,120 to skip instructions 489 00:25:48,120 --> 00:25:49,680 or to corrupt instructions, 490 00:25:49,860 --> 00:25:51,140 then it's very easy to do it. 491 00:25:51,860 --> 00:25:52,880 Whenever there is, 492 00:25:54,020 --> 00:25:54,540 well, 493 00:25:55,180 --> 00:25:57,300 when the secure boot 494 00:25:57,300 --> 00:25:58,260 is checking the signature 495 00:25:59,380 --> 00:26:00,960 of the next state, 496 00:26:01,180 --> 00:26:02,420 we can just inject a glitch 497 00:26:02,420 --> 00:26:04,400 and prevent the execution 498 00:26:04,400 --> 00:26:05,180 of that check 499 00:26:05,180 --> 00:26:06,200 and bypassing it. 500 00:26:06,740 --> 00:26:07,920 So this is a code 501 00:26:08,660 --> 00:26:11,080 of a simple secure boot 502 00:26:12,220 --> 00:26:14,220 that loads the plus image 503 00:26:14,900 --> 00:26:16,920 and then calculate the hash, 504 00:26:18,440 --> 00:26:19,420 check the signature, 505 00:26:19,420 --> 00:26:21,380 and then compare the hash 506 00:26:21,380 --> 00:26:21,920 and the signature. 507 00:26:22,780 --> 00:26:24,020 So here in this code, 508 00:26:24,120 --> 00:26:25,180 we can inject the glitches 509 00:26:25,180 --> 00:26:26,160 in many different places. 510 00:26:26,380 --> 00:26:27,680 So like here, 511 00:26:27,900 --> 00:26:29,280 or here, 512 00:26:30,000 --> 00:26:30,480 here. 513 00:26:31,300 --> 00:26:32,560 So all these red lines 514 00:26:32,560 --> 00:26:33,500 are different places 515 00:26:33,500 --> 00:26:35,180 that we can easily inject a glitch 516 00:26:35,180 --> 00:26:36,320 and bypass a secure boot. 517 00:26:37,260 --> 00:26:38,380 But the problem here 518 00:26:38,380 --> 00:26:41,380 is that a secure boot 519 00:26:41,380 --> 00:26:43,060 is kind of complex. 520 00:26:43,340 --> 00:26:44,640 And there are many, 521 00:26:44,760 --> 00:26:45,340 many, 522 00:26:45,360 --> 00:26:46,680 many ways 523 00:26:46,680 --> 00:26:47,480 to bypass it. 524 00:26:47,680 --> 00:26:48,680 There is many, 525 00:26:48,720 --> 00:26:49,400 many, 526 00:26:49,400 --> 00:26:50,080 many instructions 527 00:26:50,080 --> 00:26:51,800 that when we corrupt them, 528 00:26:51,920 --> 00:26:53,440 we can just escape 529 00:26:53,440 --> 00:26:54,060 the secure boot 530 00:26:54,060 --> 00:26:55,660 and bypass it. 531 00:26:56,840 --> 00:26:58,320 And this is something 532 00:26:58,320 --> 00:27:00,740 that is very complicated 533 00:27:00,740 --> 00:27:01,360 to protect. 534 00:27:01,580 --> 00:27:04,060 So I was introducing before 535 00:27:04,060 --> 00:27:04,840 the second rule 536 00:27:04,840 --> 00:27:05,580 of fall injection, 537 00:27:05,780 --> 00:27:06,200 which is that 538 00:27:06,200 --> 00:27:07,640 when you protect, 539 00:27:07,860 --> 00:27:08,940 you want to protect 540 00:27:08,940 --> 00:27:09,480 your device 541 00:27:10,440 --> 00:27:11,280 against fall injection, 542 00:27:11,560 --> 00:27:13,400 you try to do your best 543 00:27:14,020 --> 00:27:15,700 and sometimes you fail 544 00:27:15,700 --> 00:27:16,620 because it's very hard 545 00:27:16,620 --> 00:27:17,580 to protect it. 546 00:27:18,820 --> 00:27:19,380 So, 547 00:27:20,580 --> 00:27:21,360 when we, 548 00:27:22,260 --> 00:27:23,440 we have many customers 549 00:27:23,440 --> 00:27:24,240 that try to protect 550 00:27:24,240 --> 00:27:24,780 their secure boot 551 00:27:24,780 --> 00:27:25,700 against fall injection. 552 00:27:27,500 --> 00:27:29,060 And they find 553 00:27:29,060 --> 00:27:31,140 the most obvious places 554 00:27:31,140 --> 00:27:33,120 where we can inject glitches 555 00:27:33,120 --> 00:27:35,080 and they protect these places. 556 00:27:35,320 --> 00:27:35,980 But then, 557 00:27:36,000 --> 00:27:36,720 we test the product 558 00:27:36,720 --> 00:27:37,340 and we find 559 00:27:37,340 --> 00:27:38,040 that there are many 560 00:27:38,040 --> 00:27:38,700 different places 561 00:27:40,340 --> 00:27:41,700 that they didn't consider 562 00:27:41,700 --> 00:27:42,460 that you can inject 563 00:27:42,460 --> 00:27:43,360 a glitch 564 00:27:43,360 --> 00:27:44,280 and bypass a secure boot. 565 00:27:44,560 --> 00:27:45,300 And sometimes 566 00:27:45,300 --> 00:27:46,100 it's not obvious. 567 00:27:46,280 --> 00:27:47,380 So we develop a tool. 568 00:27:48,760 --> 00:27:49,380 We develop a tool 569 00:27:49,400 --> 00:27:50,560 which we call 570 00:27:50,560 --> 00:27:52,060 Fall Injection Simulator 571 00:27:52,060 --> 00:27:53,680 that simulates 572 00:27:53,680 --> 00:27:55,720 all the possible glitches 573 00:27:57,100 --> 00:27:58,360 on the code 574 00:27:58,360 --> 00:27:59,960 and it tells you 575 00:27:59,960 --> 00:28:00,680 which ones 576 00:28:00,680 --> 00:28:01,940 will allow you 577 00:28:01,940 --> 00:28:02,220 to bypass 578 00:28:02,220 --> 00:28:02,860 the secure boot. 579 00:28:03,480 --> 00:28:04,580 So this tool 580 00:28:05,480 --> 00:28:06,620 is this one here. 581 00:28:07,200 --> 00:28:08,460 We load the secure boot 582 00:28:08,460 --> 00:28:09,220 or any code 583 00:28:09,220 --> 00:28:09,780 we want to test 584 00:28:10,580 --> 00:28:11,320 and then 585 00:28:11,320 --> 00:28:12,600 we'll compile 586 00:28:12,600 --> 00:28:13,360 for the platform 587 00:28:13,360 --> 00:28:14,720 that this test 588 00:28:14,720 --> 00:28:15,160 is going to, 589 00:28:15,180 --> 00:28:15,820 this code 590 00:28:15,820 --> 00:28:16,760 is going to be running, 591 00:28:17,240 --> 00:28:17,720 ARM, 592 00:28:17,860 --> 00:28:18,180 normally. 593 00:28:18,620 --> 00:28:19,300 And then, 594 00:28:19,360 --> 00:28:19,380 we test 595 00:28:19,400 --> 00:28:19,780 and we can just 596 00:28:19,780 --> 00:28:20,500 press the button 597 00:28:20,500 --> 00:28:20,800 simulate 598 00:28:21,580 --> 00:28:22,840 and it will try to, 599 00:28:22,880 --> 00:28:23,340 it will compile 600 00:28:23,340 --> 00:28:23,680 the code 601 00:28:23,680 --> 00:28:24,980 and will try to simulate 602 00:28:24,980 --> 00:28:26,120 all the possible glitches 603 00:28:26,120 --> 00:28:26,820 on all the instructions 604 00:28:26,820 --> 00:28:27,400 of the code. 605 00:28:28,840 --> 00:28:29,620 After running 606 00:28:29,620 --> 00:28:30,120 the simulation, 607 00:28:30,380 --> 00:28:30,640 well, 608 00:28:33,340 --> 00:28:34,400 it will take 609 00:28:34,400 --> 00:28:34,840 some time 610 00:28:34,840 --> 00:28:35,700 to find 611 00:28:35,700 --> 00:28:36,600 all the glitches 612 00:28:36,600 --> 00:28:37,500 in the right side. 613 00:28:39,140 --> 00:28:40,120 Here in the right side 614 00:28:40,120 --> 00:28:40,400 we have 615 00:28:40,400 --> 00:28:41,180 the different glitches 616 00:28:41,180 --> 00:28:42,000 that the tool finds. 617 00:28:42,720 --> 00:28:43,420 It takes 618 00:28:43,420 --> 00:28:43,680 around 619 00:28:43,680 --> 00:28:44,380 five minutes 620 00:28:44,380 --> 00:28:45,200 to do this. 621 00:28:45,360 --> 00:28:45,880 It depends, 622 00:28:46,000 --> 00:28:46,380 of course, 623 00:28:46,400 --> 00:28:46,780 on the size 624 00:28:46,780 --> 00:28:47,200 of the code. 625 00:28:49,400 --> 00:28:49,500 This is 626 00:28:49,500 --> 00:28:50,860 of all the possible glitches. 627 00:28:51,620 --> 00:28:52,360 These are 628 00:28:52,360 --> 00:28:53,100 instructions, 629 00:28:53,400 --> 00:28:54,280 assembly instructions 630 00:28:54,280 --> 00:28:54,940 that 631 00:28:54,940 --> 00:28:55,940 if you inject 632 00:28:55,940 --> 00:28:56,280 a glitch 633 00:28:56,280 --> 00:28:56,940 and you flip 634 00:28:56,940 --> 00:28:57,820 one single bit 635 00:28:57,820 --> 00:28:59,320 will allow you 636 00:28:59,320 --> 00:28:59,700 to bypass 637 00:28:59,700 --> 00:29:00,600 the secure boot. 638 00:29:01,060 --> 00:29:02,000 So with this tool 639 00:29:02,000 --> 00:29:03,080 we can easily identify 640 00:29:03,080 --> 00:29:03,620 potential 641 00:29:04,460 --> 00:29:04,960 vulnerabilities 642 00:29:04,960 --> 00:29:05,760 in the code 643 00:29:05,760 --> 00:29:06,640 and 644 00:29:06,640 --> 00:29:08,300 try to mitigate 645 00:29:08,300 --> 00:29:08,880 those, 646 00:29:08,880 --> 00:29:10,140 those vulnerabilities. 647 00:29:12,040 --> 00:29:12,680 I have 648 00:29:12,680 --> 00:29:12,980 this tool 649 00:29:12,980 --> 00:29:13,260 here 650 00:29:13,260 --> 00:29:14,060 in my computer 651 00:29:14,060 --> 00:29:14,780 if you want to see 652 00:29:14,780 --> 00:29:15,360 how it works. 653 00:29:15,600 --> 00:29:16,420 Just let me know. 654 00:29:16,480 --> 00:29:16,980 I will be around 655 00:29:19,400 --> 00:29:19,720 in a minute. 656 00:29:20,720 --> 00:29:21,280 So, 657 00:29:21,980 --> 00:29:22,880 more attacks 658 00:29:22,880 --> 00:29:23,800 we test. 659 00:29:25,000 --> 00:29:25,840 We test 660 00:29:27,600 --> 00:29:28,160 escalation 661 00:29:28,160 --> 00:29:28,740 of privileges. 662 00:29:29,600 --> 00:29:30,160 So, 663 00:29:30,220 --> 00:29:30,840 quite often 664 00:29:30,840 --> 00:29:31,540 we are 665 00:29:31,540 --> 00:29:32,020 in the situation 666 00:29:32,020 --> 00:29:32,520 that we have 667 00:29:32,520 --> 00:29:32,840 a product, 668 00:29:33,020 --> 00:29:33,400 we have 669 00:29:33,400 --> 00:29:33,760 a device 670 00:29:34,320 --> 00:29:35,380 and we have 671 00:29:35,380 --> 00:29:36,300 only restricted 672 00:29:36,300 --> 00:29:36,760 access 673 00:29:36,760 --> 00:29:37,500 to this product. 674 00:29:37,720 --> 00:29:38,480 And we want 675 00:29:38,480 --> 00:29:39,520 to break out 676 00:29:39,520 --> 00:29:40,680 of this restricted 677 00:29:40,680 --> 00:29:41,060 access 678 00:29:41,060 --> 00:29:42,380 and be able 679 00:29:42,380 --> 00:29:42,800 to execute 680 00:29:43,620 --> 00:29:44,180 or 681 00:29:44,180 --> 00:29:45,760 get full control 682 00:29:45,760 --> 00:29:46,140 of the box. 683 00:29:46,380 --> 00:29:47,220 So this 684 00:29:47,220 --> 00:29:48,520 happens in 685 00:29:48,520 --> 00:29:49,320 many scenarios 686 00:29:49,320 --> 00:29:50,000 but the most 687 00:29:50,000 --> 00:29:51,120 two common ones 688 00:29:52,000 --> 00:29:52,820 are when 689 00:29:52,820 --> 00:29:53,240 we have 690 00:29:53,240 --> 00:29:54,720 user space control 691 00:29:54,720 --> 00:29:55,840 and we want 692 00:29:55,840 --> 00:29:56,260 to break 693 00:29:56,260 --> 00:29:57,260 into kernel space 694 00:29:57,980 --> 00:29:58,920 or we have 695 00:29:58,920 --> 00:29:59,480 RE control 696 00:29:59,480 --> 00:30:00,280 and we want 697 00:30:00,280 --> 00:30:00,660 to break 698 00:30:00,660 --> 00:30:01,460 and get control 699 00:30:01,460 --> 00:30:01,940 of the TE. 700 00:30:02,860 --> 00:30:03,380 So, 701 00:30:03,480 --> 00:30:04,560 just to put 702 00:30:04,560 --> 00:30:04,940 an example, 703 00:30:05,620 --> 00:30:06,140 breaking 704 00:30:06,140 --> 00:30:07,180 the TE, 705 00:30:08,520 --> 00:30:09,180 there is 706 00:30:09,180 --> 00:30:09,540 a technique 707 00:30:09,540 --> 00:30:10,580 we use a lot. 708 00:30:10,720 --> 00:30:11,480 We call 709 00:30:11,480 --> 00:30:11,720 this 710 00:30:11,720 --> 00:30:12,900 wild jump 711 00:30:13,760 --> 00:30:14,280 attack. 712 00:30:15,100 --> 00:30:16,060 I will explain 713 00:30:16,060 --> 00:30:16,620 how it works. 714 00:30:17,460 --> 00:30:18,200 This is 715 00:30:18,200 --> 00:30:19,460 a TE system. 716 00:30:19,760 --> 00:30:20,180 This is 717 00:30:20,180 --> 00:30:20,320 a 718 00:30:21,300 --> 00:30:21,820 memory 719 00:30:22,380 --> 00:30:22,900 segmentation 720 00:30:22,900 --> 00:30:23,540 of a 721 00:30:23,540 --> 00:30:24,000 TE system. 722 00:30:24,320 --> 00:30:25,120 The RE 723 00:30:25,120 --> 00:30:25,660 can only 724 00:30:25,660 --> 00:30:25,960 access 725 00:30:25,960 --> 00:30:26,400 to the 726 00:30:26,400 --> 00:30:27,560 RE memory 727 00:30:27,560 --> 00:30:28,420 and the TE 728 00:30:28,420 --> 00:30:28,940 can only 729 00:30:28,940 --> 00:30:29,200 access 730 00:30:29,200 --> 00:30:29,580 to the 731 00:30:29,580 --> 00:30:30,040 TE memory. 732 00:30:30,620 --> 00:30:31,320 There is 733 00:30:31,320 --> 00:30:31,720 a shared 734 00:30:31,720 --> 00:30:31,940 memory 735 00:30:31,940 --> 00:30:32,440 which is 736 00:30:32,440 --> 00:30:32,800 the mailbox. 737 00:30:33,060 --> 00:30:33,520 So when 738 00:30:33,520 --> 00:30:33,860 the RE 739 00:30:33,860 --> 00:30:34,140 wants 740 00:30:34,140 --> 00:30:34,620 to send 741 00:30:34,620 --> 00:30:35,780 a message 742 00:30:35,780 --> 00:30:36,800 to the 743 00:30:36,800 --> 00:30:36,900 TE, 744 00:30:37,900 --> 00:30:38,640 this is done 745 00:30:38,640 --> 00:30:39,020 through the 746 00:30:39,020 --> 00:30:39,240 mailbox. 747 00:30:39,520 --> 00:30:39,840 Put the 748 00:30:39,840 --> 00:30:40,180 message in 749 00:30:40,180 --> 00:30:40,480 the mailbox 750 00:30:40,480 --> 00:30:41,080 and the 751 00:30:41,080 --> 00:30:41,540 TE will 752 00:30:41,540 --> 00:30:41,940 read it 753 00:30:41,940 --> 00:30:42,480 and the 754 00:30:42,480 --> 00:30:42,800 other way 755 00:30:42,800 --> 00:30:43,560 around. 756 00:30:45,200 --> 00:30:45,700 So, 757 00:30:46,240 --> 00:30:47,080 this attack 758 00:30:47,080 --> 00:30:48,120 works as 759 00:30:48,120 --> 00:30:48,400 follows. 760 00:30:48,940 --> 00:30:49,420 The RE 761 00:30:49,420 --> 00:30:50,240 who is 762 00:30:50,240 --> 00:30:51,440 under control 763 00:30:51,440 --> 00:30:51,600 of the 764 00:30:51,600 --> 00:30:51,800 attacker 765 00:30:51,800 --> 00:30:52,300 because maybe 766 00:30:52,300 --> 00:30:52,680 the attacker 767 00:30:52,680 --> 00:30:53,800 can run 768 00:30:53,800 --> 00:30:54,340 an application 769 00:30:54,340 --> 00:30:54,660 on the 770 00:30:54,660 --> 00:30:54,820 RE, 771 00:30:55,500 --> 00:30:56,280 the attacker 772 00:30:57,680 --> 00:30:58,560 puts a 773 00:31:06,800 --> 00:31:07,220 message 774 00:31:07,220 --> 00:31:07,460 and then 775 00:31:07,460 --> 00:31:08,460 he spries 776 00:31:08,460 --> 00:31:08,940 the memory 777 00:31:08,940 --> 00:31:09,880 with the 778 00:31:09,880 --> 00:31:10,140 payload 779 00:31:10,140 --> 00:31:10,580 address. 780 00:31:10,760 --> 00:31:11,340 He spries 781 00:31:11,340 --> 00:31:12,680 the rest 782 00:31:12,680 --> 00:31:12,960 of the 783 00:31:12,960 --> 00:31:13,440 mailbox 784 00:31:14,880 --> 00:31:15,920 and indicates 785 00:31:15,920 --> 00:31:16,420 the TE 786 00:31:16,420 --> 00:31:16,620 that there 787 00:31:16,620 --> 00:31:16,800 is a 788 00:31:16,800 --> 00:31:17,000 message 789 00:31:17,000 --> 00:31:17,920 to read. 790 00:31:19,440 --> 00:31:20,340 The TE 791 00:31:20,340 --> 00:31:21,560 will read 792 00:31:21,560 --> 00:31:22,000 this message 793 00:31:23,360 --> 00:31:23,880 normally 794 00:31:23,880 --> 00:31:24,440 using a 795 00:31:24,440 --> 00:31:24,820 main copy 796 00:31:24,820 --> 00:31:25,180 or some 797 00:31:25,180 --> 00:31:25,560 kind of 798 00:31:25,560 --> 00:31:25,960 similar 799 00:31:25,960 --> 00:31:26,360 function. 800 00:31:26,360 --> 00:31:27,060 And this main 801 00:31:27,060 --> 00:31:27,480 copy what 802 00:31:27,480 --> 00:31:28,000 normally does 803 00:31:28,000 --> 00:31:28,980 is load 804 00:31:28,980 --> 00:31:30,220 from an 805 00:31:31,040 --> 00:31:31,540 address, 806 00:31:31,720 --> 00:31:32,360 copy to a 807 00:31:32,360 --> 00:31:32,600 register, 808 00:31:32,840 --> 00:31:33,340 and then from 809 00:31:33,340 --> 00:31:33,740 the register 810 00:31:33,740 --> 00:31:34,580 to a 811 00:31:34,580 --> 00:31:34,760 different 812 00:31:34,760 --> 00:31:35,140 address. 813 00:31:35,980 --> 00:31:36,480 So, 814 00:31:36,560 --> 00:31:36,940 if the 815 00:31:36,940 --> 00:31:37,240 attacker 816 00:31:37,240 --> 00:31:37,840 injects 817 00:31:37,840 --> 00:31:38,100 a 818 00:31:38,100 --> 00:31:38,360 glitch 819 00:31:38,360 --> 00:31:39,480 when the 820 00:31:40,060 --> 00:31:40,560 address 821 00:31:40,560 --> 00:31:40,860 of the 822 00:31:40,860 --> 00:31:41,120 payload 823 00:31:41,120 --> 00:31:41,620 is being 824 00:31:41,620 --> 00:31:42,140 copied 825 00:31:43,580 --> 00:31:44,320 and this 826 00:31:44,320 --> 00:31:44,520 glitch 827 00:31:44,520 --> 00:31:45,380 happens to 828 00:31:45,380 --> 00:31:45,540 affect 829 00:31:45,540 --> 00:31:46,020 the 830 00:31:57,720 --> 00:31:58,320 user 831 00:31:58,320 --> 00:31:58,520 like this, 832 00:31:59,460 --> 00:32:00,320 what we 833 00:32:00,320 --> 00:32:00,560 have 834 00:32:00,560 --> 00:32:01,820 is that 835 00:32:01,820 --> 00:32:02,060 we 836 00:32:02,060 --> 00:32:02,360 copy 837 00:32:03,220 --> 00:32:03,820 the 838 00:32:03,820 --> 00:32:04,260 payload 839 00:32:04,260 --> 00:32:04,700 address 840 00:32:04,700 --> 00:32:05,640 directly 841 00:32:05,640 --> 00:32:06,460 into the 842 00:32:06,460 --> 00:32:06,840 program 843 00:32:06,840 --> 00:32:07,220 counter, 844 00:32:07,340 --> 00:32:07,720 into the 845 00:32:07,720 --> 00:32:07,940 PC. 846 00:32:08,200 --> 00:32:08,780 So, 847 00:32:08,840 --> 00:32:09,200 we are 848 00:32:09,200 --> 00:32:09,560 basically 849 00:32:09,560 --> 00:32:10,040 forcing 850 00:32:10,040 --> 00:32:10,420 the 851 00:32:10,420 --> 00:32:10,700 CPU 852 00:32:10,700 --> 00:32:11,260 of the 853 00:32:11,260 --> 00:32:11,520 TE 854 00:32:11,520 --> 00:32:12,280 to run 855 00:32:12,280 --> 00:32:12,920 or payload. 856 00:32:13,300 --> 00:32:14,100 And then 857 00:32:14,100 --> 00:32:14,700 the attacker 858 00:32:14,700 --> 00:32:15,000 gets 859 00:32:15,000 --> 00:32:16,100 full control 860 00:32:26,360 --> 00:32:26,580 we use 861 00:32:26,580 --> 00:32:26,940 this kind 862 00:32:26,940 --> 00:32:27,080 of 863 00:32:27,080 --> 00:32:27,240 attacks 864 00:32:27,240 --> 00:32:28,640 as in 865 00:32:28,640 --> 00:32:29,840 all these 866 00:32:29,840 --> 00:32:30,280 devices I 867 00:32:30,280 --> 00:32:30,380 mentioned 868 00:32:30,380 --> 00:32:31,180 before in 869 00:32:31,180 --> 00:32:31,620 phones, 870 00:32:32,220 --> 00:32:32,840 normally in 871 00:32:32,840 --> 00:32:33,920 phones where 872 00:32:33,920 --> 00:32:34,420 there is a 873 00:32:34,420 --> 00:32:35,000 TE and we 874 00:32:35,000 --> 00:32:35,280 want to 875 00:32:35,280 --> 00:32:35,700 test if 876 00:32:35,700 --> 00:32:35,960 we can 877 00:32:36,980 --> 00:32:37,560 break the 878 00:32:37,560 --> 00:32:38,060 TE to 879 00:32:38,060 --> 00:32:38,500 access to 880 00:32:38,500 --> 00:32:38,920 the secrets 881 00:32:38,920 --> 00:32:39,400 of banking 882 00:32:39,400 --> 00:32:39,940 applications, 883 00:32:40,060 --> 00:32:40,420 of payment 884 00:32:40,420 --> 00:32:41,200 applications. 885 00:32:42,620 --> 00:32:43,340 We use 886 00:32:43,340 --> 00:32:43,700 this with 887 00:32:43,700 --> 00:32:44,720 Linux systems, 888 00:32:44,860 --> 00:32:46,280 Linux products, 889 00:32:46,480 --> 00:32:47,180 and we use 890 00:32:47,180 --> 00:32:47,640 this in 891 00:32:47,640 --> 00:32:48,520 Android phones 892 00:32:48,520 --> 00:32:49,240 or devices 893 00:32:49,240 --> 00:32:50,280 to see if it's 894 00:32:50,280 --> 00:32:50,800 possible to 895 00:32:50,800 --> 00:32:51,160 root these 896 00:32:51,160 --> 00:32:51,520 devices. 897 00:32:52,740 --> 00:32:53,640 And we 898 00:32:53,640 --> 00:32:54,380 do this a lot 899 00:32:54,380 --> 00:32:55,060 on any kind 900 00:32:55,060 --> 00:32:55,420 of device 901 00:32:55,420 --> 00:32:56,020 that implements 902 00:32:56,020 --> 00:32:56,700 arm 903 00:32:56,700 --> 00:32:57,740 trust on 904 00:32:57,740 --> 00:32:58,240 TE. 905 00:33:01,200 --> 00:33:01,760 OK, 906 00:33:01,920 --> 00:33:03,080 something else 907 00:33:03,080 --> 00:33:03,400 we test. 908 00:33:04,200 --> 00:33:05,000 We try 909 00:33:05,000 --> 00:33:05,440 to recover 910 00:33:05,440 --> 00:33:05,980 crypto keys 911 00:33:05,980 --> 00:33:06,380 using 912 00:33:06,380 --> 00:33:07,080 Poly Injection. 913 00:33:07,900 --> 00:33:08,580 This is 914 00:33:08,580 --> 00:33:09,720 quite complex. 915 00:33:10,440 --> 00:33:11,720 There are many 916 00:33:11,720 --> 00:33:12,280 different ways 917 00:33:12,280 --> 00:33:12,640 of doing 918 00:33:12,640 --> 00:33:13,500 this and 919 00:33:13,500 --> 00:33:14,520 there are 920 00:33:14,520 --> 00:33:14,680 many 921 00:33:14,680 --> 00:33:15,060 techniques, 922 00:33:15,300 --> 00:33:15,640 there are 923 00:33:15,640 --> 00:33:16,160 many papers 924 00:33:16,160 --> 00:33:16,900 published out 925 00:33:16,900 --> 00:33:17,600 there that 926 00:33:17,600 --> 00:33:18,520 explains how 927 00:33:18,520 --> 00:33:19,120 using Poly 928 00:33:19,120 --> 00:33:19,640 Injection you 929 00:33:19,640 --> 00:33:20,060 can get 930 00:33:20,060 --> 00:33:21,600 keys from 931 00:33:21,600 --> 00:33:22,640 a system. 932 00:33:23,280 --> 00:33:24,400 So I 933 00:33:24,400 --> 00:33:24,920 will not go 934 00:33:24,920 --> 00:33:25,380 through this 935 00:33:25,380 --> 00:33:26,280 full analysis. 936 00:33:26,520 --> 00:33:27,140 This is called 937 00:33:27,140 --> 00:33:27,840 full analysis. 938 00:33:28,440 --> 00:33:29,360 I will not go 939 00:33:29,360 --> 00:33:29,660 through this 940 00:33:29,660 --> 00:33:30,080 because it's 941 00:33:30,080 --> 00:33:30,540 very complex. 942 00:33:31,000 --> 00:33:32,040 This basically 943 00:33:32,600 --> 00:33:33,740 is based on 944 00:33:39,720 --> 00:33:40,600 the cryptographic 945 00:33:40,600 --> 00:33:41,720 algorithm in 946 00:33:42,480 --> 00:33:42,960 such a way 947 00:33:42,960 --> 00:33:43,480 that this 948 00:33:43,480 --> 00:33:44,060 glitch affects 949 00:33:44,060 --> 00:33:45,340 the internal 950 00:33:45,340 --> 00:33:46,080 state and 951 00:33:46,080 --> 00:33:47,040 by analyzing 952 00:33:47,040 --> 00:33:47,640 how the 953 00:33:49,600 --> 00:33:50,720 glitch or 954 00:33:50,720 --> 00:33:51,180 how the 955 00:33:51,180 --> 00:33:51,620 error that 956 00:33:51,620 --> 00:33:52,040 you introduce 957 00:33:52,040 --> 00:33:52,700 is propagated 958 00:33:52,700 --> 00:33:53,660 you can try 959 00:33:53,660 --> 00:33:54,140 to recover 960 00:33:54,140 --> 00:33:54,520 the key. 961 00:33:55,340 --> 00:33:56,140 This is very 962 00:33:56,140 --> 00:33:56,520 complex. 963 00:33:56,640 --> 00:33:57,040 I will not 964 00:33:57,040 --> 00:33:57,360 talk about 965 00:33:57,360 --> 00:33:57,580 this. 966 00:33:58,440 --> 00:33:59,440 I will talk 967 00:33:59,440 --> 00:34:00,060 about something 968 00:34:00,060 --> 00:34:02,080 simpler which 969 00:34:02,080 --> 00:34:03,300 is that many 970 00:34:03,300 --> 00:34:04,500 devices that 971 00:34:04,500 --> 00:34:05,700 works or 972 00:34:05,700 --> 00:34:06,120 operates 973 00:34:06,120 --> 00:34:07,160 with 974 00:34:09,720 --> 00:34:09,760 cryptographic 975 00:34:09,760 --> 00:34:11,180 many devices 976 00:34:11,180 --> 00:34:11,500 that have 977 00:34:11,500 --> 00:34:12,160 crypto engines 978 00:34:13,260 --> 00:34:14,360 they normally 979 00:34:14,360 --> 00:34:14,900 have a key 980 00:34:14,900 --> 00:34:15,120 slot. 981 00:34:15,480 --> 00:34:16,280 This key 982 00:34:16,280 --> 00:34:17,160 slot is a 983 00:34:17,160 --> 00:34:17,600 place in 984 00:34:17,600 --> 00:34:17,960 the memory 985 00:34:17,960 --> 00:34:18,980 or region 986 00:34:18,980 --> 00:34:19,720 or registers 987 00:34:19,720 --> 00:34:21,400 that stores 988 00:34:21,400 --> 00:34:22,080 all the 989 00:34:22,080 --> 00:34:23,780 keys and 990 00:34:23,780 --> 00:34:24,280 these keys 991 00:34:24,280 --> 00:34:25,220 goes to 992 00:34:25,220 --> 00:34:25,600 the crypto 993 00:34:25,600 --> 00:34:26,640 engine and 994 00:34:26,640 --> 00:34:27,100 normally these 995 00:34:27,100 --> 00:34:27,600 keys in the 996 00:34:27,600 --> 00:34:27,900 key slot 997 00:34:27,900 --> 00:34:28,520 there are 998 00:34:28,520 --> 00:34:28,980 attributes. 999 00:34:29,400 --> 00:34:30,400 These attributes 1000 00:34:30,400 --> 00:34:31,040 indicate 1001 00:34:31,960 --> 00:34:32,860 which key 1002 00:34:32,860 --> 00:34:33,360 can be 1003 00:34:33,360 --> 00:34:33,880 used with 1004 00:34:39,720 --> 00:34:40,080 AES. 1005 00:34:40,080 --> 00:34:40,420 The key number 1006 00:34:40,420 --> 00:34:41,520 one can 1007 00:34:41,520 --> 00:34:42,260 only be used 1008 00:34:42,260 --> 00:34:42,940 with AES 1009 00:34:42,940 --> 00:34:43,720 because in the 1010 00:34:43,720 --> 00:34:45,040 attributes it 1011 00:34:45,040 --> 00:34:45,520 says that it's 1012 00:34:45,520 --> 00:34:46,600 only possible 1013 00:34:46,600 --> 00:34:47,140 to use with 1014 00:34:47,140 --> 00:34:47,440 AES. 1015 00:34:47,900 --> 00:34:48,820 If somebody 1016 00:34:48,820 --> 00:34:50,240 tries to 1017 00:34:50,240 --> 00:34:50,900 tell the 1018 00:34:50,900 --> 00:34:51,400 crypto engine 1019 00:34:51,400 --> 00:34:51,900 to use the 1020 00:34:51,900 --> 00:34:52,180 key number 1021 00:34:52,180 --> 00:34:52,700 one with 1022 00:34:52,700 --> 00:34:54,820 this it 1023 00:34:54,820 --> 00:34:55,460 will not 1024 00:34:56,180 --> 00:34:56,660 work. 1025 00:34:56,820 --> 00:34:57,460 The engine 1026 00:34:57,460 --> 00:34:57,900 will not 1027 00:34:57,900 --> 00:34:58,380 accept the 1028 00:34:58,380 --> 00:34:58,580 operation 1029 00:34:58,580 --> 00:35:00,040 because the 1030 00:35:00,040 --> 00:35:00,520 key has 1031 00:35:00,520 --> 00:35:01,080 no permissions 1032 00:35:01,080 --> 00:35:01,640 to be used 1033 00:35:01,640 --> 00:35:01,960 with this. 1034 00:35:02,800 --> 00:35:03,660 So here we 1035 00:35:03,660 --> 00:35:03,960 can use 1036 00:35:03,960 --> 00:35:04,380 pole injection 1037 00:35:04,380 --> 00:35:05,180 to change 1038 00:35:05,940 --> 00:35:06,380 this 1039 00:35:06,380 --> 00:35:06,840 attribute 1040 00:35:06,840 --> 00:35:08,280 table in 1041 00:35:08,280 --> 00:35:08,720 such a way 1042 00:35:08,720 --> 00:35:11,640 that we 1043 00:35:12,340 --> 00:35:12,780 allow 1044 00:35:12,780 --> 00:35:13,460 operations 1045 00:35:13,460 --> 00:35:14,320 that we 1046 00:35:14,320 --> 00:35:14,660 were not 1047 00:35:14,660 --> 00:35:14,880 supposed 1048 00:35:14,880 --> 00:35:15,280 to do. 1049 00:35:15,900 --> 00:35:16,780 So now we 1050 00:35:16,780 --> 00:35:17,300 for example 1051 00:35:17,300 --> 00:35:17,620 in this 1052 00:35:17,620 --> 00:35:18,420 case we 1053 00:35:18,420 --> 00:35:19,260 change the 1054 00:35:19,260 --> 00:35:19,620 key number 1055 00:35:19,620 --> 00:35:20,220 one so we 1056 00:35:20,220 --> 00:35:20,560 can use 1057 00:35:20,560 --> 00:35:20,960 with this. 1058 00:35:21,340 --> 00:35:21,940 Why we 1059 00:35:21,940 --> 00:35:22,220 want to 1060 00:35:22,220 --> 00:35:22,520 do this? 1061 00:35:22,900 --> 00:35:23,580 Because this 1062 00:35:23,580 --> 00:35:24,080 is very easy 1063 00:35:24,080 --> 00:35:25,660 to break. 1064 00:35:25,860 --> 00:35:26,540 We can 1065 00:35:26,540 --> 00:35:26,960 brute force 1066 00:35:26,960 --> 00:35:27,220 this. 1067 00:35:27,640 --> 00:35:28,320 So we 1068 00:35:28,320 --> 00:35:29,060 can use 1069 00:35:29,060 --> 00:35:29,520 pole injection 1070 00:35:29,520 --> 00:35:30,380 to force a 1071 00:35:30,380 --> 00:35:30,980 key to go 1072 00:35:30,980 --> 00:35:31,360 into the 1073 00:35:31,360 --> 00:35:31,800 desk engine 1074 00:35:32,320 --> 00:35:33,160 we can then 1075 00:35:33,160 --> 00:35:33,520 use brute 1076 00:35:33,520 --> 00:35:33,880 force to 1077 00:35:33,880 --> 00:35:34,400 recover this 1078 00:35:34,400 --> 00:35:34,560 key. 1079 00:35:39,000 --> 00:35:39,960 We use 1080 00:35:39,960 --> 00:35:40,940 this in 1081 00:35:40,940 --> 00:35:41,240 all the 1082 00:35:41,240 --> 00:35:41,780 devices I 1083 00:35:41,780 --> 00:35:42,380 mentioned 1084 00:35:42,380 --> 00:35:43,240 before plus 1085 00:35:43,720 --> 00:35:44,320 white box 1086 00:35:44,320 --> 00:35:44,640 crypto. 1087 00:35:45,340 --> 00:35:46,300 White box 1088 00:35:46,300 --> 00:35:47,480 crypto is 1089 00:35:47,480 --> 00:35:49,040 a kind 1090 00:35:49,040 --> 00:35:49,240 of 1091 00:35:49,240 --> 00:35:49,860 obfuscation 1092 00:35:49,860 --> 00:35:51,100 technology or 1093 00:35:51,100 --> 00:35:51,840 kind of DRM 1094 00:35:51,840 --> 00:35:52,200 technology. 1095 00:35:52,420 --> 00:35:52,820 It's not the 1096 00:35:52,820 --> 00:35:53,320 same but kind 1097 00:35:53,320 --> 00:35:53,880 of DRM 1098 00:35:53,880 --> 00:35:54,200 technology. 1099 00:35:54,400 --> 00:35:55,180 It's a way 1100 00:35:55,180 --> 00:35:55,820 to obfuscate 1101 00:35:55,820 --> 00:35:56,900 the crypto 1102 00:35:56,900 --> 00:35:58,480 operations and 1103 00:35:58,480 --> 00:35:59,180 we use 1104 00:35:59,180 --> 00:35:59,880 this pole 1105 00:35:59,880 --> 00:36:00,380 injection to 1106 00:36:00,380 --> 00:36:00,840 recover the 1107 00:36:00,840 --> 00:36:01,400 keys from 1108 00:36:01,400 --> 00:36:01,980 this white 1109 00:36:01,980 --> 00:36:02,320 box crypto. 1110 00:36:06,240 --> 00:36:06,860 Finally, 1111 00:36:07,040 --> 00:36:07,640 my final 1112 00:36:07,640 --> 00:36:08,140 attack or 1113 00:36:08,140 --> 00:36:08,860 final 1114 00:36:08,860 --> 00:36:09,240 example, 1115 00:36:09,500 --> 00:36:10,460 modifying 1116 00:36:10,460 --> 00:36:11,020 security 1117 00:36:11,020 --> 00:36:11,660 configuration. 1118 00:36:13,700 --> 00:36:14,940 So if 1119 00:36:14,940 --> 00:36:15,900 a chip 1120 00:36:15,900 --> 00:36:16,420 or a 1121 00:36:19,240 --> 00:36:19,780 features have 1122 00:36:19,780 --> 00:36:20,080 to be 1123 00:36:20,080 --> 00:36:20,880 initialized at 1124 00:36:20,880 --> 00:36:21,300 some point. 1125 00:36:21,820 --> 00:36:22,520 Normally this 1126 00:36:22,520 --> 00:36:23,340 happens during 1127 00:36:23,340 --> 00:36:23,700 the secure 1128 00:36:23,700 --> 00:36:24,240 boot or 1129 00:36:24,240 --> 00:36:24,720 this happens 1130 00:36:24,720 --> 00:36:25,060 at boot 1131 00:36:25,060 --> 00:36:25,280 time. 1132 00:36:25,700 --> 00:36:26,440 There is a 1133 00:36:26,440 --> 00:36:27,400 software that 1134 00:36:27,400 --> 00:36:28,120 enables the 1135 00:36:28,120 --> 00:36:28,360 security 1136 00:36:28,360 --> 00:36:28,800 features. 1137 00:36:29,000 --> 00:36:29,380 Like for 1138 00:36:29,380 --> 00:36:29,780 example, 1139 00:36:29,900 --> 00:36:30,740 it blocks 1140 00:36:30,740 --> 00:36:31,620 the 1141 00:36:31,620 --> 00:36:32,180 JTAG or 1142 00:36:32,180 --> 00:36:33,180 enables the 1143 00:36:33,180 --> 00:36:34,400 memory 1144 00:36:34,400 --> 00:36:35,960 scrambling or 1145 00:36:35,960 --> 00:36:36,760 I don't 1146 00:36:36,760 --> 00:36:36,880 know, 1147 00:36:36,940 --> 00:36:37,620 whatever. 1148 00:36:38,200 --> 00:36:39,040 So this 1149 00:36:39,040 --> 00:36:39,580 normally happens 1150 00:36:39,580 --> 00:36:39,920 at boot 1151 00:36:39,920 --> 00:36:40,100 time. 1152 00:36:40,460 --> 00:36:41,420 So because 1153 00:36:41,420 --> 00:36:42,740 we saw how 1154 00:36:42,740 --> 00:36:43,580 glitches can 1155 00:36:43,580 --> 00:36:44,120 be used to 1156 00:36:44,120 --> 00:36:44,300 bypass 1157 00:36:44,300 --> 00:36:45,060 instructions or 1158 00:36:45,060 --> 00:36:45,460 to corrupt 1159 00:36:45,460 --> 00:36:45,980 instructions, 1160 00:36:46,320 --> 00:36:47,260 we can use 1161 00:36:47,260 --> 00:36:47,780 glitches to 1162 00:36:47,780 --> 00:36:48,860 prevent the 1163 00:36:48,860 --> 00:36:49,380 initialization 1164 00:36:49,380 --> 00:36:50,780 of these 1165 00:36:50,780 --> 00:36:51,060 security 1166 00:36:51,060 --> 00:36:51,400 features. 1167 00:36:53,060 --> 00:36:54,280 But there is 1168 00:36:54,280 --> 00:36:54,680 something else 1169 00:36:54,680 --> 00:36:55,180 we can do. 1170 00:36:55,760 --> 00:36:56,840 After the 1171 00:36:56,840 --> 00:36:57,300 system is 1172 00:36:57,300 --> 00:36:58,200 initialized, 1173 00:36:59,400 --> 00:37:00,420 after the 1174 00:37:00,420 --> 00:37:00,900 system is 1175 00:37:00,900 --> 00:37:02,140 running and 1176 00:37:02,140 --> 00:37:02,600 the security 1177 00:37:02,600 --> 00:37:03,340 features are 1178 00:37:03,340 --> 00:37:03,880 initialized, 1179 00:37:04,620 --> 00:37:05,640 there will be 1180 00:37:05,640 --> 00:37:06,220 somewhere in 1181 00:37:06,220 --> 00:37:06,540 the chip 1182 00:37:06,540 --> 00:37:07,420 one bit 1183 00:37:07,420 --> 00:37:08,400 that indicates 1184 00:37:08,400 --> 00:37:09,160 that the 1185 00:37:09,160 --> 00:37:09,460 security 1186 00:37:09,460 --> 00:37:09,980 feature is 1187 00:37:09,980 --> 00:37:10,220 enabled. 1188 00:37:11,500 --> 00:37:12,600 So if we 1189 00:37:12,600 --> 00:37:12,980 can inject 1190 00:37:12,980 --> 00:37:14,280 a glitch and 1191 00:37:14,280 --> 00:37:15,180 change that 1192 00:37:15,180 --> 00:37:15,900 bit from 1193 00:37:15,900 --> 00:37:16,460 one to 1194 00:37:16,460 --> 00:37:16,740 zero, 1195 00:37:16,820 --> 00:37:17,640 we can disable 1196 00:37:17,640 --> 00:37:18,160 this feature. 1197 00:37:18,800 --> 00:37:19,760 And we can do 1198 00:37:19,760 --> 00:37:20,340 this glitching. 1199 00:37:25,180 --> 00:37:25,740 To try to 1200 00:37:25,740 --> 00:37:26,180 flip this 1201 00:37:26,180 --> 00:37:27,660 bit, we 1202 00:37:27,660 --> 00:37:28,160 will need to 1203 00:37:28,160 --> 00:37:28,680 try a lot of 1204 00:37:28,680 --> 00:37:29,260 times before 1205 00:37:29,260 --> 00:37:30,240 glitching the 1206 00:37:30,240 --> 00:37:30,960 specific bit 1207 00:37:31,900 --> 00:37:32,720 we are looking 1208 00:37:32,720 --> 00:37:33,020 for. 1209 00:37:34,240 --> 00:37:35,340 So there is 1210 00:37:35,340 --> 00:37:35,600 a different 1211 00:37:35,600 --> 00:37:35,960 technique. 1212 00:37:36,440 --> 00:37:37,340 We can use 1213 00:37:37,340 --> 00:37:37,860 what we call 1214 00:37:37,860 --> 00:37:38,560 localized 1215 00:37:38,560 --> 00:37:39,020 fall 1216 00:37:39,020 --> 00:37:39,400 injections. 1217 00:37:40,680 --> 00:37:41,500 This is a 1218 00:37:41,500 --> 00:37:42,020 tool that 1219 00:37:42,020 --> 00:37:42,500 allows you 1220 00:37:42,500 --> 00:37:44,760 to inject 1221 00:37:44,760 --> 00:37:46,180 a glitch in 1222 00:37:46,180 --> 00:37:46,540 a specific 1223 00:37:46,540 --> 00:37:47,360 part of 1224 00:37:47,360 --> 00:37:48,300 the chip. 1225 00:37:49,460 --> 00:37:50,420 So if 1226 00:37:50,420 --> 00:37:50,760 you know 1227 00:37:50,760 --> 00:37:51,180 where is 1228 00:37:51,180 --> 00:37:51,560 this bit 1229 00:37:51,960 --> 00:37:52,800 that you want 1230 00:37:52,800 --> 00:37:53,120 to flip 1231 00:37:53,120 --> 00:37:53,880 located in 1232 00:37:53,880 --> 00:37:54,180 the chip, 1233 00:37:54,280 --> 00:37:55,240 with this 1234 00:37:55,240 --> 00:37:55,520 tool, 1235 00:37:55,580 --> 00:37:55,820 you can 1236 00:37:55,820 --> 00:37:57,540 just flip 1237 00:37:57,540 --> 00:37:58,160 only that 1238 00:37:58,160 --> 00:37:58,340 bit. 1239 00:37:59,380 --> 00:38:00,320 So we use 1240 00:38:00,320 --> 00:38:01,080 electromagnetic 1241 00:38:01,080 --> 00:38:01,540 fall 1242 00:38:01,540 --> 00:38:01,800 injection, 1243 00:38:02,060 --> 00:38:02,500 electromagnetic 1244 00:38:02,500 --> 00:38:03,000 pulses, 1245 00:38:03,200 --> 00:38:03,860 like the 1246 00:38:03,860 --> 00:38:04,260 video of 1247 00:38:04,260 --> 00:38:04,540 the slot 1248 00:38:04,540 --> 00:38:05,040 machine I 1249 00:38:05,040 --> 00:38:05,280 showed you 1250 00:38:05,280 --> 00:38:05,480 before, 1251 00:38:06,100 --> 00:38:07,000 only that we 1252 00:38:07,000 --> 00:38:07,400 have more 1253 00:38:07,400 --> 00:38:07,680 precision 1254 00:38:07,680 --> 00:38:08,440 because it's 1255 00:38:08,440 --> 00:38:08,900 a proper 1256 00:38:08,900 --> 00:38:09,160 tool. 1257 00:38:09,160 --> 00:38:10,440 And we also 1258 00:38:10,440 --> 00:38:11,060 use lasers. 1259 00:38:11,880 --> 00:38:12,720 We use 1260 00:38:12,720 --> 00:38:13,120 the laser 1261 00:38:13,120 --> 00:38:13,540 to hit 1262 00:38:13,540 --> 00:38:14,080 the surface 1263 00:38:14,080 --> 00:38:14,380 of the 1264 00:38:14,380 --> 00:38:15,540 chip and 1265 00:38:15,540 --> 00:38:16,160 the photons 1266 00:38:16,160 --> 00:38:19,520 will open 1267 00:38:19,520 --> 00:38:20,740 or close 1268 00:38:20,740 --> 00:38:21,320 transistors 1269 00:38:21,320 --> 00:38:22,060 making 1270 00:38:22,060 --> 00:38:23,300 the bits 1271 00:38:23,300 --> 00:38:23,700 to flip 1272 00:38:23,700 --> 00:38:24,120 from one 1273 00:38:24,120 --> 00:38:24,460 to zero 1274 00:38:24,460 --> 00:38:24,820 from zero 1275 00:38:24,820 --> 00:38:25,100 to one. 1276 00:38:25,840 --> 00:38:26,660 This video 1277 00:38:26,660 --> 00:38:27,740 shows how 1278 00:38:27,740 --> 00:38:28,300 we use 1279 00:38:28,300 --> 00:38:28,960 lasers to 1280 00:38:28,960 --> 00:38:30,320 test a 1281 00:38:30,320 --> 00:38:30,640 chip. 1282 00:38:30,840 --> 00:38:31,400 So this 1283 00:38:31,400 --> 00:38:31,680 chip is 1284 00:38:31,680 --> 00:38:32,780 again an 1285 00:38:32,780 --> 00:38:33,220 ARM 1286 00:38:33,220 --> 00:38:33,980 processor. 1287 00:38:39,160 --> 00:38:39,400 This is 1288 00:38:39,400 --> 00:38:39,600 actually the 1289 00:38:39,600 --> 00:38:39,860 laser. 1290 00:38:40,000 --> 00:38:40,680 We are shooting 1291 00:38:40,680 --> 00:38:41,040 with the 1292 00:38:41,040 --> 00:38:41,540 laser on 1293 00:38:41,540 --> 00:38:41,920 the surface 1294 00:38:41,920 --> 00:38:42,200 of the 1295 00:38:42,200 --> 00:38:42,380 chip. 1296 00:38:42,600 --> 00:38:43,260 So what we 1297 00:38:43,260 --> 00:38:43,580 are doing 1298 00:38:43,580 --> 00:38:44,200 is we 1299 00:38:44,200 --> 00:38:44,560 want to 1300 00:38:44,560 --> 00:38:44,820 disable 1301 00:38:44,820 --> 00:38:45,040 a 1302 00:38:45,040 --> 00:38:45,260 feature. 1303 00:38:45,760 --> 00:38:46,280 We know 1304 00:38:46,280 --> 00:38:46,640 there is a 1305 00:38:46,640 --> 00:38:46,840 bit 1306 00:38:46,840 --> 00:38:47,360 somewhere 1307 00:38:47,360 --> 00:38:47,920 that 1308 00:38:47,920 --> 00:38:48,260 disables 1309 00:38:48,260 --> 00:38:48,440 this 1310 00:38:48,440 --> 00:38:48,660 feature. 1311 00:38:48,820 --> 00:38:49,140 So what 1312 00:38:49,140 --> 00:38:49,360 we are 1313 00:38:49,360 --> 00:38:49,540 doing 1314 00:38:49,540 --> 00:38:50,900 is inject 1315 00:38:50,900 --> 00:38:51,180 a 1316 00:38:51,180 --> 00:38:51,380 laser 1317 00:38:53,320 --> 00:38:54,060 with a 1318 00:38:54,060 --> 00:38:54,380 pulse. 1319 00:38:55,440 --> 00:38:56,060 Try to 1320 00:38:56,060 --> 00:38:56,620 see if 1321 00:38:56,620 --> 00:38:56,920 the feature 1322 00:38:56,920 --> 00:38:57,080 is 1323 00:38:57,080 --> 00:38:57,620 disabled. 1324 00:38:57,820 --> 00:38:58,180 If not, 1325 00:38:58,300 --> 00:38:59,200 we go to 1326 00:38:59,200 --> 00:38:59,520 the right. 1327 00:39:00,040 --> 00:39:00,680 We move 1328 00:39:00,680 --> 00:39:01,020 the laser 1329 00:39:01,020 --> 00:39:01,560 a bit to 1330 00:39:01,560 --> 00:39:01,860 the right 1331 00:39:01,860 --> 00:39:02,240 and we 1332 00:39:02,240 --> 00:39:02,620 inject a 1333 00:39:02,620 --> 00:39:03,000 glitch again. 1334 00:39:03,480 --> 00:39:04,020 And we 1335 00:39:04,020 --> 00:39:04,480 try and 1336 00:39:04,480 --> 00:39:04,800 try and 1337 00:39:04,800 --> 00:39:05,260 try until 1338 00:39:05,260 --> 00:39:05,660 we find 1339 00:39:05,660 --> 00:39:06,020 which is 1340 00:39:06,020 --> 00:39:06,640 the place 1341 00:39:06,640 --> 00:39:07,760 that when 1342 00:39:07,760 --> 00:39:08,220 we inject 1343 00:39:08,220 --> 00:39:08,900 a glitch 1344 00:39:09,380 --> 00:39:09,860 with the 1345 00:39:09,860 --> 00:39:10,020 laser, 1346 00:39:11,300 --> 00:39:12,080 we flip 1347 00:39:12,080 --> 00:39:12,520 the bit we 1348 00:39:12,520 --> 00:39:12,800 are looking 1349 00:39:12,800 --> 00:39:13,060 for. 1350 00:39:17,740 --> 00:39:18,280 This is 1351 00:39:18,280 --> 00:39:18,580 a setup 1352 00:39:18,580 --> 00:39:19,080 of an 1353 00:39:19,080 --> 00:39:19,360 EM 1354 00:39:19,360 --> 00:39:19,540 pole 1355 00:39:19,540 --> 00:39:19,760 injection. 1356 00:39:20,140 --> 00:39:20,760 Here we 1357 00:39:20,760 --> 00:39:21,180 are using 1358 00:39:21,180 --> 00:39:21,940 an EM 1359 00:39:21,940 --> 00:39:22,760 transient 1360 00:39:22,760 --> 00:39:23,300 probe to 1361 00:39:23,300 --> 00:39:23,780 do the 1362 00:39:23,780 --> 00:39:24,080 same 1363 00:39:25,800 --> 00:39:26,360 on a 1364 00:39:26,360 --> 00:39:26,520 board. 1365 00:39:27,400 --> 00:39:27,820 Okay. 1366 00:39:27,880 --> 00:39:28,400 And I have 1367 00:39:28,400 --> 00:39:28,820 been talking 1368 00:39:28,820 --> 00:39:29,300 about pole 1369 00:39:29,300 --> 00:39:29,580 injection 1370 00:39:30,180 --> 00:39:30,600 attacking. 1371 00:39:31,300 --> 00:39:31,800 I am 1372 00:39:31,800 --> 00:39:32,020 going to 1373 00:39:32,020 --> 00:39:32,380 talk now 1374 00:39:32,380 --> 00:39:32,840 about preventing. 1375 00:39:40,640 --> 00:39:41,540 we can 1376 00:39:41,540 --> 00:39:42,540 choose 1377 00:39:42,540 --> 00:39:43,340 hardware 1378 00:39:43,340 --> 00:39:44,300 protections or 1379 00:39:44,300 --> 00:39:44,820 software 1380 00:39:44,820 --> 00:39:45,160 protections. 1381 00:39:46,960 --> 00:39:47,760 Which one 1382 00:39:47,760 --> 00:39:48,080 is better? 1383 00:39:48,660 --> 00:39:49,520 The thing 1384 00:39:49,520 --> 00:39:49,860 is that 1385 00:39:49,860 --> 00:39:51,000 rule number 1386 00:39:51,000 --> 00:39:51,340 three, 1387 00:39:51,440 --> 00:39:52,540 if you 1388 00:39:52,540 --> 00:39:52,880 want to 1389 00:39:52,880 --> 00:39:53,140 protect 1390 00:39:53,140 --> 00:39:53,860 your 1391 00:39:53,860 --> 00:39:54,180 product, 1392 00:39:54,360 --> 00:39:54,820 you have 1393 00:39:54,820 --> 00:39:55,040 to use 1394 00:39:55,040 --> 00:39:55,380 both. 1395 00:39:55,780 --> 00:39:56,440 Hardware 1396 00:39:56,440 --> 00:39:56,980 and software 1397 00:39:56,980 --> 00:39:57,560 contra 1398 00:39:57,560 --> 00:39:57,780 measures. 1399 00:40:00,680 --> 00:40:01,340 The 1400 00:40:01,340 --> 00:40:02,380 problem is 1401 00:40:02,380 --> 00:40:02,700 that most 1402 00:40:02,700 --> 00:40:02,880 of the 1403 00:40:02,880 --> 00:40:03,580 times we 1404 00:40:03,580 --> 00:40:04,000 are just 1405 00:40:04,000 --> 00:40:04,520 using a 1406 00:40:04,520 --> 00:40:05,120 third-party 1407 00:40:05,980 --> 00:40:06,460 chip. 1408 00:40:06,720 --> 00:40:07,260 We are 1409 00:40:07,260 --> 00:40:07,600 using a 1410 00:40:07,600 --> 00:40:08,120 chip from 1411 00:40:08,120 --> 00:40:08,740 somebody else. 1412 00:40:08,880 --> 00:40:09,320 We don't 1413 00:40:09,320 --> 00:40:09,840 have control 1414 00:40:09,840 --> 00:40:10,100 on the 1415 00:40:10,100 --> 00:40:10,340 hardware. 1416 00:40:10,500 --> 00:40:10,720 So we 1417 00:40:10,720 --> 00:40:12,020 cannot make 1418 00:40:12,020 --> 00:40:12,580 changes on 1419 00:40:12,580 --> 00:40:13,040 the chip to 1420 00:40:13,040 --> 00:40:13,460 protect the 1421 00:40:13,460 --> 00:40:14,400 chip against 1422 00:40:14,400 --> 00:40:14,700 pole 1423 00:40:14,700 --> 00:40:14,940 injection. 1424 00:40:15,400 --> 00:40:16,120 So we 1425 00:40:16,120 --> 00:40:16,620 have to use 1426 00:40:16,620 --> 00:40:17,260 only software 1427 00:40:17,260 --> 00:40:17,640 contra 1428 00:40:17,640 --> 00:40:17,880 measures. 1429 00:40:18,520 --> 00:40:18,960 Still, 1430 00:40:20,260 --> 00:40:21,000 it will not 1431 00:40:21,000 --> 00:40:21,360 be perfect. 1432 00:40:21,480 --> 00:40:21,660 If you 1433 00:40:21,660 --> 00:40:22,100 use only 1434 00:40:22,100 --> 00:40:22,380 software 1435 00:40:22,380 --> 00:40:22,660 contra 1436 00:40:22,660 --> 00:40:23,100 measures or 1437 00:40:23,100 --> 00:40:23,440 protections, 1438 00:40:23,500 --> 00:40:23,920 it will not 1439 00:40:23,920 --> 00:40:24,260 be perfect. 1440 00:40:24,620 --> 00:40:25,560 But it 1441 00:40:25,560 --> 00:40:26,160 will improve 1442 00:40:26,160 --> 00:40:26,700 the security 1443 00:40:26,700 --> 00:40:27,040 of your 1444 00:40:27,040 --> 00:40:27,700 product really 1445 00:40:27,700 --> 00:40:28,160 a lot. 1446 00:40:28,740 --> 00:40:29,180 Really. 1447 00:40:30,500 --> 00:40:31,200 So if we 1448 00:40:31,200 --> 00:40:31,680 use hardware 1449 00:40:31,680 --> 00:40:31,960 contra 1450 00:40:31,960 --> 00:40:32,180 measures, 1451 00:40:32,460 --> 00:40:33,020 normally 1452 00:40:33,020 --> 00:40:33,500 what we 1453 00:40:33,500 --> 00:40:33,900 use is 1454 00:40:33,900 --> 00:40:34,660 we put 1455 00:40:34,660 --> 00:40:34,880 in the 1456 00:40:34,880 --> 00:40:35,080 chip, 1457 00:40:35,200 --> 00:40:35,880 we put 1458 00:40:35,880 --> 00:40:36,340 sensors. 1459 00:40:38,520 --> 00:40:39,260 We put 1460 00:40:39,260 --> 00:40:39,820 sensors that 1461 00:40:39,820 --> 00:40:40,540 detect when 1462 00:40:40,540 --> 00:40:41,320 the voltage 1463 00:40:41,320 --> 00:40:41,760 is going 1464 00:40:41,760 --> 00:40:43,360 down or 1465 00:40:44,060 --> 00:40:44,880 up very 1466 00:40:44,880 --> 00:40:45,200 fast. 1467 00:40:45,700 --> 00:40:46,440 And if we 1468 00:40:46,440 --> 00:40:47,100 detect this 1469 00:40:47,100 --> 00:40:47,320 glitch, 1470 00:40:47,440 --> 00:40:47,900 we can just 1471 00:40:47,900 --> 00:40:48,400 reset the 1472 00:40:48,400 --> 00:40:48,540 chip. 1473 00:40:49,320 --> 00:40:50,040 Or we 1474 00:40:50,040 --> 00:40:50,320 can add 1475 00:40:50,320 --> 00:40:50,940 redundancy. 1476 00:40:51,140 --> 00:40:52,060 So we 1477 00:40:52,060 --> 00:40:52,360 want to 1478 00:40:52,360 --> 00:40:53,280 protect a 1479 00:40:53,280 --> 00:40:54,480 bit that 1480 00:40:54,480 --> 00:40:54,820 we know 1481 00:40:54,820 --> 00:40:55,160 that an 1482 00:40:55,160 --> 00:40:55,620 attacker 1483 00:40:55,620 --> 00:40:56,200 wants to 1484 00:40:56,200 --> 00:40:56,800 flip it 1485 00:40:56,800 --> 00:40:57,240 because it 1486 00:40:57,240 --> 00:40:57,400 is a 1487 00:40:57,400 --> 00:40:57,720 bit that 1488 00:41:05,880 --> 00:41:06,040 see bits. 1489 00:41:06,180 --> 00:41:06,740 So if 1490 00:41:06,740 --> 00:41:07,020 somebody 1491 00:41:07,020 --> 00:41:07,800 flips this 1492 00:41:07,800 --> 00:41:08,000 bit, 1493 00:41:08,120 --> 00:41:09,200 the parity 1494 00:41:09,200 --> 00:41:09,820 will detect 1495 00:41:09,820 --> 00:41:10,240 the flip 1496 00:41:10,240 --> 00:41:10,800 and then 1497 00:41:11,260 --> 00:41:11,860 the chip 1498 00:41:11,860 --> 00:41:12,020 will, 1499 00:41:12,220 --> 00:41:12,540 well, 1500 00:41:12,600 --> 00:41:12,940 you can 1501 00:41:12,940 --> 00:41:13,280 reset the 1502 00:41:13,280 --> 00:41:13,460 chip, 1503 00:41:13,540 --> 00:41:13,840 you detect 1504 00:41:13,840 --> 00:41:14,140 that there 1505 00:41:14,140 --> 00:41:14,300 is a 1506 00:41:14,300 --> 00:41:14,540 glitch, 1507 00:41:15,000 --> 00:41:15,440 a 1508 00:41:15,440 --> 00:41:15,880 parity 1509 00:41:15,880 --> 00:41:16,220 mismatch. 1510 00:41:17,800 --> 00:41:18,240 Software 1511 00:41:18,240 --> 00:41:18,520 contra 1512 00:41:18,520 --> 00:41:18,700 measures, 1513 00:41:20,960 --> 00:41:21,400 we 1514 00:41:21,400 --> 00:41:21,780 can use 1515 00:41:22,260 --> 00:41:22,700 many 1516 00:41:25,040 --> 00:41:25,920 techniques to 1517 00:41:35,880 --> 00:41:36,140 follow the 1518 00:41:36,140 --> 00:41:36,660 security of 1519 00:41:36,660 --> 00:41:36,820 your 1520 00:41:36,820 --> 00:41:37,760 system. 1521 00:41:38,560 --> 00:41:39,420 So this is 1522 00:41:39,420 --> 00:41:39,900 the code I 1523 00:41:39,900 --> 00:41:40,280 have before. 1524 00:41:41,360 --> 00:41:42,260 And with 1525 00:41:42,260 --> 00:41:42,620 a single 1526 00:41:42,620 --> 00:41:43,520 glitch, 1527 00:41:43,640 --> 00:41:44,340 one single 1528 00:41:44,340 --> 00:41:44,660 glitch, 1529 00:41:44,720 --> 00:41:45,200 we can 1530 00:41:45,200 --> 00:41:45,660 bypass 1531 00:41:46,300 --> 00:41:46,820 this 1532 00:41:46,820 --> 00:41:47,140 authentication. 1533 00:41:48,100 --> 00:41:49,120 So how 1534 00:41:49,120 --> 00:41:49,620 to prevent 1535 00:41:49,620 --> 00:41:49,860 this? 1536 00:41:51,180 --> 00:41:52,000 We copy 1537 00:41:52,000 --> 00:41:52,440 paste the 1538 00:41:52,440 --> 00:41:52,940 code twice. 1539 00:41:53,980 --> 00:41:54,720 So we 1540 00:41:54,720 --> 00:41:55,020 put the 1541 00:41:55,020 --> 00:41:55,560 code twice 1542 00:41:55,560 --> 00:41:56,560 so the 1543 00:41:56,560 --> 00:41:57,060 attacker can 1544 00:41:57,060 --> 00:41:57,480 glitch the 1545 00:41:57,480 --> 00:41:58,000 first time, 1546 00:41:58,080 --> 00:41:58,740 but the 1547 00:42:05,880 --> 00:42:06,040 time that 1548 00:42:06,040 --> 00:42:06,220 you 1549 00:42:07,220 --> 00:42:07,700 product 1550 00:42:07,700 --> 00:42:08,460 check the 1551 00:42:08,460 --> 00:42:08,780 condition 1552 00:42:08,780 --> 00:42:09,360 will 1553 00:42:09,360 --> 00:42:09,680 find. 1554 00:42:11,320 --> 00:42:12,280 So we 1555 00:42:12,280 --> 00:42:12,680 can copy 1556 00:42:12,680 --> 00:42:13,140 paste the 1557 00:42:13,140 --> 00:42:13,440 checks. 1558 00:42:14,440 --> 00:42:15,200 Of course, 1559 00:42:15,200 --> 00:42:15,480 the attacker 1560 00:42:15,480 --> 00:42:15,960 can do a 1561 00:42:15,960 --> 00:42:16,480 double 1562 00:42:16,480 --> 00:42:16,880 glitching. 1563 00:42:17,000 --> 00:42:17,560 He can 1564 00:42:17,560 --> 00:42:18,080 glitch twice, 1565 00:42:18,580 --> 00:42:19,500 but this 1566 00:42:19,500 --> 00:42:19,920 is much 1567 00:42:19,920 --> 00:42:20,240 more 1568 00:42:20,240 --> 00:42:20,680 complicated 1569 00:42:20,680 --> 00:42:21,020 than a 1570 00:42:21,020 --> 00:42:21,240 single 1571 00:42:21,240 --> 00:42:21,460 glitch. 1572 00:42:24,600 --> 00:42:25,080 Okay, 1573 00:42:25,140 --> 00:42:25,520 here, 1574 00:42:25,760 --> 00:42:26,200 if we 1575 00:42:26,200 --> 00:42:26,440 just 1576 00:42:26,440 --> 00:42:26,840 manage to 1577 00:42:26,840 --> 00:42:27,120 glitch the 1578 00:42:27,120 --> 00:42:27,580 first time, 1579 00:42:27,620 --> 00:42:28,300 the second 1580 00:42:28,300 --> 00:42:29,920 time that 1581 00:42:29,920 --> 00:42:30,260 we check 1582 00:42:30,260 --> 00:42:30,800 will detect 1583 00:42:30,800 --> 00:42:31,780 the glitch. 1584 00:42:32,620 --> 00:42:33,120 Okay, 1585 00:42:33,200 --> 00:42:33,960 something else 1586 00:42:33,960 --> 00:42:34,480 we can do 1587 00:42:34,480 --> 00:42:35,180 is 1588 00:42:36,100 --> 00:42:36,600 software 1589 00:42:36,600 --> 00:42:37,100 countermeasures, 1590 00:42:37,280 --> 00:42:38,200 something else 1591 00:42:38,200 --> 00:42:38,600 we can do 1592 00:42:40,100 --> 00:42:41,100 is adding 1593 00:42:41,100 --> 00:42:41,780 random delays. 1594 00:42:42,220 --> 00:42:42,940 The idea 1595 00:42:42,940 --> 00:42:43,220 is that 1596 00:42:43,220 --> 00:42:44,300 the attacker 1597 00:42:44,300 --> 00:42:44,920 needs to 1598 00:42:44,920 --> 00:42:45,300 inject the 1599 00:42:45,300 --> 00:42:46,120 glitch when 1600 00:42:46,120 --> 00:42:46,620 the instruction 1601 00:42:46,620 --> 00:42:46,980 that he 1602 00:42:46,980 --> 00:42:47,400 wants to 1603 00:42:47,400 --> 00:42:48,420 corrupt is 1604 00:42:48,420 --> 00:42:48,920 being executed. 1605 00:42:48,920 --> 00:42:50,120 So if 1606 00:42:50,120 --> 00:42:50,800 we add 1607 00:42:50,800 --> 00:42:51,280 a 1608 00:42:51,820 --> 00:42:52,280 random 1609 00:42:52,280 --> 00:42:52,580 delay 1610 00:42:53,540 --> 00:42:54,460 before this 1611 00:42:54,460 --> 00:42:55,200 place that we 1612 00:42:55,200 --> 00:42:55,460 want to 1613 00:42:55,460 --> 00:42:55,700 protect, 1614 00:42:55,880 --> 00:42:56,260 the attacker 1615 00:42:56,260 --> 00:42:56,660 will not 1616 00:42:56,660 --> 00:42:57,320 know when 1617 00:42:57,320 --> 00:42:57,740 this 1618 00:42:57,740 --> 00:42:57,980 instruction 1619 00:42:57,980 --> 00:42:58,340 is going 1620 00:42:58,340 --> 00:42:58,540 to be 1621 00:42:58,540 --> 00:42:58,820 executed. 1622 00:42:59,660 --> 00:43:00,580 So he 1623 00:43:00,580 --> 00:43:00,900 will not 1624 00:43:00,900 --> 00:43:01,200 be able 1625 00:43:01,200 --> 00:43:01,500 to inject 1626 00:43:01,500 --> 00:43:01,780 the glitch. 1627 00:43:02,640 --> 00:43:03,220 So this 1628 00:43:03,220 --> 00:43:03,440 is a 1629 00:43:03,440 --> 00:43:03,660 very 1630 00:43:03,660 --> 00:43:03,920 effective 1631 00:43:03,920 --> 00:43:04,360 way to 1632 00:43:04,360 --> 00:43:04,620 prevent 1633 00:43:04,620 --> 00:43:05,260 glitches. 1634 00:43:10,600 --> 00:43:11,160 There are 1635 00:43:18,920 --> 00:43:19,200 I will 1636 00:43:19,200 --> 00:43:19,700 conclude 1637 00:43:19,700 --> 00:43:20,820 with these 1638 00:43:20,820 --> 00:43:21,460 three rules. 1639 00:43:22,920 --> 00:43:23,440 Everything 1640 00:43:23,440 --> 00:43:24,300 can be 1641 00:43:24,300 --> 00:43:24,560 hacked. 1642 00:43:25,040 --> 00:43:25,560 Any 1643 00:43:25,560 --> 00:43:25,900 hardware 1644 00:43:25,900 --> 00:43:26,380 can be 1645 00:43:26,380 --> 00:43:27,080 hacked if 1646 00:43:27,080 --> 00:43:27,320 you have 1647 00:43:27,320 --> 00:43:27,580 physical 1648 00:43:27,580 --> 00:43:28,120 access to 1649 00:43:28,120 --> 00:43:29,120 it as 1650 00:43:29,120 --> 00:43:29,500 long as 1651 00:43:29,500 --> 00:43:29,900 you don't 1652 00:43:29,900 --> 00:43:30,260 protect 1653 00:43:30,260 --> 00:43:30,940 this 1654 00:43:30,940 --> 00:43:31,220 hardware 1655 00:43:31,220 --> 00:43:31,500 against 1656 00:43:31,500 --> 00:43:31,700 fall 1657 00:43:31,700 --> 00:43:31,940 injection. 1658 00:43:32,920 --> 00:43:33,700 So you 1659 00:43:33,700 --> 00:43:34,180 can put a 1660 00:43:34,180 --> 00:43:34,360 lot of 1661 00:43:34,360 --> 00:43:34,640 security 1662 00:43:35,180 --> 00:43:35,840 in your 1663 00:43:35,840 --> 00:43:36,340 device. 1664 00:43:48,920 --> 00:43:48,940 protect your 1665 00:43:48,940 --> 00:43:49,200 device 1666 00:43:49,200 --> 00:43:50,040 physically and 1667 00:43:50,040 --> 00:43:50,500 use one of 1668 00:43:50,500 --> 00:43:50,620 these 1669 00:43:51,160 --> 00:43:51,660 hacking 1670 00:43:51,660 --> 00:43:52,520 techniques and 1671 00:43:52,520 --> 00:43:52,740 bypass 1672 00:43:52,740 --> 00:43:53,520 everything 1673 00:43:53,520 --> 00:43:54,600 very easily. 1674 00:43:54,940 --> 00:43:55,440 So you 1675 00:43:55,440 --> 00:43:55,780 should also 1676 00:43:55,780 --> 00:43:56,320 make an 1677 00:43:56,320 --> 00:43:56,800 effort to 1678 00:43:56,800 --> 00:43:57,200 protect your 1679 00:43:57,200 --> 00:43:57,480 hardware 1680 00:43:57,480 --> 00:43:58,680 against this 1681 00:43:58,680 --> 00:43:58,980 kind of 1682 00:43:58,980 --> 00:43:59,200 hardware 1683 00:44:00,220 --> 00:44:00,720 hacking 1684 00:44:00,720 --> 00:44:01,140 techniques. 1685 00:44:02,180 --> 00:44:02,920 The second 1686 00:44:02,920 --> 00:44:03,340 rule that 1687 00:44:03,340 --> 00:44:04,200 is even 1688 00:44:04,200 --> 00:44:04,540 if you 1689 00:44:04,540 --> 00:44:04,960 protect 1690 00:44:05,980 --> 00:44:06,480 against 1691 00:44:06,480 --> 00:44:06,740 fall 1692 00:44:06,740 --> 00:44:07,020 injection 1693 00:44:07,020 --> 00:44:07,360 your 1694 00:44:07,360 --> 00:44:07,680 product, 1695 00:44:07,880 --> 00:44:08,420 you have to 1696 00:44:08,420 --> 00:44:08,880 keep in mind 1697 00:44:08,880 --> 00:44:09,200 that it's 1698 00:44:09,200 --> 00:44:09,920 very hard 1699 00:44:09,920 --> 00:44:10,440 to do it 1700 00:44:10,440 --> 00:44:11,340 and still 1701 00:44:11,340 --> 00:44:11,760 you might 1702 00:44:11,760 --> 00:44:12,120 be hacked. 1703 00:44:12,660 --> 00:44:13,540 And finally, 1704 00:44:13,640 --> 00:44:14,640 remember that if 1705 00:44:14,640 --> 00:44:14,960 you want to 1706 00:44:14,960 --> 00:44:15,360 protect your 1707 00:44:15,360 --> 00:44:15,620 product, 1708 00:44:15,740 --> 00:44:15,980 you should 1709 00:44:15,980 --> 00:44:16,560 always use 1710 00:44:16,560 --> 00:44:17,040 hardware and 1711 00:44:17,040 --> 00:44:17,260 software 1712 00:44:17,260 --> 00:44:17,800 countermeasures. 1713 00:44:20,000 --> 00:44:20,700 If you are 1714 00:44:20,700 --> 00:44:21,220 interested in 1715 00:44:21,220 --> 00:44:21,620 this topic, 1716 00:44:21,840 --> 00:44:22,660 this is a 1717 00:44:22,660 --> 00:44:22,940 list of 1718 00:44:22,940 --> 00:44:23,160 links. 1719 00:44:23,340 --> 00:44:23,820 All the 1720 00:44:23,820 --> 00:44:24,440 attacks I 1721 00:44:24,440 --> 00:44:24,820 have been 1722 00:44:36,740 --> 00:44:36,900 talking about 1723 00:44:36,900 --> 00:44:37,180 I think is 1724 00:44:37,180 --> 00:44:37,660 very interesting. 1725 00:44:38,860 --> 00:44:39,680 So if you are 1726 00:44:39,680 --> 00:44:39,940 interested, 1727 00:44:40,020 --> 00:44:40,280 you can 1728 00:44:40,280 --> 00:44:41,200 read this. 1729 00:44:41,780 --> 00:44:42,540 And finally, 1730 00:44:42,620 --> 00:44:43,100 well, if you are 1731 00:44:43,100 --> 00:44:43,480 interested, 1732 00:44:44,420 --> 00:44:44,980 we are 1733 00:44:44,980 --> 00:44:45,280 hiding. 1734 00:44:45,420 --> 00:44:46,400 We have a 1735 00:44:46,400 --> 00:44:46,920 security lab 1736 00:44:46,920 --> 00:44:47,220 here in 1737 00:44:47,220 --> 00:44:47,420 China. 1738 00:44:47,560 --> 00:44:47,780 So if 1739 00:44:47,780 --> 00:44:48,260 somebody of 1740 00:44:48,260 --> 00:44:48,520 you is 1741 00:44:48,520 --> 00:44:48,960 interested in 1742 00:44:48,960 --> 00:44:49,240 this kind 1743 00:44:49,240 --> 00:44:49,460 of 1744 00:44:49,460 --> 00:44:50,220 hardware 1745 00:44:50,220 --> 00:44:50,620 security 1746 00:44:50,620 --> 00:44:51,360 evaluations, 1747 00:44:51,900 --> 00:44:52,420 you can 1748 00:44:52,420 --> 00:44:52,920 just join 1749 00:44:52,920 --> 00:44:53,100 us. 1750 00:44:54,240 --> 00:44:54,620 Okay, 1751 00:44:54,700 --> 00:44:55,180 thank you. 1752 00:45:10,160 --> 00:45:11,460 I think there 1753 00:45:11,460 --> 00:45:11,780 is a question 1754 00:45:11,780 --> 00:45:12,140 here. 1755 00:45:12,500 --> 00:45:13,180 Microphone. 1756 00:45:26,020 --> 00:45:32,200 Hi, I'm 1757 00:45:32,200 --> 00:45:32,640 just wondering, 1758 00:45:32,880 --> 00:45:33,020 I mean, 1759 00:45:33,500 --> 00:45:34,480 how practical 1760 00:45:34,480 --> 00:45:35,140 is your 1761 00:45:35,140 --> 00:45:35,960 approach 1762 00:45:35,960 --> 00:45:37,140 to use 1763 00:45:37,660 --> 00:45:37,860 the, 1764 00:45:37,980 --> 00:45:38,340 I mean, 1765 00:45:38,360 --> 00:45:38,840 it seems like 1766 00:45:38,840 --> 00:45:39,780 pretty much 1767 00:45:39,780 --> 00:45:40,420 Sorry, sorry. 1768 00:45:40,640 --> 00:45:41,900 I cannot listen 1769 00:45:41,900 --> 00:45:42,560 because the audio 1770 00:45:42,560 --> 00:45:43,000 is going in 1771 00:45:43,000 --> 00:45:43,380 that direction 1772 00:45:43,380 --> 00:45:43,920 and there is a 1773 00:45:43,920 --> 00:45:44,460 lot of echo, 1774 00:45:44,600 --> 00:45:45,080 so I cannot 1775 00:45:45,080 --> 00:45:45,360 hear. 1776 00:45:45,480 --> 00:45:45,920 Okay. 1777 00:45:46,680 --> 00:45:47,280 I'm just 1778 00:45:47,280 --> 00:45:48,160 wondering how 1779 00:45:48,160 --> 00:45:49,200 practical is 1780 00:45:49,200 --> 00:45:49,800 your approach. 1781 00:45:49,980 --> 00:45:50,440 It seems to 1782 00:45:50,440 --> 00:45:50,840 be that 1783 00:45:50,840 --> 00:45:51,620 you're just 1784 00:45:51,620 --> 00:45:52,740 using brute 1785 00:45:52,740 --> 00:45:53,440 force to 1786 00:45:53,440 --> 00:45:54,160 try different 1787 00:45:54,160 --> 00:45:55,020 points to 1788 00:45:55,020 --> 00:45:55,400 see if 1789 00:45:55,400 --> 00:45:56,060 there is any 1790 00:45:56,060 --> 00:45:58,000 possible problem, 1791 00:45:58,120 --> 00:45:58,520 I mean, 1792 00:45:58,560 --> 00:46:00,360 to inject 1793 00:46:00,360 --> 00:46:01,240 the glitch. 1794 00:46:01,560 --> 00:46:02,120 Sorry, 1795 00:46:02,300 --> 00:46:02,480 again. 1796 00:46:02,880 --> 00:46:03,880 How practical 1797 00:46:04,800 --> 00:46:05,540 is your 1798 00:46:05,540 --> 00:46:05,840 approach? 1799 00:46:06,940 --> 00:46:07,700 I mean, 1800 00:46:07,740 --> 00:46:08,340 it seems to 1801 00:46:08,340 --> 00:46:08,680 me that 1802 00:46:08,680 --> 00:46:09,760 you're 1803 00:46:10,560 --> 00:46:11,400 using a 1804 00:46:11,400 --> 00:46:12,120 brute force 1805 00:46:12,120 --> 00:46:13,260 approach to 1806 00:46:14,300 --> 00:46:14,740 introduce 1807 00:46:14,740 --> 00:46:15,220 the glitch 1808 00:46:15,220 --> 00:46:15,700 into the 1809 00:46:15,700 --> 00:46:15,920 board. 1810 00:46:16,060 --> 00:46:16,820 Okay, yes. 1811 00:46:16,860 --> 00:46:17,780 And the states, 1812 00:46:18,260 --> 00:46:18,560 yes. 1813 00:46:18,620 --> 00:46:19,240 That's correct. 1814 00:46:19,500 --> 00:46:19,760 So, 1815 00:46:20,940 --> 00:46:21,500 fall 1816 00:46:21,500 --> 00:46:21,760 injection 1817 00:46:21,760 --> 00:46:22,640 is not 1818 00:46:22,640 --> 00:46:23,760 a science. 1819 00:46:27,280 --> 00:46:28,200 100% 1820 00:46:28,200 --> 00:46:29,000 of possibilities 1821 00:46:29,000 --> 00:46:30,400 of succeeding. 1822 00:46:30,800 --> 00:46:31,260 So, 1823 00:46:31,300 --> 00:46:31,760 it's kind of 1824 00:46:31,760 --> 00:46:32,180 brute forcing 1825 00:46:32,180 --> 00:46:32,760 in the sense 1826 00:46:32,760 --> 00:46:33,640 that you 1827 00:46:33,640 --> 00:46:34,160 inject the 1828 00:46:34,160 --> 00:46:34,740 glitch and 1829 00:46:34,740 --> 00:46:35,140 you try, 1830 00:46:35,300 --> 00:46:35,620 try, 1831 00:46:35,780 --> 00:46:36,060 try, 1832 00:46:36,160 --> 00:46:36,840 try until 1833 00:46:36,840 --> 00:46:38,140 you find a 1834 00:46:38,140 --> 00:46:39,320 glitch that 1835 00:46:39,320 --> 00:46:40,340 flips the 1836 00:46:40,340 --> 00:46:40,760 bits in 1837 00:46:40,760 --> 00:46:41,140 the way you 1838 00:46:41,140 --> 00:46:41,460 are looking 1839 00:46:41,460 --> 00:46:41,760 for. 1840 00:46:41,980 --> 00:46:42,340 So, 1841 00:46:42,380 --> 00:46:42,860 it's kind of 1842 00:46:42,860 --> 00:46:43,320 brute forcing. 1843 00:46:44,400 --> 00:46:44,860 So, 1844 00:46:44,960 --> 00:46:45,540 what we 1845 00:46:45,540 --> 00:46:46,060 normally do 1846 00:46:46,060 --> 00:46:46,960 is we 1847 00:46:46,960 --> 00:46:49,500 have an idea 1848 00:46:49,500 --> 00:46:49,900 of what we 1849 00:46:49,900 --> 00:46:50,140 want to 1850 00:46:50,140 --> 00:46:50,300 do. 1851 00:46:50,640 --> 00:46:51,580 We see a 1852 00:46:51,580 --> 00:46:53,100 code that 1853 00:46:53,100 --> 00:46:53,780 might be 1854 00:46:54,720 --> 00:46:55,140 potentially 1855 00:46:55,140 --> 00:46:56,020 vulnerable to 1856 00:46:56,020 --> 00:46:56,380 fall 1857 00:46:56,380 --> 00:46:56,600 injection. 1858 00:46:56,880 --> 00:46:57,820 We find with 1859 00:46:57,820 --> 00:46:58,160 this instruction 1860 00:46:58,160 --> 00:46:58,740 we want to 1861 00:46:58,740 --> 00:46:59,020 try to 1862 00:46:59,020 --> 00:47:00,340 bypass and 1863 00:47:00,340 --> 00:47:00,980 then we try to 1864 00:47:00,980 --> 00:47:01,540 inject glitches 1865 00:47:01,540 --> 00:47:01,800 in this 1866 00:47:01,800 --> 00:47:02,740 instruction and 1867 00:47:02,740 --> 00:47:03,180 we try, 1868 00:47:03,180 --> 00:47:03,340 try, 1869 00:47:03,400 --> 00:47:03,540 try, 1870 00:47:03,620 --> 00:47:03,700 try. 1871 00:47:04,240 --> 00:47:05,080 We might 1872 00:47:05,080 --> 00:47:05,640 have been 1873 00:47:05,640 --> 00:47:06,060 trying for 1874 00:47:06,060 --> 00:47:06,760 days, 1875 00:47:06,960 --> 00:47:07,500 sometimes 1876 00:47:07,500 --> 00:47:08,840 weeks because 1877 00:47:08,840 --> 00:47:09,420 we need to 1878 00:47:09,420 --> 00:47:09,820 know exactly 1879 00:47:09,820 --> 00:47:10,520 what is the 1880 00:47:10,520 --> 00:47:11,240 glitch, 1881 00:47:11,460 --> 00:47:12,080 the length, 1882 00:47:12,260 --> 00:47:13,620 the shape 1883 00:47:13,620 --> 00:47:13,840 of the 1884 00:47:13,840 --> 00:47:14,860 glitch that 1885 00:47:16,520 --> 00:47:17,400 affects exactly 1886 00:47:17,400 --> 00:47:19,800 the tip in 1887 00:47:19,800 --> 00:47:20,280 the way that 1888 00:47:20,280 --> 00:47:20,560 we are 1889 00:47:20,560 --> 00:47:21,080 looking for. 1890 00:47:21,300 --> 00:47:21,540 So, 1891 00:47:21,980 --> 00:47:22,620 it's a kind 1892 00:47:22,620 --> 00:47:22,880 of brute 1893 00:47:22,880 --> 00:47:23,340 forcing until 1894 00:47:23,340 --> 00:47:24,000 you find this 1895 00:47:24,000 --> 00:47:24,580 perfect 1896 00:47:24,580 --> 00:47:24,900 glitch. 1897 00:47:25,100 --> 00:47:25,580 After you 1898 00:47:25,580 --> 00:47:25,900 have this 1899 00:47:25,900 --> 00:47:26,260 glitch, 1900 00:47:27,140 --> 00:47:27,740 if you 1901 00:47:27,740 --> 00:47:28,240 repeat the 1902 00:47:28,240 --> 00:47:28,620 same glitch 1903 00:47:29,080 --> 00:47:29,760 you can 1904 00:47:31,140 --> 00:47:31,580 get, 1905 00:47:32,300 --> 00:47:32,740 well, 1906 00:47:37,500 --> 00:47:38,140 a success rate of 1907 00:47:38,140 --> 00:47:38,880 100%, 1908 00:47:38,880 --> 00:47:39,120 sorry, 1909 00:47:39,220 --> 00:47:39,700 1%. 1910 00:47:40,300 --> 00:47:40,740 So, 1911 00:47:42,080 --> 00:47:42,960 after doing 1912 00:47:42,960 --> 00:47:43,340 what we 1913 00:47:43,340 --> 00:47:43,540 call 1914 00:47:43,540 --> 00:47:44,360 characterization 1915 00:47:44,360 --> 00:47:44,920 campaign 1916 00:47:44,920 --> 00:47:45,580 where we're 1917 00:47:45,580 --> 00:47:45,900 trying to 1918 00:47:45,900 --> 00:47:46,440 find the 1919 00:47:46,440 --> 00:47:46,680 perfect 1920 00:47:46,680 --> 00:47:47,360 glitch that 1921 00:47:47,360 --> 00:47:48,380 affects the 1922 00:47:48,380 --> 00:47:48,660 tip in 1923 00:47:48,660 --> 00:47:48,940 the way we 1924 00:47:48,940 --> 00:47:49,440 want, 1925 00:47:50,120 --> 00:47:50,700 when we 1926 00:47:50,700 --> 00:47:51,020 get this 1927 00:47:51,020 --> 00:47:51,460 glitch I 1928 00:47:51,460 --> 00:47:51,700 will be 1929 00:47:51,700 --> 00:47:52,220 happy if we 1930 00:47:52,220 --> 00:47:52,420 have, 1931 00:47:52,480 --> 00:47:52,760 yeah, 1932 00:47:53,300 --> 00:47:54,440 one glitch out 1933 00:47:54,440 --> 00:47:55,060 of 100 1934 00:47:55,980 --> 00:47:56,940 works and 1935 00:47:56,940 --> 00:47:57,720 break the 1936 00:47:58,320 --> 00:47:58,800 product. 1937 00:47:59,380 --> 00:48:00,180 But some 1938 00:48:00,180 --> 00:48:01,220 devices are 1939 00:48:01,220 --> 00:48:01,740 more sensitive 1940 00:48:01,740 --> 00:48:02,180 than others. 1941 00:48:02,360 --> 00:48:02,620 So, 1942 00:48:02,680 --> 00:48:03,060 for example, 1943 00:48:03,240 --> 00:48:03,640 most of the 1944 00:48:03,640 --> 00:48:04,080 small micro 1945 00:48:04,080 --> 00:48:05,280 controllers you 1946 00:48:05,280 --> 00:48:05,780 can get a 1947 00:48:05,780 --> 00:48:06,340 success rate of 1948 00:48:06,340 --> 00:48:06,920 30%. 1949 00:48:06,920 --> 00:48:07,640 So, 1950 00:48:07,680 --> 00:48:07,960 you can, 1951 00:48:08,060 --> 00:48:09,500 one out of three 1952 00:48:09,500 --> 00:48:09,880 or four 1953 00:48:09,880 --> 00:48:10,380 glitches you 1954 00:48:10,380 --> 00:48:11,800 can bypass 1955 00:48:11,800 --> 00:48:12,360 whatever you're 1956 00:48:12,360 --> 00:48:12,800 trying to. 1957 00:48:13,100 --> 00:48:13,720 But some 1958 00:48:13,720 --> 00:48:14,260 other complex 1959 00:48:14,260 --> 00:48:15,080 chips like a 1960 00:48:15,080 --> 00:48:15,620 small, 1961 00:48:15,840 --> 00:48:16,140 sorry, 1962 00:48:16,140 --> 00:48:16,640 like a big 1963 00:48:16,640 --> 00:48:17,200 processor, 1964 00:48:18,040 --> 00:48:18,940 like the ones that 1965 00:48:18,940 --> 00:48:19,520 you have in a 1966 00:48:19,520 --> 00:48:19,720 phone, 1967 00:48:19,840 --> 00:48:20,440 it's much 1968 00:48:20,440 --> 00:48:20,720 harder. 1969 00:48:20,820 --> 00:48:21,280 You need to try 1970 00:48:21,280 --> 00:48:21,840 much more. 1971 00:48:22,100 --> 00:48:22,680 But yeah, 1972 00:48:22,720 --> 00:48:24,080 you have to do a 1973 00:48:24,080 --> 00:48:24,740 small brute 1974 00:48:24,740 --> 00:48:25,500 forcing until you 1975 00:48:25,500 --> 00:48:25,960 find the 1976 00:48:25,960 --> 00:48:26,180 exact 1977 00:48:27,560 --> 00:48:28,360 glitch that 1978 00:48:28,360 --> 00:48:29,060 you need to 1979 00:48:29,060 --> 00:48:29,780 do what you're 1980 00:48:29,780 --> 00:48:30,200 looking for. 1981 00:48:30,620 --> 00:48:31,020 Yeah. 1982 00:48:32,320 --> 00:48:32,720 So, 1983 00:48:32,840 --> 00:48:33,580 is there 1984 00:48:33,580 --> 00:48:33,960 any other 1985 00:48:33,960 --> 00:48:34,220 question? 1986 00:48:35,760 --> 00:48:36,160 Yes, 1987 00:48:36,280 --> 00:48:37,360 I got a second 1988 00:48:37,360 --> 00:48:37,720 question. 1989 00:48:37,840 --> 00:48:38,060 Is that, 1990 00:48:39,120 --> 00:48:39,880 you just 1991 00:48:39,880 --> 00:48:41,060 described several 1992 00:48:46,140 --> 00:48:47,000 solutions to 1993 00:48:47,000 --> 00:48:47,900 protect against 1994 00:48:47,900 --> 00:48:48,600 this glitch 1995 00:48:48,600 --> 00:48:48,880 attack. 1996 00:48:49,640 --> 00:48:50,920 Just one is to 1997 00:48:50,920 --> 00:48:51,440 use the 1998 00:48:51,440 --> 00:48:52,200 hardware to 1999 00:48:52,200 --> 00:48:52,960 use some 2000 00:48:52,960 --> 00:48:53,580 redundancy 2001 00:48:53,580 --> 00:48:54,020 bits. 2002 00:48:54,240 --> 00:48:55,140 And also to 2003 00:48:55,140 --> 00:48:55,540 use some 2004 00:48:55,540 --> 00:48:56,020 software. 2005 00:48:56,300 --> 00:48:56,960 But it seems to 2006 00:48:56,960 --> 00:48:57,440 me that you 2007 00:48:57,440 --> 00:48:57,700 just, 2008 00:48:57,760 --> 00:48:58,440 I mean, 2009 00:48:58,460 --> 00:48:58,980 it's still the 2010 00:48:58,980 --> 00:48:59,680 same as you 2011 00:48:59,680 --> 00:49:00,380 are just trying 2012 00:49:00,380 --> 00:49:01,060 to introduce 2013 00:49:01,800 --> 00:49:02,840 some redundancy 2014 00:49:02,840 --> 00:49:03,100 states. 2015 00:49:03,820 --> 00:49:05,100 But since the 2016 00:49:05,100 --> 00:49:06,160 state is already 2017 00:49:06,160 --> 00:49:06,640 that big, 2018 00:49:06,780 --> 00:49:07,360 the program 2019 00:49:07,360 --> 00:49:08,200 state is already 2020 00:49:08,200 --> 00:49:08,600 that big, 2021 00:49:08,700 --> 00:49:09,460 you're just 2022 00:49:16,140 --> 00:49:16,460 trying to 2023 00:49:16,460 --> 00:49:16,820 And how much, 2024 00:49:16,840 --> 00:49:17,300 I mean, 2025 00:49:17,300 --> 00:49:17,960 how much safer 2026 00:49:17,960 --> 00:49:18,400 would that 2027 00:49:18,400 --> 00:49:19,020 make? 2028 00:49:19,280 --> 00:49:19,760 Okay. 2029 00:49:20,040 --> 00:49:20,900 To be honest, 2030 00:49:21,060 --> 00:49:21,900 it's really 2031 00:49:21,900 --> 00:49:23,280 impossible to 2032 00:49:23,280 --> 00:49:24,160 protect a 2033 00:49:24,160 --> 00:49:26,080 product 100%. 2034 00:49:26,080 --> 00:49:26,980 So when you 2035 00:49:26,980 --> 00:49:27,280 have this 2036 00:49:27,280 --> 00:49:27,640 controversy, 2037 00:49:27,820 --> 00:49:28,180 you have the 2038 00:49:28,180 --> 00:49:28,680 redundancy, 2039 00:49:28,760 --> 00:49:29,140 you have the 2040 00:49:30,720 --> 00:49:31,500 double checks, 2041 00:49:31,620 --> 00:49:32,060 triple checks, 2042 00:49:32,220 --> 00:49:32,940 what you are doing 2043 00:49:32,940 --> 00:49:33,500 is protect your 2044 00:49:33,500 --> 00:49:34,080 product in such 2045 00:49:34,080 --> 00:49:35,560 a way that you 2046 00:49:35,560 --> 00:49:36,100 reduce the 2047 00:49:36,100 --> 00:49:36,600 chances of 2048 00:49:36,600 --> 00:49:37,300 being glitched. 2049 00:49:37,300 --> 00:49:38,400 But there is always 2050 00:49:38,400 --> 00:49:39,720 a possibility of 2051 00:49:39,720 --> 00:49:40,340 being glitched. 2052 00:49:40,340 --> 00:49:41,100 You cannot 2053 00:49:41,100 --> 00:49:42,560 warranty 100%. 2054 00:49:42,560 --> 00:49:43,160 You can't 2055 00:49:43,160 --> 00:49:44,600 guarantee 99.999%. 2056 00:49:46,180 --> 00:49:47,080 There will be 2057 00:49:47,080 --> 00:49:48,340 always a small 2058 00:49:48,340 --> 00:49:49,060 chance to be 2059 00:49:49,940 --> 00:49:50,460 glitched. 2060 00:49:50,880 --> 00:49:51,960 The thing is 2061 00:49:51,960 --> 00:49:52,340 that you can 2062 00:49:52,340 --> 00:49:53,200 protect your 2063 00:49:53,200 --> 00:49:54,540 product enough 2064 00:49:56,440 --> 00:49:57,480 to demotivate 2065 00:49:57,480 --> 00:49:57,920 the attacker. 2066 00:49:58,140 --> 00:49:59,160 So the idea 2067 00:49:59,160 --> 00:49:59,540 is not to 2068 00:49:59,540 --> 00:49:59,960 protect your 2069 00:49:59,960 --> 00:50:00,560 product so it's 2070 00:50:00,560 --> 00:50:01,120 impossible to 2071 00:50:01,120 --> 00:50:01,500 hack it. 2072 00:50:01,580 --> 00:50:02,500 It's just that 2073 00:50:02,500 --> 00:50:03,900 it's hard enough 2074 00:50:03,900 --> 00:50:04,740 to demotivate 2075 00:50:04,740 --> 00:50:05,600 the attacker so 2076 00:50:05,600 --> 00:50:06,240 he will not 2077 00:50:06,240 --> 00:50:07,080 try to attack 2078 00:50:07,080 --> 00:50:07,560 your product. 2079 00:50:08,180 --> 00:50:08,900 But yeah, 2080 00:50:09,020 --> 00:50:09,660 it's really 2081 00:50:09,660 --> 00:50:10,480 impossible to 2082 00:50:10,480 --> 00:50:11,360 get full 2083 00:50:11,360 --> 00:50:12,580 that you will 2084 00:50:12,580 --> 00:50:12,920 never be 2085 00:50:12,920 --> 00:50:13,620 hacked or 2086 00:50:13,620 --> 00:50:13,960 glitched. 2087 00:50:14,140 --> 00:50:15,000 So it's like 2088 00:50:15,000 --> 00:50:15,760 it's never 2089 00:50:16,440 --> 00:50:17,640 possible to be 2090 00:50:17,640 --> 00:50:18,740 100% safe. 2091 00:50:19,800 --> 00:50:20,520 I mean, 2092 00:50:20,580 --> 00:50:21,760 it's never 2093 00:50:21,760 --> 00:50:22,740 possible to 2094 00:50:22,740 --> 00:50:23,240 be perfectly 2095 00:50:23,240 --> 00:50:23,620 safe. 2096 00:50:25,240 --> 00:50:25,900 It's not. 2097 00:50:26,200 --> 00:50:26,860 From the 2098 00:50:26,860 --> 00:50:27,400 theoretical point 2099 00:50:27,400 --> 00:50:27,680 of view, 2100 00:50:27,720 --> 00:50:28,100 I think no. 2101 00:50:28,220 --> 00:50:28,500 From the 2102 00:50:28,500 --> 00:50:29,020 practical point 2103 00:50:29,020 --> 00:50:29,340 of view, 2104 00:50:29,440 --> 00:50:30,320 I think yes. 2105 00:50:30,420 --> 00:50:30,980 Because if I need 2106 00:50:30,980 --> 00:50:31,860 one year to 2107 00:50:31,860 --> 00:50:32,360 hack something, 2108 00:50:32,620 --> 00:50:33,580 I will not try, 2109 00:50:33,640 --> 00:50:33,800 right? 2110 00:50:34,620 --> 00:50:35,100 Yes. 2111 00:50:35,280 --> 00:50:35,700 I mean, 2112 00:50:35,720 --> 00:50:35,960 if you are 2113 00:50:35,960 --> 00:50:36,660 determined enough. 2114 00:50:37,100 --> 00:50:37,500 Yeah. 2115 00:50:39,040 --> 00:50:39,520 Okay. 2116 00:50:39,940 --> 00:50:40,760 I think there 2117 00:50:40,760 --> 00:50:41,040 were more 2118 00:50:41,040 --> 00:50:41,480 questions. 2119 00:50:42,660 --> 00:50:43,340 Two more 2120 00:50:43,340 --> 00:50:43,840 questions there. 2121 00:50:47,660 --> 00:50:48,620 How practical 2122 00:50:48,620 --> 00:50:49,800 is a voltage 2123 00:50:49,800 --> 00:50:50,200 attack? 2124 00:50:50,740 --> 00:50:51,240 Have you 2125 00:50:51,240 --> 00:50:51,840 actually got to 2126 00:50:51,840 --> 00:50:52,900 remove the chip 2127 00:50:52,900 --> 00:50:53,620 from the circuit 2128 00:50:53,620 --> 00:50:54,660 board and able 2129 00:50:54,660 --> 00:50:55,300 to get a decent 2130 00:50:55,300 --> 00:50:55,780 spike? 2131 00:50:56,000 --> 00:50:56,240 Or is there 2132 00:50:56,240 --> 00:50:56,480 enough? 2133 00:50:57,140 --> 00:50:57,860 How do you 2134 00:50:57,860 --> 00:50:58,500 overcome the 2135 00:50:58,500 --> 00:50:59,280 capacitance in 2136 00:50:59,280 --> 00:51:00,420 the power lines 2137 00:51:00,420 --> 00:51:02,480 to prevent you 2138 00:51:02,480 --> 00:51:03,740 inserting a 2139 00:51:03,740 --> 00:51:04,040 spike? 2140 00:51:04,940 --> 00:51:05,420 Sorry, 2141 00:51:05,520 --> 00:51:05,660 again. 2142 00:51:09,380 --> 00:51:10,540 Do you have 2143 00:51:10,540 --> 00:51:11,000 to remove 2144 00:51:11,000 --> 00:51:11,580 the chip 2145 00:51:11,580 --> 00:51:12,260 from the 2146 00:51:12,260 --> 00:51:12,580 motherboard? 2147 00:51:12,780 --> 00:51:12,920 Okay. 2148 00:51:13,520 --> 00:51:14,800 I did not 2149 00:51:14,800 --> 00:51:15,320 talk about 2150 00:51:15,320 --> 00:51:15,820 the practical 2151 00:51:16,540 --> 00:51:17,320 way to do 2152 00:51:17,320 --> 00:51:17,760 the glitching. 2153 00:51:17,900 --> 00:51:18,120 So, 2154 00:51:19,060 --> 00:51:19,540 yeah, 2155 00:51:19,640 --> 00:51:20,060 because I was 2156 00:51:20,060 --> 00:51:20,420 talking about 2157 00:51:20,420 --> 00:51:20,560 doing 2158 00:51:20,560 --> 00:51:20,880 the glitch 2159 00:51:20,880 --> 00:51:23,040 by manipulating 2160 00:51:23,040 --> 00:51:23,640 the power. 2161 00:51:24,080 --> 00:51:24,560 So, 2162 00:51:24,560 --> 00:51:25,420 how do we 2163 00:51:25,420 --> 00:51:26,360 manipulate the 2164 00:51:26,360 --> 00:51:26,620 power? 2165 00:51:27,100 --> 00:51:27,280 Okay. 2166 00:51:27,700 --> 00:51:28,140 So, 2167 00:51:28,660 --> 00:51:29,540 what we normally 2168 00:51:29,540 --> 00:51:30,140 do is we are 2169 00:51:30,140 --> 00:51:30,680 going to manipulate 2170 00:51:30,680 --> 00:51:32,840 the power to do 2171 00:51:32,840 --> 00:51:33,460 voltage glitching. 2172 00:51:33,520 --> 00:51:33,940 What we normally 2173 00:51:33,940 --> 00:51:34,940 do is just we 2174 00:51:34,940 --> 00:51:36,840 have manipulated 2175 00:51:36,840 --> 00:51:37,460 the PCB, 2176 00:51:37,660 --> 00:51:38,320 only the 2177 00:51:38,320 --> 00:51:38,560 circuit. 2178 00:51:38,780 --> 00:51:39,500 We have to cut 2179 00:51:39,500 --> 00:51:40,240 some traces in 2180 00:51:40,240 --> 00:51:40,960 the circuit so we 2181 00:51:40,960 --> 00:51:41,180 can, 2182 00:51:41,700 --> 00:51:42,400 with our 2183 00:51:42,400 --> 00:51:42,700 tool, 2184 00:51:43,500 --> 00:51:43,940 manipulate, 2185 00:51:44,220 --> 00:51:45,040 control the 2186 00:51:45,040 --> 00:51:45,320 power. 2187 00:51:45,580 --> 00:51:46,360 So, voltage 2188 00:51:46,360 --> 00:51:46,940 glitching is very 2189 00:51:46,940 --> 00:51:47,220 easy. 2190 00:51:47,320 --> 00:51:47,840 You only have 2191 00:51:47,840 --> 00:51:49,280 to solder some 2192 00:51:49,280 --> 00:51:49,900 cables in the 2193 00:51:49,900 --> 00:51:50,140 PCB. 2194 00:51:50,380 --> 00:51:51,300 But when we do 2195 00:51:51,300 --> 00:51:51,860 all the kind of 2196 00:51:51,860 --> 00:51:52,420 glitching, 2197 00:51:52,460 --> 00:51:52,920 like a laser, 2198 00:51:53,080 --> 00:51:53,760 when we use 2199 00:51:53,760 --> 00:51:54,200 the laser, 2200 00:51:55,020 --> 00:51:56,620 laser is much 2201 00:51:56,620 --> 00:51:57,180 more complicated. 2202 00:51:57,340 --> 00:51:57,680 You have to 2203 00:51:57,680 --> 00:51:58,580 decap the chip. 2204 00:51:58,660 --> 00:51:59,380 You have to open 2205 00:51:59,380 --> 00:52:00,040 the chip with 2206 00:52:01,140 --> 00:52:01,540 acid, 2207 00:52:03,100 --> 00:52:03,820 you decap 2208 00:52:03,820 --> 00:52:04,240 the chip, 2209 00:52:04,340 --> 00:52:05,340 and then you can 2210 00:52:05,340 --> 00:52:05,780 just attack 2211 00:52:05,780 --> 00:52:06,300 the chip. 2212 00:52:07,040 --> 00:52:07,700 There is some 2213 00:52:07,700 --> 00:52:08,460 practical problems, 2214 00:52:08,660 --> 00:52:09,120 but, 2215 00:52:09,140 --> 00:52:09,400 well, 2216 00:52:09,520 --> 00:52:10,200 it's not 2217 00:52:10,200 --> 00:52:10,780 really something 2218 00:52:10,780 --> 00:52:11,140 that you 2219 00:52:11,140 --> 00:52:12,860 cannot work 2220 00:52:12,860 --> 00:52:13,180 on. 2221 00:52:17,840 --> 00:52:19,060 So, maybe we 2222 00:52:19,060 --> 00:52:19,820 can continue with 2223 00:52:19,820 --> 00:52:20,260 these questions 2224 00:52:20,720 --> 00:52:21,340 of topic, 2225 00:52:21,460 --> 00:52:21,860 sorry, 2226 00:52:22,540 --> 00:52:23,260 of line. 2227 00:52:24,380 --> 00:52:25,240 So, thank you 2228 00:52:25,240 --> 00:52:25,740 again for 2229 00:52:25,740 --> 00:52:26,400 listening. 2230 00:52:27,040 --> 00:52:28,100 And if you want 2231 00:52:28,100 --> 00:52:28,720 to see one of 2232 00:52:28,720 --> 00:52:29,060 these demos, 2233 00:52:29,160 --> 00:52:30,280 please ask me and 2234 00:52:30,280 --> 00:52:30,800 I will just show 2235 00:52:30,800 --> 00:52:31,120 it to you. 2236 00:52:31,440 --> 00:52:31,800 Thanks.