1 00:00:00,000 --> 00:00:04,120 We're in the IOT Village and this is the Hardware Hacking Your Kitchen. 2 00:00:04,120 --> 00:00:04,980 It's what's really cool. 3 00:00:04,980 --> 00:00:12,300 It's presented by GE and there's a ton of different GE appliances like espresso makers and hot water machines. 4 00:00:12,300 --> 00:00:15,680 And it looks like an oven over there. 5 00:00:15,740 --> 00:00:21,820 And what's so cool about these, and also terrifying, is everything has an IP address now. 6 00:00:21,820 --> 00:00:35,180 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. 7 00:00:35,180 --> 00:00:50,660 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. 8 00:00:50,660 --> 00:00:55,600 Those things are on the extreme side versus maybe just like overriding firmware. 9 00:00:55,700 --> 00:01:02,260 Right now, in the CTF, there's not really vulnerabilities built into the CDF. 10 00:01:02,260 --> 00:01:07,460 You're looking for what would amount to a zero-day vulnerability or things we don't know about yet. 11 00:01:07,460 --> 00:01:12,300 And you can submit that POC to GE and they'll reach out. 12 00:01:12,300 --> 00:01:30,720 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. 13 00:01:30,720 --> 00:01:34,500 So cool that you'll be able to just plug in, interact with these systems. 14 00:01:34,700 --> 00:01:36,560 Let's go find out more about the contest. 15 00:01:36,920 --> 00:01:39,480 Before we start, actually, you can go ahead and kick it on. 16 00:01:39,480 --> 00:01:40,760 This is the IoT Village. 17 00:01:40,900 --> 00:01:42,500 You're running a contest. 18 00:01:42,500 --> 00:01:45,620 Is the contest these devices out here? 19 00:01:45,800 --> 00:01:49,900 No, so these devices here are some devices GE brought. 20 00:01:50,140 --> 00:01:56,560 So basically, they're looking to see if anyone can find any vulnerabilities on them that maybe their engineers back home didn't find. 21 00:01:56,820 --> 00:01:59,040 That would amount to effectively a zero-day. 22 00:01:59,040 --> 00:02:00,460 Yeah, they're looking for zero-days. 23 00:02:00,460 --> 00:02:02,520 Yeah, they're looking for zero-days on these. 24 00:02:02,520 --> 00:02:07,060 A few minutes ago, someone cracked one and steam started shooting out of one of these coffee makers. 25 00:02:07,160 --> 00:02:08,660 So, pretty cool. 26 00:02:08,660 --> 00:02:12,000 So, you're running the IoT Village CTF competition. 27 00:02:12,000 --> 00:02:13,860 So, can you tell me a little bit about how that one is? 28 00:02:13,860 --> 00:02:27,600 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. 29 00:02:27,880 --> 00:02:34,800 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. 30 00:02:34,800 --> 00:02:40,260 They've left zero-days, they've left vulnerabilities in services or in hardware that people can compromise. 31 00:02:41,020 --> 00:02:53,640 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. 32 00:02:53,640 --> 00:03:07,120 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. 33 00:03:07,120 --> 00:03:10,380 So , it's not like a, hey, we snuck a challenge in. 34 00:03:10,380 --> 00:03:11,400 No, no. 35 00:03:11,400 --> 00:03:17,580 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. 36 00:03:17,580 --> 00:03:22,440 But we haven't done any sort of mucking with the device firmware besides that. 37 00:03:22,440 --> 00:03:28,840 The only point of changing those devices is so that the participants can actually get a flag to submit to the CTF. 38 00:03:28,840 --> 00:03:34,360 So, question, if I think about an IoT device, there's a couple different vulnerabilities that impact them. 39 00:03:34,360 --> 00:03:36,680 Some of them you're worried about, let's say a loss of confidentiality. 40 00:03:36,680 --> 00:03:40,100 If it's a camera gaining access to the camera and getting the footage. 41 00:03:40,400 --> 00:03:55,300 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. 42 00:03:55,300 --> 00:03:57,260 How do you scale the risk there? 43 00:03:57,260 --> 00:04:07,080 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. 44 00:04:07,080 --> 00:04:15,180 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. 45 00:04:15,380 --> 00:04:19,740 Basically, these devices, once you've cracked them, you've got everything. 46 00:04:19,740 --> 00:04:25,620 You've got RCE, you've got access to the firmware, you can dump the firmware if you want. 47 00:04:25,620 --> 00:04:29,740 So basically, once they've got that and they're in the device, we give them the flag. 48 00:04:29,740 --> 00:04:35,340 And we basically score it based on how tough the CVE is to find or how tough that device is. 49 00:04:35,340 --> 00:04:44,860 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. 50 00:04:46,680 --> 00:04:51,060 What's been the most interesting vulnerability that has been found so far? 51 00:04:51,060 --> 00:04:53,680 I mean, interesting... 52 00:04:53,680 --> 00:04:54,700 It's a loaded term. 53 00:04:54,700 --> 00:05:06,940 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. 54 00:05:06,940 --> 00:05:12,300 Not only that, you can view the page sources in some of these and see the passwords there. 55 00:05:12,300 --> 00:05:19,240 And it shows you a little bit of how IoT device manufacturers deal with making devices like these. 56 00:05:19,240 --> 00:05:24,720 A lot of the time, those considerations are not very high. 57 00:05:25,480 --> 00:05:30,440 And it can be really expensive to fix these after you put them out the door, which is... 58 00:05:30,440 --> 00:05:35,920 I would almost say it takes a technical skill to be able to push a firmware upgrade. 59 00:05:35,920 --> 00:05:36,560 Yeah, yeah. 60 00:05:36,560 --> 00:05:43,840 Not to mention there's plenty of times where pushing firmware updates can be horrendous. 61 00:05:43,840 --> 00:05:46,740 For one, because someone can compromise the firmware updates. 62 00:05:46,740 --> 00:05:56,040 And for two, because you fuck one thing up and the firmware updates, the device is bricked. 63 00:05:56,040 --> 00:05:57,740 And you've got angry customers. 64 00:05:58,000 --> 00:05:59,560 Are we going to have to bleep that out? 65 00:05:59,660 --> 00:06:01,180 No, no, you're fine. 66 00:06:01,320 --> 00:06:02,040 Fair enough. 67 00:06:02,040 --> 00:06:02,720 It's Defcon. 68 00:06:02,800 --> 00:06:04,480 It's Defcon, you're right. 69 00:06:04,480 --> 00:06:06,020 No, that's so interesting. 70 00:06:06,020 --> 00:06:09,660 What's interesting is things like, you can't really push out the updates. 71 00:06:09,660 --> 00:06:12,140 So what is the solution, as weird as it is? 72 00:06:12,140 --> 00:06:14,840 Spugs are always going to be there, but what would be the recommendation? 73 00:06:14,840 --> 00:06:20,000 For one, I'm a big fan of Rust as a programming language. 74 00:06:20,160 --> 00:06:21,620 Rust will solve all of our problems. 75 00:06:21,620 --> 00:06:23,540 It won't solve all of our problems. 76 00:06:23,540 --> 00:06:25,560 It'll solve about 70% of them. 77 00:06:25,560 --> 00:06:29,880 We see a lot of memory safety issues on these. 78 00:06:29,880 --> 00:06:36,800 Because a lot of the time, all the firmwares in C, or they're relying heavily on C dependencies. 79 00:06:36,800 --> 00:06:45,960 Rust is a pretty darn good language for embedded devices, just to clear out the possibility of memory-related issues. 80 00:06:46,480 --> 00:06:49,120 It's not going to fix everything, for sure. 81 00:06:49,120 --> 00:06:50,420 It's not going to fix SQL injection. 82 00:06:50,420 --> 00:06:51,740 You can still do that. 83 00:06:51,980 --> 00:07:05,900 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. 84 00:07:05,900 --> 00:07:08,260 Typically, they lead that to the end. 85 00:07:08,420 --> 00:07:23,640 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. 86 00:07:23,640 --> 00:07:27,460 It's amazing that they get out to market without ever having this done. 87 00:07:27,460 --> 00:07:31,420 Yeah, and to their credit, it is a bit of a tough job, right? 88 00:07:31,420 --> 00:07:37,280 If you want to avoid storage credentials that are default credentials on these devices, it can be tough. 89 00:07:37,280 --> 00:07:43,680 Like, maybe you can have the thing generate a new password when the thing starts up, so you never have a default credential. 90 00:07:44,060 --> 00:07:53,880 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? 91 00:07:53,880 --> 00:07:55,000 People do that all the time. 92 00:07:55,000 --> 00:08:04,180 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. 93 00:08:05,500 --> 00:08:06,300 That's nuts. 94 00:08:06,300 --> 00:08:07,240 Well, hey, thank you so much. 95 00:08:07,240 --> 00:08:08,160 Thank you for your time. 96 00:08:08,200 --> 00:08:11,300 Thank you for watching, and as always, hack on!