[00:00.000 --> 00:06.000] Hi, I'm Ante. Security architect, FoxGuard Solutions. We do industrial control system security stuff. [00:07.600 --> 00:10.640] And... this is what I think my job is like. [00:11.660 --> 00:13.000] No? Yeah? [00:13.380 --> 00:15.280] In your job like this? Everybody. [00:16.340 --> 00:19.100] And this is what my mom thinks my job is like. [00:20.700 --> 00:24.460] And this is what other people think my job is like. [00:26.180 --> 00:29.720] This is what I wish my job was like. [00:32.140 --> 00:36.500] And this is what my job is really like. [00:36.920 --> 00:43.480] Do some security research, look at new attacks, do some training classes, lots of conference talks, new product. [00:44.040 --> 00:47.900] And look at industry requirements and industrial control systems. [00:47.900 --> 00:51.220] Where bits meet atoms, where things happen. [00:52.580 --> 00:54.700] So, let's get started. [00:54.700 --> 00:57.620] We're going to talk about things in light of... [00:57.620 --> 01:00.580] Anybody here work in industrial control systems? [01:01.080 --> 01:02.820] Oh, yeah? We got a handful. [01:03.140 --> 01:06.200] Anybody heard the term industrial control systems before? [01:06.960 --> 01:08.420] A few more. Beautiful. [01:08.420 --> 01:09.800] Well, now you're an expert. [01:09.800 --> 01:14.600] Industrial control systems is the part of security that really matters. [01:14.640 --> 01:17.200] Is where bits meet atoms, things move. [01:17.200 --> 01:22.860] This is electricity and manufacturing and your water and your power. [01:22.860 --> 01:24.840] This is where your iPhones come from. [01:27.320 --> 01:30.040] And we're going to take a look at some tools. [01:30.080 --> 01:35.060] So, since I am thinking of things in terms of industrial control systems... [01:35.060 --> 01:36.820] Let's get the mic. [01:37.800 --> 01:39.300] Industrial control systems. [01:39.300 --> 01:44.320] If you're going to look at this as an industrial control system, what are the mechanics involved? [01:44.320 --> 01:51.520] It's like, well, it looks for some button pushes, does some calculations and it displays something on the screen. [01:51.520 --> 01:53.160] That's its I.O., right? [01:53.160 --> 01:57.720] Industrial control, reading things, thinking about things and doing things. [01:58.220 --> 01:59.740] Fun enough? [02:01.680 --> 02:07.160] As an industrial control system, what does this thing do? [02:08.540 --> 02:09.540] Do what? [02:10.200 --> 02:12.280] It opens the box. [02:12.980 --> 02:13.800] What else? [02:13.800 --> 02:15.760] Industrial control system. What? [02:15.800 --> 02:16.740] Makes holes. [02:17.660 --> 02:19.700] Yeah, but think about the operation. [02:19.740 --> 02:21.860] Bits, atoms, movement. [02:22.120 --> 02:23.180] What's it doing? [02:23.980 --> 02:29.000] All right, so this is a miniature industrial control system that is monitoring the rate of the spin. [02:29.080 --> 02:29.500] All right? [02:29.500 --> 02:30.200] That's one of the things. [02:30.200 --> 02:33.680] It's actually controlling with the pulse width modulation output. [02:33.680 --> 02:35.120] What else is it doing? [02:40.200 --> 02:41.820] Input. What kind of input? [02:42.960 --> 02:46.260] Yeah, so there's a variable resistor here in this trigger. [02:46.260 --> 02:47.940] And it's reading that value. [02:47.940 --> 02:52.460] It's reading analog value, making some calculations to control the control system. [02:52.540 --> 02:53.800] Do we see anything else? [02:54.220 --> 02:55.020] Light. [02:55.180 --> 02:56.700] Light, so we have a light on the front. [02:56.700 --> 02:57.400] It gets timed. [02:57.400 --> 02:58.680] Look, no power. [02:58.740 --> 03:00.320] All right, we got light on the front. [03:00.360 --> 03:01.920] What about on the sides here? [03:03.820 --> 03:05.880] Yeah, so here's a display. [03:05.880 --> 03:07.200] This is a voltage display. [03:07.200 --> 03:08.600] So it's measuring voltage. [03:09.240 --> 03:11.660] It's also measuring temperature of this battery system. [03:11.660 --> 03:15.640] And it's measuring temperature of MOSFETs inside. [03:15.640 --> 03:21.540] So as far as a very small representation of an industrial control system, this is it. [03:21.540 --> 03:23.640] It's measuring different kinds of inputs. [03:23.640 --> 03:26.120] It's controlling different kinds of outputs. [03:28.860 --> 03:33.440] So which of these two systems do you think is more powerful? [03:35.100 --> 03:37.640] Thoughts? Comments? Yes? No? [03:45.220 --> 03:47.640] Now which one do you think is more powerful? [03:52.080 --> 03:53.090] Yeah, well... [03:54.260 --> 03:59.620] So, a little bit of fun, but actually the drill is a more powerful control system. [03:59.620 --> 04:01.700] So, this calc... Excuse me? [04:03.620 --> 04:04.780] Physically. [04:05.280 --> 04:10.440] Also, look, the calculator clock rate is 6 MHz and the drill, it's 8 MHz. [04:10.560 --> 04:18.080] Besides that, the processor in the calculator takes several clock cycles to do an instruction. [04:18.080 --> 04:20.680] So, 7, 19, 14, 15. [04:20.680 --> 04:23.400] And this is just sort of a random sampling of instructions. [04:23.420 --> 04:28.480] This drill basically does every operation in one instruction cycle. [04:28.480 --> 04:32.360] So, computationally it's a lot more powerful than the calculator as well. [04:32.360 --> 04:41.080] Besides its additional functionality of sort of dedicated pulse width modulation channels and its ability to read analog inputs. [04:41.080 --> 04:50.180] So, if you start looking at the actual power of the system, the drill is a lot more complex system and a lot more one than I expected, right? [04:50.180 --> 04:52.840] It's a battery powered drill. [04:52.840 --> 04:57.040] Who expects a computer in the middle of there? [04:57.040 --> 05:04.820] So, if you were going to attack a control system, let's say this one in particular, you might look to see what's inside of it first. [05:04.820 --> 05:06.980] This is a pretty standard drill. [05:07.220 --> 05:14.060] It has a, let's see, we got a PC board and some power connectors and a motor, a transmission. [05:18.440 --> 05:26.800] We look at the circuit board and we look up these MOSFETs, by the way, that controls the power to the motor that makes the drill run. [05:26.820 --> 05:32.880] They're rated at 202 amps continuous. [05:33.000 --> 05:36.140] And if you do anything with electronics, that's a fair amount of power. [05:36.400 --> 05:39.860] They will also support 800 amps pulse. [05:40.260 --> 05:42.520] So, that's pretty impressive. [05:44.720 --> 05:51.500] You might also need a little help reverse engineering the system as a whole if you're going to look at software. [05:51.760 --> 06:01.480] Because the hardware provides input and it depends upon the way the drill is set up and the way the circuit board is set up. [06:01.700 --> 06:03.460] So, you take a look around. [06:04.500 --> 06:07.840] I found an ATmega 32 pin. [06:07.840 --> 06:18.100] And when I first saw this 32 pin microcontroller, I'm like, you know, they make like eight pin lines and why in the world are they putting this thing in here? [06:18.380 --> 06:26.280] But if you go through and trace out all of those circuits, basically almost all of them, almost all the pins are in use. [06:26.380 --> 06:36.380] It's running front LEDs and power LEDs and two MOSFETs, MOSFET temperature, battery temperature, voltage, trigger, comm, enable pins. [06:36.380 --> 06:41.280] So, it's using a lot more of the capability than you expected even in this simple device. [06:41.760 --> 06:44.740] It's using a lot of computational resources. [06:46.600 --> 06:47.380] All right. [06:47.380 --> 06:51.760] Now, for a little review before we... calculator parts. [06:52.360 --> 06:55.260] Part of a review before we continue. [06:56.820 --> 06:57.720] All right. [06:57.720 --> 06:58.720] Audience participation. [06:58.720 --> 06:59.860] What's RAM? [07:01.280 --> 07:02.680] Random access memory. [07:02.680 --> 07:03.140] Beautiful. [07:03.140 --> 07:05.160] You read right, you turn it off, it goes away. [07:05.160 --> 07:07.360] What is ROM? [07:08.080 --> 07:09.160] Read-only memory. [07:09.160 --> 07:09.400] All right. [07:09.400 --> 07:11.340] So, let's talk about early ROM. [07:11.340 --> 07:13.480] Early ROM is masked ROM. [07:13.880 --> 07:17.040] And it's manufactured that way at the factory. [07:17.040 --> 07:20.760] So, you say, hey, I want a bunch of ROMs that have this program on here. [07:21.080 --> 07:29.140] And you pay them $100,000 and they'll set up the mask and they will make those chips with that program and they will send them to you, right? [07:29.140 --> 07:31.500] You have to buy a big lot to make this profitable. [07:31.500 --> 07:37.580] And now you have, I don't know, 10,000 of these chips programmed just the way you want them. [07:38.280 --> 07:42.260] What do you do with those chips if there was a bug in your software? [07:45.060 --> 07:46.380] Not bad. [07:46.820 --> 07:48.180] Put them in a landfill. [07:48.180 --> 07:49.760] Sell them and don't tell anybody. [07:51.460 --> 07:53.180] You are my head of marketing. [07:54.780 --> 07:55.660] Yeah. [07:56.420 --> 07:58.980] Or, I like to say, throw them in the ocean. [07:58.980 --> 08:02.260] Because you can only write to them once. [08:02.260 --> 08:03.240] They are made at the factory. [08:03.240 --> 08:08.640] And now you have to call up the factory again and say, hey, for another $100,000, can you set me up another mask and run me another batch of these? [08:08.680 --> 08:13.500] So, we decided that that didn't work very well. [08:13.500 --> 08:15.840] And we come up with things like PROM. [08:15.840 --> 08:17.800] So, what's PROM stand for? [08:19.660 --> 08:23.200] So, this is programmable read-only memory. [08:23.200 --> 08:29.700] So, you get these chips that are typically, let's say, one-time programmable. [08:29.700 --> 08:30.840] You get the chip. [08:30.880 --> 08:32.780] You can put your piece of code on it. [08:32.780 --> 08:35.620] And then you can put it in your device. [08:37.280 --> 08:44.220] If that chip has vulnerabilities or problems in the software, what do you do with that chip? [08:48.640 --> 08:50.340] Yes, you throw it in the landfill. [08:50.340 --> 08:56.900] But you only have one, because the next chip you get off the shelf, you can program and put it in your device, right? [08:56.900 --> 09:01.220] So, that works a lot quicker and easier, and it's more cost-effective. [09:01.500 --> 09:03.500] So, manufacturers like that. [09:03.880 --> 09:07.000] But you go on to the next level, EPROM. [09:07.000 --> 09:08.240] What's EPROM? [09:09.980 --> 09:14.620] Yeah, so this is erasable programmable read-only memory. [09:15.380 --> 09:18.060] And typically, they were UV erasable. [09:18.060 --> 09:21.580] So, if you look here, this has a little window in it. [09:22.380 --> 09:26.040] A UV light will erase it, set it all back to ones. [09:26.180 --> 09:29.300] And you can change some of those to zeros and end up with a program. [09:30.300 --> 09:33.720] Now, if there is something wrong with this chip, what can we do with it? [09:35.400 --> 09:36.740] Yeah, you can pull it out. [09:36.740 --> 09:39.580] You can shine some light on it and reprogram it and put it back in. [09:39.580 --> 09:41.660] You don't even have to throw anything away. [09:44.420 --> 09:47.280] But you do have to pull it out and program it. [09:48.060 --> 09:51.200] So, EEPROM. What's EEPROM? [09:53.040 --> 09:58.300] Yeah, electrically erasable programmable read-only memory. [09:58.300 --> 10:01.800] So, now you can program this thing in the circuit. [10:01.800 --> 10:03.300] You don't have to pull it out. [10:03.300 --> 10:07.280] You don't have to shine UV light on it, you know, like you're curing your nails or something. [10:08.180 --> 10:12.720] And if you have a problem, you can fix it in the device. [10:13.420 --> 10:15.040] So, that's quite a bit easier. [10:15.040 --> 10:17.240] Now, you think as a manufacturer, that's great. [10:17.320 --> 10:19.880] We screwed something up, we need to update something. [10:20.780 --> 10:23.800] We're all good. We can program it back in place. [10:24.420 --> 10:25.020] All right. [10:25.160 --> 10:28.680] Now, I'm depending on you all. [10:28.680 --> 10:30.440] What does flash stand for? [10:34.460 --> 10:35.340] What? [10:35.960 --> 10:37.780] You all are a quiet group. [10:38.200 --> 10:39.080] Flash? [10:39.080 --> 10:40.880] No, flash doesn't stand for anything. [10:40.880 --> 10:42.320] It's a marketing term. [10:43.080 --> 10:46.440] So, flash is basically a version of EEPROM. [10:46.440 --> 10:47.280] It tends to be larger. [10:47.280 --> 10:48.580] You write it in larger blocks. [10:48.920 --> 10:53.040] It will sustain fewer write cycles before it gets destroyed. [10:53.040 --> 10:55.920] But it's basically a marketing term. [10:56.060 --> 10:58.960] And that's how we end up. [10:58.960 --> 11:03.400] That's the short version of how we end up with devices that you can program sort of by default. [11:03.400 --> 11:04.740] It saves you money. [11:04.740 --> 11:06.440] It saves you time. [11:06.440 --> 11:10.040] So, that's a review. [11:10.040 --> 11:18.920] For the particular microcontroller in this drill, we see it has some EEPROM, which is designed to be written in smaller blocks and more time. [11:19.080 --> 11:19.720] More time. [11:19.720 --> 11:20.440] Some RAM. [11:20.440 --> 11:21.700] Some flash. [11:22.960 --> 11:30.020] And in system programming, we don't have to take it out and clip some clip on it and hook some programmer up to it. [11:30.020 --> 11:31.960] It's much easier to set up. [11:31.960 --> 11:34.340] You probably buy your hardware. [11:34.340 --> 11:35.620] You get it shipped to you. [11:35.620 --> 11:41.220] And then back at your plant, you can blow on the latest firmware when you get the device. [11:41.220 --> 11:42.460] Much easier. [11:42.460 --> 11:48.120] That allows for the updates that you may have changed or made to your firmware, your software. [11:49.160 --> 11:54.500] And in some cases, maybe account for some minor manufacturing difficulties. [11:54.500 --> 11:55.860] You might be able to adjust for them. [11:55.860 --> 11:56.700] Maybe. [11:57.020 --> 11:58.240] In firmware. [12:00.800 --> 12:02.680] So, we take it apart. [12:03.080 --> 12:06.640] And we're looking at how to manipulate it. [12:06.640 --> 12:09.680] And it would be great if we could find an SPI port. [12:09.680 --> 12:11.200] Typically six pins. [12:11.220 --> 12:12.180] And what do we see here? [12:12.180 --> 12:12.960] Six pins. [12:12.960 --> 12:16.660] And as a matter of fact, half the work is already done for us. [12:16.660 --> 12:21.600] Because there is a reset, a clock, and 3.3 volts. [12:21.660 --> 12:22.960] That's pointing to something else. [12:22.960 --> 12:25.280] So, three of our six pins are already labeled. [12:25.820 --> 12:28.740] We only have to figure out the other three, and we're in. [12:34.160 --> 12:35.580] Yeah, we need a couple. [12:35.580 --> 12:37.320] We need MIMO and MOMI. [12:37.320 --> 12:42.320] But if you turn the circuit board over, now you have MOMI and MIMO on the ground. [12:42.320 --> 12:44.100] So, they labeled the other three for you. [12:44.100 --> 12:45.040] That's great. [12:45.040 --> 12:46.060] That's awesome. [12:47.000 --> 12:48.260] You need a programmer. [12:48.260 --> 12:49.260] I was in a hurry. [12:49.260 --> 12:52.440] I built one out of a teensy iHead laying around. [12:52.440 --> 12:56.200] And put a 3D printed case and got some free software. [12:56.840 --> 13:01.140] But if you want to buy them, they're available in all your favorite sources. [13:02.600 --> 13:04.180] These are great. [13:04.220 --> 13:05.840] $3.36. [13:06.600 --> 13:07.880] Shipped to your door. [13:08.320 --> 13:09.760] On the slow boat. [13:13.570 --> 13:17.170] So, I pulled the software off of this device. [13:18.290 --> 13:21.930] And did a little reverse engineering. [13:21.930 --> 13:23.410] Maybe a little disassembly, right? [13:23.410 --> 13:26.010] So, you end up with assembly code all ones and zeros. [13:26.010 --> 13:26.950] Hard to figure out. [13:26.950 --> 13:30.430] But you're going to disassemble it somehow to make it a little easier. [13:30.430 --> 13:32.070] There are a couple of free ones. [13:32.390 --> 13:35.450] You know, AVR, OBJ dump. [13:35.450 --> 13:36.310] That's kind of cool. [13:36.310 --> 13:38.750] I read about this cool one, ReAVR. [13:40.710 --> 13:44.230] But it was kind of from a sketchy site from Russia. [13:44.230 --> 13:46.630] And I didn't really want to install it on my computer. [13:47.290 --> 13:48.810] So, I talked to my buddy. [13:48.810 --> 13:52.710] And I said, can you install this software and rerun this file through it? [13:52.710 --> 13:53.670] And he was like, yeah. [13:53.670 --> 13:54.790] I'm like, sweet. [13:55.190 --> 13:57.350] I'm too paranoid for that stuff. [13:57.850 --> 13:59.630] And other commercial software. [13:59.830 --> 14:03.470] But now you end up with just sort of, you know, this side, right? [14:03.470 --> 14:04.730] The assembly language instructions. [14:04.730 --> 14:06.570] Which still may not mean a lot. [14:06.770 --> 14:14.210] And worked through it quite a bit to try to figure out what these registers and what the instructions meant and what they did. [14:14.210 --> 14:15.950] This is just a brief section of it. [14:15.950 --> 14:18.530] So, made a few comments as I went along. [14:18.670 --> 14:29.730] I thought, one of the reasons I just pulled this tiny section of code was, this right here is setting up to write to the EEPROM. [14:30.670 --> 14:32.970] And this is the EEPROM write. [14:32.970 --> 14:42.370] So, this drill has the capability of changing the EEPROM, right? [14:42.370 --> 14:43.650] It can write things. [14:43.650 --> 14:45.450] It can keep track of things. [14:47.290 --> 14:52.450] I also asked my friend, who I was working with at the time, what do you think this thing is writing? [14:52.450 --> 14:53.950] What's it keeping up with? [14:54.030 --> 14:56.050] He says, oh, I know, I know. [14:56.050 --> 14:59.670] It's looking for warranty day plus one. [15:00.090 --> 15:01.050] Right? [15:01.690 --> 15:02.990] I'm like, huh. [15:03.850 --> 15:08.570] Maybe it is looking for, I don't know, usage time or something like that. [15:08.570 --> 15:10.330] But there's no real time clock. [15:10.350 --> 15:10.930] I checked. [15:10.930 --> 15:12.430] It doesn't get updated that way. [15:12.430 --> 15:19.070] I think it's doing calibration for the trigger, right? [15:19.310 --> 15:23.070] They could have slightly different ranges and so forth. [15:24.870 --> 15:34.120] So, oh, at this point, we are going to have a little bit of a live demo. [15:35.000 --> 15:36.980] I need a volunteer. [15:37.620 --> 15:40.100] Who would come up here and give me a hand? [15:40.100 --> 15:41.300] Welcome, sir. [15:41.940 --> 15:44.000] I'm not going to regret this, am I? [15:44.700 --> 15:45.360] Probably. [15:45.360 --> 15:47.060] Do you have good health insurance? [15:48.060 --> 15:49.100] Let's just go. [15:49.100 --> 15:49.560] All right. [15:49.560 --> 15:50.560] Let's just go. [15:50.660 --> 15:51.120] Okay. [15:51.120 --> 15:54.100] So, if you would, hang on. [15:54.560 --> 15:56.140] We'll at least take the drill bit out for you. [15:56.140 --> 15:56.920] How about that? [16:01.750 --> 16:02.930] You're standing on my line. [16:02.930 --> 16:04.510] You should stand right there. [16:04.510 --> 16:05.450] Oh, much better. [16:10.940 --> 16:11.380] Okay. [16:11.380 --> 16:12.580] Can you hold this for me? [16:13.600 --> 16:14.880] I think I can. [16:15.320 --> 16:16.040] Excellent. [16:16.100 --> 16:16.780] Excellent. [16:19.640 --> 16:23.040] So, right, you buy them, you build them, whatever. [16:23.240 --> 16:25.280] We'll walk over this way just a little bit. [16:25.280 --> 16:26.300] We are going to... [16:26.300 --> 16:31.700] The only thing I did is I pulled those pins to the outside just to make this go a little quicker and easier. [16:33.920 --> 16:34.360] And... [16:34.360 --> 16:37.200] I can figure out which way is up. [16:38.060 --> 16:39.060] Turn it three times. [16:39.060 --> 16:39.700] It'll work. [16:39.700 --> 16:40.280] Yeah. [16:41.040 --> 16:43.020] You've done this before, haven't you? [16:43.020 --> 16:44.060] I can tell. [16:44.960 --> 16:45.740] All right. [16:46.920 --> 16:47.360] So... [16:51.300 --> 16:57.940] It takes, you know, a line or two of code to do this, but since I can't type and talk, especially in front of people, [16:57.940 --> 16:59.760] we've got a couple of scripts. [17:00.720 --> 17:07.000] I am going to run Hash Comparison. [17:07.000 --> 17:13.780] So, what this is doing is it's pulling the existing firmware off the device, writing it to my hard drive, [17:13.780 --> 17:16.440] and then I'm comparing it to my known good file. [17:16.440 --> 17:20.100] And if you look at the bottom, you see it says files match. [17:20.200 --> 17:25.140] So, the firmware on this device hash matches my expectations. [17:25.200 --> 17:26.820] I believe this is a good device. [17:26.820 --> 17:28.840] I will be happy to use it. [17:32.420 --> 17:36.100] I also wrote some other code for this device. [17:39.760 --> 17:44.380] And now we are putting some other code on this device. [17:44.380 --> 17:47.240] And we will check the hash. [17:48.460 --> 17:55.420] If we receive the device in this state, we are reading the firmware off, we are running the hash on, [17:55.420 --> 17:59.780] comparing it to our known good, and it says those files differ. [17:59.960 --> 18:03.000] It would be nice if it said it was malware, but... [18:03.000 --> 18:06.660] It says those files differ. [18:07.220 --> 18:09.960] So, do you notice anything strange? [18:11.440 --> 18:14.920] There is a blinking red light along the side of the drill. [18:15.400 --> 18:20.040] Oh, that's suspicious right there. [18:20.040 --> 18:21.240] Let me tell you. [18:21.600 --> 18:22.140] Yeah. [18:22.860 --> 18:23.540] Yeah. [18:23.620 --> 18:25.060] Okay, hang on. [18:31.550 --> 18:32.190] Yeah. [18:32.190 --> 18:33.370] So, what is this? [18:33.370 --> 18:35.070] I thought I heard the comment up front. [18:35.110 --> 18:36.550] This is called, it has a name. [18:36.550 --> 18:38.350] It's called a Larson scanner. [18:38.730 --> 18:41.250] It's named for this guy, Glenn Larson. [18:41.910 --> 18:43.790] TV producer and writer. [18:43.790 --> 18:45.850] He created various shows, as you see. [18:45.850 --> 18:48.590] Buck Rogers in the 25th century. [18:49.570 --> 18:51.390] What are the last two? [18:52.250 --> 18:55.430] Knight Rider, and what's the last one? [18:56.090 --> 18:57.270] Right, right. [18:57.270 --> 18:59.830] So, he's responsible for this. [18:59.830 --> 19:03.250] But what it really means is this is the start of AI, right? [19:03.250 --> 19:05.630] This is where bad AI comes from. [19:06.790 --> 19:07.810] Okay. [19:07.850 --> 19:10.150] Now, you have another chore to do. [19:10.150 --> 19:12.790] If you will pass me the drills for a second. [19:16.280 --> 19:24.140] It is now your job to take this microphone and hold it against the end of this drill. [19:24.300 --> 19:24.900] Okay. [19:24.900 --> 19:25.480] All right. [19:25.680 --> 19:26.440] Microphone, drill. [19:26.440 --> 19:27.120] You got that? [19:27.120 --> 19:28.400] No, I hold the drill. [19:28.660 --> 19:29.200] You hold it. [19:29.200 --> 19:29.820] Yeah. [19:29.820 --> 19:30.320] You got that? [19:30.320 --> 19:31.220] All right, we figured it out. [19:31.520 --> 19:32.440] You good? [19:33.880 --> 19:34.940] Oh, you are good. [19:34.940 --> 19:36.080] All right, I like him. [19:36.200 --> 19:37.120] I'll keep him. [19:37.640 --> 19:38.140] All right. [19:38.140 --> 19:39.200] So, pay attention. [19:39.200 --> 19:39.800] Hold it now. [19:39.800 --> 19:40.560] You ready? [19:41.440 --> 19:42.660] Here we go. [19:49.320 --> 19:50.340] Thank you. [19:50.340 --> 19:50.800] Thank you. [19:50.800 --> 19:51.900] Thank you very much. [19:57.160 --> 19:59.520] And another round of applause for my able helper. [19:59.520 --> 20:00.820] Thank you very much. [20:06.060 --> 20:06.740] All right. [20:06.740 --> 20:07.180] Yeah. [20:07.180 --> 20:09.000] Darth Vader's theme, of course. [20:09.000 --> 20:09.820] What else do you play? [20:09.820 --> 20:10.180] All right. [20:10.180 --> 20:12.680] Oh, no, I don't have my Darth Vader theme T-shirt on. [20:13.660 --> 20:18.880] But let's talk about why I do something silly like this, right? [20:18.880 --> 20:20.080] Pretty impractical attack. [20:20.080 --> 20:22.200] This industrial control system is air-gapped. [20:22.200 --> 20:26.900] There's no network connection, no financial consequences, you know. [20:27.060 --> 20:29.780] It's an example of firmware in unexpected places. [20:29.780 --> 20:36.260] What I really want people in industrial control systems to take away is this drill is a computer-running software. [20:36.260 --> 20:48.500] And if the drill is a computer-running software, there are a lot of pieces in your important plant that are computers-running software that you need to think about securing, right? [20:48.500 --> 20:59.380] Drill's probably not top on your list, 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. [21:00.560 --> 21:03.180] I mean, you could do interdiction, right? [21:03.180 --> 21:09.720] Any good intelligence agency can delay your package for a little while and add you a little special gift. [21:11.700 --> 21:16.000] But, you know, not really any financial consequences. [21:16.000 --> 21:18.940] But the first one I bought looked like this, right? [21:18.940 --> 21:21.500] My budget's kind of small. I buy cheap stuff off eBay. [21:21.500 --> 21:24.580] The first one I got was broken, but the computer still worked. [21:24.580 --> 21:33.020] But I noticed, maybe you can see it, that these big MOSFETs, somebody let the magic smoke out, right? [21:33.020 --> 21:35.440] They've been overheated, they've been destroyed. [21:35.740 --> 21:38.300] This is actually a thermal sensor, right? [21:38.300 --> 21:42.060] Even with that in place, it's looking for overheating. [21:42.420 --> 21:45.120] Somebody cracked these accidentally. [21:45.980 --> 21:48.740] So, you might have some financial consequences. [21:48.740 --> 21:51.400] You can blow up the drill, a couple hundred bucks. [21:52.720 --> 21:55.280] Well, LiPo's aren't exactly stable. [21:56.500 --> 22:01.000] Occasionally, they catch... who knows what... anybody know what this is? [22:01.920 --> 22:04.320] Yeah, I don't know. Yeah, Galaxy. [22:05.440 --> 22:09.420] I like this one. They're at a conference and somebody's laptop is on fire. [22:09.420 --> 22:11.560] And everybody's standing around going, ooh, look at that. [22:11.680 --> 22:13.520] Man, that's bad, isn't it? [22:15.520 --> 22:18.600] If you're in the hobby of doing RC stuff, [22:18.600 --> 22:24.240] you generally charge LiPo's either in a fireproof bag or something with cinder blocks around it, right? [22:24.240 --> 22:25.160] You know, you know. [22:25.160 --> 22:30.060] So, maybe if you could catch it on fire, there might be some consequences. [22:30.060 --> 22:33.200] But it's largely impractical. [22:34.160 --> 22:37.040] I did come across these things in my research, though. [22:38.360 --> 22:41.120] Research. Five minutes on Google. [22:41.120 --> 22:42.820] That's what we call research these days. [22:44.040 --> 22:45.580] These two Bosch... [22:47.220 --> 22:48.940] These two Bosch... [22:49.700 --> 22:50.860] I'm trying. [22:51.760 --> 22:53.980] These two Bosch devices. [22:54.340 --> 22:57.960] One of them is called BT-Exact and BT-Angle-Exact. [22:57.960 --> 23:00.080] Who knows what the BT stands for? [23:00.920 --> 23:02.760] Bluetooth. All right. [23:02.760 --> 23:05.120] Well, there goes part of our air gap. [23:05.120 --> 23:08.060] And if you will look at the highlighted text above. [23:08.320 --> 23:10.640] The screwdrivers are locked when they are delivered [23:10.640 --> 23:15.640] and can be unlocked only by the access point exact connect. [23:15.640 --> 23:17.940] So, you can't even use it until you connect it. [23:19.160 --> 23:24.320] The system can talk to and take commands from external devices like a PLC, [23:24.320 --> 23:26.900] which might be an important part of your control system. [23:26.900 --> 23:32.740] So, this device is going to communicate to your control system. [23:33.360 --> 23:38.940] By the way, why would you want to communicate with devices like wrenches and drills and... [23:40.640 --> 23:42.540] Maybe you want to... yeah, oh, yeah. [23:44.660 --> 23:46.760] Sometimes to know where they are. [23:47.060 --> 23:53.080] What if you're making very high tolerance stuff like vehicle suspensions on big trucks, [23:53.080 --> 23:58.500] like a plant next to where I live does, or turbine engines on a jet aircraft. [23:58.940 --> 23:59.900] Excuse me? [24:00.320 --> 24:02.220] Yeah, precision torque, right? [24:02.220 --> 24:03.700] You'll have a torque requirement. [24:03.700 --> 24:06.960] You need to make sure every nut is appropriately tightened. [24:07.060 --> 24:10.620] And you might be checking battery life and RPM and usage. [24:10.620 --> 24:14.900] So, there are some valid reasons to want to communicate with these tools. [24:17.240 --> 24:23.500] And I also saw this available at your favorite home construction store. [24:23.940 --> 24:26.350] Guess what this device comes with? [24:26.860 --> 24:28.120] All right. [24:28.120 --> 24:29.680] Its own cell phone app. [24:30.910 --> 24:34.430] Because you need an app. [24:37.420 --> 24:39.360] I'm lost here. [24:39.360 --> 24:50.280] Where you can monitor the RPM, set the torques, and it says it will keep track of the last place it saw the device. [24:51.260 --> 24:53.400] For you, battery charge. [24:53.400 --> 24:55.460] And where do you think it stores this information? [24:56.640 --> 24:58.360] In the cloud. [24:59.500 --> 25:01.200] In the cloud. [25:01.380 --> 25:07.000] So, now maybe you have some connection between your device and whatever. [25:07.000 --> 25:13.440] And we've seen denial of service attacks blocking out parts of the internet from tons and tons of small devices. [25:13.440 --> 25:21.540] If you're in an industrial control system, the network latency in messaging is very important. [25:21.540 --> 25:29.820] You might have maybe a five millisecond latency requirement because you are controlling a very large, dangerous piece of equipment. [25:29.820 --> 25:36.300] And if you can't monitor it, feedback, change its position, see where it is every five milliseconds, things can go wrong. [25:36.300 --> 25:42.600] And if you're looking for denial of service on your network, who looks at the drill first? [25:42.900 --> 25:44.880] Yeah, not even me, right? [25:44.920 --> 25:48.880] So, but it kind of comes, and it's not, again, it really isn't the drill. [25:48.880 --> 25:50.580] The drill is the extreme example, right? [25:50.580 --> 25:51.940] The drill is the fun part. [25:51.940 --> 25:56.180] But it could be from a lot of different devices that you don't expect. [25:56.180 --> 25:59.840] It's firmware and computers in places that you don't expect. [26:01.340 --> 26:07.280] And finally, you have a chance to listen to my favorite rant. [26:08.080 --> 26:11.700] What is the difference between firmware and software? [26:13.980 --> 26:16.220] Yes, sir, in the back. [26:16.320 --> 26:19.120] Nothing! You win a prize. [26:19.120 --> 26:21.920] Dang, do I have a prize? I'll have to look for a prize. [26:23.360 --> 26:25.080] Basically, nothing. [26:25.280 --> 26:29.040] At one time, for most considerations, call it nothing. [26:29.040 --> 26:35.720] At one time, we might have said an important consideration was that firmware, for instance, you couldn't change it. [26:36.320 --> 26:41.520] Right? We looked at, you know, the original ROMs, like mast ROMs and one-time programmable. [26:41.520 --> 26:43.660] You really couldn't change those. [26:43.920 --> 26:50.900] And so that might make a significant difference, sort of, for firmware in terms of security. [26:51.360 --> 26:53.800] But even think about that for a second. [26:53.800 --> 27:03.780] Let's say you have software on a device, and it's software, that you cannot change, and you discover a vulnerability. [27:05.920 --> 27:09.660] Right? Best case, you will always have that vulnerability. [27:09.660 --> 27:13.100] You can't fix it. Who believes software is perfect? [27:13.640 --> 27:16.260] You guys are way smarter than you look. [27:16.260 --> 27:20.290] So, I have a couple of... [27:23.780 --> 27:30.860] I have people that work in my company, a programming team. [27:31.660 --> 27:35.700] And I can come up to them and I say, hey, I've got two projects for you to work on. [27:35.700 --> 27:39.620] I have the software project, and I have this firmware project. [27:39.620 --> 27:46.060] And what I need is you all to divide yourself out, because I need all the perfect programmers over here on the firmware side. [27:46.180 --> 27:48.920] And I want everybody else here on the software side. [27:48.940 --> 27:51.780] So, after I have this talk, who ends up on this side? [27:52.400 --> 27:56.960] Nobody, or, yeah, you, the liars, right? [27:58.080 --> 28:00.480] Either way, it's software. [28:00.480 --> 28:03.440] It has as many vulnerabilities or problems as anything else. [28:03.440 --> 28:05.620] So, that's my rant. [28:05.620 --> 28:09.360] Never say firmware again, at least from a security perspective. [28:09.360 --> 28:11.960] There really isn't a significant difference there. [28:11.960 --> 28:16.200] It's software, it has vulnerabilities, it can be overwritten, it can damage things. [28:16.600 --> 28:20.960] People sometimes say, oh, firmware, must be perfect, can't change it. [28:20.960 --> 28:22.800] When we're done, we're going to go someplace else. [28:22.800 --> 28:24.280] No, no. [28:26.180 --> 28:28.300] And it's sort of led to my rule of thumb. [28:28.300 --> 28:35.500] I think this audience probably knows it, but industrial control systems not as much, those folks working there. [28:35.500 --> 28:43.000] Is that, look, if it plugs in or if it has batteries, and you bought it in the last five years, it's a computer. [28:44.200 --> 28:49.460] There's nothing that you could buy that plugs in or has batteries that isn't a computer. [28:49.460 --> 28:54.460] I was surprised seeing, you know, this is a battery and a switch, right? [28:54.460 --> 28:58.700] Not a more powerful computer. [28:58.700 --> 29:00.340] Oh, sorry, this is yours. [29:00.340 --> 29:02.520] Thank you very much for helping me. [29:03.500 --> 29:04.540] You're welcome. [29:04.540 --> 29:07.560] Or if not, you can give it to the guy who needs the prize in the back. [29:09.600 --> 29:12.340] All right, so it's a computer. [29:12.340 --> 29:13.460] It's a computer. [29:14.940 --> 29:22.220] And finally, my analysis after tearing down this tool is that it had very nice copper heat sinks. [29:22.220 --> 29:23.760] Copper conducts better than aluminum. [29:23.760 --> 29:25.280] I thought they were very fine. [29:25.560 --> 29:27.580] It has thermal sensors for the battery. [29:27.580 --> 29:30.480] It's looking for overload and overload on the MOSFETs. [29:30.480 --> 29:31.780] That's a good thing. [29:32.500 --> 29:35.640] The PC board has a nice conformal coating. [29:35.860 --> 29:41.080] That's a plastic kind of overspray that protects the board from harsh environments. [29:41.080 --> 29:45.780] So particularly in industrial control systems, those computers don't live in server rooms. [29:45.900 --> 29:50.740] They get bolted to things that shake and have dust and sand and are too hot. [29:50.900 --> 29:56.340] So something like, you know, this can avoid things like salt spray and dust and help protect it. [29:56.340 --> 29:57.600] I thought that was good. [29:58.680 --> 30:00.620] I thought it was good that they didn't... [30:00.620 --> 30:05.020] In some instances, you can change a fuse in the device and make the firmware write-only. [30:06.660 --> 30:08.560] How much protection is that? [30:09.280 --> 30:11.320] Notice I said write-only. [30:12.620 --> 30:16.700] What does it mean if I get this thing and I want to know if it's been modified somehow? [30:17.600 --> 30:19.400] I can't read it, right? [30:19.460 --> 30:24.020] So one of the things that we did was we pulled the firmware off to check that it was okay. [30:24.360 --> 30:27.320] How long would it, right, how long would it take me to do this? [30:27.600 --> 30:34.000] You know, if I took it to the bathroom with me in a plant, 10 minutes, 5, 10, something like that, [30:34.000 --> 30:38.240] take the screws out, it takes as long as it takes, put the screws back in. [30:41.240 --> 30:47.900] So by not making the firmware write-only, we can validate, verify that this piece of software [30:47.900 --> 30:50.940] running this important control system is still valid. [30:50.940 --> 30:53.340] I think that's a very good thing, to be able to do that. [30:53.740 --> 30:59.560] We also have a group of people that help do patches and look up patches for industrial control systems. [30:59.700 --> 31:02.520] And I went to them and I'm like, would you check for me? [31:02.520 --> 31:05.260] Has there been any new firmware released for this drill? [31:05.680 --> 31:07.400] And that's kind of what they do for a living. [31:07.400 --> 31:09.480] And they're like, nope, can't find any. [31:09.720 --> 31:12.280] I'm like, okay. Some things don't have patches. [31:12.280 --> 31:14.960] I'm not going to fault people for not delivering patches. [31:14.960 --> 31:19.920] I don't see anything incredibly wrong, necessarily, with it. [31:21.020 --> 31:26.360] But if I did have an ask for this manufacturer, [31:26.360 --> 31:30.880] it would be to publish the hash for the firmware that they've installed. [31:31.080 --> 31:35.880] Now, I'm taking my good firmware, because I have a couple of these drills, [31:35.880 --> 31:39.500] and that's what it came with, and I assumed that they matched, that it was the right one. [31:39.500 --> 31:43.860] But to really be sure, I'd like to see a signed hash from the manufacturer. [31:43.860 --> 31:47.860] So that would be the one thing that they could really do better. [31:49.020 --> 31:52.620] Maybe execute signed-only code. That would probably work. [31:52.620 --> 31:56.720] But the processing power and storage in this chip is pretty small, [31:56.720 --> 31:58.660] so that might be too much of an ask. [31:58.660 --> 32:01.080] But they'd at least publish the hash. [32:01.180 --> 32:05.520] And I also like that they make these headers easily available. [32:05.520 --> 32:07.040] Somewhat easily available. [32:07.080 --> 32:09.960] I would almost like to see them on the outside, [32:09.960 --> 32:16.080] because I'm more interested in being able to verify that my device is right. [32:16.080 --> 32:18.900] Remember we said somebody might capture it along the way. [32:18.920 --> 32:20.760] Somebody might take it to the restroom. [32:21.340 --> 32:23.080] Not this device in particular. [32:23.320 --> 32:26.820] There's a computer in this thing, and there are computers in these cameras, [32:26.820 --> 32:29.620] and there's computers all over the place. [32:29.720 --> 32:32.960] And in an industrial plant, that might mean the difference between life and death. [32:32.960 --> 32:36.540] I want to be able to check that they are okay. [32:36.760 --> 32:40.360] So if you make programming headers easily available, [32:40.360 --> 32:42.020] and often they are pretty easily available. [32:42.020 --> 32:44.420] This one didn't have pins on it. [32:44.420 --> 32:45.260] It was fairly easy. [32:45.260 --> 32:47.320] A lot of them already have pins available. [32:47.600 --> 32:48.340] JTAG ports. [32:48.340 --> 32:50.460] Because they have to program them when they come out. [32:52.540 --> 32:53.360] All right. [32:53.360 --> 32:55.540] We have a couple more minutes. [32:55.540 --> 32:57.540] I want to tell you one more thing. [32:57.540 --> 33:00.780] This is mostly for my industrial control system audience, [33:00.780 --> 33:02.440] of which there are a few. [33:02.540 --> 33:06.600] Is that, well, actually it's for both. [33:07.200 --> 33:11.480] How do we protect these things from a security point of view? [33:11.480 --> 33:13.840] Well, we talked about being able to validate the firmware. [33:14.420 --> 33:18.360] Now, let me plant one idea in your mind. [33:18.900 --> 33:22.540] This is a computer running software. [33:24.160 --> 33:29.720] So, ignoring the specifics of this device, [33:29.720 --> 33:34.940] tell me, generically, how do you protect a computer running software? [33:34.940 --> 33:36.400] What tools do you have? [33:36.900 --> 33:37.820] Signing. [33:38.140 --> 33:40.020] If you can sign the code, right? [33:40.020 --> 33:41.280] Maybe you could sign code on it. [33:41.280 --> 33:42.920] It might not have enough processing power. [33:42.980 --> 33:44.160] What else can we do? [33:45.640 --> 33:46.820] Antivirus, right? [33:47.460 --> 33:50.540] I might ask my vendor to provide antivirus. [33:50.540 --> 33:53.060] They might not be able to support it, but I can at least ask. [33:53.520 --> 33:55.580] Who runs antivirus on this? [33:56.700 --> 33:58.180] At least one, right? [33:58.220 --> 34:00.120] I do, except this is my burner. [34:01.140 --> 34:03.300] So, you can run AV on these devices. [34:03.300 --> 34:05.220] So, if you can run AV, run it. [34:05.220 --> 34:09.660] And if you're buying 10,000 whatever devices it is for your plant, [34:09.660 --> 34:13.060] at least ask the manufacturer if you can run AV on it. [34:13.060 --> 34:14.980] They may not be able to provide it, but maybe. [34:15.320 --> 34:20.020] What else do we do to protect computers running software? [34:22.450 --> 34:24.190] Protect the network, right? [34:24.190 --> 34:26.970] If this thing isn't connected, the other ones are, right? [34:26.970 --> 34:34.150] We use firewall rules and IDSs to protect the network. [34:34.730 --> 34:35.970] Anything else? [34:37.370 --> 34:38.750] Patches, right? That too. [34:38.750 --> 34:41.290] So, we're going to check to see if there are any known vulnerabilities, [34:41.290 --> 34:42.690] and we're going to patch these devices. [34:42.690 --> 34:45.650] So, the final takeaways are drills are fun. [34:45.650 --> 34:46.410] No, wait a minute. [34:46.410 --> 34:49.710] Are that everything's a computer running software, [34:51.230 --> 34:53.330] and even if that's what you're faced with, [34:53.330 --> 34:55.270] no matter how bizarre they look, [34:55.270 --> 34:57.610] you have tools to help protect them. [34:57.770 --> 34:59.910] If you can't do exactly what you want, [34:59.910 --> 35:02.830] if you can't run AV on here, [35:02.830 --> 35:04.910] you want to be creative and do something else, [35:04.910 --> 35:08.670] like run firewall rules in your wireless or so forth. [35:08.750 --> 35:11.770] You have to be a little more thoughtful about how to protect it. [35:11.770 --> 35:14.390] But you have the opportunity to do that. [35:14.390 --> 35:15.390] Be creative. [35:15.430 --> 35:17.270] With that, thank you very much. [35:17.650 --> 35:19.070] Oh, wait a minute. [35:19.070 --> 35:20.950] I took the charger apart too. [35:20.950 --> 35:23.010] Anybody, any idea what this is? [35:24.470 --> 35:25.790] Another microcontroller. [35:25.850 --> 35:27.250] All right, well, I'm Monte. [35:27.250 --> 35:28.470] Thank you all very much. [35:28.470 --> 35:29.750] Catch me online somewhere. [35:29.750 --> 35:31.610] I'm here the rest of the week. [35:31.610 --> 35:34.230] Thank you.