We're in the IOT Village and this is the Hardware Hacking Your Kitchen. It's what's really cool. It's presented by GE and there's a ton of different GE appliances like espresso makers and hot water machines. And it looks like an oven over there. And what's so cool about these, and also terrifying, is everything has an IP address now. And because everything has an IP address and we want to be able to control everything, like our coffee from our smartphone, this introduces a bunch of anomalies, bugs, vulnerabilities that can happen with any of these devices. Things like injecting a packet or either locking up the device, or a more dangerous thing would be having it heat up with no water in it, which might cause the heat exchanger to push too much heat and maybe cause us short. Those things are on the extreme side versus maybe just like overriding firmware. Right now, in the CTF, there's not really vulnerabilities built into the CDF. You're looking for what would amount to a zero-day vulnerability or things we don't know about yet. And you can submit that POC to GE and they'll reach out. And I don't know if they have a bug bounty program, but it's so cool that more and more of these villages are growing to include appliances which haven't really either hit the market yet or ones where the company is now understanding that hackers are some of the ones finding these vulnerabilities and they can find those earlier in the cycle. So cool that you'll be able to just plug in, interact with these systems. Let's go find out more about the contest. Before we start, actually, you can go ahead and kick it on. This is the IoT Village. You're running a contest. Is the contest these devices out here? No, so these devices here are some devices GE brought. So basically, they're looking to see if anyone can find any vulnerabilities on them that maybe their engineers back home didn't find. That would amount to effectively a zero-day. Yeah, they're looking for zero-days. Yeah, they're looking for zero-days on these. A few minutes ago, someone cracked one and steam started shooting out of one of these coffee makers. So, pretty cool. So, you're running the IoT Village CTF competition. So, can you tell me a little bit about how that one is? Yeah, so basically, the IoT Village CTF, we've got all sorts of embedded devices, whether it's an IP camera, a NAS, routers, switches. 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. They've left zero-days, they've left vulnerabilities in services or in hardware that people can compromise. So, we basically give any one of these contestants the ability to go ahead and start poking at all of these devices, see if they can find either a known way of getting in, or find a new zero-day for one of these devices. So, unlike other CTFs where we'll say you design challenges and vulnerabilities in them, this is, we'll call it a stock IoT device, which has a vulnerability the manufacturer accidentally introduced in the software. So, it's not like a, hey, we snuck a challenge in. 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. But we haven't done any sort of mucking with the device firmware besides that. The only point of changing those devices is so that the participants can actually get a flag to submit to the CTF. So, question, if I think about an IoT device, there's a couple different vulnerabilities that impact them. Some of them you're worried about, let's say a loss of confidentiality. If it's a camera gaining access to the camera and getting the footage. 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, they've now introduced an integrity vulnerability where now it won't function as well, they've now overwritten the firmware. How do you scale the risk there? 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. 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. Basically, these devices, once you've cracked them, you've got everything. You've got RCE, you've got access to the firmware, you can dump the firmware if you want. So basically, once they've got that and they're in the device, we give them the flag. And we basically score it based on how tough the CVE is to find or how tough that device is. If we have some over here, which I'm sure we do, that they don't have any vulnerabilities, we'll give that a high score because someone just found a zero day. What's been the most interesting vulnerability that has been found so far? I mean, interesting... It's a loaded term. Yeah, it's a loaded term, but I'd say the most interesting ones that we've got over here are just ones where the PHP developer left thousands of passwords in the PHP. Not only that, you can view the page sources in some of these and see the passwords there. And it shows you a little bit of how IoT device manufacturers deal with making devices like these. A lot of the time, those considerations are not very high. And it can be really expensive to fix these after you put them out the door, which is... I would almost say it takes a technical skill to be able to push a firmware upgrade. Yeah, yeah. Not to mention there's plenty of times where pushing firmware updates can be horrendous. For one, because someone can compromise the firmware updates. And for two, because you fuck one thing up and the firmware updates, the device is bricked. And you've got angry customers. Are we going to have to bleep that out? No, no, you're fine. Fair enough. It's Defcon. It's Defcon, you're right. No, that's so interesting. What's interesting is things like, you can't really push out the updates. So what is the solution, as weird as it is? Spugs are always going to be there, but what would be the recommendation? For one, I'm a big fan of Rust as a programming language. Rust will solve all of our problems. It won't solve all of our problems. It'll solve about 70% of them. We see a lot of memory safety issues on these. Because a lot of the time, all the firmwares in C, or they're relying heavily on C dependencies. Rust is a pretty darn good language for embedded devices, just to clear out the possibility of memory-related issues. It's not going to fix everything, for sure. It's not going to fix SQL injection. You can still do that. But, for one, that, for two, possibly some better CI, CD, DevOps practices that they're testing for security, while they're writing the software for these devices, would go a long way. Typically, they lead that to the end. It seems like a lot of the vulnerabilities, which I've seen on the devices, are often things like, getting SQL injection, passwords and usernames and source code, where it's like, you've got, even the most semblance of SAS or DAS tool is going to pick this up. It's amazing that they get out to market without ever having this done. Yeah, and to their credit, it is a bit of a tough job, right? If you want to avoid storage credentials that are default credentials on these devices, it can be tough. Like, maybe you can have the thing generate a new password when the thing starts up, so you never have a default credential. But, what if someone just grabs your thing off the shelf, just solders onto the board, and figures out what algorithm you're using to generate those random passwords? People do that all the time. They'll use these side-channel attacks, where they will just dig into the bare hardware, see if they can read the firmware right off the board, and decode what they're doing. That's nuts. Well, hey, thank you so much. Thank you for your time. Thank you for watching, and as always, hack on!