start	end	text
0	6000	Hi, I'm Ante. Security architect, FoxGuard Solutions. We do industrial control system security stuff.
7600	10640	And... this is what I think my job is like.
11660	13000	No? Yeah?
13380	15280	In your job like this? Everybody.
16340	19100	And this is what my mom thinks my job is like.
20700	24460	And this is what other people think my job is like.
26180	29720	This is what I wish my job was like.
32140	36500	And this is what my job is really like.
36920	43480	Do some security research, look at new attacks, do some training classes, lots of conference talks, new product.
44040	47900	And look at industry requirements and industrial control systems.
47900	51220	Where bits meet atoms, where things happen.
52580	54700	So, let's get started.
54700	57620	We're going to talk about things in light of...
57620	60580	Anybody here work in industrial control systems?
61080	62820	Oh, yeah? We got a handful.
63140	66200	Anybody heard the term industrial control systems before?
66960	68420	A few more. Beautiful.
68420	69800	Well, now you're an expert.
69800	74600	Industrial control systems is the part of security that really matters.
74640	77200	Is where bits meet atoms, things move.
77200	82860	This is electricity and manufacturing and your water and your power.
82860	84840	This is where your iPhones come from.
87320	90040	And we're going to take a look at some tools.
90080	95060	So, since I am thinking of things in terms of industrial control systems...
95060	96820	Let's get the mic.
97800	99300	Industrial control systems.
99300	104320	If you're going to look at this as an industrial control system, what are the mechanics involved?
104320	111520	It's like, well, it looks for some button pushes, does some calculations and it displays something on the screen.
111520	113160	That's its I.O., right?
113160	117720	Industrial control, reading things, thinking about things and doing things.
118220	119740	Fun enough?
121680	127160	As an industrial control system, what does this thing do?
128540	129540	Do what?
130200	132280	It opens the box.
132980	133800	What else?
133800	135760	Industrial control system. What?
135800	136740	Makes holes.
137660	139700	Yeah, but think about the operation.
139740	141860	Bits, atoms, movement.
142120	143180	What's it doing?
143980	149000	All right, so this is a miniature industrial control system that is monitoring the rate of the spin.
149080	149500	All right?
149500	150200	That's one of the things.
150200	153680	It's actually controlling with the pulse width modulation output.
153680	155120	What else is it doing?
160200	161820	Input. What kind of input?
162960	166260	Yeah, so there's a variable resistor here in this trigger.
166260	167940	And it's reading that value.
167940	172460	It's reading analog value, making some calculations to control the control system.
172540	173800	Do we see anything else?
174220	175020	Light.
175180	176700	Light, so we have a light on the front.
176700	177400	It gets timed.
177400	178680	Look, no power.
178740	180320	All right, we got light on the front.
180360	181920	What about on the sides here?
183820	185880	Yeah, so here's a display.
185880	187200	This is a voltage display.
187200	188600	So it's measuring voltage.
189240	191660	It's also measuring temperature of this battery system.
191660	195640	And it's measuring temperature of MOSFETs inside.
195640	201540	So as far as a very small representation of an industrial control system, this is it.
201540	203640	It's measuring different kinds of inputs.
203640	206120	It's controlling different kinds of outputs.
208860	213440	So which of these two systems do you think is more powerful?
215100	217640	Thoughts? Comments? Yes? No?
225220	227640	Now which one do you think is more powerful?
232080	233090	Yeah, well...
234260	239620	So, a little bit of fun, but actually the drill is a more powerful control system.
239620	241700	So, this calc... Excuse me?
243620	244780	Physically.
245280	250440	Also, look, the calculator clock rate is 6 MHz and the drill, it's 8 MHz.
250560	258080	Besides that, the processor in the calculator takes several clock cycles to do an instruction.
258080	260680	So, 7, 19, 14, 15.
260680	263400	And this is just sort of a random sampling of instructions.
263420	268480	This drill basically does every operation in one instruction cycle.
268480	272360	So, computationally it's a lot more powerful than the calculator as well.
272360	281080	Besides its additional functionality of sort of dedicated pulse width modulation channels and its ability to read analog inputs.
281080	290180	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?
290180	292840	It's a battery powered drill.
292840	297040	Who expects a computer in the middle of there?
297040	304820	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.
304820	306980	This is a pretty standard drill.
307220	314060	It has a, let's see, we got a PC board and some power connectors and a motor, a transmission.
318440	326800	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.
326820	332880	They're rated at 202 amps continuous.
333000	336140	And if you do anything with electronics, that's a fair amount of power.
336400	339860	They will also support 800 amps pulse.
340260	342520	So, that's pretty impressive.
344720	351500	You might also need a little help reverse engineering the system as a whole if you're going to look at software.
351760	361480	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.
361700	363460	So, you take a look around.
364500	367840	I found an ATmega 32 pin.
367840	378100	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?
378380	386280	But if you go through and trace out all of those circuits, basically almost all of them, almost all the pins are in use.
386380	396380	It's running front LEDs and power LEDs and two MOSFETs, MOSFET temperature, battery temperature, voltage, trigger, comm, enable pins.
396380	401280	So, it's using a lot more of the capability than you expected even in this simple device.
401760	404740	It's using a lot of computational resources.
406600	407380	All right.
407380	411760	Now, for a little review before we... calculator parts.
412360	415260	Part of a review before we continue.
416820	417720	All right.
417720	418720	Audience participation.
418720	419860	What's RAM?
421280	422680	Random access memory.
422680	423140	Beautiful.
423140	425160	You read right, you turn it off, it goes away.
425160	427360	What is ROM?
428080	429160	Read-only memory.
429160	429400	All right.
429400	431340	So, let's talk about early ROM.
431340	433480	Early ROM is masked ROM.
433880	437040	And it's manufactured that way at the factory.
437040	440760	So, you say, hey, I want a bunch of ROMs that have this program on here.
441080	449140	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?
449140	451500	You have to buy a big lot to make this profitable.
451500	457580	And now you have, I don't know, 10,000 of these chips programmed just the way you want them.
458280	462260	What do you do with those chips if there was a bug in your software?
465060	466380	Not bad.
466820	468180	Put them in a landfill.
468180	469760	Sell them and don't tell anybody.
471460	473180	You are my head of marketing.
474780	475660	Yeah.
476420	478980	Or, I like to say, throw them in the ocean.
478980	482260	Because you can only write to them once.
482260	483240	They are made at the factory.
483240	488640	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?
488680	493500	So, we decided that that didn't work very well.
493500	495840	And we come up with things like PROM.
495840	497800	So, what's PROM stand for?
499660	503200	So, this is programmable read-only memory.
503200	509700	So, you get these chips that are typically, let's say, one-time programmable.
509700	510840	You get the chip.
510880	512780	You can put your piece of code on it.
512780	515620	And then you can put it in your device.
517280	524220	If that chip has vulnerabilities or problems in the software, what do you do with that chip?
528640	530340	Yes, you throw it in the landfill.
530340	536900	But you only have one, because the next chip you get off the shelf, you can program and put it in your device, right?
536900	541220	So, that works a lot quicker and easier, and it's more cost-effective.
541500	543500	So, manufacturers like that.
543880	547000	But you go on to the next level, EPROM.
547000	548240	What's EPROM?
549980	554620	Yeah, so this is erasable programmable read-only memory.
555380	558060	And typically, they were UV erasable.
558060	561580	So, if you look here, this has a little window in it.
562380	566040	A UV light will erase it, set it all back to ones.
566180	569300	And you can change some of those to zeros and end up with a program.
570300	573720	Now, if there is something wrong with this chip, what can we do with it?
575400	576740	Yeah, you can pull it out.
576740	579580	You can shine some light on it and reprogram it and put it back in.
579580	581660	You don't even have to throw anything away.
584420	587280	But you do have to pull it out and program it.
588060	591200	So, EEPROM. What's EEPROM?
593040	598300	Yeah, electrically erasable programmable read-only memory.
598300	601800	So, now you can program this thing in the circuit.
601800	603300	You don't have to pull it out.
603300	607280	You don't have to shine UV light on it, you know, like you're curing your nails or something.
608180	612720	And if you have a problem, you can fix it in the device.
613420	615040	So, that's quite a bit easier.
615040	617240	Now, you think as a manufacturer, that's great.
617320	619880	We screwed something up, we need to update something.
620780	623800	We're all good. We can program it back in place.
624420	625020	All right.
625160	628680	Now, I'm depending on you all.
628680	630440	What does flash stand for?
634460	635340	What?
635960	637780	You all are a quiet group.
638200	639080	Flash?
639080	640880	No, flash doesn't stand for anything.
640880	642320	It's a marketing term.
643080	646440	So, flash is basically a version of EEPROM.
646440	647280	It tends to be larger.
647280	648580	You write it in larger blocks.
648920	653040	It will sustain fewer write cycles before it gets destroyed.
653040	655920	But it's basically a marketing term.
656060	658960	And that's how we end up.
658960	663400	That's the short version of how we end up with devices that you can program sort of by default.
663400	664740	It saves you money.
664740	666440	It saves you time.
666440	670040	So, that's a review.
670040	678920	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.
679080	679720	More time.
679720	680440	Some RAM.
680440	681700	Some flash.
682960	690020	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.
690020	691960	It's much easier to set up.
691960	694340	You probably buy your hardware.
694340	695620	You get it shipped to you.
695620	701220	And then back at your plant, you can blow on the latest firmware when you get the device.
701220	702460	Much easier.
702460	708120	That allows for the updates that you may have changed or made to your firmware, your software.
709160	714500	And in some cases, maybe account for some minor manufacturing difficulties.
714500	715860	You might be able to adjust for them.
715860	716700	Maybe.
717020	718240	In firmware.
720800	722680	So, we take it apart.
723080	726640	And we're looking at how to manipulate it.
726640	729680	And it would be great if we could find an SPI port.
729680	731200	Typically six pins.
731220	732180	And what do we see here?
732180	732960	Six pins.
732960	736660	And as a matter of fact, half the work is already done for us.
736660	741600	Because there is a reset, a clock, and 3.3 volts.
741660	742960	That's pointing to something else.
742960	745280	So, three of our six pins are already labeled.
745820	748740	We only have to figure out the other three, and we're in.
754160	755580	Yeah, we need a couple.
755580	757320	We need MIMO and MOMI.
757320	762320	But if you turn the circuit board over, now you have MOMI and MIMO on the ground.
762320	764100	So, they labeled the other three for you.
764100	765040	That's great.
765040	766060	That's awesome.
767000	768260	You need a programmer.
768260	769260	I was in a hurry.
769260	772440	I built one out of a teensy iHead laying around.
772440	776200	And put a 3D printed case and got some free software.
776840	781140	But if you want to buy them, they're available in all your favorite sources.
782600	784180	These are great.
784220	785840	$3.36.
786600	787880	Shipped to your door.
788320	789760	On the slow boat.
793570	797170	So, I pulled the software off of this device.
798290	801930	And did a little reverse engineering.
801930	803410	Maybe a little disassembly, right?
803410	806010	So, you end up with assembly code all ones and zeros.
806010	806950	Hard to figure out.
806950	810430	But you're going to disassemble it somehow to make it a little easier.
810430	812070	There are a couple of free ones.
812390	815450	You know, AVR, OBJ dump.
815450	816310	That's kind of cool.
816310	818750	I read about this cool one, ReAVR.
820710	824230	But it was kind of from a sketchy site from Russia.
824230	826630	And I didn't really want to install it on my computer.
827290	828810	So, I talked to my buddy.
828810	832710	And I said, can you install this software and rerun this file through it?
832710	833670	And he was like, yeah.
833670	834790	I'm like, sweet.
835190	837350	I'm too paranoid for that stuff.
837850	839630	And other commercial software.
839830	843470	But now you end up with just sort of, you know, this side, right?
843470	844730	The assembly language instructions.
844730	846570	Which still may not mean a lot.
846770	854210	And worked through it quite a bit to try to figure out what these registers and what the instructions meant and what they did.
854210	855950	This is just a brief section of it.
855950	858530	So, made a few comments as I went along.
858670	869730	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.
870670	872970	And this is the EEPROM write.
872970	882370	So, this drill has the capability of changing the EEPROM, right?
882370	883650	It can write things.
883650	885450	It can keep track of things.
887290	892450	I also asked my friend, who I was working with at the time, what do you think this thing is writing?
892450	893950	What's it keeping up with?
894030	896050	He says, oh, I know, I know.
896050	899670	It's looking for warranty day plus one.
900090	901050	Right?
901690	902990	I'm like, huh.
903850	908570	Maybe it is looking for, I don't know, usage time or something like that.
908570	910330	But there's no real time clock.
910350	910930	I checked.
910930	912430	It doesn't get updated that way.
912430	919070	I think it's doing calibration for the trigger, right?
919310	923070	They could have slightly different ranges and so forth.
924870	934120	So, oh, at this point, we are going to have a little bit of a live demo.
935000	936980	I need a volunteer.
937620	940100	Who would come up here and give me a hand?
940100	941300	Welcome, sir.
941940	944000	I'm not going to regret this, am I?
944700	945360	Probably.
945360	947060	Do you have good health insurance?
948060	949100	Let's just go.
949100	949560	All right.
949560	950560	Let's just go.
950660	951120	Okay.
951120	954100	So, if you would, hang on.
954560	956140	We'll at least take the drill bit out for you.
956140	956920	How about that?
961750	962930	You're standing on my line.
962930	964510	You should stand right there.
964510	965450	Oh, much better.
970940	971380	Okay.
971380	972580	Can you hold this for me?
973600	974880	I think I can.
975320	976040	Excellent.
976100	976780	Excellent.
979640	983040	So, right, you buy them, you build them, whatever.
983240	985280	We'll walk over this way just a little bit.
985280	986300	We are going to...
986300	991700	The only thing I did is I pulled those pins to the outside just to make this go a little quicker and easier.
993920	994360	And...
994360	997200	I can figure out which way is up.
998060	999060	Turn it three times.
999060	999700	It'll work.
999700	1000280	Yeah.
1001040	1003020	You've done this before, haven't you?
1003020	1004060	I can tell.
1004960	1005740	All right.
1006920	1007360	So...
1011300	1017940	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,
1017940	1019760	we've got a couple of scripts.
1020720	1027000	I am going to run Hash Comparison.
1027000	1033780	So, what this is doing is it's pulling the existing firmware off the device, writing it to my hard drive,
1033780	1036440	and then I'm comparing it to my known good file.
1036440	1040100	And if you look at the bottom, you see it says files match.
1040200	1045140	So, the firmware on this device hash matches my expectations.
1045200	1046820	I believe this is a good device.
1046820	1048840	I will be happy to use it.
1052420	1056100	I also wrote some other code for this device.
1059760	1064380	And now we are putting some other code on this device.
1064380	1067240	And we will check the hash.
1068460	1075420	If we receive the device in this state, we are reading the firmware off, we are running the hash on,
1075420	1079780	comparing it to our known good, and it says those files differ.
1079960	1083000	It would be nice if it said it was malware, but...
1083000	1086660	It says those files differ.
1087220	1089960	So, do you notice anything strange?
1091440	1094920	There is a blinking red light along the side of the drill.
1095400	1100040	Oh, that's suspicious right there.
1100040	1101240	Let me tell you.
1101600	1102140	Yeah.
1102860	1103540	Yeah.
1103620	1105060	Okay, hang on.
1111550	1112190	Yeah.
1112190	1113370	So, what is this?
1113370	1115070	I thought I heard the comment up front.
1115110	1116550	This is called, it has a name.
1116550	1118350	It's called a Larson scanner.
1118730	1121250	It's named for this guy, Glenn Larson.
1121910	1123790	TV producer and writer.
1123790	1125850	He created various shows, as you see.
1125850	1128590	Buck Rogers in the 25th century.
1129570	1131390	What are the last two?
1132250	1135430	Knight Rider, and what's the last one?
1136090	1137270	Right, right.
1137270	1139830	So, he's responsible for this.
1139830	1143250	But what it really means is this is the start of AI, right?
1143250	1145630	This is where bad AI comes from.
1146790	1147810	Okay.
1147850	1150150	Now, you have another chore to do.
1150150	1152790	If you will pass me the drills for a second.
1156280	1164140	It is now your job to take this microphone and hold it against the end of this drill.
1164300	1164900	Okay.
1164900	1165480	All right.
1165680	1166440	Microphone, drill.
1166440	1167120	You got that?
1167120	1168400	No, I hold the drill.
1168660	1169200	You hold it.
1169200	1169820	Yeah.
1169820	1170320	You got that?
1170320	1171220	All right, we figured it out.
1171520	1172440	You good?
1173880	1174940	Oh, you are good.
1174940	1176080	All right, I like him.
1176200	1177120	I'll keep him.
1177640	1178140	All right.
1178140	1179200	So, pay attention.
1179200	1179800	Hold it now.
1179800	1180560	You ready?
1181440	1182660	Here we go.
1189320	1190340	Thank you.
1190340	1190800	Thank you.
1190800	1191900	Thank you very much.
1197160	1199520	And another round of applause for my able helper.
1199520	1200820	Thank you very much.
1206060	1206740	All right.
1206740	1207180	Yeah.
1207180	1209000	Darth Vader's theme, of course.
1209000	1209820	What else do you play?
1209820	1210180	All right.
1210180	1212680	Oh, no, I don't have my Darth Vader theme T-shirt on.
1213660	1218880	But let's talk about why I do something silly like this, right?
1218880	1220080	Pretty impractical attack.
1220080	1222200	This industrial control system is air-gapped.
1222200	1226900	There's no network connection, no financial consequences, you know.
1227060	1229780	It's an example of firmware in unexpected places.
1229780	1236260	What I really want people in industrial control systems to take away is this drill is a computer-running software.
1236260	1248500	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?
1248500	1259380	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.
1260560	1263180	I mean, you could do interdiction, right?
1263180	1269720	Any good intelligence agency can delay your package for a little while and add you a little special gift.
1271700	1276000	But, you know, not really any financial consequences.
1276000	1278940	But the first one I bought looked like this, right?
1278940	1281500	My budget's kind of small. I buy cheap stuff off eBay.
1281500	1284580	The first one I got was broken, but the computer still worked.
1284580	1293020	But I noticed, maybe you can see it, that these big MOSFETs, somebody let the magic smoke out, right?
1293020	1295440	They've been overheated, they've been destroyed.
1295740	1298300	This is actually a thermal sensor, right?
1298300	1302060	Even with that in place, it's looking for overheating.
1302420	1305120	Somebody cracked these accidentally.
1305980	1308740	So, you might have some financial consequences.
1308740	1311400	You can blow up the drill, a couple hundred bucks.
1312720	1315280	Well, LiPo's aren't exactly stable.
1316500	1321000	Occasionally, they catch... who knows what... anybody know what this is?
1321920	1324320	Yeah, I don't know. Yeah, Galaxy.
1325440	1329420	I like this one. They're at a conference and somebody's laptop is on fire.
1329420	1331560	And everybody's standing around going, ooh, look at that.
1331680	1333520	Man, that's bad, isn't it?
1335520	1338600	If you're in the hobby of doing RC stuff,
1338600	1344240	you generally charge LiPo's either in a fireproof bag or something with cinder blocks around it, right?
1344240	1345160	You know, you know.
1345160	1350060	So, maybe if you could catch it on fire, there might be some consequences.
1350060	1353200	But it's largely impractical.
1354160	1357040	I did come across these things in my research, though.
1358360	1361120	Research. Five minutes on Google.
1361120	1362820	That's what we call research these days.
1364040	1365580	These two Bosch...
1367220	1368940	These two Bosch...
1369700	1370860	I'm trying.
1371760	1373980	These two Bosch devices.
1374340	1377960	One of them is called BT-Exact and BT-Angle-Exact.
1377960	1380080	Who knows what the BT stands for?
1380920	1382760	Bluetooth. All right.
1382760	1385120	Well, there goes part of our air gap.
1385120	1388060	And if you will look at the highlighted text above.
1388320	1390640	The screwdrivers are locked when they are delivered
1390640	1395640	and can be unlocked only by the access point exact connect.
1395640	1397940	So, you can't even use it until you connect it.
1399160	1404320	The system can talk to and take commands from external devices like a PLC,
1404320	1406900	which might be an important part of your control system.
1406900	1412740	So, this device is going to communicate to your control system.
1413360	1418940	By the way, why would you want to communicate with devices like wrenches and drills and...
1420640	1422540	Maybe you want to... yeah, oh, yeah.
1424660	1426760	Sometimes to know where they are.
1427060	1433080	What if you're making very high tolerance stuff like vehicle suspensions on big trucks,
1433080	1438500	like a plant next to where I live does, or turbine engines on a jet aircraft.
1438940	1439900	Excuse me?
1440320	1442220	Yeah, precision torque, right?
1442220	1443700	You'll have a torque requirement.
1443700	1446960	You need to make sure every nut is appropriately tightened.
1447060	1450620	And you might be checking battery life and RPM and usage.
1450620	1454900	So, there are some valid reasons to want to communicate with these tools.
1457240	1463500	And I also saw this available at your favorite home construction store.
1463940	1466350	Guess what this device comes with?
1466860	1468120	All right.
1468120	1469680	Its own cell phone app.
1470910	1474430	Because you need an app.
1477420	1479360	I'm lost here.
1479360	1490280	Where you can monitor the RPM, set the torques, and it says it will keep track of the last place it saw the device.
1491260	1493400	For you, battery charge.
1493400	1495460	And where do you think it stores this information?
1496640	1498360	In the cloud.
1499500	1501200	In the cloud.
1501380	1507000	So, now maybe you have some connection between your device and whatever.
1507000	1513440	And we've seen denial of service attacks blocking out parts of the internet from tons and tons of small devices.
1513440	1521540	If you're in an industrial control system, the network latency in messaging is very important.
1521540	1529820	You might have maybe a five millisecond latency requirement because you are controlling a very large, dangerous piece of equipment.
1529820	1536300	And if you can't monitor it, feedback, change its position, see where it is every five milliseconds, things can go wrong.
1536300	1542600	And if you're looking for denial of service on your network, who looks at the drill first?
1542900	1544880	Yeah, not even me, right?
1544920	1548880	So, but it kind of comes, and it's not, again, it really isn't the drill.
1548880	1550580	The drill is the extreme example, right?
1550580	1551940	The drill is the fun part.
1551940	1556180	But it could be from a lot of different devices that you don't expect.
1556180	1559840	It's firmware and computers in places that you don't expect.
1561340	1567280	And finally, you have a chance to listen to my favorite rant.
1568080	1571700	What is the difference between firmware and software?
1573980	1576220	Yes, sir, in the back.
1576320	1579120	Nothing! You win a prize.
1579120	1581920	Dang, do I have a prize? I'll have to look for a prize.
1583360	1585080	Basically, nothing.
1585280	1589040	At one time, for most considerations, call it nothing.
1589040	1595720	At one time, we might have said an important consideration was that firmware, for instance, you couldn't change it.
1596320	1601520	Right? We looked at, you know, the original ROMs, like mast ROMs and one-time programmable.
1601520	1603660	You really couldn't change those.
1603920	1610900	And so that might make a significant difference, sort of, for firmware in terms of security.
1611360	1613800	But even think about that for a second.
1613800	1623780	Let's say you have software on a device, and it's software, that you cannot change, and you discover a vulnerability.
1625920	1629660	Right? Best case, you will always have that vulnerability.
1629660	1633100	You can't fix it. Who believes software is perfect?
1633640	1636260	You guys are way smarter than you look.
1636260	1640290	So, I have a couple of...
1643780	1650860	I have people that work in my company, a programming team.
1651660	1655700	And I can come up to them and I say, hey, I've got two projects for you to work on.
1655700	1659620	I have the software project, and I have this firmware project.
1659620	1666060	And what I need is you all to divide yourself out, because I need all the perfect programmers over here on the firmware side.
1666180	1668920	And I want everybody else here on the software side.
1668940	1671780	So, after I have this talk, who ends up on this side?
1672400	1676960	Nobody, or, yeah, you, the liars, right?
1678080	1680480	Either way, it's software.
1680480	1683440	It has as many vulnerabilities or problems as anything else.
1683440	1685620	So, that's my rant.
1685620	1689360	Never say firmware again, at least from a security perspective.
1689360	1691960	There really isn't a significant difference there.
1691960	1696200	It's software, it has vulnerabilities, it can be overwritten, it can damage things.
1696600	1700960	People sometimes say, oh, firmware, must be perfect, can't change it.
1700960	1702800	When we're done, we're going to go someplace else.
1702800	1704280	No, no.
1706180	1708300	And it's sort of led to my rule of thumb.
1708300	1715500	I think this audience probably knows it, but industrial control systems not as much, those folks working there.
1715500	1723000	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.
1724200	1729460	There's nothing that you could buy that plugs in or has batteries that isn't a computer.
1729460	1734460	I was surprised seeing, you know, this is a battery and a switch, right?
1734460	1738700	Not a more powerful computer.
1738700	1740340	Oh, sorry, this is yours.
1740340	1742520	Thank you very much for helping me.
1743500	1744540	You're welcome.
1744540	1747560	Or if not, you can give it to the guy who needs the prize in the back.
1749600	1752340	All right, so it's a computer.
1752340	1753460	It's a computer.
1754940	1762220	And finally, my analysis after tearing down this tool is that it had very nice copper heat sinks.
1762220	1763760	Copper conducts better than aluminum.
1763760	1765280	I thought they were very fine.
1765560	1767580	It has thermal sensors for the battery.
1767580	1770480	It's looking for overload and overload on the MOSFETs.
1770480	1771780	That's a good thing.
1772500	1775640	The PC board has a nice conformal coating.
1775860	1781080	That's a plastic kind of overspray that protects the board from harsh environments.
1781080	1785780	So particularly in industrial control systems, those computers don't live in server rooms.
1785900	1790740	They get bolted to things that shake and have dust and sand and are too hot.
1790900	1796340	So something like, you know, this can avoid things like salt spray and dust and help protect it.
1796340	1797600	I thought that was good.
1798680	1800620	I thought it was good that they didn't...
1800620	1805020	In some instances, you can change a fuse in the device and make the firmware write-only.
1806660	1808560	How much protection is that?
1809280	1811320	Notice I said write-only.
1812620	1816700	What does it mean if I get this thing and I want to know if it's been modified somehow?
1817600	1819400	I can't read it, right?
1819460	1824020	So one of the things that we did was we pulled the firmware off to check that it was okay.
1824360	1827320	How long would it, right, how long would it take me to do this?
1827600	1834000	You know, if I took it to the bathroom with me in a plant, 10 minutes, 5, 10, something like that,
1834000	1838240	take the screws out, it takes as long as it takes, put the screws back in.
1841240	1847900	So by not making the firmware write-only, we can validate, verify that this piece of software
1847900	1850940	running this important control system is still valid.
1850940	1853340	I think that's a very good thing, to be able to do that.
1853740	1859560	We also have a group of people that help do patches and look up patches for industrial control systems.
1859700	1862520	And I went to them and I'm like, would you check for me?
1862520	1865260	Has there been any new firmware released for this drill?
1865680	1867400	And that's kind of what they do for a living.
1867400	1869480	And they're like, nope, can't find any.
1869720	1872280	I'm like, okay. Some things don't have patches.
1872280	1874960	I'm not going to fault people for not delivering patches.
1874960	1879920	I don't see anything incredibly wrong, necessarily, with it.
1881020	1886360	But if I did have an ask for this manufacturer,
1886360	1890880	it would be to publish the hash for the firmware that they've installed.
1891080	1895880	Now, I'm taking my good firmware, because I have a couple of these drills,
1895880	1899500	and that's what it came with, and I assumed that they matched, that it was the right one.
1899500	1903860	But to really be sure, I'd like to see a signed hash from the manufacturer.
1903860	1907860	So that would be the one thing that they could really do better.
1909020	1912620	Maybe execute signed-only code. That would probably work.
1912620	1916720	But the processing power and storage in this chip is pretty small,
1916720	1918660	so that might be too much of an ask.
1918660	1921080	But they'd at least publish the hash.
1921180	1925520	And I also like that they make these headers easily available.
1925520	1927040	Somewhat easily available.
1927080	1929960	I would almost like to see them on the outside,
1929960	1936080	because I'm more interested in being able to verify that my device is right.
1936080	1938900	Remember we said somebody might capture it along the way.
1938920	1940760	Somebody might take it to the restroom.
1941340	1943080	Not this device in particular.
1943320	1946820	There's a computer in this thing, and there are computers in these cameras,
1946820	1949620	and there's computers all over the place.
1949720	1952960	And in an industrial plant, that might mean the difference between life and death.
1952960	1956540	I want to be able to check that they are okay.
1956760	1960360	So if you make programming headers easily available,
1960360	1962020	and often they are pretty easily available.
1962020	1964420	This one didn't have pins on it.
1964420	1965260	It was fairly easy.
1965260	1967320	A lot of them already have pins available.
1967600	1968340	JTAG ports.
1968340	1970460	Because they have to program them when they come out.
1972540	1973360	All right.
1973360	1975540	We have a couple more minutes.
1975540	1977540	I want to tell you one more thing.
1977540	1980780	This is mostly for my industrial control system audience,
1980780	1982440	of which there are a few.
1982540	1986600	Is that, well, actually it's for both.
1987200	1991480	How do we protect these things from a security point of view?
1991480	1993840	Well, we talked about being able to validate the firmware.
1994420	1998360	Now, let me plant one idea in your mind.
1998900	2002540	This is a computer running software.
2004160	2009720	So, ignoring the specifics of this device,
2009720	2014940	tell me, generically, how do you protect a computer running software?
2014940	2016400	What tools do you have?
2016900	2017820	Signing.
2018140	2020020	If you can sign the code, right?
2020020	2021280	Maybe you could sign code on it.
2021280	2022920	It might not have enough processing power.
2022980	2024160	What else can we do?
2025640	2026820	Antivirus, right?
2027460	2030540	I might ask my vendor to provide antivirus.
2030540	2033060	They might not be able to support it, but I can at least ask.
2033520	2035580	Who runs antivirus on this?
2036700	2038180	At least one, right?
2038220	2040120	I do, except this is my burner.
2041140	2043300	So, you can run AV on these devices.
2043300	2045220	So, if you can run AV, run it.
2045220	2049660	And if you're buying 10,000 whatever devices it is for your plant,
2049660	2053060	at least ask the manufacturer if you can run AV on it.
2053060	2054980	They may not be able to provide it, but maybe.
2055320	2060020	What else do we do to protect computers running software?
2062450	2064190	Protect the network, right?
2064190	2066970	If this thing isn't connected, the other ones are, right?
2066970	2074150	We use firewall rules and IDSs to protect the network.
2074730	2075970	Anything else?
2077370	2078750	Patches, right? That too.
2078750	2081290	So, we're going to check to see if there are any known vulnerabilities,
2081290	2082690	and we're going to patch these devices.
2082690	2085650	So, the final takeaways are drills are fun.
2085650	2086410	No, wait a minute.
2086410	2089710	Are that everything's a computer running software,
2091230	2093330	and even if that's what you're faced with,
2093330	2095270	no matter how bizarre they look,
2095270	2097610	you have tools to help protect them.
2097770	2099910	If you can't do exactly what you want,
2099910	2102830	if you can't run AV on here,
2102830	2104910	you want to be creative and do something else,
2104910	2108670	like run firewall rules in your wireless or so forth.
2108750	2111770	You have to be a little more thoughtful about how to protect it.
2111770	2114390	But you have the opportunity to do that.
2114390	2115390	Be creative.
2115430	2117270	With that, thank you very much.
2117650	2119070	Oh, wait a minute.
2119070	2120950	I took the charger apart too.
2120950	2123010	Anybody, any idea what this is?
2124470	2125790	Another microcontroller.
2125850	2127250	All right, well, I'm Monte.
2127250	2128470	Thank you all very much.
2128470	2129750	Catch me online somewhere.
2129750	2131610	I'm here the rest of the week.
2131610	2134230	Thank you.
