WEBVTT

00:00.000 --> 00:04.120
We're in the IOT Village and this is the Hardware Hacking Your Kitchen.

00:04.120 --> 00:04.980
It's what's really cool.

00:04.980 --> 00:12.300
It's presented by GE and there's a ton of different GE appliances like espresso makers and hot water machines.

00:12.300 --> 00:15.680
And it looks like an oven over there.

00:15.740 --> 00:21.820
And what's so cool about these, and also terrifying, is everything has an IP address now.

00:21.820 --> 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.

00:35.180 --> 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.

00:50.660 --> 00:55.600
Those things are on the extreme side versus maybe just like overriding firmware.

00:55.700 --> 01:02.260
Right now, in the CTF, there's not really vulnerabilities built into the CDF.

01:02.260 --> 01:07.460
You're looking for what would amount to a zero-day vulnerability or things we don't know about yet.

01:07.460 --> 01:12.300
And you can submit that POC to GE and they'll reach out.

01:12.300 --> 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.

01:30.720 --> 01:34.500
So cool that you'll be able to just plug in, interact with these systems.

01:34.700 --> 01:36.560
Let's go find out more about the contest.

01:36.920 --> 01:39.480
Before we start, actually, you can go ahead and kick it on.

01:39.480 --> 01:40.760
This is the IoT Village.

01:40.900 --> 01:42.500
You're running a contest.

01:42.500 --> 01:45.620
Is the contest these devices out here?

01:45.800 --> 01:49.900
No, so these devices here are some devices GE brought.

01:50.140 --> 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.

01:56.820 --> 01:59.040
That would amount to effectively a zero-day.

01:59.040 --> 02:00.460
Yeah, they're looking for zero-days.

02:00.460 --> 02:02.520
Yeah, they're looking for zero-days on these.

02:02.520 --> 02:07.060
A few minutes ago, someone cracked one and steam started shooting out of one of these coffee makers.

02:07.160 --> 02:08.660
So, pretty cool.

02:08.660 --> 02:12.000
So, you're running the IoT Village CTF competition.

02:12.000 --> 02:13.860
So, can you tell me a little bit about how that one is?

02:13.860 --> 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.

02:27.880 --> 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.

02:34.800 --> 02:40.260
They've left zero-days, they've left vulnerabilities in services or in hardware that people can compromise.

02:41.020 --> 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.

02:53.640 --> 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.

03:07.120 --> 03:10.380
So , it's not like a, hey, we snuck a challenge in.

03:10.380 --> 03:11.400
No, no.

03:11.400 --> 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.

03:17.580 --> 03:22.440
But we haven't done any sort of mucking with the device firmware besides that.

03:22.440 --> 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.

03:28.840 --> 03:34.360
So, question, if I think about an IoT device, there's a couple different vulnerabilities that impact them.

03:34.360 --> 03:36.680
Some of them you're worried about, let's say a loss of confidentiality.

03:36.680 --> 03:40.100
If it's a camera gaining access to the camera and getting the footage.

03:40.400 --> 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.

03:55.300 --> 03:57.260
How do you scale the risk there?

03:57.260 --> 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.

04:07.080 --> 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.

04:15.380 --> 04:19.740
Basically, these devices, once you've cracked them, you've got everything.

04:19.740 --> 04:25.620
You've got RCE, you've got access to the firmware, you can dump the firmware if you want.

04:25.620 --> 04:29.740
So basically, once they've got that and they're in the device, we give them the flag.

04:29.740 --> 04:35.340
And we basically score it based on how tough the CVE is to find or how tough that device is.

04:35.340 --> 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.

04:46.680 --> 04:51.060
What's been the most interesting vulnerability that has been found so far?

04:51.060 --> 04:53.680
I mean, interesting...

04:53.680 --> 04:54.700
It's a loaded term.

04:54.700 --> 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.

05:06.940 --> 05:12.300
Not only that, you can view the page sources in some of these and see the passwords there.

05:12.300 --> 05:19.240
And it shows you a little bit of how IoT device manufacturers deal with making devices like these.

05:19.240 --> 05:24.720
A lot of the time, those considerations are not very high.

05:25.480 --> 05:30.440
And it can be really expensive to fix these after you put them out the door, which is...

05:30.440 --> 05:35.920
I would almost say it takes a technical skill to be able to push a firmware upgrade.

05:35.920 --> 05:36.560
Yeah, yeah.

05:36.560 --> 05:43.840
Not to mention there's plenty of times where pushing firmware updates can be horrendous.

05:43.840 --> 05:46.740
For one, because someone can compromise the firmware updates.

05:46.740 --> 05:56.040
And for two, because you fuck one thing up and the firmware updates, the device is bricked.

05:56.040 --> 05:57.740
And you've got angry customers.

05:58.000 --> 05:59.560
Are we going to have to bleep that out?

05:59.660 --> 06:01.180
No, no, you're fine.

06:01.320 --> 06:02.040
Fair enough.

06:02.040 --> 06:02.720
It's Defcon.

06:02.800 --> 06:04.480
It's Defcon, you're right.

06:04.480 --> 06:06.020
No, that's so interesting.

06:06.020 --> 06:09.660
What's interesting is things like, you can't really push out the updates.

06:09.660 --> 06:12.140
So what is the solution, as weird as it is?

06:12.140 --> 06:14.840
Spugs are always going to be there, but what would be the recommendation?

06:14.840 --> 06:20.000
For one, I'm a big fan of Rust as a programming language.

06:20.160 --> 06:21.620
Rust will solve all of our problems.

06:21.620 --> 06:23.540
It won't solve all of our problems.

06:23.540 --> 06:25.560
It'll solve about 70% of them.

06:25.560 --> 06:29.880
We see a lot of memory safety issues on these.

06:29.880 --> 06:36.800
Because a lot of the time, all the firmwares in C, or they're relying heavily on C dependencies.

06:36.800 --> 06:45.960
Rust is a pretty darn good language for embedded devices, just to clear out the possibility of memory-related issues.

06:46.480 --> 06:49.120
It's not going to fix everything, for sure.

06:49.120 --> 06:50.420
It's not going to fix SQL injection.

06:50.420 --> 06:51.740
You can still do that.

06:51.980 --> 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.

07:05.900 --> 07:08.260
Typically, they lead that to the end.

07:08.420 --> 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.

07:23.640 --> 07:27.460
It's amazing that they get out to market without ever having this done.

07:27.460 --> 07:31.420
Yeah, and to their credit, it is a bit of a tough job, right?

07:31.420 --> 07:37.280
If you want to avoid storage credentials that are default credentials on these devices, it can be tough.

07:37.280 --> 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.

07:44.060 --> 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?

07:53.880 --> 07:55.000
People do that all the time.

07:55.000 --> 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.

08:05.500 --> 08:06.300
That's nuts.

08:06.300 --> 08:07.240
Well, hey, thank you so much.

08:07.240 --> 08:08.160
Thank you for your time.

08:08.200 --> 08:11.300
Thank you for watching, and as always, hack on!

