[00:00.000 --> 00:04.300] Let's get started. We're running a little late, so I'm going to try not to talk too fast, [00:04.300 --> 00:10.540] but I've got to make up some time here. So, welcome to SBOMs the Hard Way for my [00:10.540 --> 00:16.120] adventures in hacking Bob the Minion. I am the Product Security Research and Analysis Director [00:16.120 --> 00:22.440] and Services Team Lead at a fun company called Finite State. And we do all sorts of fun stuff [00:22.440 --> 00:27.140] with SBOMs and a whole bunch of other stuff. But I'm not here to talk to you about our product or [00:27.140 --> 00:36.160] any of that. I'm talking about my adventure with Bob. All right. So, who am I? I am a [00:36.160 --> 00:42.500] reformed penetration tester and reformed crossed out. I left doing penetration testing to go do [00:42.500 --> 00:47.680] some thought leadership and some other hardware hacking and IOT, bunch of stuff. And three months [00:47.680 --> 00:51.040] into the job, my boss came to me and said, hey, we have a customer that wants to throw a lot of [00:51.040 --> 00:55.960] money at us to do pen tests. Can you do it? Are you signing my paycheck? Yes, I can do that. So, [00:55.960 --> 01:02.180] I am a reformed penetration tester back doing penetration testing back in OT, ICS, IOT, [01:02.180 --> 01:09.120] and lots of hardware. I'm also the co-host of Paul's Security Weekly. We're in our 19th year, [01:09.120 --> 01:14.600] soon to go into our 20th year of a weekly security podcast. How many of you are listeners? [01:16.300 --> 01:22.940] Go listen. All right. Awesome. Thank you. I do a lot of work with SANS. I'm both an instructor [01:23.540 --> 01:32.040] and a course author around wireless hacking and IOT hacking, ironically. I'm a recent convert to [01:32.040 --> 01:38.460] the Oxford comma, because commas save lives, folks. And someone said, why are you been using [01:38.460 --> 01:42.780] that Oxford comma for a really long time? So, you're really not a recent convert, but I'm going [01:42.780 --> 01:48.800] to keep it. So, I'll add that I also enjoy long walks on the beach weighed down by my ham radio. [01:49.580 --> 01:55.980] Prepping for the zombie apocalypse. All right. So, let's get into some fun bits here. So, [01:55.980 --> 02:02.720] we're going to hack Bob the Minion. So, on every one of my slides, except this one, [02:02.720 --> 02:10.760] features AI generated art with minions. So, let's get into character a little bit here. And I took [02:10.760 --> 02:18.900] this image of my headshot and fed it to mid journey so that I could become an evil, [02:18.900 --> 02:27.080] despicable me villain. So, here we go. This is some of this art is terrifying. And I kept the [02:27.080 --> 02:33.360] ones that were insane just because insanity. I didn't know yesterday that there was an AI [02:33.360 --> 02:40.480] generated art competition. I would have been good at that. Maybe. So, I had lots of fun. I think I [02:40.480 --> 02:46.360] more time into the art than the actual words on these slides. Don't get me wrong. I think [02:46.360 --> 02:51.320] the presentation is really good. You're going to get something from it. All right. So, a little [02:51.320 --> 02:56.640] bit of background. I work for a company. We do SBOMs and a whole bunch of other stuff. But I [02:56.640 --> 03:02.120] really think that SBOMs are fun. And that was sort of my end goal was to get a software bill of [03:02.120 --> 03:09.540] materials for Bob the Minion. So, a little bit of background. A software bill of materials is an [03:09.540 --> 03:14.660] inventory of all your software, their versions and who wrote it, where it came from as part of [03:14.660 --> 03:20.700] your product security sorry, your software supply chain and can help you do some security. And [03:21.260 --> 03:27.560] we're going to start seeing somewhere around 2025 that every product that connected product that you [03:27.560 --> 03:33.020] buy either at your company or for your personal consumption will have an SBOM associated with it [03:33.020 --> 03:37.380] and will be available as part of some of its certification process and being able to be [03:37.380 --> 03:42.600] sold into the marketplace. Specifically, addressing some of those here in the United [03:42.600 --> 03:49.400] States are Executive Order 14-208 for a lot of stuff going into government and into consumer [03:49.400 --> 03:57.620] stuff. 524B for the FDA. So, any medical device that is being submitted to the FDA for use on [03:57.620 --> 04:03.660] humans requires that an SBOM is part of their submission process and a plan for securing their [04:03.660 --> 04:09.860] devices over time and managing vulnerabilities. And a voluntary program managed by the FCC here [04:09.860 --> 04:14.880] in the US, the Cyber Trustmark Program. It's kind of like a consumer protection thing so that [04:15.460 --> 04:22.180] as a voluntary program that companies can submit their devices to the Cyber Trustmark Program, [04:22.180 --> 04:27.060] they can get a stamp on the box and that a consumer can have a high degree of confidence [04:27.060 --> 04:31.500] that there is some security in this product baked in and that they are monitoring for vulnerabilities [04:31.500 --> 04:36.780] over time and issuing some updates with a little barcode that links to a website that gives them [04:36.780 --> 04:41.720] an overall security score. So, while you're standing at Best Buy, you can scan this barcode [04:41.720 --> 04:47.860] and go, oh, this router's got a 3 for security and that one's got a 9. 9 being better? Yeah, [04:47.860 --> 04:54.340] I'm going to buy the one that's a 9. Cool. The one that is absolutely both fascinating and [04:54.340 --> 05:03.160] terrifying, in my opinion, is the EU Cyber Resiliency Act or the EU CRA. EU CRA, their [05:03.160 --> 05:08.580] intent in the EU is that they do not want any connected products being sold into the marketplace [05:08.580 --> 05:14.680] that has any vulnerabilities. And they also need to have a process for managing vulnerabilities [05:14.680 --> 05:19.520] and patching and monitoring and all this type of stuff. And an SBOM will be included as part of [05:19.520 --> 05:25.900] that process. And they are significantly more stringent. And this is not a voluntary program. [05:26.100 --> 05:31.000] It's mandatory if you want to sell into Europe. And companies that sell into the U.S. also sell [05:31.000 --> 05:38.120] into Europe. Same device. So, many manufacturers are going to have to submit to EU CRA, which means [05:38.800 --> 05:44.540] everywhere on the planet will largely benefit from those regulations. Overall, some general [05:44.540 --> 05:50.020] benefits outside of any of the regulatory stuff for software bill materials. They give us that [05:50.020 --> 05:56.280] software inventory list for both first and third party stuff that you're developing and stuff that [05:56.280 --> 06:01.080] you've pulled in as part of your development process and even into potential final firmware [06:01.080 --> 06:06.660] that you're delivering to your customers or you are consuming. With that list of those components [06:06.660 --> 06:12.420] and their versions, you can perform some enrichment on those, find out whether there are vulnerabilities [06:12.420 --> 06:17.820] associated with those products so that you can then attempt to perform some risk mitigation and [06:17.820 --> 06:23.660] observe that some of that risk exists and take appropriate actions. And I'll also argue that you [06:23.660 --> 06:29.680] should be operationalizing your SBOMs as either a consumer or a manufacturer, that you should take [06:29.680 --> 06:35.220] these software bill of materials and use them as part of your security process and your penetration [06:35.220 --> 06:42.300] testing process because knowing the components may give you an opportunity to improve that security [06:42.300 --> 06:46.840] knowing that there are vulnerabilities exist. And that was the subject of my talk that I did at RSA [06:46.840 --> 06:52.820] entitled SBOMs for Evil. So you can go check that out as well. So we won't go too far into that. [06:53.220 --> 07:00.760] So as part of my day job and as part of being a reformed, unreformed penetration tester, I really [07:00.760 --> 07:07.680] love software bill of materials. And some of the fun stuff that I get to do at work is go find some [07:07.680 --> 07:16.040] random device, get the firmware, and get an SBOM for it just to see what there is, see if we can [07:16.040 --> 07:20.600] do some accurate detection, helps build some of the things that we're detecting for, helps improve [07:20.600 --> 07:25.240] our product. And quite honestly, I think it's really fun. And find all sorts of sort of scary [07:25.240 --> 07:30.840] things. So getting that firmware, doing some extraction, verifying that the extraction is [07:30.840 --> 07:36.620] accurate for our product, figuring out all new things, going back and reverse engineering some [07:36.620 --> 07:43.420] binaries to figure out the type of code and some of the code vulnerabilities. And as a result of [07:43.420 --> 07:47.620] that SBOM, being able to discover that there's a product with a firmware that has some known [07:47.620 --> 07:53.360] vulnerabilities, and known is here in air quotes, and that it's known to the community that these [07:53.360 --> 07:58.860] components have vulnerabilities. But maybe as a consumer, or maybe even as a manufacturer, you [07:58.860 --> 08:02.440] might not realize that these components have vulnerabilities and you're using them in your [08:02.440 --> 08:09.140] products. So occasionally, we get to find some Oday and some other occasional hackery, [08:09.140 --> 08:15.320] and discovering some surprises. And we may have some surprises here with Bob the Minion. And [08:15.320 --> 08:21.220] arguably, it might not be all that surprising, after all. Ultimately, I think the end result [08:21.220 --> 08:27.580] is so much fun. And arguably, I get to come talk to you about it at DEF CON. So finding all of those [08:27.580 --> 08:38.200] weird products, suddenly, a wild Bob appears. And yes, AI generated Bob in a dystopian future, [08:38.200 --> 08:42.920] and hasn't shaved in a little bit. He might look a little bit like me, I'm kind of disturbed about [08:42.920 --> 08:51.680] that. So suddenly, a wild Bob appears. So what is this Bob? This Bob is a wireless home router, [08:51.680 --> 09:00.280] the Davolink AX1800. And it has been licensed by Universal for Davolink to produce these [09:00.280 --> 09:07.640] wireless routers that are in the shape of Bob. It's a nice plastic fun looking case around a [09:07.640 --> 09:12.900] wireless router for your home. I was like, that's pretty cool. Pretty darn good features for the [09:13.620 --> 09:22.280] Bob has Wi Fi six has some easy mesh support and supports WPA3. So some of our latest Wi Fi [09:22.280 --> 09:28.940] standards for for your home. Now, I've been doing some hardware hacking around consumer routers for [09:29.260 --> 09:35.540] a really, really long time. And it was typical that we were seeing devices with flash and RAM [09:35.540 --> 09:41.520] of somewhere between four and eight megs, maybe 16. Yeah, we've come a long way. This particular [09:41.520 --> 09:51.380] one has, according to the box, and Amazon 128 megs of flash, and 256 megs of RAM. That's pretty [09:51.380 --> 09:57.440] darn robust and compared to some of the stuff that I've seen in the past. But it gets better. [09:57.440 --> 10:02.920] It's not 128 megs of flash, we'll see that in a little bit here. Currently, there's no open [10:02.920 --> 10:08.280] word support. So it is their own custom firmware, big thumbs down from Mick down front here. [10:08.280 --> 10:13.640] And they run about $70 on Amazon. So I didn't feel too bad about buying one of these things [10:13.640 --> 10:20.780] and ripping Bob's head off to see what was inside. I did not purchase the Kevin variety, [10:20.780 --> 10:26.920] the Kevin variety is a little bit taller. And one of the upgrades there is it does have Wi Fi 6E. [10:26.920 --> 10:32.080] So into the six gigahertz range, but they're about double the price. And well, this is coming out of [10:32.080 --> 10:37.420] my own personal budget. So I went for the cheap one, right? I figured that many of the challenges [10:37.420 --> 10:44.500] will probably be the same here. Alright, so, hey, I want firmware, right for these devices. [10:44.500 --> 10:51.700] So I can generate some as moms. Let's go get the firmware. But you tip my hat a little bit here. [10:51.700 --> 10:59.180] What firmware? All right. Unfortunately, I wasn't able to easily locate firmware for the devil link [10:59.180 --> 11:06.580] AX 1800. We powered the device up, used it, figured out what all the interface was about, [11:06.580 --> 11:10.940] logged in, take a look at the web interface. And sure enough, in the web interface, there is a [11:10.940 --> 11:16.220] button that says check for updates. And as of two weeks ago, when I pressed the check for updates [11:16.220 --> 11:22.740] button, there were no updates. There is one version of firmware for this device, the one that came on [11:22.740 --> 11:28.860] it from the factory, which will be terrifying when we see this a little bit later. So there's one [11:28.860 --> 11:34.180] firmware. It is what it is. There's no updates, which means if I click the update button, there's [11:34.180 --> 11:40.580] no firmware, which means I can't capture anything off the wire. They can't get anything via web [11:40.580 --> 11:44.560] inspection or TCP dump or any of that type of stuff to try to recover the firmware from network [11:44.560 --> 11:52.620] traffic. Oh, well, I'll go to the website. Nope, nothing on their website. You go to their support [11:52.620 --> 11:58.220] forums, you go to their support pages. Absolutely no firmware for the AX 1800 available for [11:58.220 --> 12:04.640] download. There's manuals and stuff, but no firmware. So what happens if I brick it by [12:04.640 --> 12:08.860] accident? I have no way to upload firmware to this because the manufacturer doesn't even make [12:08.860 --> 12:13.720] it available. I checked the support forums to see if I could find links somewhere in the support [12:13.720 --> 12:20.600] forums. And that was a mess. DabbleLink is a Korean company. They have two different support [12:20.600 --> 12:28.040] forums. One is in Korean, one is in English. The English has a little bit more population to it. [12:28.040 --> 12:33.640] In that more folks have asked some questions. The Korean version of the support forums, [12:34.020 --> 12:39.760] there's like three posts, and that's it. Clearly, Korea was not their intended market for these [12:39.760 --> 12:45.520] devices. And Google Translate had a really easy time trying to go through and translate that [12:45.520 --> 12:51.460] stuff because there wasn't a lot there. Search through all of the support forum posts. There [12:51.460 --> 12:56.200] are no links to firmware. There's nobody even asking, hey, I bricked my router, can I get a [12:56.200 --> 13:02.320] firmware? So that I could reach out to them and try to ask them for it or try that same guise. [13:02.640 --> 13:09.140] So nobody was asking and nobody was offering. Unfortunately, now that means with no ready [13:09.140 --> 13:15.960] access to the firmware, we've got to go do this the hard way. And no ready access to firmware, [13:15.960 --> 13:22.440] that means, no, wrong way, that means no SBOM, no enrichment, no ability for me to figure out [13:22.440 --> 13:27.160] their vulnerabilities in this really easily, based on software components and so forth. [13:27.160 --> 13:36.920] But no SBOMs means no fun, right? I love some of this stuff. I tried to make this image like [13:36.920 --> 13:45.180] the dystopian future, dark gray, and the training for the AI models at Majority was not picking up [13:45.180 --> 13:49.100] that I wanted this to be dirty and gritty, no matter how many times I told it. And it came out [13:49.640 --> 13:55.680] really happy and bright and green and very cartoony for all these dogs. No, I wanted like, [13:55.680 --> 14:03.340] like wolves that were gonna tear Bob's head off. And now there's some nice puppies here. So I did [14:03.340 --> 14:09.200] the best I could. All right. But so if we can't get ready access to it, we got to go about this, [14:09.200 --> 14:16.020] do this hard way. And well, brain surgery is fun, right? Yeah, just ask Buckaroo Bonsai, [14:16.020 --> 14:21.000] Adventures of Buckaroo Bonsai in the Eighth Dimension. Okay, this was how some of this AI [14:21.000 --> 14:26.760] prompt ended up. I told Midjourney that I wanted Bob the Minion to go undergo brain surgery by [14:26.760 --> 14:33.100] Buckaroo Bonsai. Have the surgeon be Buckaroo Bonsai. Unfortunately, it actually crossed [14:33.100 --> 14:40.980] Peter Weller with a minion and came up with this abomination. It's quite amazing. Like, [14:40.980 --> 14:48.060] this is the best of them. The other ones were just downright terrible. Also, if you've never [14:48.060 --> 14:53.440] seen Buckaroo, the Adventures of Buckaroo Bonsai in the Eighth Dimension, I highly recommend that [14:53.440 --> 15:00.040] you do so. It is a 1980s, very campy film with some really amazing stars. Peter Weller, John [15:00.040 --> 15:06.040] Lithgow, a whole host of folks. And it's, it's amazingly campy and maybe one for Jeff Moss to [15:06.040 --> 15:13.300] send to Hacker Movie Night. It's hilarious and it's great. It's on the top thousand movies you [15:13.300 --> 15:21.440] should see before you die, and like number 43 in some of the campy sci-fi movies, top lists and [15:21.440 --> 15:28.140] so forth. So, my plug. And note that Bob doesn't even have yellow ears in this one. They're [15:28.140 --> 15:32.740] apparently Peter Weller's ears. Not only did they do a brain transplant, they did an ear transplant [15:32.740 --> 15:39.860] too. All right, so let's get to this brain surgery. All right, take this thing apart. We do this the [15:39.860 --> 15:45.320] hard way. Pull the boards out, do an inventory, take pictures of all the chips. Let's do some, [15:45.320 --> 15:51.420] some analysis and figure out some of the spec sheets. Go download those and then start figuring [15:51.420 --> 15:56.840] out how we can get access to that firmware. Are there serial ports available on the board? Yes, [15:56.840 --> 16:03.520] in this case there is. I did not go that route, however. Can we use JTAG or SWD to dump firmware [16:03.520 --> 16:09.700] from the device, from that bus? I fortunately did not have to go down that road either because that [16:09.700 --> 16:17.780] is arguably the harder. But what about SPI and being able to grab that from there? The first [16:17.780 --> 16:26.100] question was looking at the processor. It's an RTL8198D, featured here in this slide. And I [16:26.100 --> 16:30.740] figured I was probably going to have to go use JTAG, have the processor with internal memory and [16:30.740 --> 16:37.880] have to dump it from internal memory and so forth, but not so much. But what I did find on the board [16:37.880 --> 16:53.440] was a Winbond W25N01GV, which is a 3 volt, 1 gigabit flash chip. But they said 128 meg. [16:53.880 --> 17:00.600] No, 1 gigabit available on this board and they're only using 128 megabit according to what they're [17:00.600 --> 17:06.580] saying. Yeah, so there's a lot more room on this. Yeah, why? I don't know. Because they're cheap, [17:06.580 --> 17:14.260] honestly. Ask me how I know this. We'll see this in a little bit here. So SPI and it is NAND. [17:14.720 --> 17:20.880] So all right, this will be interesting. And apparently Bob is really hungry for some chips. [17:21.960 --> 17:28.000] All right, so I had to go now get this flash off of this Winbond SPI flash chip. And there [17:28.000 --> 17:35.080] was very much of progression of frustration going through this. So this is what society [17:35.080 --> 17:43.360] thinks I do when I remove firmware from a chip. Credit to Wired and IBM here. Sorry, Intel in [17:43.360 --> 17:47.860] some of their photographs about doing some really great work with a microscope and all sorts of fun [17:47.860 --> 17:52.260] stuff. And you'll note, I'm sort of featured down here in the right hand corner, looking very [17:52.260 --> 17:58.920] studious and doing a really great job of removing firmware and what society thinks I do. This is [17:58.920 --> 18:06.220] what my friends think I do using the PC bytes. And I'm starting to look a lot worse and maybe [18:06.420 --> 18:11.380] a little bit nerdier and geekier. And yes, this is my disaster of a desk and home office. And [18:11.380 --> 18:15.840] you get to see also other fun stuff in the background. So this is what my friends think [18:15.840 --> 18:22.220] I do. Right, Mick? Yeah. All right. This is what I think I do. This is also one of my attempts, [18:22.220 --> 18:27.380] soldering wires directly to the flash chip and then holding it down with some tape. [18:28.120 --> 18:37.100] This didn't work either. Okay. So I'm getting worse and worse in my studiousness here. And [18:37.100 --> 18:44.260] ultimately, this is what I really did. I now look like a really big goober. And I actually had to [18:44.260 --> 18:51.760] remove the chip from the board and put it in like a $3 adapter from Amazon and use some DuPont wires [18:51.760 --> 18:59.160] and attach it to a Raspberry Pi and use that IO on the board for the Raspberry Pi. Yeah, and just [18:59.160 --> 19:04.260] reuse the PC bytes thing to hold my Raspberry Pi because I was too lazy to take it off my desk. [19:04.280 --> 19:08.900] So yeah, I actually had to do take the chip off of the board because I couldn't get any of the [19:08.900 --> 19:12.880] other stuff to work right. And it may not have been the fact that there was anything wrong with [19:12.880 --> 19:19.800] my PC bytes or with my solder job. But I do know that I bricked the one that I did the solder job [19:19.800 --> 19:28.260] to. No longer functions. And we'll see why that maybe it wasn't actually the PC bytes or my solder [19:28.260 --> 19:35.280] job that wasn't allowing me to get access to the stuff. We're out of time? Oh, see, I thought I had [19:35.280 --> 19:41.000] an hour. Okay, I will I'll get out of your head here. Let's uh, I'm going to do these slides real [19:41.000 --> 19:47.900] quick here what I really did. Not a lot of flash ROM support, found some stuff, got a dump, found [19:47.900 --> 19:54.080] some treasure, lots of exploits, lots of exploit intelligence, lots of remote code vulnerabilities, [19:55.300 --> 20:02.080] passwords, username Bob, password Bob, other stuff in Korean language, some key material, [20:02.580 --> 20:07.780] a horrible web app that they wrote their own web server with some possible command injection via [20:07.780 --> 20:15.020] the password reset function, a bunch of scripts going to IP in China, all sorts of other fun [20:15.020 --> 20:20.500] stuff. And I really want to do the brain transplant to fix the one that I broke. And I've had no luck. [20:20.500 --> 20:25.160] I spent a week on the struggle bus with that, because the NAND support that I needed has no [20:25.160 --> 20:32.440] right support. So coming soon. All right. I'm out of here. I'm gonna if you want to catch me in the [20:32.440 --> 20:37.260] back or over in the IT village, I'm happy to do some more. But I want to say thank you and a big [20:37.260 --> 20:43.240] thank you to my coworker Edwin Shuttleworth, who is all now so now a minion as well. So thank you [20:43.240 --> 20:47.420] very much. And apologies for taking an extra moment of your time. And I'll see you over at the [20:47.420 --> 20:50.940] IoT village will be right up front here. If you've got any questions, and you want to see some more [20:50.940 --> 20:52.500] of these slides and some of the URLs.