Let's get started. We're running a little late, so I'm going to try not to talk too fast, but I've got to make up some time here. So, welcome to SBOMs the Hard Way for my adventures in hacking Bob the Minion. I am the Product Security Research and Analysis Director and Services Team Lead at a fun company called Finite State. And we do all sorts of fun stuff with SBOMs and a whole bunch of other stuff. But I'm not here to talk to you about our product or any of that. I'm talking about my adventure with Bob. All right. So, who am I? I am a reformed penetration tester and reformed crossed out. I left doing penetration testing to go do some thought leadership and some other hardware hacking and IOT, bunch of stuff. And three months into the job, my boss came to me and said, hey, we have a customer that wants to throw a lot of money at us to do pen tests. Can you do it? Are you signing my paycheck? Yes, I can do that. So, I am a reformed penetration tester back doing penetration testing back in OT, ICS, IOT, and lots of hardware. I'm also the co-host of Paul's Security Weekly. We're in our 19th year, soon to go into our 20th year of a weekly security podcast. How many of you are listeners? Go listen. All right. Awesome. Thank you. I do a lot of work with SANS. I'm both an instructor and a course author around wireless hacking and IOT hacking, ironically. I'm a recent convert to the Oxford comma, because commas save lives, folks. And someone said, why are you been using that Oxford comma for a really long time? So, you're really not a recent convert, but I'm going to keep it. So, I'll add that I also enjoy long walks on the beach weighed down by my ham radio. Prepping for the zombie apocalypse. All right. So, let's get into some fun bits here. So, we're going to hack Bob the Minion. So, on every one of my slides, except this one, features AI generated art with minions. So, let's get into character a little bit here. And I took this image of my headshot and fed it to mid journey so that I could become an evil, despicable me villain. So, here we go. This is some of this art is terrifying. And I kept the ones that were insane just because insanity. I didn't know yesterday that there was an AI generated art competition. I would have been good at that. Maybe. So, I had lots of fun. I think I more time into the art than the actual words on these slides. Don't get me wrong. I think the presentation is really good. You're going to get something from it. All right. So, a little bit of background. I work for a company. We do SBOMs and a whole bunch of other stuff. But I really think that SBOMs are fun. And that was sort of my end goal was to get a software bill of materials for Bob the Minion. So, a little bit of background. A software bill of materials is an inventory of all your software, their versions and who wrote it, where it came from as part of your product security sorry, your software supply chain and can help you do some security. And we're going to start seeing somewhere around 2025 that every product that connected product that you buy either at your company or for your personal consumption will have an SBOM associated with it and will be available as part of some of its certification process and being able to be sold into the marketplace. Specifically, addressing some of those here in the United States are Executive Order 14-208 for a lot of stuff going into government and into consumer stuff. 524B for the FDA. So, any medical device that is being submitted to the FDA for use on humans requires that an SBOM is part of their submission process and a plan for securing their devices over time and managing vulnerabilities. And a voluntary program managed by the FCC here in the US, the Cyber Trustmark Program. It's kind of like a consumer protection thing so that as a voluntary program that companies can submit their devices to the Cyber Trustmark Program, they can get a stamp on the box and that a consumer can have a high degree of confidence that there is some security in this product baked in and that they are monitoring for vulnerabilities over time and issuing some updates with a little barcode that links to a website that gives them an overall security score. So, while you're standing at Best Buy, you can scan this barcode and go, oh, this router's got a 3 for security and that one's got a 9. 9 being better? Yeah, I'm going to buy the one that's a 9. Cool. The one that is absolutely both fascinating and terrifying, in my opinion, is the EU Cyber Resiliency Act or the EU CRA. EU CRA, their intent in the EU is that they do not want any connected products being sold into the marketplace that has any vulnerabilities. And they also need to have a process for managing vulnerabilities and patching and monitoring and all this type of stuff. And an SBOM will be included as part of that process. And they are significantly more stringent. And this is not a voluntary program. It's mandatory if you want to sell into Europe. And companies that sell into the U.S. also sell into Europe. Same device. So, many manufacturers are going to have to submit to EU CRA, which means everywhere on the planet will largely benefit from those regulations. Overall, some general benefits outside of any of the regulatory stuff for software bill materials. They give us that software inventory list for both first and third party stuff that you're developing and stuff that you've pulled in as part of your development process and even into potential final firmware that you're delivering to your customers or you are consuming. With that list of those components and their versions, you can perform some enrichment on those, find out whether there are vulnerabilities associated with those products so that you can then attempt to perform some risk mitigation and observe that some of that risk exists and take appropriate actions. And I'll also argue that you should be operationalizing your SBOMs as either a consumer or a manufacturer, that you should take these software bill of materials and use them as part of your security process and your penetration testing process because knowing the components may give you an opportunity to improve that security knowing that there are vulnerabilities exist. And that was the subject of my talk that I did at RSA entitled SBOMs for Evil. So you can go check that out as well. So we won't go too far into that. So as part of my day job and as part of being a reformed, unreformed penetration tester, I really love software bill of materials. And some of the fun stuff that I get to do at work is go find some random device, get the firmware, and get an SBOM for it just to see what there is, see if we can do some accurate detection, helps build some of the things that we're detecting for, helps improve our product. And quite honestly, I think it's really fun. And find all sorts of sort of scary things. So getting that firmware, doing some extraction, verifying that the extraction is accurate for our product, figuring out all new things, going back and reverse engineering some binaries to figure out the type of code and some of the code vulnerabilities. And as a result of that SBOM, being able to discover that there's a product with a firmware that has some known vulnerabilities, and known is here in air quotes, and that it's known to the community that these components have vulnerabilities. But maybe as a consumer, or maybe even as a manufacturer, you might not realize that these components have vulnerabilities and you're using them in your products. So occasionally, we get to find some Oday and some other occasional hackery, and discovering some surprises. And we may have some surprises here with Bob the Minion. And arguably, it might not be all that surprising, after all. Ultimately, I think the end result is so much fun. And arguably, I get to come talk to you about it at DEF CON. So finding all of those weird products, suddenly, a wild Bob appears. And yes, AI generated Bob in a dystopian future, and hasn't shaved in a little bit. He might look a little bit like me, I'm kind of disturbed about that. So suddenly, a wild Bob appears. So what is this Bob? This Bob is a wireless home router, the Davolink AX1800. And it has been licensed by Universal for Davolink to produce these wireless routers that are in the shape of Bob. It's a nice plastic fun looking case around a wireless router for your home. I was like, that's pretty cool. Pretty darn good features for the Bob has Wi Fi six has some easy mesh support and supports WPA3. So some of our latest Wi Fi standards for for your home. Now, I've been doing some hardware hacking around consumer routers for a really, really long time. And it was typical that we were seeing devices with flash and RAM of somewhere between four and eight megs, maybe 16. Yeah, we've come a long way. This particular one has, according to the box, and Amazon 128 megs of flash, and 256 megs of RAM. That's pretty darn robust and compared to some of the stuff that I've seen in the past. But it gets better. It's not 128 megs of flash, we'll see that in a little bit here. Currently, there's no open word support. So it is their own custom firmware, big thumbs down from Mick down front here. And they run about $70 on Amazon. So I didn't feel too bad about buying one of these things and ripping Bob's head off to see what was inside. I did not purchase the Kevin variety, the Kevin variety is a little bit taller. And one of the upgrades there is it does have Wi Fi 6E. So into the six gigahertz range, but they're about double the price. And well, this is coming out of my own personal budget. So I went for the cheap one, right? I figured that many of the challenges will probably be the same here. Alright, so, hey, I want firmware, right for these devices. So I can generate some as moms. Let's go get the firmware. But you tip my hat a little bit here. What firmware? All right. Unfortunately, I wasn't able to easily locate firmware for the devil link AX 1800. We powered the device up, used it, figured out what all the interface was about, logged in, take a look at the web interface. And sure enough, in the web interface, there is a button that says check for updates. And as of two weeks ago, when I pressed the check for updates button, there were no updates. There is one version of firmware for this device, the one that came on it from the factory, which will be terrifying when we see this a little bit later. So there's one firmware. It is what it is. There's no updates, which means if I click the update button, there's no firmware, which means I can't capture anything off the wire. They can't get anything via web inspection or TCP dump or any of that type of stuff to try to recover the firmware from network traffic. Oh, well, I'll go to the website. Nope, nothing on their website. You go to their support forums, you go to their support pages. Absolutely no firmware for the AX 1800 available for download. There's manuals and stuff, but no firmware. So what happens if I brick it by accident? I have no way to upload firmware to this because the manufacturer doesn't even make it available. I checked the support forums to see if I could find links somewhere in the support forums. And that was a mess. DabbleLink is a Korean company. They have two different support forums. One is in Korean, one is in English. The English has a little bit more population to it. In that more folks have asked some questions. The Korean version of the support forums, there's like three posts, and that's it. Clearly, Korea was not their intended market for these devices. And Google Translate had a really easy time trying to go through and translate that stuff because there wasn't a lot there. Search through all of the support forum posts. There are no links to firmware. There's nobody even asking, hey, I bricked my router, can I get a firmware? So that I could reach out to them and try to ask them for it or try that same guise. So nobody was asking and nobody was offering. Unfortunately, now that means with no ready access to the firmware, we've got to go do this the hard way. And no ready access to firmware, that means, no, wrong way, that means no SBOM, no enrichment, no ability for me to figure out their vulnerabilities in this really easily, based on software components and so forth. But no SBOMs means no fun, right? I love some of this stuff. I tried to make this image like the dystopian future, dark gray, and the training for the AI models at Majority was not picking up that I wanted this to be dirty and gritty, no matter how many times I told it. And it came out really happy and bright and green and very cartoony for all these dogs. No, I wanted like, like wolves that were gonna tear Bob's head off. And now there's some nice puppies here. So I did the best I could. All right. But so if we can't get ready access to it, we got to go about this, do this hard way. And well, brain surgery is fun, right? Yeah, just ask Buckaroo Bonsai, Adventures of Buckaroo Bonsai in the Eighth Dimension. Okay, this was how some of this AI prompt ended up. I told Midjourney that I wanted Bob the Minion to go undergo brain surgery by Buckaroo Bonsai. Have the surgeon be Buckaroo Bonsai. Unfortunately, it actually crossed Peter Weller with a minion and came up with this abomination. It's quite amazing. Like, this is the best of them. The other ones were just downright terrible. Also, if you've never seen Buckaroo, the Adventures of Buckaroo Bonsai in the Eighth Dimension, I highly recommend that you do so. It is a 1980s, very campy film with some really amazing stars. Peter Weller, John Lithgow, a whole host of folks. And it's, it's amazingly campy and maybe one for Jeff Moss to send to Hacker Movie Night. It's hilarious and it's great. It's on the top thousand movies you should see before you die, and like number 43 in some of the campy sci-fi movies, top lists and so forth. So, my plug. And note that Bob doesn't even have yellow ears in this one. They're apparently Peter Weller's ears. Not only did they do a brain transplant, they did an ear transplant too. All right, so let's get to this brain surgery. All right, take this thing apart. We do this the hard way. Pull the boards out, do an inventory, take pictures of all the chips. Let's do some, some analysis and figure out some of the spec sheets. Go download those and then start figuring out how we can get access to that firmware. Are there serial ports available on the board? Yes, in this case there is. I did not go that route, however. Can we use JTAG or SWD to dump firmware from the device, from that bus? I fortunately did not have to go down that road either because that is arguably the harder. But what about SPI and being able to grab that from there? The first question was looking at the processor. It's an RTL8198D, featured here in this slide. And I figured I was probably going to have to go use JTAG, have the processor with internal memory and have to dump it from internal memory and so forth, but not so much. But what I did find on the board was a Winbond W25N01GV, which is a 3 volt, 1 gigabit flash chip. But they said 128 meg. No, 1 gigabit available on this board and they're only using 128 megabit according to what they're saying. Yeah, so there's a lot more room on this. Yeah, why? I don't know. Because they're cheap, honestly. Ask me how I know this. We'll see this in a little bit here. So SPI and it is NAND. So all right, this will be interesting. And apparently Bob is really hungry for some chips. All right, so I had to go now get this flash off of this Winbond SPI flash chip. And there was very much of progression of frustration going through this. So this is what society thinks I do when I remove firmware from a chip. Credit to Wired and IBM here. Sorry, Intel in some of their photographs about doing some really great work with a microscope and all sorts of fun stuff. And you'll note, I'm sort of featured down here in the right hand corner, looking very studious and doing a really great job of removing firmware and what society thinks I do. This is what my friends think I do using the PC bytes. And I'm starting to look a lot worse and maybe a little bit nerdier and geekier. And yes, this is my disaster of a desk and home office. And you get to see also other fun stuff in the background. So this is what my friends think I do. Right, Mick? Yeah. All right. This is what I think I do. This is also one of my attempts, soldering wires directly to the flash chip and then holding it down with some tape. This didn't work either. Okay. So I'm getting worse and worse in my studiousness here. And ultimately, this is what I really did. I now look like a really big goober. And I actually had to remove the chip from the board and put it in like a $3 adapter from Amazon and use some DuPont wires and attach it to a Raspberry Pi and use that IO on the board for the Raspberry Pi. Yeah, and just reuse the PC bytes thing to hold my Raspberry Pi because I was too lazy to take it off my desk. So yeah, I actually had to do take the chip off of the board because I couldn't get any of the other stuff to work right. And it may not have been the fact that there was anything wrong with my PC bytes or with my solder job. But I do know that I bricked the one that I did the solder job to. No longer functions. And we'll see why that maybe it wasn't actually the PC bytes or my solder job that wasn't allowing me to get access to the stuff. We're out of time? Oh, see, I thought I had an hour. Okay, I will I'll get out of your head here. Let's uh, I'm going to do these slides real quick here what I really did. Not a lot of flash ROM support, found some stuff, got a dump, found some treasure, lots of exploits, lots of exploit intelligence, lots of remote code vulnerabilities, passwords, username Bob, password Bob, other stuff in Korean language, some key material, a horrible web app that they wrote their own web server with some possible command injection via the password reset function, a bunch of scripts going to IP in China, all sorts of other fun stuff. And I really want to do the brain transplant to fix the one that I broke. And I've had no luck. I spent a week on the struggle bus with that, because the NAND support that I needed has no right support. So coming soon. All right. I'm out of here. I'm gonna if you want to catch me in the back or over in the IT village, I'm happy to do some more. But I want to say thank you and a big thank you to my coworker Edwin Shuttleworth, who is all now so now a minion as well. So thank you very much. And apologies for taking an extra moment of your time. And I'll see you over at the IoT village will be right up front here. If you've got any questions, and you want to see some more of these slides and some of the URLs.