1 00:00:00,000 --> 00:00:02,940 Hi, I'm Ante, security architect, FoxGuard Solutions. 2 00:00:03,140 --> 00:00:05,320 We do industrial control system security stuff. 3 00:00:07,140 --> 00:00:10,100 And this is what I think my job is like. 4 00:00:11,560 --> 00:00:12,440 No? Yeah? 5 00:00:13,100 --> 00:00:14,720 In your job like this? Everybody. 6 00:00:16,280 --> 00:00:18,540 And this is what my mom thinks my job is like. 7 00:00:20,780 --> 00:00:23,780 This is what other people think my job is like. 8 00:00:26,200 --> 00:00:29,040 This is what I wish my job was like. 9 00:00:32,120 --> 00:00:36,020 And this is what my job is really like. 10 00:00:36,820 --> 00:00:39,180 Do some security research, look at new attacks, 11 00:00:39,580 --> 00:00:42,780 do some training classes, lots of conference talks, new product. 12 00:00:43,820 --> 00:00:46,900 And look at industry requirements in industrial control systems, 13 00:00:47,500 --> 00:00:50,500 where bits meet atoms, where things happen. 14 00:00:53,060 --> 00:00:54,580 So, let's get started. 15 00:00:54,620 --> 00:00:57,420 We're going to talk about things in light of... 16 00:00:57,420 --> 00:00:59,900 Anybody here work in industrial control systems? 17 00:01:00,640 --> 00:01:02,220 Oh, yeah, we've got a handful. 18 00:01:02,800 --> 00:01:05,580 Anybody heard the term industrial control systems before? 19 00:01:06,540 --> 00:01:08,220 A few more. Beautiful. 20 00:01:08,340 --> 00:01:09,320 Well, now you're an expert. 21 00:01:09,660 --> 00:01:13,960 Industrial control systems is the part of security that really matters. 22 00:01:14,240 --> 00:01:17,000 It is where bits meet atoms, things move. 23 00:01:17,160 --> 00:01:22,560 This is electricity and manufacturing and your water and your power. 24 00:01:22,720 --> 00:01:24,240 This is where your iPhones come from. 25 00:01:27,300 --> 00:01:29,460 And we're going to take a look at some tools. 26 00:01:29,460 --> 00:01:34,860 So, since I am thinking of things in terms of industrial control systems... 27 00:01:35,380 --> 00:01:36,260 Let's get the mic. 28 00:01:37,500 --> 00:01:39,040 Industrial control systems. 29 00:01:39,180 --> 00:01:41,460 If you're going to look at this as an industrial control system, 30 00:01:41,780 --> 00:01:43,360 what are the mechanics involved? 31 00:01:44,080 --> 00:01:47,340 It's like, well, it looks for some button pushes, 32 00:01:48,040 --> 00:01:51,320 does some calculations, and it displays something on the screen. 33 00:01:51,460 --> 00:01:52,700 That's its I.O., right? 34 00:01:52,900 --> 00:01:56,960 Industrial control, reading things, thinking about things, and doing things. 35 00:01:58,280 --> 00:01:58,940 Fun enough? 36 00:02:01,720 --> 00:02:06,400 As an industrial control system, what does this thing do? 37 00:02:07,440 --> 00:02:08,560 It opens the box. 38 00:02:08,800 --> 00:02:09,320 Do what? 39 00:02:09,540 --> 00:02:10,560 It opens the box. 40 00:02:10,660 --> 00:02:11,500 It opens the box. 41 00:02:12,680 --> 00:02:13,420 What else? 42 00:02:13,660 --> 00:02:14,880 Industrial control system. 43 00:02:15,040 --> 00:02:15,220 What? 44 00:02:15,580 --> 00:02:16,280 It makes holes. 45 00:02:16,560 --> 00:02:17,200 It makes holes. 46 00:02:17,520 --> 00:02:19,040 Yeah, but think about the operation. 47 00:02:19,740 --> 00:02:21,280 Bits, atoms, movement. 48 00:02:21,860 --> 00:02:22,660 What's it doing? 49 00:02:23,120 --> 00:02:24,340 It spins at a certain rate. 50 00:02:24,480 --> 00:02:28,360 All right, so this is a miniature industrial control system that's monitoring the rate of the spin. 51 00:02:28,660 --> 00:02:29,280 All right? 52 00:02:29,280 --> 00:02:30,180 That's one of the things. 53 00:02:30,220 --> 00:02:33,160 It's actually controlling with a pulse with modulation output. 54 00:02:33,580 --> 00:02:34,620 What else is it doing? 55 00:02:38,860 --> 00:02:39,260 Input. 56 00:02:40,400 --> 00:02:41,360 What kind of input? 57 00:02:42,960 --> 00:02:46,020 Yeah, so there's a variable resistor here in this trigger, 58 00:02:46,160 --> 00:02:47,780 and it's reading that value. 59 00:02:47,840 --> 00:02:51,920 It's reading analog value, making some calculations to control the system. 60 00:02:52,340 --> 00:02:53,320 Do we see anything else? 61 00:02:54,240 --> 00:02:54,640 Light. 62 00:02:55,140 --> 00:02:55,540 Light. 63 00:02:55,620 --> 00:02:56,580 So we have a light on the front. 64 00:02:56,660 --> 00:02:57,240 It gets timed. 65 00:02:57,260 --> 00:02:58,180 Look. No power. 66 00:02:59,280 --> 00:02:59,820 Light on the front. 67 00:03:00,060 --> 00:03:01,460 What about on the sides here? 68 00:03:03,720 --> 00:03:05,680 Yeah, so here's a display. 69 00:03:05,800 --> 00:03:08,060 This is a voltage display, so it's measuring voltage. 70 00:03:09,160 --> 00:03:11,500 It's also measuring temperature of this battery system, 71 00:03:11,640 --> 00:03:14,980 and it's measuring temperature of MOSFETs inside. 72 00:03:15,540 --> 00:03:21,480 So as far as a very small representation of an industrial control system, this is it. 73 00:03:21,540 --> 00:03:23,360 It's measuring different kinds of inputs. 74 00:03:23,440 --> 00:03:25,340 It's controlling different kinds of outputs. 75 00:03:25,520 --> 00:03:25,800 All right? 76 00:03:28,080 --> 00:03:32,800 So which of these two systems do you think is more powerful? 77 00:03:35,180 --> 00:03:35,620 Thoughts? 78 00:03:35,620 --> 00:03:36,040 Comments? 79 00:03:36,220 --> 00:03:36,660 Yes? 80 00:03:36,800 --> 00:03:36,960 No? 81 00:03:45,220 --> 00:03:47,000 Now which one do you think is more powerful? 82 00:03:48,940 --> 00:03:49,380 . 83 00:03:52,140 --> 00:03:52,580 . 84 00:03:52,580 --> 00:03:52,860 Yeah, well. 85 00:03:53,900 --> 00:03:55,640 So a little bit of fun. 86 00:03:55,760 --> 00:03:59,260 But actually, the drill is a more powerful control system. 87 00:03:59,540 --> 00:04:00,400 So this calc... 88 00:04:00,400 --> 00:04:01,000 Excuse me? 89 00:04:03,600 --> 00:04:04,160 Physically. 90 00:04:05,020 --> 00:04:06,020 Also, look. 91 00:04:06,140 --> 00:04:08,500 The calculator clock's rate is 6 megahertz. 92 00:04:08,600 --> 00:04:09,840 In the drill, it's 8 megahertz. 93 00:04:10,440 --> 00:04:17,720 Besides that, the processor in the calculator takes several clock cycles to do an instruction. 94 00:04:17,960 --> 00:04:20,460 So 7, 19, 14, 15. 95 00:04:20,460 --> 00:04:22,660 This is just sort of a random sampling of instructions. 96 00:04:23,060 --> 00:04:27,840 This drill basically does every operation in one instruction cycle. 97 00:04:28,340 --> 00:04:31,980 So computationally, it's a lot more powerful than the calculator as well. 98 00:04:32,200 --> 00:04:37,000 Besides its additional functionality of sort of dedicated pulse width modulation channels 99 00:04:37,000 --> 00:04:40,560 and its ability to read analog input. 100 00:04:40,860 --> 00:04:46,080 So if you start looking at, you know, the actual power of the system, 101 00:04:46,220 --> 00:04:49,760 the drill's a lot more complex system and a lot more one than I expected. 102 00:04:49,760 --> 00:04:50,040 Right? 103 00:04:50,200 --> 00:04:50,520 This is... 104 00:04:50,520 --> 00:04:52,240 It's a battery-powered drill. 105 00:04:52,460 --> 00:04:52,700 Who... 106 00:04:52,700 --> 00:04:53,480 Right? 107 00:04:53,620 --> 00:04:56,840 Who expects a computer in the middle of there? 108 00:04:57,000 --> 00:05:01,440 So if you were going to attack a control system, let's say this one in particular, 109 00:05:02,140 --> 00:05:04,640 you might look to see what's inside of it first. 110 00:05:04,800 --> 00:05:06,300 This is a pretty standard drill. 111 00:05:06,880 --> 00:05:08,440 It has a... 112 00:05:08,440 --> 00:05:09,260 Let's see. 113 00:05:09,360 --> 00:05:13,440 We got a PC board and some power connectors and a motor, a transmission. 114 00:05:18,060 --> 00:05:19,560 If we look at the... 115 00:05:20,340 --> 00:05:23,180 We look at the circuit board and we look up these MOSFETs, by the way, 116 00:05:23,220 --> 00:05:26,300 that controls the power to the motor that makes the drill run. 117 00:05:26,760 --> 00:05:32,220 They're rated at 202 amps continuous. 118 00:05:32,640 --> 00:05:35,540 And if you do anything with electronics, that's a fair amount of power. 119 00:05:36,140 --> 00:05:39,240 They will also support 800 amps pulse. 120 00:05:39,780 --> 00:05:40,660 So, yeah. 121 00:05:41,100 --> 00:05:41,960 It's pretty impressive. 122 00:05:44,600 --> 00:05:49,820 It might also need a little help reverse engineering the system as a whole, 123 00:05:49,920 --> 00:05:54,640 if you're going to look at software, because the hardware provides input 124 00:05:54,640 --> 00:06:00,940 and it depends upon the way the drill is set up and the way the circuit board is set up. 125 00:06:01,540 --> 00:06:02,800 So you take a look around. 126 00:06:04,380 --> 00:06:07,340 I found an ATmega 32-pin. 127 00:06:07,960 --> 00:06:12,100 And when I first saw this 32-pin microcontroller, I'm like, you know, 128 00:06:12,100 --> 00:06:17,700 they make like eight pin lines and why in the world are they putting this thing in here? 129 00:06:18,220 --> 00:06:22,040 But if you go through and trace out all of those circuits, 130 00:06:22,620 --> 00:06:25,980 basically almost all of them, almost all the pins are in use. 131 00:06:26,340 --> 00:06:31,280 It's running front LEDs and power LEDs and two MOSFETs, 132 00:06:31,280 --> 00:06:35,760 MOSFET temperature, battery temperature, voltage, trigger, com, enable pins. 133 00:06:36,100 --> 00:06:40,640 So it's using a lot more of the capability than you expected, even in this simple device. 134 00:06:42,100 --> 00:06:43,980 It's using a lot of computational resources. 135 00:06:46,280 --> 00:06:46,980 All right. 136 00:06:47,100 --> 00:06:51,200 Now for a little review before we, ooh, calculator parts. 137 00:06:52,300 --> 00:06:54,600 Part of a review before we continue. 138 00:06:56,460 --> 00:06:57,420 All right. 139 00:06:57,540 --> 00:06:58,340 Audience participation. 140 00:06:58,500 --> 00:06:59,120 What's RAM? 141 00:07:00,020 --> 00:07:01,340 Random access memory. 142 00:07:01,340 --> 00:07:02,360 Random access memory. 143 00:07:02,600 --> 00:07:02,840 Beautiful. 144 00:07:03,060 --> 00:07:04,580 You read right, you turn it off, it goes away. 145 00:07:05,500 --> 00:07:06,520 What is ROM? 146 00:07:07,260 --> 00:07:07,980 Read-only memory. 147 00:07:07,980 --> 00:07:08,860 Read-only memory. 148 00:07:09,080 --> 00:07:09,340 All right. 149 00:07:09,340 --> 00:07:10,980 So let's talk about early ROM. 150 00:07:11,200 --> 00:07:12,860 Early ROM is masked ROM. 151 00:07:14,200 --> 00:07:16,720 And it's manufactured that way at the factory. 152 00:07:16,980 --> 00:07:20,240 So you say, hey, I want a bunch of ROMs that have this program on here. 153 00:07:20,940 --> 00:07:26,600 And you pay them $100,000 and they'll set up the mask and they will make those chips with that program 154 00:07:26,600 --> 00:07:29,080 and they will send them to you, right? 155 00:07:29,140 --> 00:07:30,940 You have to buy a big lot to make this profitable. 156 00:07:31,460 --> 00:07:37,100 And now you have, I don't know, 10,000 of these chips programmed just the way you want them. 157 00:07:38,120 --> 00:07:41,760 What do you do with those chips if there was a bug in your software? 158 00:07:42,180 --> 00:07:43,100 Put them in a landfill. 159 00:07:44,940 --> 00:07:45,660 Not bad. 160 00:07:46,780 --> 00:07:47,780 Put them in a landfill. 161 00:07:48,140 --> 00:07:49,280 Sell them and don't tell anybody. 162 00:07:49,680 --> 00:07:50,960 Sell them and don't tell anybody. 163 00:07:51,300 --> 00:07:52,680 You are my head of marketing. 164 00:07:54,900 --> 00:07:55,260 Yeah. 165 00:07:55,460 --> 00:07:55,820 Yeah. 166 00:07:56,080 --> 00:07:58,500 Or I like to say, throw them in the ocean. 167 00:08:00,200 --> 00:08:02,120 Because you can only write to them once. 168 00:08:02,120 --> 00:08:03,040 They're made at the factory. 169 00:08:03,120 --> 00:08:06,180 And now you have to call up the factory again and say, hey, for another $100,000, can you 170 00:08:06,180 --> 00:08:08,220 set me up another mask and run me another batch of these? 171 00:08:08,420 --> 00:08:13,400 So we decided that that didn't work very well. 172 00:08:13,540 --> 00:08:15,440 And we come up with things like PROM. 173 00:08:15,660 --> 00:08:17,280 So what's PROM stand for? 174 00:08:19,280 --> 00:08:22,720 So this is programmable read-only memory. 175 00:08:24,560 --> 00:08:26,300 So you get these chips. 176 00:08:26,360 --> 00:08:29,420 They're typically, let's say, one-time programmable. 177 00:08:29,580 --> 00:08:30,440 You get the chip. 178 00:08:30,560 --> 00:08:32,560 You can put your piece of code on it. 179 00:08:32,640 --> 00:08:34,900 And then you can put it in your device. 180 00:08:37,040 --> 00:08:43,740 If that chip has vulnerabilities or problems in the software, what do you do with that chip? 181 00:08:48,360 --> 00:08:48,800 Yes. 182 00:08:49,060 --> 00:08:49,880 You throw it in the landfill. 183 00:08:51,280 --> 00:08:52,700 But you only have the one. 184 00:08:52,800 --> 00:08:56,740 Because the next chip you get off the shelf, you can program and put it in your device, right? 185 00:08:56,840 --> 00:08:58,920 So that works a lot quicker and easier. 186 00:08:59,360 --> 00:09:00,620 And it's more cost-effective. 187 00:09:01,520 --> 00:09:02,920 So manufacturers like that. 188 00:09:03,860 --> 00:09:04,300 But. 189 00:09:04,300 --> 00:09:06,000 You go on to the next level. 190 00:09:06,420 --> 00:09:06,880 EPROM. 191 00:09:06,940 --> 00:09:07,680 What's EPROM? 192 00:09:09,900 --> 00:09:10,360 Yeah. 193 00:09:10,520 --> 00:09:14,040 So this is erasable programmable read-only memory. 194 00:09:15,260 --> 00:09:17,860 And typically they were UV erasable. 195 00:09:18,020 --> 00:09:21,160 So if you look here, this has a little window in it. 196 00:09:22,000 --> 00:09:25,580 A UV light will erase it, set it all back to ones. 197 00:09:25,880 --> 00:09:28,880 And you can change some of those to zeroes and end up with a program. 198 00:09:30,040 --> 00:09:33,360 Now, if there is something wrong with this chip, what can we do with it? 199 00:09:35,260 --> 00:09:35,660 Yeah. 200 00:09:35,780 --> 00:09:36,620 You can pull it out. 201 00:09:36,720 --> 00:09:39,500 You can shine some light on it and reprogram it and put it back in. 202 00:09:39,580 --> 00:09:41,120 You don't even have to throw anything away. 203 00:09:44,220 --> 00:09:46,860 But you do have to pull it out and program it. 204 00:09:48,760 --> 00:09:49,560 So EEPROM. 205 00:09:49,720 --> 00:09:50,540 What's EEPROM? 206 00:09:54,020 --> 00:09:57,840 Electrically erasable programmable read-only memory. 207 00:09:58,220 --> 00:10:01,400 So now you can program this thing in the circuit. 208 00:10:01,660 --> 00:10:03,060 You don't have to pull it out. 209 00:10:03,060 --> 00:10:06,700 You don't have to shine UV light on it like you're curing your nails or something. 210 00:10:08,040 --> 00:10:12,020 And if you have a problem, you can fix it in the device. 211 00:10:13,380 --> 00:10:14,940 So that's quite a bit easier. 212 00:10:15,040 --> 00:10:16,700 Now you think as a manufacturer, that's great. 213 00:10:17,000 --> 00:10:18,140 We screwed something up. 214 00:10:18,200 --> 00:10:19,180 We need to update something. 215 00:10:20,560 --> 00:10:21,520 We're all good. 216 00:10:21,600 --> 00:10:23,220 We can program it back in place. 217 00:10:24,060 --> 00:10:24,740 All right. 218 00:10:24,920 --> 00:10:28,160 Now, I'm dependent on you all. 219 00:10:28,400 --> 00:10:29,900 What does FLASH stand for? 220 00:10:34,180 --> 00:10:34,700 What? 221 00:10:35,680 --> 00:10:37,260 You all are a quiet group. 222 00:10:38,000 --> 00:10:38,520 FLASH? 223 00:10:38,740 --> 00:10:40,320 No, FLASH doesn't stand for anything. 224 00:10:40,740 --> 00:10:41,740 It's a marketing term. 225 00:10:43,040 --> 00:10:46,260 So FLASH is basically a version of EEPROM. 226 00:10:46,400 --> 00:10:47,140 It tends to be larger. 227 00:10:47,260 --> 00:10:48,220 You write it in larger blocks. 228 00:10:48,840 --> 00:10:52,620 It will sustain fewer write cycles before it gets destroyed. 229 00:10:52,840 --> 00:10:55,380 But it's basically a marketing term. 230 00:10:55,800 --> 00:10:58,520 And that's how we end up. 231 00:10:58,820 --> 00:11:00,980 That's a short version of how we end up with devices 232 00:11:00,980 --> 00:11:02,980 that you can program sort of by default. 233 00:11:03,060 --> 00:11:04,460 It saves you money. 234 00:11:04,600 --> 00:11:05,840 It saves you time. 235 00:11:08,300 --> 00:11:09,640 So that's a review. 236 00:11:09,800 --> 00:11:13,660 For the particular microcontroller in this drill, 237 00:11:13,860 --> 00:11:15,380 we see it has some EEPROM, 238 00:11:15,600 --> 00:11:18,380 which is designed to be written in smaller blocks and more time. 239 00:11:19,220 --> 00:11:24,700 Some RAM, some FLASH, and in-system programming. 240 00:11:25,080 --> 00:11:27,720 We don't have to take it out and clip some clip on it 241 00:11:27,720 --> 00:11:29,520 and hook some programmer up to it. 242 00:11:29,940 --> 00:11:31,840 It's much easier to set up. 243 00:11:31,840 --> 00:11:34,040 You probably buy your hardware. 244 00:11:34,240 --> 00:11:35,400 You get it shipped to you. 245 00:11:35,560 --> 00:11:37,280 And then back at your plant, 246 00:11:37,500 --> 00:11:40,880 you can blow on the latest firmware when you get the device. 247 00:11:41,100 --> 00:11:41,820 Much easier. 248 00:11:42,120 --> 00:11:44,760 That allows for the updates that you may have changed 249 00:11:44,760 --> 00:11:47,540 or made to your firmware, your software. 250 00:11:48,860 --> 00:11:49,940 And in some cases, 251 00:11:49,960 --> 00:11:54,120 maybe account for some minor manufacturing difficulties. 252 00:11:54,240 --> 00:11:55,660 You might be able to adjust for them. 253 00:11:55,740 --> 00:11:56,120 Maybe. 254 00:11:56,840 --> 00:11:57,600 In firmware. 255 00:12:00,640 --> 00:12:01,940 So we take it apart. 256 00:12:03,020 --> 00:12:06,240 And we're looking at how to manipulate it. 257 00:12:06,400 --> 00:12:09,300 And it would be great if we could find an SPI port, 258 00:12:09,520 --> 00:12:10,560 typically six pins. 259 00:12:10,940 --> 00:12:11,960 And what do we see here? 260 00:12:12,100 --> 00:12:12,700 Six pins. 261 00:12:12,920 --> 00:12:13,540 As a matter of fact, 262 00:12:14,560 --> 00:12:16,340 half the work is already done for us 263 00:12:16,340 --> 00:12:18,940 because there is a reset, 264 00:12:19,220 --> 00:12:19,620 a clock, 265 00:12:19,960 --> 00:12:21,420 and a 3.3 volts. 266 00:12:21,500 --> 00:12:22,760 That's pointing to something else. 267 00:12:22,820 --> 00:12:24,920 So three of our six pins are already labeled. 268 00:12:25,660 --> 00:12:27,480 We only have to figure out the other three. 269 00:12:27,480 --> 00:12:28,280 And we're in. 270 00:12:31,240 --> 00:12:31,740 Excuse me? 271 00:12:34,260 --> 00:12:35,460 Yeah, we need a couple. 272 00:12:35,560 --> 00:12:37,160 We need MIMO and MOMI. 273 00:12:37,220 --> 00:12:38,780 But if you turn the circuit board over, 274 00:12:40,400 --> 00:12:42,240 now you have MOMI, MIMO, and GROUND. 275 00:12:42,280 --> 00:12:43,620 So they label the other three for you. 276 00:12:44,020 --> 00:12:44,660 That's great. 277 00:12:44,920 --> 00:12:45,540 That's awesome. 278 00:12:46,920 --> 00:12:47,940 You need a programmer. 279 00:12:48,220 --> 00:12:49,000 I was in a hurry. 280 00:12:49,160 --> 00:12:51,940 I built one out of a teensy I had laying around 281 00:12:51,940 --> 00:12:55,700 and put a 3D printed case and got some free software. 282 00:12:56,120 --> 00:12:56,260 You know. 283 00:12:57,480 --> 00:12:58,600 If you want to buy them, 284 00:12:58,700 --> 00:13:00,520 they're available in all your favorite sources. 285 00:13:01,640 --> 00:13:02,760 Across on the... 286 00:13:02,760 --> 00:13:03,800 These are great. 287 00:13:03,980 --> 00:13:04,160 You know. 288 00:13:04,220 --> 00:13:05,320 $3.36. 289 00:13:06,500 --> 00:13:07,460 Shipped to your door. 290 00:13:08,200 --> 00:13:09,240 On the slow boat. 291 00:13:13,200 --> 00:13:16,540 So I pulled the software off of this device 292 00:13:18,100 --> 00:13:21,340 and did a little reverse engineering, 293 00:13:21,720 --> 00:13:23,320 maybe a little disassembly, right? 294 00:13:23,400 --> 00:13:25,740 So you end up with assembly code all ones and zeros. 295 00:13:25,860 --> 00:13:26,700 Hard to figure out. 296 00:13:26,700 --> 00:13:28,760 But you're going to disassemble it somehow 297 00:13:28,760 --> 00:13:29,880 to make it a little easier. 298 00:13:30,200 --> 00:13:31,540 There are a couple of free ones. 299 00:13:32,220 --> 00:13:32,640 You know. 300 00:13:34,180 --> 00:13:35,240 AVR, OBJ dump. 301 00:13:35,460 --> 00:13:36,020 That's kind of cool. 302 00:13:36,200 --> 00:13:38,260 I read about this cool one, ReAVR. 303 00:13:40,700 --> 00:13:43,960 But it was kind of from a sketchy site from Russia 304 00:13:43,960 --> 00:13:46,100 and I didn't really want to install it on my computer. 305 00:13:47,300 --> 00:13:49,180 So I talked to my buddy and I said, 306 00:13:49,320 --> 00:13:52,420 can you install this software and rerun this file through it? 307 00:13:52,620 --> 00:13:53,520 And he was like, yeah. 308 00:13:53,680 --> 00:13:54,160 I'm like, sweet. 309 00:13:55,000 --> 00:13:56,640 I'm too paranoid for that stuff. 310 00:13:57,720 --> 00:13:59,120 And other commercial software. 311 00:13:59,660 --> 00:14:03,340 But now you end up with just sort of this side, right? 312 00:14:03,460 --> 00:14:04,460 The similar language instructions, 313 00:14:04,720 --> 00:14:06,140 which still may not mean a lot. 314 00:14:06,440 --> 00:14:08,260 And worked through it quite a bit 315 00:14:08,260 --> 00:14:11,700 to try to figure out what these registers 316 00:14:11,700 --> 00:14:14,080 and what the instructions meant and what they did. 317 00:14:14,180 --> 00:14:15,740 This is just a brief section of it. 318 00:14:15,840 --> 00:14:18,020 So made a few comments as I went along. 319 00:14:18,340 --> 00:14:19,660 I thought one of the interests, 320 00:14:19,900 --> 00:14:23,900 one of the reasons I just pulled this tiny section of code was, 321 00:14:23,900 --> 00:14:29,200 this right here is setting up to write to the EEPROM. 322 00:14:30,440 --> 00:14:32,500 And this is the EEPROM write. 323 00:14:32,960 --> 00:14:41,820 So this drill has the capability of changing the EEPROM, right? 324 00:14:42,240 --> 00:14:43,480 It can write things. 325 00:14:43,580 --> 00:14:44,760 It can keep track of things. 326 00:14:47,000 --> 00:14:48,440 I was going to ask my friend, 327 00:14:48,720 --> 00:14:49,880 who I was working with at the time, 328 00:14:50,360 --> 00:14:52,140 what do you think this thing is writing? 329 00:14:52,140 --> 00:14:53,400 What's it keeping up with? 330 00:14:53,720 --> 00:14:55,500 He says, oh, I know, I know. 331 00:14:55,840 --> 00:14:59,080 It's looking for warranty day plus one. 332 00:15:00,060 --> 00:15:00,540 Right? 333 00:15:01,700 --> 00:15:02,580 I'm like, huh. 334 00:15:03,800 --> 00:15:06,040 Maybe it is looking for, I don't know, 335 00:15:06,100 --> 00:15:08,480 usage time or something like that. 336 00:15:08,540 --> 00:15:09,680 But there's no real time clock. 337 00:15:10,000 --> 00:15:12,320 It doesn't get updated that way. 338 00:15:12,420 --> 00:15:18,520 I think it's doing calibration for the trigger, right? 339 00:15:19,020 --> 00:15:21,880 They could have slightly different ranges. 340 00:15:22,140 --> 00:15:22,540 And so forth. 341 00:15:24,720 --> 00:15:25,200 So. 342 00:15:28,840 --> 00:15:30,020 Oh, at this point, 343 00:15:30,080 --> 00:15:33,640 we are going to have a little bit of a live demo. 344 00:15:34,860 --> 00:15:36,540 I need a volunteer. 345 00:15:37,460 --> 00:15:39,940 Who would come up here and give me a hand? 346 00:15:40,020 --> 00:15:40,720 Welcome, sir. 347 00:15:44,660 --> 00:15:46,360 Do you have good health insurance? 348 00:15:48,000 --> 00:15:48,760 Let's just go. 349 00:15:48,940 --> 00:15:49,500 All right. 350 00:15:49,540 --> 00:15:50,040 Let's just go. 351 00:15:50,420 --> 00:15:50,780 Okay. 352 00:15:50,980 --> 00:15:52,420 So if you would. 353 00:15:53,140 --> 00:15:53,660 Hang on. 354 00:15:54,540 --> 00:15:56,120 We'll at least take the drill bit out for you. 355 00:15:56,160 --> 00:15:56,480 How about that? 356 00:16:01,080 --> 00:16:01,440 Yeah. 357 00:16:01,740 --> 00:16:02,760 You're standing on my line. 358 00:16:02,880 --> 00:16:04,080 You should stand right there. 359 00:16:04,280 --> 00:16:04,980 Oh, much better. 360 00:16:10,940 --> 00:16:11,300 Okay. 361 00:16:11,360 --> 00:16:12,160 Can you hold this for me? 362 00:16:13,620 --> 00:16:14,440 I think I can. 363 00:16:15,280 --> 00:16:15,640 Excellent. 364 00:16:16,040 --> 00:16:16,600 Excellent work. 365 00:16:17,820 --> 00:16:18,180 So. 366 00:16:20,480 --> 00:16:20,940 All right. 367 00:16:21,120 --> 00:16:21,900 You buy them. 368 00:16:21,960 --> 00:16:22,400 You build them. 369 00:16:22,440 --> 00:16:22,620 Whatever. 370 00:16:23,000 --> 00:16:25,040 We'll walk over this way just a little bit. 371 00:16:25,200 --> 00:16:25,940 We are going to. 372 00:16:26,040 --> 00:16:30,260 The only thing I did is I pulled those pins to the outside just to make this go a little 373 00:16:30,260 --> 00:16:31,160 quicker and easier. 374 00:16:33,060 --> 00:16:33,420 And. 375 00:16:34,900 --> 00:16:36,640 We're going to figure out which way is up. 376 00:16:38,000 --> 00:16:38,960 Turn it three times. 377 00:16:39,000 --> 00:16:39,380 It'll work. 378 00:16:39,580 --> 00:16:39,940 Yeah. 379 00:16:41,080 --> 00:16:42,540 You've done this before, haven't you? 380 00:16:42,840 --> 00:16:43,540 We can tell. 381 00:16:44,740 --> 00:16:45,440 All right. 382 00:16:45,760 --> 00:16:46,120 So. 383 00:16:46,540 --> 00:16:46,900 All right. 384 00:16:46,900 --> 00:16:46,980 So. 385 00:16:47,500 --> 00:16:47,700 So. 386 00:16:47,700 --> 00:16:47,720 So. 387 00:16:47,720 --> 00:16:47,780 So. 388 00:16:50,740 --> 00:16:51,180 So. 389 00:16:51,180 --> 00:16:51,320 So. 390 00:16:51,320 --> 00:16:56,040 It takes, you know, a line or two of code to do this, but since I can't type and talk, 391 00:16:56,140 --> 00:16:58,940 especially in front of people, we've got a couple scripts. 392 00:17:00,540 --> 00:17:06,260 I am going to run hash comparison. 393 00:17:06,840 --> 00:17:07,280 So. 394 00:17:07,360 --> 00:17:13,060 What this is doing is it's pulling the existing firmware off the device, writing it to my 395 00:17:13,060 --> 00:17:16,040 hard drive, and then I'm comparing it to my known good file. 396 00:17:16,200 --> 00:17:16,600 And. 397 00:17:16,600 --> 00:17:19,400 And if you look at the bottom, you see it say, it says files match. 398 00:17:19,760 --> 00:17:24,480 So the firmware on this device, hash matches my expectations. 399 00:17:24,820 --> 00:17:26,300 I believe this is a good device. 400 00:17:26,600 --> 00:17:28,120 I will be happy to use it. 401 00:17:32,260 --> 00:17:35,280 I also wrote some other code for this device. 402 00:17:39,520 --> 00:17:43,540 And now we are putting some other code on this device. 403 00:17:44,340 --> 00:17:46,420 And we will check the hash. 404 00:17:48,400 --> 00:17:53,400 If we receive the device in this state, we're reading the firmware off. 405 00:17:53,760 --> 00:17:56,780 We're running the hash on, comparing it to our known good. 406 00:17:56,980 --> 00:17:59,040 And it says those files differ. 407 00:17:59,720 --> 00:18:01,620 It would be nice if it said it was malware. 408 00:18:03,180 --> 00:18:05,800 It says those files differ. 409 00:18:06,840 --> 00:18:09,420 Oh, so do you notice anything strange? 410 00:18:11,520 --> 00:18:12,800 There's a blink and red light. 411 00:18:12,800 --> 00:18:14,440 Along the side of the drill. 412 00:18:16,940 --> 00:18:19,580 Oh, that's suspicious right there. 413 00:18:19,760 --> 00:18:20,680 Let me tell you. 414 00:18:21,480 --> 00:18:21,920 Yeah. 415 00:18:22,760 --> 00:18:23,200 Yeah. 416 00:18:23,520 --> 00:18:24,480 Okay, hang on. 417 00:18:31,440 --> 00:18:33,180 Yeah, so what is this? 418 00:18:33,280 --> 00:18:34,540 I thought I heard the comment up front. 419 00:18:34,820 --> 00:18:36,460 This is called, it has a name. 420 00:18:36,460 --> 00:18:37,720 It's called a Larson scanner. 421 00:18:38,600 --> 00:18:40,780 It's named for this guy, Glenn Larson. 422 00:18:41,980 --> 00:18:42,780 TV producer. 423 00:18:42,800 --> 00:18:43,520 Producer and writer. 424 00:18:43,700 --> 00:18:45,560 He created various shows, as you see. 425 00:18:45,700 --> 00:18:47,860 Buck Rogers in the 25th century. 426 00:18:49,380 --> 00:18:50,680 What are the last two? 427 00:18:52,040 --> 00:18:53,000 Knight Rider. 428 00:18:53,320 --> 00:18:55,020 And what's the last one? 429 00:18:55,960 --> 00:18:56,980 Right, right. 430 00:18:57,100 --> 00:18:59,600 So he's responsible for this. 431 00:18:59,720 --> 00:19:03,120 But what it really means is this is the start of AI, right? 432 00:19:03,200 --> 00:19:05,000 This is where bad AI comes from. 433 00:19:06,700 --> 00:19:07,220 Okay. 434 00:19:07,600 --> 00:19:09,900 Now you have another chore to do. 435 00:19:10,060 --> 00:19:12,440 If you will pass me the drills for a second. 436 00:19:16,080 --> 00:19:23,720 It is now your job to take this microphone and hold it against the end of this drill. 437 00:19:24,140 --> 00:19:24,500 Okay. 438 00:19:24,640 --> 00:19:25,140 All right. 439 00:19:25,660 --> 00:19:26,320 Microphone, drill. 440 00:19:26,400 --> 00:19:26,780 You got that? 441 00:19:26,920 --> 00:19:27,980 No, I hold the drill. 442 00:19:28,460 --> 00:19:29,120 You hold it. 443 00:19:29,140 --> 00:19:29,360 Yeah. 444 00:19:29,700 --> 00:19:30,280 You got that? 445 00:19:30,380 --> 00:19:31,020 All right, we figured it out. 446 00:19:31,220 --> 00:19:31,560 You good? 447 00:19:33,800 --> 00:19:34,700 Oh, you are good. 448 00:19:34,820 --> 00:19:35,660 All right, I like him. 449 00:19:36,000 --> 00:19:36,720 I'll keep him. 450 00:19:37,420 --> 00:19:38,980 All right, so pay attention. 451 00:19:39,100 --> 00:19:39,580 Hold it now. 452 00:19:39,660 --> 00:19:40,080 You ready? 453 00:19:41,440 --> 00:19:42,060 Here we go. 454 00:19:56,980 --> 00:19:59,300 And another round of applause for my able helper. 455 00:19:59,380 --> 00:20:00,280 Thank you very much. 456 00:20:05,780 --> 00:20:06,820 All right, yeah. 457 00:20:07,240 --> 00:20:08,860 Darth Vader's theme, of course. 458 00:20:08,860 --> 00:20:09,620 What else do you play? 459 00:20:09,780 --> 00:20:10,040 All right. 460 00:20:10,060 --> 00:20:12,340 Oh, no, I don't have my Darth Vader theme T-shirt on. 461 00:20:13,480 --> 00:20:18,460 But let's talk about why I do something silly like this, right? 462 00:20:18,600 --> 00:20:19,840 Pretty impractical attack. 463 00:20:20,040 --> 00:20:21,980 This industrial control system is air-gapped. 464 00:20:22,140 --> 00:20:25,660 There's no network connection, no financial consequences. 465 00:20:26,440 --> 00:20:29,620 You know, it's an example of firmware in unexpected places. 466 00:20:29,640 --> 00:20:35,560 What I really want people in industrial control systems to take away is this drill is a computer-running software. 467 00:20:36,440 --> 00:20:42,380 And if the drill is a computer-running software, there are a lot of pieces in your important plant. 468 00:20:42,800 --> 00:20:48,360 There are a lot of pieces in your hardware that are computers-running software that you need to think about securing, right? 469 00:20:48,460 --> 00:20:50,040 Drill's probably not top on your list. 470 00:20:50,460 --> 00:20:58,720 But some of the other pieces of hardware in your device, media converters that you don't think of as computers running malware, could be. 471 00:21:00,600 --> 00:21:02,980 I mean, you could do interdiction, right? 472 00:21:03,120 --> 00:21:09,160 Any good intelligence agency can delay your package for a little while and add you a little special gift. 473 00:21:11,580 --> 00:21:12,780 But, you know. 474 00:21:12,800 --> 00:21:15,600 Well, not really any financial consequences. 475 00:21:15,840 --> 00:21:18,460 But the first one I bought looked like this, right? 476 00:21:18,680 --> 00:21:20,020 My budget's kind of small. 477 00:21:20,120 --> 00:21:21,340 I buy cheap stuff off eBay. 478 00:21:21,480 --> 00:21:22,540 The first one I got was broken. 479 00:21:22,840 --> 00:21:24,140 But the computer still worked. 480 00:21:24,520 --> 00:21:32,760 But I noticed, you can't, maybe you can see it, that these big MOSFETs, somebody had lit the magic smoke out, right? 481 00:21:32,920 --> 00:21:34,080 They'd been overheated. 482 00:21:34,080 --> 00:21:34,800 They'd been destroyed. 483 00:21:35,500 --> 00:21:38,180 This is actually a thermal sensor, right? 484 00:21:38,260 --> 00:21:41,500 Even with that in place, it's looking for overheating. 485 00:21:41,500 --> 00:21:44,520 I've seen somebody crack these accidentally. 486 00:21:46,220 --> 00:21:48,600 So, you might have some financial consequences. 487 00:21:48,620 --> 00:21:49,660 You can blow up the drill. 488 00:21:49,900 --> 00:21:50,760 A couple hundred bucks. 489 00:21:52,780 --> 00:21:54,740 Well, LiPos aren't exactly stable. 490 00:21:56,880 --> 00:22:00,460 Occasionally, they catch, who knows what, anybody know what this is? 491 00:22:01,880 --> 00:22:05,160 Yeah, I don't know, yeah, Galaxy, you know, S7, no. 492 00:22:05,780 --> 00:22:06,640 I like this one. 493 00:22:06,660 --> 00:22:09,060 They're at a conference and somebody's laptop is on fire. 494 00:22:09,220 --> 00:22:10,980 And everybody's standing around going, ooh, look at that. 495 00:22:11,660 --> 00:22:13,000 Man, that's bad, isn't it? 496 00:22:15,360 --> 00:22:23,700 If you're in the hobby of doing RC stuff, you generally charge LiPos either in a fireproof bag or something with cinder blocks around it, right? 497 00:22:23,960 --> 00:22:25,040 You know, you know. 498 00:22:25,100 --> 00:22:29,660 So, maybe if you could catch it on fire, there might be some consequences. 499 00:22:29,720 --> 00:22:32,660 But it's largely impractical. 500 00:22:34,000 --> 00:22:36,540 I did come across these things in my research, though. 501 00:22:38,200 --> 00:22:38,680 Research. 502 00:22:39,260 --> 00:22:40,700 Five minutes on Google. 503 00:22:40,860 --> 00:22:41,340 Google. 504 00:22:41,500 --> 00:22:42,340 Come on, research these days. 505 00:22:43,860 --> 00:22:45,580 These two Bosch devices. 506 00:22:46,840 --> 00:22:48,460 These two Bosch. 507 00:22:49,380 --> 00:22:50,200 I'm trying. 508 00:22:51,720 --> 00:22:53,120 These two Bosch devices. 509 00:22:54,320 --> 00:22:57,540 One of them is called BT-Exact and BT-Angle-Exact. 510 00:22:57,660 --> 00:22:59,700 Who knows what the BT stands for? 511 00:23:00,820 --> 00:23:01,380 Bluetooth. 512 00:23:01,680 --> 00:23:02,540 All right. 513 00:23:02,620 --> 00:23:04,520 Well, there goes part of our air gap. 514 00:23:04,780 --> 00:23:07,400 And if you will look at the highlighted text above. 515 00:23:08,240 --> 00:23:10,640 The screwdrivers are locked when they are delivered. 516 00:23:10,640 --> 00:23:15,360 And can be unlocked only by the access point exact connect. 517 00:23:15,600 --> 00:23:17,560 So, you can't even use it until you connect it. 518 00:23:19,120 --> 00:23:23,940 The system can talk to and take commands from external devices like a PLC. 519 00:23:24,060 --> 00:23:26,600 Which might be an important part of your control system. 520 00:23:26,820 --> 00:23:31,940 So, this device is going to communicate to your control system. 521 00:23:33,020 --> 00:23:38,240 By the way, why would you want to communicate with devices like wrenches and drills? 522 00:23:38,380 --> 00:23:38,600 And. 523 00:23:40,640 --> 00:23:42,240 Maybe you want to, yeah, oh, yeah. 524 00:23:42,540 --> 00:23:46,040 Sometimes to know where they are. 525 00:23:46,920 --> 00:23:52,940 What if you're making very high tolerance stuff like vehicle suspensions on big trucks. 526 00:23:53,020 --> 00:23:54,820 Like a plant next to where I live does. 527 00:23:54,980 --> 00:23:57,640 Or turbine engines on a jet aircraft. 528 00:23:58,600 --> 00:23:59,300 Excuse me? 529 00:24:00,180 --> 00:24:02,100 Yeah, precision torque, right? 530 00:24:02,180 --> 00:24:03,500 You'll have a torque requirement. 531 00:24:03,680 --> 00:24:06,380 You need to make sure every nut is appropriately tightened. 532 00:24:06,680 --> 00:24:10,080 And you might be checking battery life and RPM and usage. 533 00:24:10,180 --> 00:24:10,460 So. 534 00:24:10,640 --> 00:24:14,200 So, there are some valid reasons to want to communicate with these tools. 535 00:24:17,180 --> 00:24:22,640 And I also saw this available at your favorite home construction store. 536 00:24:23,790 --> 00:24:25,840 Guess what this device comes with? 537 00:24:26,760 --> 00:24:27,520 All right. 538 00:24:27,660 --> 00:24:29,280 It's own cell phone app. 539 00:24:30,360 --> 00:24:33,960 Because you need an app. 540 00:24:37,350 --> 00:24:38,600 I'm lost here. 541 00:24:39,720 --> 00:24:40,420 Where? 542 00:24:40,420 --> 00:24:48,100 Where you can monitor the RPM, set the torques, and it says it will keep track of the last 543 00:24:48,100 --> 00:24:52,760 place it saw the device for you, battery charge. 544 00:24:53,180 --> 00:24:54,660 And where do you think it stores this information? 545 00:24:56,860 --> 00:24:57,700 In the cloud. 546 00:24:59,640 --> 00:25:00,480 In the cloud. 547 00:25:01,380 --> 00:25:06,260 So now maybe you have some connection between your device and whatever. 548 00:25:06,920 --> 00:25:07,300 You know. 549 00:25:07,340 --> 00:25:10,340 And we've seen denial of service attacks blocking out. 550 00:25:10,340 --> 00:25:13,060 Parts of the internet from tons and tons of small devices. 551 00:25:13,460 --> 00:25:21,080 If you're in an industrial control system, the network latency in messaging is very important. 552 00:25:21,380 --> 00:25:21,560 All right. 553 00:25:21,600 --> 00:25:27,300 You might have maybe a five millisecond latency requirement because you are controlling a 554 00:25:27,300 --> 00:25:32,340 very large, dangerous piece of equipment and if you can't monitor it, feedback, change 555 00:25:32,340 --> 00:25:35,640 its position, see where it is every five milliseconds, things can go wrong. 556 00:25:36,240 --> 00:25:38,940 And if you're looking for a denial of service on your network. 557 00:25:40,480 --> 00:25:41,920 Who looks at the drill first? 558 00:25:42,720 --> 00:25:43,120 Yeah. 559 00:25:43,180 --> 00:25:43,860 Not even me. 560 00:25:44,060 --> 00:25:44,360 Right? 561 00:25:44,580 --> 00:25:45,020 So. 562 00:25:45,160 --> 00:25:46,000 But it can come. 563 00:25:46,260 --> 00:25:46,720 And it's not. 564 00:25:46,820 --> 00:25:47,040 Again. 565 00:25:47,240 --> 00:25:48,560 It really isn't the drill. 566 00:25:48,720 --> 00:25:50,100 The drill is the extreme example. 567 00:25:50,320 --> 00:25:50,500 Right? 568 00:25:50,520 --> 00:25:51,660 The drill is the fun part. 569 00:25:51,860 --> 00:25:55,880 But it could be from a lot of different devices that you don't expect. 570 00:25:56,140 --> 00:25:59,340 It's firmware and computers in places that you don't expect. 571 00:26:01,220 --> 00:26:06,560 And finally, you have a chance to listen to my favorite rant. 572 00:26:08,180 --> 00:26:10,320 What is the difference between firmware and computers? 573 00:26:10,320 --> 00:26:11,020 Firmware and software? 574 00:26:14,040 --> 00:26:14,800 Yes, sir. 575 00:26:14,920 --> 00:26:15,580 In the back. 576 00:26:16,180 --> 00:26:16,600 Nothing. 577 00:26:17,280 --> 00:26:18,560 You win a prize. 578 00:26:19,040 --> 00:26:19,340 Dang. 579 00:26:19,360 --> 00:26:20,160 Do I have a prize? 580 00:26:20,360 --> 00:26:21,320 I'll have to look for a prize. 581 00:26:23,580 --> 00:26:24,420 Basically, nothing. 582 00:26:25,000 --> 00:26:28,860 At one time, for most considerations, call it nothing. 583 00:26:29,020 --> 00:26:34,100 At one time, we might have said an important consideration was that firmware, for instance, 584 00:26:34,160 --> 00:26:35,240 you couldn't change it. 585 00:26:35,920 --> 00:26:36,340 Right? 586 00:26:36,480 --> 00:26:40,300 We looked at, you know, the original ROMs, like MAST ROMs and whatever, and, you know, 587 00:26:40,300 --> 00:26:45,760 one-time programmable. You really couldn't change those. And so that might make a significant 588 00:26:45,760 --> 00:26:53,160 difference sort of for firmware in terms of security. But even think about that for a 589 00:26:53,160 --> 00:26:59,640 second. Let's say you have software on a device, and it's software, that you cannot change 590 00:26:59,640 --> 00:27:08,980 and you discover a vulnerability. Right? Best case, you will always have that vulnerability. 591 00:27:08,980 --> 00:27:15,340 You can't fix it. Who believes software is perfect? You guys are way smarter than you 592 00:27:15,340 --> 00:27:25,020 look. So I have a couple of ‑‑ I have people 593 00:27:25,020 --> 00:27:25,640 that work 594 00:27:25,640 --> 00:27:33,560 work in my company, a programming team. And I can come up to them and I say, hey, I've 595 00:27:33,560 --> 00:27:38,840 got two projects for you to work on. I have the software project and I have this firmware 596 00:27:38,840 --> 00:27:42,960 project. And what I need is you all to divide yourself out because I need all the perfect 597 00:27:42,960 --> 00:27:47,880 programmers over here on the firmware side and I want everybody else here on the software 598 00:27:47,880 --> 00:27:55,340 side. So after I have this talk, who ends up on this side? Nobody. Or, yeah, you. The 599 00:27:55,340 --> 00:28:02,500 liars, right? Either way, it's software. It has as many vulnerabilities or problems 600 00:28:02,500 --> 00:28:08,100 as anything else. So that's my rant. Never say firmware again, at least from a security 601 00:28:08,100 --> 00:28:12,960 perspective. There really isn't a significant difference there. It's software. It has vulnerabilities. 602 00:28:13,460 --> 00:28:19,040 It can be overwritten. It can damage things. People sometimes say, oh, firmware. Oh, must 603 00:28:19,040 --> 00:28:23,780 be perfect. Can't change it. We're done. We're going to go someplace else. No. No. 604 00:28:25,980 --> 00:28:30,300 And it's sort of led to my rule of thumb. I think this audience probably knows it, but 605 00:28:30,300 --> 00:28:36,880 industrial control system is not as much, those folks working there, is that, look, 606 00:28:36,960 --> 00:28:41,980 if it plugs in or if it has batteries and you bought it in the last five years, it's 607 00:28:41,980 --> 00:28:47,860 a computer. All right? There's nothing that you could buy that plugs in or has batteries 608 00:28:47,860 --> 00:28:53,540 that isn't a computer. I was surprised seeing, you know, this is a battery and a switch, 609 00:28:53,700 --> 00:28:54,000 right? 610 00:28:54,000 --> 00:29:01,700 right? Not a more powerful computer. Oh, sorry, this is yours. Thank you very much for helping 611 00:29:01,700 --> 00:29:09,980 me. You will. Or if not, you can give it to the guy who needs the prize in the back. All 612 00:29:09,980 --> 00:29:17,680 right, so it's a computer. It's a computer. And finally, my analysis after tearing down 613 00:29:17,680 --> 00:29:23,480 this tool is that it had very nice copper heat sinks. Copper conducts better than aluminum. 614 00:29:23,480 --> 00:29:28,120 I thought they were very fine. It has thermal sensors for the battery. It's looking for 615 00:29:28,120 --> 00:29:34,720 overload and overload on the MOSFETs. That's a good thing. The PC board has a nice conformal 616 00:29:34,720 --> 00:29:40,880 coating. That's a plastic kind of overspray that protects the board from harsh environments. 617 00:29:41,020 --> 00:29:45,140 So particularly in industrial control systems, those computers don't live in server rooms. 618 00:29:45,520 --> 00:29:52,280 They get bolted to things that shake and have dust and sand and are too hot. So something 619 00:29:52,280 --> 00:29:53,460 like, you know, this can avoid... 620 00:29:53,480 --> 00:29:59,160 Things like salt spray and dust and help protect it. I thought that was good. I thought 621 00:29:59,160 --> 00:30:03,280 it was good that they didn't... In some instances, you can change a fuse in the device and make 622 00:30:03,280 --> 00:30:13,040 the firmware write-only. How much protection is that? Notice I said write-only. What does 623 00:30:13,040 --> 00:30:18,200 that mean if I get this thing and I want to know if it's been modified somehow? I can't 624 00:30:18,200 --> 00:30:22,860 read it, right? So one of the things that we did was we pulled the firmware off to check 625 00:30:23,480 --> 00:30:29,200 if it was okay. How long would it take me to do this? You know, if I took it to the 626 00:30:29,200 --> 00:30:34,360 bathroom with me in a plant, 10 minutes, 5, 10, something like that, take the screws 627 00:30:34,360 --> 00:30:37,740 out. It takes as long as it takes, but the screws back in. 628 00:30:40,280 --> 00:30:47,480 So by not making the firmware write-only, we can validate, verify that this piece of 629 00:30:47,480 --> 00:30:51,780 software running this important control system is still valid. I think that's a very good 630 00:30:51,780 --> 00:30:52,840 thing to be able to do that. 631 00:30:53,660 --> 00:30:58,240 We also have a group of people that help do patches and look up patches for industrial 632 00:30:58,240 --> 00:31:02,880 control systems. And I went to them and I'm like, would you check for me, has there been 633 00:31:02,880 --> 00:31:07,240 any new firmware released for this drill? And that's kind of what they do for a living. 634 00:31:07,340 --> 00:31:12,140 And they're like, nope, can't find any. I'm like, okay. Some things don't have patches. 635 00:31:12,220 --> 00:31:18,020 I'm not going to fault people for not delivering patches. I don't see anything incredibly wrong 636 00:31:18,020 --> 00:31:19,480 necessarily with it. 637 00:31:21,020 --> 00:31:23,300 But if I did have an ask... 638 00:31:23,300 --> 00:31:29,380 If I did have an ask for this manufacturer, it would be to publish the hash for the firmware 639 00:31:29,380 --> 00:31:35,200 that they've installed. Now, I'm taking my good firmware because I have a couple of 640 00:31:35,200 --> 00:31:38,780 these drills and that's what it came with and I assumed that they matched, that it was 641 00:31:38,780 --> 00:31:43,260 the right one. But to really be sure, I'd like to see a signed hash from the manufacturer. 642 00:31:43,660 --> 00:31:50,820 So that would be the one thing that they could really do better. Maybe execute signed-only 643 00:31:50,820 --> 00:31:52,400 code. That would probably work. 644 00:31:52,400 --> 00:31:57,820 But the processing power and storage in this chip is pretty small, so that might be too 645 00:31:57,820 --> 00:32:00,360 much of an ask. But they'd at least publish the hash. 646 00:32:00,860 --> 00:32:06,420 And I also like that they make these headers easily available, somewhat easily available. 647 00:32:06,940 --> 00:32:13,800 I would almost like to see them on the outside because I'm more interested in being able 648 00:32:13,800 --> 00:32:15,660 to verify that my device is right. 649 00:32:15,980 --> 00:32:19,820 Remember, we said somebody might capture it along the way, somebody might take it to 650 00:32:19,820 --> 00:32:20,280 the restroom. 651 00:32:20,280 --> 00:32:22,260 room, not this device 652 00:32:22,260 --> 00:32:24,060 in particular. There's a computer 653 00:32:24,060 --> 00:32:26,140 in this thing, and there are computers in these 654 00:32:26,140 --> 00:32:27,020 cameras, and there's 655 00:32:27,920 --> 00:32:30,000 computers all over the place. In an 656 00:32:30,000 --> 00:32:31,860 industrial plant, that might mean the difference 657 00:32:31,860 --> 00:32:34,060 between life and death. I want to make sure that they 658 00:32:34,060 --> 00:32:35,940 are, be able to check that they are okay. 659 00:32:36,640 --> 00:32:37,840 So, if you make 660 00:32:38,800 --> 00:32:40,160 programming headers easily available, 661 00:32:40,320 --> 00:32:41,840 and often they are pretty easily available. 662 00:32:41,980 --> 00:32:44,240 This one didn't have pins on it. 663 00:32:44,300 --> 00:32:46,060 That's fairly easy. A lot of them already have 664 00:32:46,060 --> 00:32:48,200 pins available, JTAG parts, 665 00:32:48,300 --> 00:32:49,920 because they have to program them when they come out. 666 00:32:52,280 --> 00:32:53,860 All right. We have 667 00:32:53,860 --> 00:32:56,020 a couple more minutes. I want 668 00:32:56,020 --> 00:32:58,040 to tell you one more thing. This is mostly 669 00:32:58,040 --> 00:33:00,100 for my industrial control system audience, 670 00:33:00,400 --> 00:33:01,860 of which there are a few, 671 00:33:02,060 --> 00:33:02,880 is that, 672 00:33:04,280 --> 00:33:05,960 well, actually it's for both. 673 00:33:06,940 --> 00:33:08,200 How do we 674 00:33:08,200 --> 00:33:10,180 protect these things 675 00:33:10,180 --> 00:33:12,000 from a security point of view? Well, we talked about 676 00:33:12,000 --> 00:33:13,360 being able to validate the firmware. 677 00:33:13,900 --> 00:33:15,180 Now, let me 678 00:33:15,180 --> 00:33:17,680 plant one idea in your mind. 679 00:33:18,720 --> 00:33:20,100 This is a computer 680 00:33:20,100 --> 00:33:21,620 running software. 681 00:33:24,540 --> 00:33:25,380 So, ignoring 682 00:33:25,860 --> 00:33:26,640 the specifics 683 00:33:27,780 --> 00:33:28,680 of this device, 684 00:33:29,540 --> 00:33:31,360 tell me, generically, 685 00:33:31,900 --> 00:33:33,980 how do you protect a computer 686 00:33:33,980 --> 00:33:35,740 running software? What tools do you have? 687 00:33:36,680 --> 00:33:37,220 Excuse me? 688 00:33:38,100 --> 00:33:39,800 Signing. If you can sign the code, right? 689 00:33:39,940 --> 00:33:41,780 Maybe you could sign code on it. Might not have enough 690 00:33:41,780 --> 00:33:43,720 processing power, right? What else can we do? 691 00:33:45,580 --> 00:33:46,000 Antivirus, 692 00:33:46,100 --> 00:33:47,860 right? I might 693 00:33:47,860 --> 00:33:49,720 ask my vendor to provide 694 00:33:50,100 --> 00:33:51,660 antivirus. They might not be able to support it, 695 00:33:51,700 --> 00:33:52,980 but I can at least ask, right? 696 00:33:53,540 --> 00:33:55,060 Who runs antivirus on this? 697 00:33:56,540 --> 00:33:57,720 At least one, right? 698 00:33:58,080 --> 00:33:59,720 I do, except this is my burner. 699 00:34:00,900 --> 00:34:01,620 Right, so you can 700 00:34:01,620 --> 00:34:03,580 run AV on these devices. So, if 701 00:34:03,580 --> 00:34:05,640 you can run AV, run it. And if you're 702 00:34:05,640 --> 00:34:07,160 buying, you know, 10,000 703 00:34:07,160 --> 00:34:09,420 whatever devices it is for your plant, 704 00:34:09,600 --> 00:34:11,000 at least ask the manufacturer 705 00:34:11,460 --> 00:34:13,660 if you can run AV on it. They may not be able 706 00:34:13,660 --> 00:34:15,600 to provide it, but maybe. What else 707 00:34:15,600 --> 00:34:17,440 do we do to protect control, to 708 00:34:17,440 --> 00:34:19,460 protect computers running software? 709 00:34:20,800 --> 00:34:23,820 Protect the network, right? 710 00:34:23,980 --> 00:34:25,560 If this thing isn't connected, 711 00:34:25,720 --> 00:34:27,640 the other ones are, right? We use firewall 712 00:34:27,640 --> 00:34:29,500 rules, firewalls and firewall rules 713 00:34:29,500 --> 00:34:31,920 and, right, and IDSs 714 00:34:31,920 --> 00:34:33,600 to protect the network. 715 00:34:34,660 --> 00:34:35,460 Anything else? 716 00:34:37,340 --> 00:34:37,980 Patches, right? 717 00:34:38,060 --> 00:34:39,840 That too. So, we're going to check to see 718 00:34:39,840 --> 00:34:41,820 if there are any known vulnerabilities and we're going to patch 719 00:34:41,820 --> 00:34:43,760 these devices. So, the final 720 00:34:43,760 --> 00:34:46,040 takeaways are drills are fun. No, wait a minute. 721 00:34:46,160 --> 00:34:47,940 Are that everything's 722 00:34:47,940 --> 00:34:49,040 a computer running software. 723 00:34:51,100 --> 00:34:52,060 And even 724 00:34:52,060 --> 00:34:53,820 if that's what you're faced with, no matter how 725 00:34:53,820 --> 00:34:56,100 bizarre they look, you have tools 726 00:34:56,100 --> 00:34:57,100 to help protect them. 727 00:34:57,700 --> 00:34:59,820 If you can't do exactly what you want, 728 00:34:59,900 --> 00:35:01,820 if you can't run AV 729 00:35:01,820 --> 00:35:03,860 on here, you want to be creative 730 00:35:03,860 --> 00:35:05,840 and do something else, like run 731 00:35:05,840 --> 00:35:07,840 firewall rules in your wireless 732 00:35:07,840 --> 00:35:09,700 or so forth. You have to be a little more 733 00:35:09,700 --> 00:35:11,460 thoughtful about how to protect it. 734 00:35:11,560 --> 00:35:14,060 But you have the opportunity to do that. 735 00:35:14,140 --> 00:35:15,800 Be creative. With that, 736 00:35:15,920 --> 00:35:17,980 thank you very much. I'm not... 737 00:35:17,980 --> 00:35:19,520 Oh, wait a minute. I took the 738 00:35:19,720 --> 00:35:21,260 charger apart, too. Anybody... 739 00:35:21,260 --> 00:35:22,420 Any idea what this is? 740 00:35:24,440 --> 00:35:25,320 Another microcontroller. 741 00:35:25,520 --> 00:35:27,680 All right. Well, I'm Monte. Thank you all 742 00:35:27,680 --> 00:35:29,440 very much. Catch me online somewhere. 743 00:35:29,580 --> 00:35:31,340 I'm here the rest of the week. 744 00:35:31,420 --> 00:35:33,400 Thank you.