start	end	text
0	3980	Welcome to Nation... oh, I do have to stay real close to this thing.
4320	8260	Nation State Supply Chain Attacks for Dummies. And you.
8700	11340	Or Chipping Cisco Firewall. So, let's go.
11340	14520	We got a lot of stuff to cover and not very long to do it in.
15000	18360	Hi, I'm Monte. And I do Coke and Strippers.
18500	21860	I mean, for educational purposes only.
21980	25280	I mean, I do the YouTube channel, Coke and Strippers.
25280	27560	That's an educational channel. It's electronics.
27560	29760	Anyway, you should go watch it.
30420	31220	Okay.
32000	35060	Oh, and you should note this. How many people...
35060	37200	Yeah, we got people here. Take a good picture.
37360	39780	Post something about this talk on Twitter and show it to me afterwards.
39780	42360	And I'll give you something until they run out. I've got a little prize.
42640	44100	A few of them. Alright.
45380	48540	So, Supermicrochipping news.
48540	51840	Anybody remember this story from Bloomberg last year?
51840	53260	We got a few, right?
53480	57420	Big article that maybe motherboards from Supermicro
57420	63460	had small implants on the motherboard that would allow remote ownership.
63700	68720	And that's kind of scary because that kind of stuff is pretty much impossible to detect.
68800	71820	It could be in your equipment.
71820	75840	It may survive a reboot or re-imaging.
76200	78680	And it was introduced somewhere in the supply chain.
78680	81660	You don't necessarily get a chance to see it and look at it.
82420	86440	There was a lot of concern about it.
86440	88620	They said it might be in some of the big data centers.
88620	91360	Maybe Apple or Google or whatever.
91360	92780	There were a few mentioned.
93040	95680	But nobody ever found any real evidence.
95940	98300	So, as far as I know, it was not real.
98300	101920	Still a little down. Can you all hear me? Art, can you hear me?
101940	103400	Sort of? Yes.
103400	105700	Okay. If you ever can't, do this.
105860	106660	You're going.
107680	111160	Oh, you're listening to the thumb music in the back. Okay.
111880	114740	But we never found any real evidence of it.
114740	119560	So, still looking for proof.
119900	122900	Instead of which, I decided that doesn't matter.
122900	124420	Let's make it real.
124540	126300	So, why not?
126300	128720	And hopefully better than this.
129480	131600	We started that.
131640	132780	Could be better.
133100	134700	So, time to pick a device.
134700	136520	I'm from the ICS space.
136520	139780	And my original thought was to pick maybe some of these.
140320	144560	But I eventually decided on the Cisco firewall, which is also used there.
144560	147560	The same attack basically will apply to all of those.
147560	150240	But the firewall has a little broader appeal.
150240	152600	So, we'll do it there.
153820	157620	Try to consider what ways to do this.
157620	164240	After a little thought, I decided probably the serial port was the cheapest and the easiest and the fastest to try to attack.
164240	168080	Most of these devices are configured by serial port one way or the other.
169300	176220	So, quick look at serial ports to refresh your memory if you haven't played with one in a few days.
176940	179160	Simplest form, you need only three wires.
179160	181260	You need a TX wire to talk to the device.
181260	184300	You need an RX wire to receive information from the device.
184300	185340	And you need a ground.
186120	190920	They look like those connectors.
190920	194100	Or, on the Cisco device, they're RJ45s.
200900	202200	There we go.
202200	203980	Now I can make little circles.
205240	208800	So, here's a USB serial. They connect in those.
208800	211160	In that port, that's the RJ45 serial connection.
211160	215980	And the way you would originally configure a Cisco firewall when you first get in here...
215980	218340	Who here has configured a Cisco firewall before?
218340	221360	Oh, we got like half the audience at least. Maybe more.
221360	222260	Excellent.
224620	227620	Serial signaling goes something like this.
228020	231100	You're going to pick a baud rate. There are various ones.
231540	233340	9600 may be the most common.
233340	235000	You're going to pick a number of data bits.
235000	238320	Typically 7 or 8, but like 5 is legal.
239180	247700	You're going to have a parity. It can be none, odd, even, mark, space, and a number of stop bits.
247700	250500	And that defines your serial packet.
250560	254140	How it's actually going to be transmitted on the physical wire.
254140	257800	Very common is this 9600 8N1.
257800	263120	That's our baud rate, number of data bits, parity, none, and one stop bit.
265500	268660	To start dealing with the serial protocols,
268660	271840	one of the things that I found very useful was this 8-channel analyzer
271840	276440	that you can get from all the usual places in China.
278000	279460	They're kind of ironic.
279460	282260	You use cheap Chinese stuff to try to hack cheap China.
282260	283280	Never mind.
285060	289580	Anyway, that and free software.
290200	292500	PulseView, freely available on the net.
293500	297200	Its companion is Sigrock as well.
297200	299760	So I can see signals going in both directions.
299860	304220	Normally, if you connect up to a serial port, you're just getting the receive channel.
304220	309420	You won't necessarily see what's on the send channel unless the device on the other end reflects it to you.
309420	313200	So I want to connect to both the send and receive, receive both channels simultaneously.
313440	315800	I can set up PulseView to do that.
315800	318340	I'm setting up 8-in-1.
319480	321360	Least significant bit first.
321360	323120	That's what little Indian...
323120	325320	I want to see it as ASCII.
325320	327340	I need to invert the signal.
328360	330420	So PulseView, there's the link if you need it.
330420	331300	It's great software.
331300	333980	I don't have anything to do with the project other than I like it.
334360	340220	In this case, what we see is these are the literal bits I am pulling off the wire.
341760	347060	This is... I use this UART decoder for them.
347100	348740	I see a start bit.
348740	351840	I see a bunch of data bits and a stop bit.
351880	357220	If I interpret this as ASCII, which is what I've asked it to do, I end up here with the letter C.
357220	359580	C-O-N-F-I-G and so forth.
359700	363540	So that's a sample of this run.
364280	366080	Typically, you'll run this...
366080	373100	When you're doing serial, you'll use a UART and a driver to help you communicate with the hardware
373100	377120	and keep all of your voltages at the right level.
378560	381280	These are the commonly seen voltage levels.
381280	384380	We've got 5 and 10 and 12 and 15.
384600	385820	And that's a problem.
385820	389400	On this device, it's swinging plus and minus 15,
389400	395980	which will totally destroy any type of microcontroller I want to try to connect to it.
396100	400820	So, we've got a little bit of a problem, but there's a trick.
400820	407360	So, in doing some other work with attacking power supplies, I found this application note.
407620	413180	And basically what it says is that these microcontrollers, at least the family I'm used to working with,
413180	420260	the Atmel and various other ones, have protection diodes built in on every input.
420260	426900	So that if the voltage swings above your positive voltage, above VCC, it gets tied there.
426900	433400	And if the amount of current is low enough, that keeps that pin from going above your VCC voltage.
433400	436420	Or, it also keeps it from going below ground.
436780	442300	But the key point to this is that you have to limit the current, right?
442300	445680	Otherwise, you will just smoke those diodes and still blow the chip up.
445680	449480	So, what you need is just an appropriate sized resistor coming in.
449480	454080	In this case, they're using one mega-ohm and they can connect it to the AC outlet.
454100	460600	Well, I only need to work for 15 volts, so that should be something like a 15 kilo-ohm resistor.
461040	465360	It turns out maybe 5.1k is close enough.
466340	471080	That's when I started using the testing and it was working and I just never changed back, right?
471080	475140	What's the number one rule in ICS, you know, reliability?
475140	476460	If it ain't broke, don't touch it!
476460	479440	Yes! It's working, don't touch it!
479620	482240	You should get a reward for that.
482240	484520	We'll see you afterwards.
484660	486100	Oh no, hang on.
486100	488880	Yeah, I don't have them. They're in my back.
491160	493200	So, I want to be able to test this.
493200	499600	Can I actually use this configuration to talk to this Cisco device?
499600	502920	You know, this is a little big. I'm using this Arduino Mega.
502920	507980	You know, what are they? 10, 15 bucks, maybe less if you get them from the Chinas.
510020	515480	And setting up a couple of resistors and this serial cable in.
515500	519440	And sure enough, I found out, yes, I can talk to this device.
519440	522800	I can receive these 15 volt signals without blowing it up.
522800	529280	And also, surprisingly, just by sending it 5 volts and ground, I can transmit to it.
529280	531060	Which is out of spec, right?
531160	536800	The minimal spec is like negative 3 volts for RS-232.
536800	538880	Well, now TIA, but you know.
540160	543340	But, it works. So far, I'm in.
543340	546300	I'm going down this path. How am I going to attack it?
546300	548960	What hardware and software to use? Is this possible?
548960	553880	It looks like I'm good. It looks like I'm prepared to do this.
553880	555980	It was a fairly quick and easy test, right?
555980	560040	Get a piece of hardware. You plug it up. Not too hard. It works.
560880	566400	The next thing is to decide what actual kind of chip that I want to use in this.
566760	572260	Part of the fun of the attack, I think, is using very small devices, right?
572260	575300	If you remember the picture from the Bloomberg, it was a pretty small device.
575820	581480	I started out with this ATtiny10, which, as I say here, is not just tiny. It's minuscule.
581480	584220	That's the one here in the tweezers.
584220	594450	And technically, the attack that we'll see here in a little while, you could technically run it with that microcontroller.
595320	603560	There's also the ATtiny85. I chose that one because of some additional capabilities, in particular EEPROM.
603560	607520	So that allows me to store information in the chip.
607520	613160	So, like, I could count number of reboots or maybe store some data if I could collect it.
613160	622040	So, I chose the ATtiny85 for maybe some advanced features that, actually, at this point, I haven't implemented.
622180	624080	But, it doesn't matter.
624080	628900	There was also another advantage, and we'll see, of choosing this ATtiny85.
628900	631760	But, technically, you could use the ATtiny10.
631920	633720	Ah, there are a couple more advantages.
635080	641560	One of them being this carrier board, this DigiSpark.
641560	644800	You can pick these up, again, from where?
645260	645960	China!
645960	651360	Yeah, China! Taobao, Alibaba, Amazon, even.
651360	653180	Five of them for $10.
654140	658640	The actual microcontroller is over here. This is a power supply chip.
659060	661820	Buying it in this format just makes it quicker and easier.
661820	664840	I can program it by shoving this straight in a USB port.
664840	670740	So, I got them cheap, and I've got a few of these.
670740	676200	So, take a picture, tweet me, and catch me afterwards, and show it to me, and I'll give a few of them away.
677360	679180	That's your DigiSpark board.
679180	682640	So, I don't have to worry too much about programming it.
682640	686540	And, also, I can use existing tools. That saves me a little bit of time.
686540	690040	I can use the Arduino IDE interface.
691000	694100	So, now, this is my second round of test hardware.
695600	701500	I'm not using the Mega anymore.
701500	703360	I'm actually using this DigiSpark.
703360	706300	Can I do this same thing with this other piece of hardware?
706300	708460	There shouldn't be any reason why I couldn't.
710060	712320	But, you know, you want to test it.
712320	714280	It is a little more complicated to program.
714280	719740	There's some limited amount of space, and some kind of libraries to play with.
719740	723920	But, connect it up. Start running the tests.
724180	728400	And, at that point, find out that we are all good.
728400	734620	I can use this little device to communicate across the serial port.
734620	736020	So, now, I'm getting closer, right?
736020	738300	I've got a device. I've run the tests.
738300	743100	I just need to be able to hide this on the motherboard somewhere.
743360	747880	Oh, and I also mentioned that you can use the Arduino IDE to control this.
748340	749680	You really can't see it here.
749680	752240	I assume this will be available somewhere online.
752640	756460	Links to all these parts and pieces are there.
756460	757300	You're shaking your head.
757300	758620	So, it's going to be online.
759580	763160	And, if you want to follow along...
763160	767860	By the way, though, for programming this board, usually in the Arduino world,
767860	769960	you just hit Program, and it programs.
769960	773260	For this board, you have to disconnect it and reconnect it.
773260	777660	The bootloader will only allow it to program the first few seconds during powerup.
777780	780920	So, I struggled with that for a few minutes the first time.
780920	782820	Well, maybe more than a few minutes.
782940	785740	The first time that I started fiddling with these.
785740	789720	So, hit the Program, unplug them, plug them back up.
789720	790840	They program great.
792580	794200	So, now, what do I do?
794200	795840	So, I've picked the chip.
795840	796720	It looks like it works.
796720	797440	I've tested it.
797440	799480	I can program it on this board.
799720	801080	I don't want to install that whole board.
801080	801680	That's ugly.
801680	802240	That's big.
802240	803460	It's obnoxious.
803760	808580	So, after I program it, I pull that chip off this board.
808720	812160	I use a little hot air rework.
812160	816420	Now, that's just because I have it in my basement.
816420	823540	That's my below-ground lair in the basement.
824200	827240	But you can use a soldering iron or whatever.
827240	832580	But, again, for all these things, I don't get any money from Banggood,
832580	835520	which is actually a cool place to buy electronics online.
835520	836460	Don't ask.
837900	839300	There's the links if you want them.
839300	841120	But I pull the chip off of that board.
841120	842260	Now I have my chip.
842260	843060	It's all programmed.
843060	844440	It's all ready to go.
844440	847060	And so far, it's been relatively easy.
847060	852820	I didn't have to get any kind of special programmers or anything else.
852820	857640	Any small PC boards because it came already connected for me.
857640	862780	So, one of the advantages of starting with these DigiSparks, and it's cheap.
864560	868200	So, we talked about, well, what ended up being four wires.
868200	871160	That's RX and TX, transmit and receive.
871160	873520	You also need power and ground.
874700	879240	But for this attack right now is I'm just running it blind.
879240	881800	I'm just pushing commands out.
881800	884100	I'm not listening to anything coming back.
884100	886080	So, I can cut off one of those wires.
886080	888500	I only need transmit and power and ground.
888580	892520	So, I end up with this little chip with three wires coming off of it.
892520	897900	And at this point, I should be able to take that chip and solder it anywhere on this motherboard
898600	902500	and send the commands that we'll run through here briefly.
905440	911300	But these wires on a motherboard, sometimes called bodge wires, they look ugly, right?
911300	913300	And they sort of indicate something weird is going on.
913300	916740	I mean, occasionally you will see them for real, like the picture there on the left.
917080	919280	But they're fairly rare.
919500	924260	And what I really don't want is it to look like this picture on the right where somebody's just soldering all kinds of stuff.
924320	930820	That's going to look really suspicious on your new equipment if it has all kinds of warts and stuff growing off of it.
930820	934520	So, I want it to look better than that if possible.
934520	938200	So, what can I do about this three-wire installation?
939640	943180	Well, I came up with a three-wire solution.
943180	953480	It turns out that next to the port on this device that is the RJ45 serial connection, there are also two USB ports.
953580	960980	And this is the bottom of the motherboard already, the way it's already set up.
960980	964080	This is factory original shmoo here.
965000	967880	We'll talk about later looking for this thing.
967900	971000	You might look for sort of strangeness on the motherboard.
971000	974120	And this was already here from the factory. That wasn't even my doing.
974200	983980	But what I found was at this location, here are the pins for the RJ45 serial connection and my TX line.
983980	985380	And there's a ground.
985640	989260	And then I pull power off of this. These are the USB ports.
989260	993460	There are two USB ports, power, ground, and I don't need the data connections.
993460	999640	So, I solder this small chip directly to the motherboard like this.
999640	1004640	Now, I've got power and transmit, and it's awesome, right? I am in.
1007460	1010500	Probably way too far late in this process.
1010500	1011740	Wait a minute. Yep.
1012420	1013460	All right.
1013460	1019660	So, by the way, who here are like electrical engineers or electrical hobbyists?
1019660	1025620	We need more electrical minded folks in this... in any case.
1025620	1031560	So, what is its value? What is the value of this thing?
1031720	1034640	You don't have to be an electrical engineer to figure it out.
1034640	1035400	Anybody?
1035520	1036800	Five dollars.
1037800	1039320	Five RMP.
1040400	1042600	Half a penny. Half a cent.
1043060	1044100	No!
1044160	1045140	Yes.
1045660	1048620	No, I'm playing a little bit of a word game here.
1048620	1053680	The value of it as a resistor is its resistance in ohms is?
1054160	1054800	Zero.
1054800	1055360	Zero!
1055620	1058060	And it only costs like half a cent.
1058060	1060500	But, word games. Thank you for playing.
1061500	1065420	Its value as a resistor value is zero.
1065420	1067820	Why do we use a zero value resistor?
1068440	1070300	What do we use that for?
1070440	1071940	Protect the circuit.
1072180	1075440	No, it's got zero protection value.
1075440	1078140	Yeah, but it's like you've got some kind of voltage that looks low.
1078140	1080000	Yeah, maybe. Maybe, because it's small.
1080000	1081280	Yeah, you might use it like a fuse.
1081280	1083960	In this case, I'm just using it so I don't have to use a wire.
1085020	1088680	Because I needed this one resistor, right?
1088680	1090840	That's the one protecting me from the 15 volts.
1091120	1094200	I used this one to ground just so I don't have to put a wire in there.
1094200	1096700	So, it turns out to be valuable.
1096700	1100480	It makes this a lot more invisible on this motherboard.
1100840	1103600	And at this point, success, right?
1103600	1105260	I've got this thing on the motherboard.
1105340	1106300	I've got it programmed.
1106300	1107380	I've got it hidden.
1107960	1108720	Golden.
1109100	1114440	Except, when I got to this point, which was really not too long ago.
1114440	1115560	Because I've done all the tests.
1115560	1116340	I knew it was fine.
1116340	1117700	All I had to do was do this.
1117700	1119780	And I'm ready for this presentation.
1120960	1123980	When I booted it up, it didn't work.
1124660	1127060	My attack came too late in the boot process.
1127060	1129080	And we'll see why that is in a minute.
1129460	1139780	It turns out that this motherboard does not turn the power on to the USB port until after the thing is booted.
1139960	1141540	Who knew, right?
1142020	1145420	Well, when I'm poking around on the board, I'm looking for 5 volts and I plug it up.
1145420	1147400	You know, 5 minutes later, I find it.
1147440	1149440	Who knew I had to wait for the boot cycle?
1149440	1150920	So, now it's like it's the middle of the night.
1150920	1151780	What am I going to do?
1151780	1154980	I've got, you know, I've got the perfect place for it.
1155920	1163000	I guess the worst case is I can pick another bodge wire and, you know, run it halfway across the motherboard and find 5 volts somewhere.
1163220	1165920	But I found something else instead.
1166420	1168140	I found this chip.
1168960	1173720	This is the chip that controls the power to those USB ports.
1173720	1181160	The computer sends it a signal and it takes 5 volts from this end line and it sends it out to the two ports.
1181460	1184720	Out A and out B, those are those two USB ports.
1184720	1191040	So, if I can manipulate this device, then I can have power there all the time.
1191600	1198800	And, actually, the easiest way to manipulate this device was actually this.
1199340	1202140	Anybody know what a solder bridge is?
1203260	1205380	Generally, are they a good thing?
1205740	1207640	No, right? Generally, they're a mistake.
1207640	1211140	You accidentally connected two pins together with a big glob of solder.
1211260	1213280	It might be overlooked, maybe.
1213280	1221780	But, in this case, what it did was that it took the end 5 volts and directly connected it to that serial port all the time.
1223080	1227100	This chip also will do overcurrent protection, so you lose that.
1227100	1232800	But, you know, who really cares? Not me.
1233040	1235860	So, I get to use a solder bridge as part of an attack.
1235860	1237300	I just think that's cool.
1237580	1240380	And no bodge wire to find 5 volts.
1241020	1242940	So, it's installed. You've seen it.
1242940	1246820	You know what it looks like? Where is the chip on this motherboard?
1252060	1254240	Yeah, okay, the picture is kind of ugly.
1254680	1256340	It is there!
1257600	1259900	Alright, there it is! Yay!
1260800	1261520	Okay.
1262960	1264780	You can find it.
1264780	1270660	Look, I can take a high schooler and I can teach him to look for bad solder joints, alright, because this is hand-soldered.
1270660	1272580	It's not going to look as good as a machine soldering.
1272580	1275920	But, it can take a little while.
1276440	1278300	So, I put it on the motherboard, right?
1278560	1279920	I'm going to put it somewhere.
1280560	1285120	In this case, it's on the bottom of the motherboard, because that's where it fit better.
1285500	1293620	Which means you have to take out 14 screws, pull out the front plate, pull out these little light pipes, take the motherboard out and turn it over to even be able to see it.
1293840	1297780	So, when you get a brand new piece of equipment designed to protect your network,
1297780	1302180	who, at first, takes it all apart and lays it across their desk before they begin?
1303260	1303720	What?
1307100	1313380	Alright, so, your boss will probably give you funny looks if you take all of your equipment apart very first.
1314920	1320860	There's also another place to hide it, and this is my trade secret, so I'm just sharing it with you all.
1322060	1328180	This is the RJ45 and the two USB ports in this metal can.
1328880	1335200	If you flip this board over and unsolder these four points that holds this can on,
1335200	1339800	in the back of this can, there's a hole about the same volume as in the front.
1339800	1342660	I can stack up like 15 of those chips in there.
1342820	1346320	So, you can put it in there, solder this tin back on it.
1346320	1350380	Now, for somebody to find it, they have to take all the 14 screws out, they have to take the motherboard out,
1350380	1353340	turn it upside down, they have to start desoldering all these cans.
1353340	1356440	There are actually several of them around the motherboard, if you look,
1356440	1361700	and see if Monty's hidden something stupid in one of them.
1361700	1363500	So, not very likely.
1364040	1369280	I didn't do that for this because I thought it wasn't fair, right, if you couldn't somehow see it.
1369280	1377680	This is my... this is my, you know, emergency safety trick to solve all the problems.
1377680	1381060	I found these really nice Warranty Voided for Mood stickers.
1381060	1385660	They have holograms, they are individually serial numbered, they have a barcode.
1385660	1391780	They even say, if you look carefully, it says genuine authentic in the hologram.
1393080	1393800	Right?
1394260	1399260	So, you slap that on the outside of the box, you've already eliminated 80% of the population right there.
1399260	1402840	If you take some new pieces of equipment, the first thing you do is cut the warranty void.
1404340	1406800	Alright, that's my backup plan.
1407800	1411240	Alright, so, we are going to look at the video of the demo.
1411240	1419900	Normally, I plug these up, but we're on a kind of short time frame.
1419900	1421820	It's actually built in the bottom of this motherboard.
1422300	1429660	Here is my test rig, by the way, in TSA-friendly Tupperware, so that I can travel with it.
1429660	1437140	But, instead, let's go through a video.
1446870	1450150	Alright, so, I will describe this as we go along.
1450150	1457030	This top window is just capturing the data as it would look to the Cisco device.
1457030	1458590	I'm not typing or anything.
1459370	1465150	Anything that happens up here is the result of the Cisco device and this embedded chip that we've put in so far.
1465150	1469970	You notice that there's a little timer that says, and that's just me highlighting it,
1470110	1474810	a timer that says you can press escape to go into ROM-MOM mode.
1474990	1480870	Alright, so, it presses escape and then it does this config register 0x41.
1480950	1484970	This is what allows you to modify an existing piece of hardware.
1484970	1487790	I got this off eBay with a full config installed.
1487790	1489250	We'll talk about that offline.
1490910	1493650	It allows me to boot it without knowing the password.
1493650	1498710	So, now the implanted device, after it does that, and it boots,
1500170	1504890	I might not know what the... it's booting blank, but I got in without a password.
1504970	1510030	I don't know what their existing network is like, really, or what the existing network configuration is.
1510030	1519050	So, the first thing that it does is it loads up the existing config that's stored on this device.
1519230	1522970	And, we'll see that come up in a second.
1522970	1527270	And then we're going to take that existing config and modify it,
1528930	1532570	adding a SSH port, opening up a connection to the outside interface,
1532570	1537250	which is probably connected to the internet, along with credentials that are only known to us.
1537410	1541850	Right? That's nice. And this down here in the bottom is just a testing script I have running.
1541850	1546830	I'm trying to ping this firewall. We see it's not responding yet because it's not booted.
1548130	1550830	It's going to the config. It's generating the... right?
1550830	1554390	If we're going to control this device remotely, we're going to do it securely, right?
1554390	1559890	SSH all the way for the win. And so forth.
1559890	1562730	So, you can follow along there for a second.
1562730	1572210	One other little piece of magic tip is that you cannot see this happen if you plug into the console port.
1572210	1578030	If you plug into the console port, the voltage overrides that small resistor and it doesn't happen.
1578190	1583510	So, imagine you get this box. You plug it up. You configure it. It's all great.
1583510	1587290	You will never see this happen. You unplug it. You put it in the rack.
1587290	1589970	And then when you power it up, you're owned.
1590810	1594990	Now, assuming you go back around and scan the machine and see there's something wrong with it, what do you do?
1594990	1598550	Well, you try it two or three times. It keeps getting owned every time you reboot it.
1598550	1601430	You pull it out. You put it on your desk. You connect the serial cable up to it.
1601430	1606630	You're like, oh, you reconfigure it. It's great. You put it back in the rack. You reboot it.
1606770	1613230	So, if you test your configs every month, I get an average of 15 days to screw with it.
1613230	1617690	And you're going to pull it out at least once and put it back. So, I'll get two times 15 days.
1617970	1624190	All right. In the bottom, we got the ping back and we...
1624850	1626710	Let me get back up just a little bit.
1626710	1634310	We saw that the SSH port was open. We connected with our credentials only known to us.
1634310	1641650	And now we have enabled, which is admin-level access, and just printed out part of the config of this device.
1641650	1647950	So, that's the plate demonstration. At some point, maybe we can do it live for real.
1650270	1652710	That's pretty much it. I've got...
1659920	1663300	So, Cisco defines this attack as password recovery.
1663300	1668660	There's a document there that basically describes how you do this, sort of adding the accounts.
1668980	1675540	We could make this more sophisticated, but not really.
1675560	1678640	I used to call these attacks the Miyagi-style attacks.
1678660	1683840	You remember the movie? He says, right, the creator's like, if do right, no can defend.
1683840	1687740	So, you can't see it in the firmware. You can't detect it.
1687740	1690820	It happens on its own. You can reflash it. It doesn't work.
1690820	1695660	That's not quite true. If you pull your brand new equipment apart and look very carefully,
1695660	1701880	look for rework, look for bad solder joints, and regularly baseline your equipment,
1701880	1707580	look to see if it's changed, in-map it, check the configs and so forth, that's your opportunity.
1708400	1712240	Alright, that's it. What I've learned is this really isn't very hard.
1712240	1717000	I did this in my basement. You know, I'm okay, but I'm not that good at it.
1717000	1720220	You could get this and follow along if you've done any hobbyist work.
1720540	1725060	I think, really though, it's a pain in the butt to do, and nobody's going to do that.
1725060	1729220	This is currently only for targeted attacks. Why only targeted attacks?
1729600	1732380	Because your security sucks, right?
1732400	1737880	Cisco's had lots of vulnerabilities in their firmware, and you don't even have to modify it to get there.
1737880	1741660	So, I'm Monte Elkins. Catch up with me on Twitter.
1741660	1745580	Don't forget to do Coke and Strippers. I mean, the YouTube channel.
1745900	1748400	And we'll see you next time, DEF CON. Thank you very much.
