WEBVTT

00:00.540 --> 00:02.800
I'll go ahead and get started.

00:03.300 --> 00:05.780
My name is Ricky Lausche.

00:05.780 --> 00:07.060
I had LaZeek.

00:08.060 --> 00:13.600
And this is my talk, what is dead may never die, the immortality of SDK bugs.

00:13.720 --> 00:22.260
And I apologize, I was told that the screens are not working so you're just going to have to imagine what my slides look like.

00:22.720 --> 00:25.840
But yeah, let's get into some introductions.

00:26.440 --> 00:32.940
So yeah, I'm a principal security researcher for Keysight Technologies based out of Austin, Texas.

00:33.740 --> 00:39.360
Most of my focus is around offensive research on IOT devices.

00:39.680 --> 00:47.660
And I found vulnerabilities in stuff from Meta and Mazda and Crestron, yada, yada, yada.

00:47.780 --> 00:54.220
I've spoken at several conferences including RuxCon, Recon, Insomnihack.

00:54.220 --> 00:57.880
This is technically my seventh time speaking at DEF CON.

00:57.980 --> 01:02.960
Five times at DEF CON proper and this is my second time speaking for IOT Village.

01:08.490 --> 01:14.230
Okay, so first off let me define what I'm talking about when I say an SDK.

01:14.650 --> 01:17.950
So SDK stands for software development kit.

01:17.990 --> 01:21.950
But in this case we're really talking more about a system development kit.

01:22.390 --> 01:38.570
So it's basically a collection of applications, drivers, scripts, tool chains, example code, whatever you need to get your chip integrated into a third party ecosystem.

01:39.110 --> 01:44.610
And it can include both standard and nonstandard things.

01:44.610 --> 01:55.010
So you're going to have an SSH service or a web service but you're also going to have proprietary network protocols and things like that.

01:55.750 --> 02:04.650
And for obvious reasons this talk is focusing on network chip sets specifically because, you know, I'm looking for exploits.

02:04.650 --> 02:07.850
I'm looking for remote vulnerabilities that I can exploit.

02:07.850 --> 02:10.830
So that's going to involve networking capabilities.

02:13.390 --> 02:22.190
Okay, so basically chip sets are very complicated and they're getting more complicated every day.

02:22.550 --> 02:29.470
You know, something that used to be like an integrated circuit or a microcontroller is now a full system on chip kind of thing.

02:31.050 --> 02:50.390
So because of that and because of the fact that chip set makers want people to buy their chips to use in their devices, they need a way for these device makers to quickly and easily integrate their chips into their devices.

02:50.890 --> 02:57.830
And all of that, you know, you need to minimize dev time and dev effort and keep costs down.

02:58.550 --> 03:04.810
One problem is that chip sets end up changing ownership quite a bit.

03:04.810 --> 03:14.930
Like companies get bought by other companies and they end up inheriting these chip set lines and they don't, you know, they weren't involved in the development process themselves.

03:14.930 --> 03:22.750
So they need these SDKs to help them support this product line that they just bought from another company.

03:24.310 --> 03:29.630
So all of this can lead to some unintended behaviors.

03:30.570 --> 03:41.170
So, you know, you'll end up integrating a chip set into your device and then all of a sudden find out later on down the road that you've got these services running on your device that you had no idea about.

03:41.650 --> 04:00.050
That actually happened on an audit I was doing on the Oculus where there ended up being a UDP service that they didn't know about and I was able to use that to like, you know, send a certain string of packets and it will knock the Oculus offline kind of thing.

04:00.050 --> 04:08.290
And they had no idea it was there and it was ended up being some mobile chip set maker.

04:08.390 --> 04:14.590
It was part of, like that was who they had to disclose that to because it wasn't even their code, you know.

04:15.930 --> 04:30.790
And also another problem that can crop up is all of these, like, you know, the example code that chip makers put out there as part of their SDK is never meant to go into production.

04:31.230 --> 04:45.810
But when I'm a device maker and I'm, you know, looking to implement your chip in my device, I'm going to take the easy route and they just end up using that code example and, you know, that code was never audited, never hardened.

04:46.590 --> 04:48.590
So that's another issue.

04:49.570 --> 05:10.610
And then also out of date versions happen all the time because, you know, you've got these SDKs that have all of these libraries that they depend on and you have to keep on track, keep up to date on every one of those libraries that you've pulled in to make sure that you're patching against vulnerabilities that are found.

05:12.770 --> 05:21.430
And, you know, some open source projects get forked and modified and never keep up with the updates that were from the original version.

05:22.070 --> 05:24.150
So all kinds of things.

05:24.170 --> 05:25.490
And then all of that

05:28.730 --> 05:50.690
‑‑ you know, on top of all of that you have this scattered install base where, like, so I'm a chip maker and I release a chip and then that chip gets used by all of these different vendors across their entire product lines and so that SDK gets, like, you know,

05:50.690 --> 06:01.150
scattered out to the winds and, you know, once a vulnerability is found, like, you can't put the genie back in the tube of toothpaste as they say.

06:04.350 --> 06:05.490
So, yeah.

06:05.490 --> 06:15.750
So one thing to note in this talk, I'm about to start talking about, like, you know, vulnerabilities and attack surfaces and specific SDKs.

06:17.290 --> 06:22.270
Not every chip maker uses the same SDK for their entire product line.

06:22.510 --> 06:29.950
Lots of times there's going to be multiple SDKs for different versions of different chips.

06:30.090 --> 06:36.170
But there will be commonalities, especially in the proprietary services that they've written themselves.

06:36.170 --> 06:39.650
They'll copy paste that into every version of their SDK.

06:41.010 --> 06:43.910
And also source code can be hard to find.

06:44.270 --> 06:59.570
I know you won't be able to see it on the screen because the screens don't work, but I, where I'm able, I will link to code repos that I've been able to find for different SDKs just to help you out in your own research efforts.

07:00.770 --> 07:08.970
And the only other thing I want to note before I get into the actual meat of the talk, I love command injection bugs.

07:09.010 --> 07:10.870
They're my favorite type of bug.

07:11.690 --> 07:15.050
And they're especially effective in situations like this.

07:15.050 --> 07:33.210
Because when you've got an SDK that supports multiple different architectures and different devices and different memory layouts, you can find one command injection bug and exploit the entire, you know, install base that that chip runs on.

07:33.290 --> 07:37.870
So it's really, really awesome from an exploitation standpoint.

07:37.930 --> 07:44.510
And that's why botnet authors definitely pay attention when it comes to command injection bugs and SDKs.

07:45.650 --> 07:49.390
So, yeah, that's about it for the introduction portion.

07:49.390 --> 07:54.270
So now I'm going to start talking about some common chip makers and their attack surfaces.

07:54.990 --> 08:00.870
First off, we've got Broadcom slash Brocade slash Cypress slash Infineon.

08:01.010 --> 08:05.210
This is one of those that changes hands quite a bit.

08:05.750 --> 08:12.450
So there once was a company called Avago that bought Infineon in 2008.

08:12.550 --> 08:19.410
And then Avago bought Broadcom in 2015 and then Avago changed its own name to Broadcom.

08:19.470 --> 08:21.630
So that's where Broadcom comes from.

08:21.630 --> 08:27.530
And then in 2016, Cypress buys Broadcom's IOT portfolio.

08:28.530 --> 08:37.370
And that includes the YSED SDK, which I'll talk about in a second, in 2016.

08:37.610 --> 08:41.690
And then Broadcom buys Brocade in 2017.

08:41.730 --> 08:47.410
Broadcom also tries to buy Qualcomm in 2017, but that got denied.

08:47.750 --> 08:50.510
And it's one of the most widely used chipsets.

08:50.510 --> 08:53.750
I see Broadcom's all over the place.

08:56.390 --> 09:08.110
And then so for their attack service for HTTP, they use kind of a mashup of micro HTTP and mini HTTP.

09:08.430 --> 09:10.810
And then Go Ahead also.

09:10.810 --> 09:14.230
Go Ahead is used in a lot of these SDKs.

09:14.610 --> 09:19.090
And then their UPMP implementation is super, super popular.

09:19.090 --> 09:26.090
And also there's evidence of it being ripped off of Raw Link's UPMP implementation.

09:26.690 --> 09:34.110
I've got a URL here for the, you know, citing my sources on that.

09:34.110 --> 09:44.390
And then I've also got a source link to some source code for their, you know, generic SDKs there.

09:44.550 --> 09:49.250
And then for the YSED SDK, that's owned by Cypress now.

09:50.370 --> 09:52.150
Oh, one minute.

09:52.410 --> 09:54.750
I just started ten minutes ago.

09:57.560 --> 10:00.880
Am I ‑‑ is this creator stage two?

10:00.880 --> 10:02.100
Am I in the right room?

10:05.340 --> 10:06.160
Okay.

10:06.160 --> 10:08.620
My talk started at 1.30.

10:10.180 --> 10:12.940
Oh, I had it as 1.30.

10:13.320 --> 10:13.860
Okay.

10:13.860 --> 10:17.060
Well, let's just cut to the end then maybe.

10:18.900 --> 10:19.820
Yeah.

10:19.820 --> 10:20.600
Okay.

10:20.600 --> 10:25.040
So I'm going to put all of these slides up on my GitHub.

10:25.120 --> 10:26.360
Headless Zeek.

10:26.360 --> 10:29.780
GitHub.com slash Headless Zeek.

10:33.040 --> 10:33.620
Okay.

10:33.620 --> 10:35.440
So yeah.

10:35.660 --> 10:43.360
We've got Broadcom, Media Tech, Real Tech, Microchip.

10:44.980 --> 10:46.840
That one is awesome.

10:46.840 --> 10:50.480
I really wanted to talk about that one, but I'm going to skip past it.

10:50.580 --> 10:50.940
Okay.

10:50.940 --> 10:58.140
We've got some old days, which are vulnerabilities that were found, you know, many years back.

10:59.580 --> 11:02.540
This was actually the reason for this talk.

11:02.820 --> 11:07.520
I found a vulnerability in Real Tech's UPNP implementation.

11:09.900 --> 11:13.420
And I found it in 2014.

11:14.200 --> 11:16.940
And it just made it on the CC Kev list last year.

11:17.880 --> 11:21.980
Because it's still being actively exploited like ten years later.

11:23.380 --> 11:23.720
Okay.

11:23.720 --> 11:24.840
So blah, blah, blah.

11:25.880 --> 11:27.400
So zero days.

11:28.360 --> 11:29.000
Okay.

11:29.100 --> 11:33.100
So there was a chip maker called Quantana that got bought by ON Semiconductors.

11:33.260 --> 11:35.900
Quantana used to be really popular back in the day.

11:35.900 --> 11:41.000
They were used by AT&T for all of their set top boxes and modems and stuff like that.

11:41.000 --> 11:49.480
There's a service on there called QCS API that's got like hundreds of different commands that you can run for configuring the Wi-Fi.

11:49.720 --> 11:56.280
And that service actually has an RPC service where you can actually send those commands remotely.

11:59.160 --> 12:01.400
So... all right.

12:01.600 --> 12:02.360
Yeah.

