start	end	text
540	2800	I'll go ahead and get started.
3300	5780	My name is Ricky Lausche.
5780	7060	I had LaZeek.
8060	13600	And this is my talk, what is dead may never die, the immortality of SDK bugs.
13720	22260	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.
22720	25840	But yeah, let's get into some introductions.
26440	32940	So yeah, I'm a principal security researcher for Keysight Technologies based out of Austin, Texas.
33740	39360	Most of my focus is around offensive research on IOT devices.
39680	47660	And I found vulnerabilities in stuff from Meta and Mazda and Crestron, yada, yada, yada.
47780	54220	I've spoken at several conferences including RuxCon, Recon, Insomnihack.
54220	57880	This is technically my seventh time speaking at DEF CON.
57980	62960	Five times at DEF CON proper and this is my second time speaking for IOT Village.
68490	74230	Okay, so first off let me define what I'm talking about when I say an SDK.
74650	77950	So SDK stands for software development kit.
77990	81950	But in this case we're really talking more about a system development kit.
82390	98570	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.
99110	104610	And it can include both standard and nonstandard things.
104610	115010	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.
115750	124650	And for obvious reasons this talk is focusing on network chip sets specifically because, you know, I'm looking for exploits.
124650	127850	I'm looking for remote vulnerabilities that I can exploit.
127850	130830	So that's going to involve networking capabilities.
133390	142190	Okay, so basically chip sets are very complicated and they're getting more complicated every day.
142550	149470	You know, something that used to be like an integrated circuit or a microcontroller is now a full system on chip kind of thing.
151050	170390	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.
170890	177830	And all of that, you know, you need to minimize dev time and dev effort and keep costs down.
178550	184810	One problem is that chip sets end up changing ownership quite a bit.
184810	194930	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.
194930	202750	So they need these SDKs to help them support this product line that they just bought from another company.
204310	209630	So all of this can lead to some unintended behaviors.
210570	221170	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.
221650	240050	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.
240050	248290	And they had no idea it was there and it was ended up being some mobile chip set maker.
248390	254590	It was part of, like that was who they had to disclose that to because it wasn't even their code, you know.
255930	270790	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.
271230	285810	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.
286590	288590	So that's another issue.
289570	310610	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.
312770	321430	And, you know, some open source projects get forked and modified and never keep up with the updates that were from the original version.
322070	324150	So all kinds of things.
324170	325490	And then all of that
328730	350690	‑‑ 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,
350690	361150	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.
364350	365490	So, yeah.
365490	375750	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.
377290	382270	Not every chip maker uses the same SDK for their entire product line.
382510	389950	Lots of times there's going to be multiple SDKs for different versions of different chips.
390090	396170	But there will be commonalities, especially in the proprietary services that they've written themselves.
396170	399650	They'll copy paste that into every version of their SDK.
401010	403910	And also source code can be hard to find.
404270	419570	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.
420770	428970	And the only other thing I want to note before I get into the actual meat of the talk, I love command injection bugs.
429010	430870	They're my favorite type of bug.
431690	435050	And they're especially effective in situations like this.
435050	453210	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.
453290	457870	So it's really, really awesome from an exploitation standpoint.
457930	464510	And that's why botnet authors definitely pay attention when it comes to command injection bugs and SDKs.
465650	469390	So, yeah, that's about it for the introduction portion.
469390	474270	So now I'm going to start talking about some common chip makers and their attack surfaces.
474990	480870	First off, we've got Broadcom slash Brocade slash Cypress slash Infineon.
481010	485210	This is one of those that changes hands quite a bit.
485750	492450	So there once was a company called Avago that bought Infineon in 2008.
492550	499410	And then Avago bought Broadcom in 2015 and then Avago changed its own name to Broadcom.
499470	501630	So that's where Broadcom comes from.
501630	507530	And then in 2016, Cypress buys Broadcom's IOT portfolio.
508530	517370	And that includes the YSED SDK, which I'll talk about in a second, in 2016.
517610	521690	And then Broadcom buys Brocade in 2017.
521730	527410	Broadcom also tries to buy Qualcomm in 2017, but that got denied.
527750	530510	And it's one of the most widely used chipsets.
530510	533750	I see Broadcom's all over the place.
536390	548110	And then so for their attack service for HTTP, they use kind of a mashup of micro HTTP and mini HTTP.
548430	550810	And then Go Ahead also.
550810	554230	Go Ahead is used in a lot of these SDKs.
554610	559090	And then their UPMP implementation is super, super popular.
559090	566090	And also there's evidence of it being ripped off of Raw Link's UPMP implementation.
566690	574110	I've got a URL here for the, you know, citing my sources on that.
574110	584390	And then I've also got a source link to some source code for their, you know, generic SDKs there.
584550	589250	And then for the YSED SDK, that's owned by Cypress now.
590370	592150	Oh, one minute.
592410	594750	I just started ten minutes ago.
597560	600880	Am I ‑‑ is this creator stage two?
600880	602100	Am I in the right room?
605340	606160	Okay.
606160	608620	My talk started at 1.30.
610180	612940	Oh, I had it as 1.30.
613320	613860	Okay.
613860	617060	Well, let's just cut to the end then maybe.
618900	619820	Yeah.
619820	620600	Okay.
620600	625040	So I'm going to put all of these slides up on my GitHub.
625120	626360	Headless Zeek.
626360	629780	GitHub.com slash Headless Zeek.
633040	633620	Okay.
633620	635440	So yeah.
635660	643360	We've got Broadcom, Media Tech, Real Tech, Microchip.
644980	646840	That one is awesome.
646840	650480	I really wanted to talk about that one, but I'm going to skip past it.
650580	650940	Okay.
650940	658140	We've got some old days, which are vulnerabilities that were found, you know, many years back.
659580	662540	This was actually the reason for this talk.
662820	667520	I found a vulnerability in Real Tech's UPNP implementation.
669900	673420	And I found it in 2014.
674200	676940	And it just made it on the CC Kev list last year.
677880	681980	Because it's still being actively exploited like ten years later.
683380	683720	Okay.
683720	684840	So blah, blah, blah.
685880	687400	So zero days.
688360	689000	Okay.
689100	693100	So there was a chip maker called Quantana that got bought by ON Semiconductors.
693260	695900	Quantana used to be really popular back in the day.
695900	701000	They were used by AT&T for all of their set top boxes and modems and stuff like that.
701000	709480	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.
709720	716280	And that service actually has an RPC service where you can actually send those commands remotely.
719160	721400	So... all right.
721600	722360	Yeah.
