start	end	text
0	4120	We're in the IOT Village and this is the Hardware Hacking Your Kitchen.
4120	9040	It's what's really cool. It's presented by GE and there's a ton of different GE appliances
9040	15680	like espresso makers and hot water machines. And it looks like an oven over there.
15740	21820	And what's so cool about these, and also terrifying, is everything has an IP address now.
21820	25300	And because everything has an IP address and we want to be able to control everything,
25300	31040	like our coffee from our smartphone, this introduces a bunch of anomalies,
31040	35180	bugs, vulnerabilities that can happen with any of these devices.
35180	39460	Things like injecting a packet or either locking up the device,
39460	45420	or a more dangerous thing would be having it heat up with no water in it,
45420	50660	which might cause the heat exchanger to push too much heat and maybe cause us short.
50660	55600	Those things are on the extreme side versus maybe just like overriding firmware.
55700	62260	Right now, in the CTF, there's not really vulnerabilities built into the CDF.
62260	67460	You're looking for what would amount to a zero-day vulnerability or things we don't know about yet.
67460	72300	And you can submit that POC to GE and they'll reach out.
72300	75740	And I don't know if they have a bug bounty program, but it's so cool that more and more
75740	81800	of these villages are growing to include appliances which haven't really either hit the market yet
81800	87960	or ones where the company is now understanding that hackers are some of the ones finding these vulnerabilities
87960	90720	and they can find those earlier in the cycle.
90720	94500	So cool that you'll be able to just plug in, interact with these systems.
94700	96560	Let's go find out more about the contest.
96920	99480	Before we start, actually, you can go ahead and kick it on.
99480	102500	This is the IoT Village. You're running a contest.
102500	105620	Is the contest these devices out here?
105800	109900	No, so these devices here are some devices GE brought.
110140	113600	So basically, they're looking to see if anyone can find any vulnerabilities on them
113600	116560	that maybe their engineers back home didn't find.
116820	119040	That would amount to effectively a zero-day.
119040	120460	Yeah, they're looking for zero-days.
120460	122520	Yeah, they're looking for zero-days on these.
122520	127060	A few minutes ago, someone cracked one and steam started shooting out of one of these coffee makers.
127160	128660	So, pretty cool.
128660	132000	So, you're running the IoT Village CTF competition.
132000	133860	So, can you tell me a little bit about how that one is?
133860	140920	Yeah, so basically, the IoT Village CTF, we've got all sorts of embedded devices,
140920	147600	whether it's an IP camera, a NAS, routers, switches.
147880	154800	And what we do is we set all of them up, and we know that these device manufacturers have been pretty lax about their firmware.
154800	160260	They've left zero-days, they've left vulnerabilities in services or in hardware that people can compromise.
161020	167840	So, we basically give any one of these contestants the ability to go ahead and start poking at all of these devices,
167840	173640	see if they can find either a known way of getting in, or find a new zero-day for one of these devices.
173640	178780	So, unlike other CTFs where we'll say you design challenges and vulnerabilities in them,
178780	187120	this is, we'll call it a stock IoT device, which has a vulnerability the manufacturer accidentally introduced in the software.
187120	190380	So, it's not like a, hey, we snuck a challenge in.
190380	197580	No, no. Yeah, typically we'll go and we'll add a flag to these so that someone can get it once they've compromised the device.
197580	202440	But we haven't done any sort of mucking with the device firmware besides that.
202440	208840	The only point of changing those devices is so that the participants can actually get a flag to submit to the CTF.
208840	214360	So, question, if I think about an IoT device, there's a couple different vulnerabilities that impact them.
214360	216680	Some of them you're worried about, let's say a loss of confidentiality.
216680	220100	If it's a camera gaining access to the camera and getting the footage.
220400	228180	Do you have different stages, we'll say, when you give out points of they've gotten into the device, they've compromised the data of the device,
228180	235300	they've now introduced an integrity vulnerability where now it won't function as well, they've now overwritten the firmware.
235300	237260	How do you scale the risk there?
237260	247080	We keep it simple for the main reason that just inherent in these devices being little tiny IoT devices, we're going to have to reboot them.
247080	255180	We don't want to rely too much on someone having to sit on one of these devices for too long and find and research.
255380	259740	Basically, these devices, once you've cracked them, you've got everything.
259740	265620	You've got RCE, you've got access to the firmware, you can dump the firmware if you want.
265620	269740	So basically, once they've got that and they're in the device, we give them the flag.
269740	275340	And we basically score it based on how tough the CVE is to find or how tough that device is.
275340	280740	If we have some over here, which I'm sure we do, that they don't have any vulnerabilities,
280740	284860	we'll give that a high score because someone just found a zero day.
286680	291060	What's been the most interesting vulnerability that has been found so far?
291060	293680	I mean, interesting...
293680	294700	It's a loaded term.
294700	299760	Yeah, it's a loaded term, but I'd say the most interesting ones that we've got over here
299760	306940	are just ones where the PHP developer left thousands of passwords in the PHP.
306940	312300	Not only that, you can view the page sources in some of these and see the passwords there.
312300	319240	And it shows you a little bit of how IoT device manufacturers deal with making devices like these.
319240	324720	A lot of the time, those considerations are not very high.
325480	330440	And it can be really expensive to fix these after you put them out the door, which is...
330440	335920	I would almost say it takes a technical skill to be able to push a firmware upgrade.
335920	343840	Yeah, yeah. Not to mention there's plenty of times where pushing firmware updates can be horrendous.
343840	346740	For one, because someone can compromise the firmware updates.
346740	356040	And for two, because you fuck one thing up and the firmware updates, the device is bricked.
356040	357740	And you've got angry customers.
358000	359560	Are we going to have to bleep that out?
359660	361180	No, no, you're fine.
361320	362040	Fair enough.
362040	362720	It's Defcon.
362800	364480	It's Defcon, you're right.
364480	366020	No, that's so interesting.
366020	369660	What's interesting is things like, you can't really push out the updates.
369660	372140	So what is the solution, as weird as it is?
372140	374840	Spugs are always going to be there, but what would be the recommendation?
374840	380000	For one, I'm a big fan of Rust as a programming language.
380160	381620	Rust will solve all of our problems.
381620	385560	It won't solve all of our problems. It'll solve about 70% of them.
385560	389880	We see a lot of memory safety issues on these.
389880	396800	Because a lot of the time, all the firmwares in C, or they're relying heavily on C dependencies.
396800	405960	Rust is a pretty darn good language for embedded devices, just to clear out the possibility of memory-related issues.
406480	409120	It's not going to fix everything, for sure.
409120	411740	It's not going to fix SQL injection. You can still do that.
411980	421980	But, for one, that, for two, possibly some better CI, CD, DevOps practices that they're testing for security,
421980	425900	while they're writing the software for these devices, would go a long way.
425900	428260	Typically, they lead that to the end.
428420	433220	It seems like a lot of the vulnerabilities, which I've seen on the devices, are often things like,
433220	438100	getting SQL injection, passwords and usernames and source code, where it's like,
438100	443640	you've got, even the most semblance of SAS or DAS tool is going to pick this up.
443640	447460	It's amazing that they get out to market without ever having this done.
447460	451420	Yeah, and to their credit, it is a bit of a tough job, right?
451420	457280	If you want to avoid storage credentials that are default credentials on these devices, it can be tough.
457280	461740	Like, maybe you can have the thing generate a new password when the thing starts up,
461740	463680	so you never have a default credential.
464060	470440	But, what if someone just grabs your thing off the shelf, just solders onto the board,
470440	473880	and figures out what algorithm you're using to generate those random passwords?
473880	475000	People do that all the time.
475000	479920	They'll use these side-channel attacks, where they will just dig into the bare hardware,
479920	484180	see if they can read the firmware right off the board, and decode what they're doing.
485500	488160	That's nuts. Well, hey, thank you so much. Thank you for your time.
488200	491300	Thank you for watching, and as always, hack on!
