1 00:00:00,540 --> 00:00:02,800 I'll go ahead and get started. 2 00:00:03,300 --> 00:00:05,780 My name is Ricky Lausche. 3 00:00:05,780 --> 00:00:07,060 I had LaZeek. 4 00:00:08,060 --> 00:00:13,600 And this is my talk, what is dead may never die, the immortality of SDK bugs. 5 00:00:13,720 --> 00: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. 6 00:00:22,720 --> 00:00:25,840 But yeah, let's get into some introductions. 7 00:00:26,440 --> 00:00:32,940 So yeah, I'm a principal security researcher for Keysight Technologies based out of Austin, Texas. 8 00:00:33,740 --> 00:00:39,360 Most of my focus is around offensive research on IOT devices. 9 00:00:39,680 --> 00:00:47,660 And I found vulnerabilities in stuff from Meta and Mazda and Crestron, yada, yada, yada. 10 00:00:47,780 --> 00:00:54,220 I've spoken at several conferences including RuxCon, Recon, Insomnihack. 11 00:00:54,220 --> 00:00:57,880 This is technically my seventh time speaking at DEF CON. 12 00:00:57,980 --> 00:01:02,960 Five times at DEF CON proper and this is my second time speaking for IOT Village. 13 00:01:08,490 --> 00:01:14,230 Okay, so first off let me define what I'm talking about when I say an SDK. 14 00:01:14,650 --> 00:01:17,950 So SDK stands for software development kit. 15 00:01:17,990 --> 00:01:21,950 But in this case we're really talking more about a system development kit. 16 00:01:22,390 --> 00: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. 17 00:01:39,110 --> 00:01:44,610 And it can include both standard and nonstandard things. 18 00:01:44,610 --> 00: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. 19 00:01:55,750 --> 00:02:04,650 And for obvious reasons this talk is focusing on network chip sets specifically because, you know, I'm looking for exploits. 20 00:02:04,650 --> 00:02:07,850 I'm looking for remote vulnerabilities that I can exploit. 21 00:02:07,850 --> 00:02:10,830 So that's going to involve networking capabilities. 22 00:02:13,390 --> 00:02:22,190 Okay, so basically chip sets are very complicated and they're getting more complicated every day. 23 00:02:22,550 --> 00: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. 24 00:02:31,050 --> 00: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. 25 00:02:50,890 --> 00:02:57,830 And all of that, you know, you need to minimize dev time and dev effort and keep costs down. 26 00:02:58,550 --> 00:03:04,810 One problem is that chip sets end up changing ownership quite a bit. 27 00:03:04,810 --> 00: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. 28 00:03:14,930 --> 00:03:22,750 So they need these SDKs to help them support this product line that they just bought from another company. 29 00:03:24,310 --> 00:03:29,630 So all of this can lead to some unintended behaviors. 30 00:03:30,570 --> 00: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. 31 00:03:41,650 --> 00: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. 32 00:04:00,050 --> 00:04:08,290 And they had no idea it was there and it was ended up being some mobile chip set maker. 33 00:04:08,390 --> 00: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. 34 00:04:15,930 --> 00: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. 35 00:04:31,230 --> 00: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. 36 00:04:46,590 --> 00:04:48,590 So that's another issue. 37 00:04:49,570 --> 00: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. 38 00:05:12,770 --> 00: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. 39 00:05:22,070 --> 00:05:24,150 So all kinds of things. 40 00:05:24,170 --> 00:05:25,490 And then all of that 41 00:05:28,730 --> 00: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, 42 00:05:50,690 --> 00: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. 43 00:06:04,350 --> 00:06:05,490 So, yeah. 44 00:06:05,490 --> 00: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. 45 00:06:17,290 --> 00:06:22,270 Not every chip maker uses the same SDK for their entire product line. 46 00:06:22,510 --> 00:06:29,950 Lots of times there's going to be multiple SDKs for different versions of different chips. 47 00:06:30,090 --> 00:06:36,170 But there will be commonalities, especially in the proprietary services that they've written themselves. 48 00:06:36,170 --> 00:06:39,650 They'll copy paste that into every version of their SDK. 49 00:06:41,010 --> 00:06:43,910 And also source code can be hard to find. 50 00:06:44,270 --> 00: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. 51 00:07:00,770 --> 00: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. 52 00:07:09,010 --> 00:07:10,870 They're my favorite type of bug. 53 00:07:11,690 --> 00:07:15,050 And they're especially effective in situations like this. 54 00:07:15,050 --> 00: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. 55 00:07:33,290 --> 00:07:37,870 So it's really, really awesome from an exploitation standpoint. 56 00:07:37,930 --> 00:07:44,510 And that's why botnet authors definitely pay attention when it comes to command injection bugs and SDKs. 57 00:07:45,650 --> 00:07:49,390 So, yeah, that's about it for the introduction portion. 58 00:07:49,390 --> 00:07:54,270 So now I'm going to start talking about some common chip makers and their attack surfaces. 59 00:07:54,990 --> 00:08:00,870 First off, we've got Broadcom slash Brocade slash Cypress slash Infineon. 60 00:08:01,010 --> 00:08:05,210 This is one of those that changes hands quite a bit. 61 00:08:05,750 --> 00:08:12,450 So there once was a company called Avago that bought Infineon in 2008. 62 00:08:12,550 --> 00:08:19,410 And then Avago bought Broadcom in 2015 and then Avago changed its own name to Broadcom. 63 00:08:19,470 --> 00:08:21,630 So that's where Broadcom comes from. 64 00:08:21,630 --> 00:08:27,530 And then in 2016, Cypress buys Broadcom's IOT portfolio. 65 00:08:28,530 --> 00:08:37,370 And that includes the YSED SDK, which I'll talk about in a second, in 2016. 66 00:08:37,610 --> 00:08:41,690 And then Broadcom buys Brocade in 2017. 67 00:08:41,730 --> 00:08:47,410 Broadcom also tries to buy Qualcomm in 2017, but that got denied. 68 00:08:47,750 --> 00:08:50,510 And it's one of the most widely used chipsets. 69 00:08:50,510 --> 00:08:53,750 I see Broadcom's all over the place. 70 00:08:56,390 --> 00:09:08,110 And then so for their attack service for HTTP, they use kind of a mashup of micro HTTP and mini HTTP. 71 00:09:08,430 --> 00:09:10,810 And then Go Ahead also. 72 00:09:10,810 --> 00:09:14,230 Go Ahead is used in a lot of these SDKs. 73 00:09:14,610 --> 00:09:19,090 And then their UPMP implementation is super, super popular. 74 00:09:19,090 --> 00:09:26,090 And also there's evidence of it being ripped off of Raw Link's UPMP implementation. 75 00:09:26,690 --> 00:09:34,110 I've got a URL here for the, you know, citing my sources on that. 76 00:09:34,110 --> 00:09:44,390 And then I've also got a source link to some source code for their, you know, generic SDKs there. 77 00:09:44,550 --> 00:09:49,250 And then for the YSED SDK, that's owned by Cypress now. 78 00:09:50,370 --> 00:09:52,150 Oh, one minute. 79 00:09:52,410 --> 00:09:54,750 I just started ten minutes ago. 80 00:09:57,560 --> 00:10:00,880 Am I ‑‑ is this creator stage two? 81 00:10:00,880 --> 00:10:02,100 Am I in the right room? 82 00:10:05,340 --> 00:10:06,160 Okay. 83 00:10:06,160 --> 00:10:08,620 My talk started at 1.30. 84 00:10:10,180 --> 00:10:12,940 Oh, I had it as 1.30. 85 00:10:13,320 --> 00:10:13,860 Okay. 86 00:10:13,860 --> 00:10:17,060 Well, let's just cut to the end then maybe. 87 00:10:18,900 --> 00:10:19,820 Yeah. 88 00:10:19,820 --> 00:10:20,600 Okay. 89 00:10:20,600 --> 00:10:25,040 So I'm going to put all of these slides up on my GitHub. 90 00:10:25,120 --> 00:10:26,360 Headless Zeek. 91 00:10:26,360 --> 00:10:29,780 GitHub.com slash Headless Zeek. 92 00:10:33,040 --> 00:10:33,620 Okay. 93 00:10:33,620 --> 00:10:35,440 So yeah. 94 00:10:35,660 --> 00:10:43,360 We've got Broadcom, Media Tech, Real Tech, Microchip. 95 00:10:44,980 --> 00:10:46,840 That one is awesome. 96 00:10:46,840 --> 00:10:50,480 I really wanted to talk about that one, but I'm going to skip past it. 97 00:10:50,580 --> 00:10:50,940 Okay. 98 00:10:50,940 --> 00:10:58,140 We've got some old days, which are vulnerabilities that were found, you know, many years back. 99 00:10:59,580 --> 00:11:02,540 This was actually the reason for this talk. 100 00:11:02,820 --> 00:11:07,520 I found a vulnerability in Real Tech's UPNP implementation. 101 00:11:09,900 --> 00:11:13,420 And I found it in 2014. 102 00:11:14,200 --> 00:11:16,940 And it just made it on the CC Kev list last year. 103 00:11:17,880 --> 00:11:21,980 Because it's still being actively exploited like ten years later. 104 00:11:23,380 --> 00:11:23,720 Okay. 105 00:11:23,720 --> 00:11:24,840 So blah, blah, blah. 106 00:11:25,880 --> 00:11:27,400 So zero days. 107 00:11:28,360 --> 00:11:29,000 Okay. 108 00:11:29,100 --> 00:11:33,100 So there was a chip maker called Quantana that got bought by ON Semiconductors. 109 00:11:33,260 --> 00:11:35,900 Quantana used to be really popular back in the day. 110 00:11:35,900 --> 00:11:41,000 They were used by AT&T for all of their set top boxes and modems and stuff like that. 111 00:11:41,000 --> 00: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. 112 00:11:49,720 --> 00:11:56,280 And that service actually has an RPC service where you can actually send those commands remotely. 113 00:11:59,160 --> 00:12:01,400 So... all right. 114 00:12:01,600 --> 00:12:02,360 Yeah.