WEBVTT

00:00.000 --> 00:00.880
Let's get started.

00:00.880 --> 00:06.760
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.

00:06.760 --> 00:13.080
So, welcome to SBOMs the Hard Way for my adventures in hacking Bob the Minion.

00:13.560 --> 00:20.140
I am the Product Security Research and Analysis Director and Services Team Lead at a fun company called Finite State.

00:20.500 --> 00:25.200
And we do all sorts of fun stuff with SBOMs and a whole bunch of other stuff.

00:25.200 --> 00:27.780
But I'm not here to talk to you about our product or any of that.

00:27.780 --> 00:30.960
I'm talking about my adventure with Bob.

00:31.480 --> 00:31.940
All right.

00:31.940 --> 00:32.920
So, who am I?

00:34.080 --> 00:38.400
I am a reformed penetration tester and reformed crossed out.

00:39.000 --> 00:46.660
I left doing penetration testing to go do some thought leadership and some other hardware hacking and IOT, bunch of stuff.

00:46.800 --> 00:51.940
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.

00:51.940 --> 00:52.760
Can you do it?

00:53.380 --> 00:54.580
Are you signing my paycheck?

00:54.580 --> 00:55.580
Yes, I can do that.

00:55.580 --> 01:04.120
So, I am a reformed penetration tester back doing penetration testing back in OT, ICS, IOT, and lots of hardware.

01:04.460 --> 01:07.520
I'm also the co-host of Paul's Security Weekly.

01:07.520 --> 01:13.160
We're in our 19th year, soon to go into our 20th year of a weekly security podcast.

01:13.320 --> 01:14.600
How many of you are listeners?

01:16.300 --> 01:17.520
Go listen.

01:17.520 --> 01:17.860
All right.

01:17.860 --> 01:18.380
Awesome.

01:18.380 --> 01:19.240
Thank you.

01:19.540 --> 01:21.280
I do a lot of work with SANS.

01:21.280 --> 01:29.640
I'm both an instructor and a course author around wireless hacking and IOT hacking, ironically.

01:30.540 --> 01:35.480
I'm a recent convert to the Oxford comma, because commas save lives, folks.

01:36.380 --> 01:40.200
And someone said, why are you been using that Oxford comma for a really long time?

01:40.200 --> 01:43.240
So, you're really not a recent convert, but I'm going to keep it.

01:43.240 --> 01:48.800
So, I'll add that I also enjoy long walks on the beach weighed down by my ham radio.

01:49.580 --> 01:51.720
Prepping for the zombie apocalypse.

01:52.360 --> 01:53.280
All right.

01:53.280 --> 01:55.760
So, let's get into some fun bits here.

01:55.760 --> 01:57.500
So, we're going to hack Bob the Minion.

01:57.560 --> 02:07.200
So, on every one of my slides, except this one, features AI generated art with minions.

02:07.540 --> 02:10.200
So, let's get into character a little bit here.

02:10.200 --> 02:20.980
And I took this image of my headshot and fed it to mid journey so that I could become an evil, despicable me villain.

02:21.200 --> 02:23.160
So, here we go.

02:23.160 --> 02:25.680
This is some of this art is terrifying.

02:25.700 --> 02:30.100
And I kept the ones that were insane just because insanity.

02:30.100 --> 02:35.220
I didn't know yesterday that there was an AI generated art competition.

02:35.400 --> 02:37.540
I would have been good at that.

02:37.540 --> 02:38.460
Maybe.

02:38.460 --> 02:40.200
So, I had lots of fun.

02:40.200 --> 02:45.060
I think I more time into the art than the actual words on these slides.

02:45.060 --> 02:45.740
Don't get me wrong.

02:45.760 --> 02:47.460
I think the presentation is really good.

02:47.460 --> 02:48.940
You're going to get something from it.

02:49.200 --> 02:49.840
All right.

02:49.840 --> 02:52.320
So, a little bit of background.

02:52.340 --> 02:53.320
I work for a company.

02:53.320 --> 02:55.860
We do SBOMs and a whole bunch of other stuff.

02:55.860 --> 02:58.620
But I really think that SBOMs are fun.

02:58.740 --> 03:04.400
And that was sort of my end goal was to get a software bill of materials for Bob the Minion.

03:04.820 --> 03:07.200
So, a little bit of background.

03:07.880 --> 03:20.560
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.

03:20.560 --> 03:38.980
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.

03:39.300 --> 03:50.420
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.

03:51.240 --> 03:53.840
524B for the FDA.

03:53.840 --> 04:06.280
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.

04:06.880 --> 04:12.260
And a voluntary program managed by the FCC here in the US, the Cyber Trustmark Program.

04:12.260 --> 04:38.420
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.

04:38.480 --> 04:46.160
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.

04:46.200 --> 04:47.580
9 being better?

04:47.580 --> 04:49.520
Yeah, I'm going to buy the one that's a 9.

04:49.880 --> 04:50.580
Cool.

04:51.040 --> 05:00.500
The one that is absolutely both fascinating and terrifying, in my opinion, is the EU Cyber Resiliency Act or the EU CRA.

05:01.240 --> 05:10.600
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.

05:10.960 --> 05:17.700
And they also need to have a process for managing vulnerabilities and patching and monitoring and all this type of stuff.

05:17.700 --> 05:20.680
And an SBOM will be included as part of that process.

05:21.140 --> 05:23.640
And they are significantly more stringent.

05:23.640 --> 05:25.900
And this is not a voluntary program.

05:26.100 --> 05:28.400
It's mandatory if you want to sell into Europe.

05:28.400 --> 05:30.340
And companies that sell into the U.S.

05:30.340 --> 05:31.720
also sell into Europe.

05:31.720 --> 05:32.860
Same device.

05:32.960 --> 05:42.280
So, many manufacturers are going to have to submit to EU CRA, which means everywhere on the planet will largely benefit from those regulations.

05:42.920 --> 05:49.180
Overall, some general benefits outside of any of the regulatory stuff for software bill materials.

05:49.180 --> 06:03.920
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.

06:04.380 --> 06:21.980
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.

06:22.260 --> 06:44.560
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.

06:44.740 --> 06:49.120
And that was the subject of my talk that I did at RSA entitled SBOMs for Evil.

06:49.480 --> 06:51.100
So you can go check that out as well.

06:51.100 --> 06:52.820
So we won't go too far into that.

06:53.220 --> 07:03.500
So as part of my day job and as part of being a reformed, unreformed penetration tester, I really love software bill of materials.

07:03.500 --> 07:21.580
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.

07:21.600 --> 07:23.140
And quite honestly, I think it's really fun.

07:23.140 --> 07:26.260
And find all sorts of sort of scary things.

07:26.480 --> 07:41.560
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.

07:42.160 --> 07:55.020
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.

07:55.020 --> 08:03.660
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.

08:03.860 --> 08:10.920
So occasionally, we get to find some Oday and some other occasional hackery, and discovering some surprises.

08:10.920 --> 08:14.760
And we may have some surprises here with Bob the Minion.

08:14.820 --> 08:19.360
And arguably, it might not be all that surprising, after all.

08:19.800 --> 08:21.960
Ultimately, I think the end result is so much fun.

08:21.960 --> 08:24.920
And arguably, I get to come talk to you about it at DEF CON.

08:25.620 --> 08:34.380
So finding all of those weird products, suddenly, a wild Bob appears.

08:34.380 --> 08:40.120
And yes, AI generated Bob in a dystopian future, and hasn't shaved in a little bit.

08:40.120 --> 08:43.780
He might look a little bit like me, I'm kind of disturbed about that.

08:44.140 --> 08:46.400
So suddenly, a wild Bob appears.

08:46.400 --> 08:48.580
So what is this Bob?

08:48.720 --> 08:54.540
This Bob is a wireless home router, the Davolink AX1800.

08:54.640 --> 09:03.960
And it has been licensed by Universal for Davolink to produce these wireless routers that are in the shape of Bob.

09:03.960 --> 09:09.120
It's a nice plastic fun looking case around a wireless router for your home.

09:09.120 --> 09:10.620
I was like, that's pretty cool.

09:10.720 --> 09:20.340
Pretty darn good features for the Bob has Wi Fi six has some easy mesh support and supports WPA3.

09:20.340 --> 09:25.000
So some of our latest Wi Fi standards for for your home.

09:25.220 --> 09:31.240
Now, I've been doing some hardware hacking around consumer routers for a really, really long time.

09:31.340 --> 09:38.980
And it was typical that we were seeing devices with flash and RAM of somewhere between four and eight megs, maybe 16.

09:39.000 --> 09:40.840
Yeah, we've come a long way.

09:40.840 --> 09:50.540
This particular one has, according to the box, and Amazon 128 megs of flash, and 256 megs of RAM.

09:50.540 --> 09:55.600
That's pretty darn robust and compared to some of the stuff that I've seen in the past.

09:55.780 --> 09:57.440
But it gets better.

09:57.440 --> 10:01.220
It's not 128 megs of flash, we'll see that in a little bit here.

10:01.620 --> 10:03.840
Currently, there's no open word support.

10:03.840 --> 10:08.280
So it is their own custom firmware, big thumbs down from Mick down front here.

10:08.280 --> 10:11.340
And they run about $70 on Amazon.

10:11.340 --> 10:16.760
So I didn't feel too bad about buying one of these things and ripping Bob's head off to see what was inside.

10:17.620 --> 10:23.000
I did not purchase the Kevin variety, the Kevin variety is a little bit taller.

10:23.600 --> 10:26.920
And one of the upgrades there is it does have Wi Fi 6E.

10:26.920 --> 10:30.620
So into the six gigahertz range, but they're about double the price.

10:30.620 --> 10:33.400
And well, this is coming out of my own personal budget.

10:33.540 --> 10:35.880
So I went for the cheap one, right?

10:35.880 --> 10:39.420
I figured that many of the challenges will probably be the same here.

10:40.580 --> 10:44.500
Alright, so, hey, I want firmware, right for these devices.

10:44.500 --> 10:46.480
So I can generate some as moms.

10:47.300 --> 10:49.060
Let's go get the firmware.

10:49.060 --> 10:51.700
But you tip my hat a little bit here.

10:51.700 --> 10:52.960
What firmware?

10:53.580 --> 10:54.800
All right.

10:55.140 --> 11:00.760
Unfortunately, I wasn't able to easily locate firmware for the devil link AX 1800.

11:01.320 --> 11:09.040
We powered the device up, used it, figured out what all the interface was about, logged in, take a look at the web interface.

11:09.040 --> 11:12.500
And sure enough, in the web interface, there is a button that says check for updates.

11:12.900 --> 11:18.940
And as of two weeks ago, when I pressed the check for updates button , there were no updates.

11:19.120 --> 11:27.920
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.

11:28.280 --> 11:29.240
So there's one firmware.

11:29.920 --> 11:31.060
It is what it is.

11:31.060 --> 11:38.000
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.

11:38.180 --> 11:45.400
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.

11:46.320 --> 11:49.820
Oh, well, I'll go to the website.

11:50.020 --> 11:51.580
Nope, nothing on their website.

11:51.580 --> 11:54.620
You go to their support forums, you go to their support pages.

11:54.680 --> 11:58.600
Absolutely no firmware for the AX 1800 available for download.

11:58.600 --> 12:02.560
There's manuals and stuff, but no firmware.

12:02.980 --> 12:05.220
So what happens if I brick it by accident?

12:05.220 --> 12:09.800
I have no way to upload firmware to this because the manufacturer doesn't even make it available.

12:10.120 --> 12:14.700
I checked the support forums to see if I could find links somewhere in the support forums.

12:14.860 --> 12:16.900
And that was a mess.

12:17.380 --> 12:19.020
DabbleLink is a Korean company.

12:19.020 --> 12:21.560
They have two different support forums.

12:21.600 --> 12:24.420
One is in Korean, one is in English.

12:24.540 --> 12:28.040
The English has a little bit more population to it.

12:28.040 --> 12:30.940
In that more folks have asked some questions.

12:30.940 --> 12:36.760
The Korean version of the support forums, there's like three posts, and that's it.

12:36.940 --> 12:40.680
Clearly, Korea was not their intended market for these devices.

12:41.260 --> 12:47.860
And Google Translate had a really easy time trying to go through and translate that stuff because there wasn't a lot there.

12:48.300 --> 12:51.340
Search through all of the support forum posts.

12:51.340 --> 12:52.960
There are no links to firmware.

12:52.960 --> 12:57.000
There's nobody even asking, hey, I bricked my router, can I get a firmware?

12:57.280 --> 13:02.320
So that I could reach out to them and try to ask them for it or try that same guise.

13:02.640 --> 13:06.180
So nobody was asking and nobody was offering.

13:07.100 --> 13:13.940
Unfortunately, now that means with no ready access to the firmware, we've got to go do this the hard way.

13:13.940 --> 13:27.160
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.

13:27.160 --> 13:31.960
But no SBOMs means no fun, right?

13:32.240 --> 13:34.120
I love some of this stuff.

13:34.120 --> 13:48.480
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.

13:48.480 --> 13:54.200
And it came out really happy and bright and green and very cartoony for all these dogs.

13:54.200 --> 13:58.460
No, I wanted like, like wolves that were gonna tear Bob's head off.

13:58.460 --> 14:02.060
And now there's some nice puppies here.

14:02.060 --> 14:04.440
So I did the best I could.

14:04.620 --> 14:05.540
All right.

14:05.620 --> 14:09.980
But so if we can't get ready access to it, we got to go about this, do this hard way.

14:09.980 --> 14:12.500
And well, brain surgery is fun, right?

14:12.980 --> 14:18.880
Yeah, just ask Buckaroo Bonsai, Adventures of Buckaroo Bonsai in the Eighth Dimension.

14:19.080 --> 14:21.900
Okay, this was how some of this AI prompt ended up.

14:21.900 --> 14:28.120
I told Midjourney that I wanted Bob the Minion to go undergo brain surgery by Buckaroo Bonsai.

14:28.560 --> 14:31.000
Have the surgeon be Buckaroo Bonsai.

14:31.260 --> 14:38.680
Unfortunately, it actually crossed Peter Weller with a minion and came up with this abomination.

14:39.220 --> 14:40.780
It's quite amazing.

14:40.780 --> 14:43.720
Like, this is the best of them.

14:43.720 --> 14:46.320
The other ones were just downright terrible.

14:47.060 --> 14:54.020
Also, if you've never seen Buckaroo, the Adventures of Buckaroo Bonsai in the Eighth Dimension, I highly recommend that you do so.

14:54.020 --> 14:58.540
It is a 1980s, very campy film with some really amazing stars.

14:58.860 --> 15:02.280
Peter Weller, John Lithgow, a whole host of folks.

15:02.280 --> 15:07.440
And it's, it's amazingly campy and maybe one for Jeff Moss to send to Hacker Movie Night.

15:07.700 --> 15:10.720
It's hilarious and it's great.

15:11.300 --> 15:22.400
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.

15:22.400 --> 15:24.280
So, my plug.

15:24.380 --> 15:27.960
And note that Bob doesn't even have yellow ears in this one.

15:27.960 --> 15:29.960
They're apparently Peter Weller's ears.

15:30.260 --> 15:33.460
Not only did they do a brain transplant, they did an ear transplant too.

15:33.940 --> 15:36.280
All right, so let's get to this brain surgery.

15:37.380 --> 15:39.120
All right, take this thing apart.

15:39.120 --> 15:40.780
We do this the hard way.

15:40.820 --> 15:44.240
Pull the boards out, do an inventory, take pictures of all the chips.

15:44.500 --> 15:49.680
Let's do some, some analysis and figure out some of the spec sheets.

15:49.680 --> 15:53.780
Go download those and then start figuring out how we can get access to that firmware.

15:54.180 --> 15:56.500
Are there serial ports available on the board?

15:56.500 --> 15:58.040
Yes, in this case there is.

15:58.040 --> 15:59.980
I did not go that route, however.

16:00.260 --> 16:06.420
Can we use JTAG or SWD to dump firmware from the device, from that bus?

16:06.440 --> 16:11.160
I fortunately did not have to go down that road either because that is arguably the harder.

16:11.920 --> 16:17.140
But what about SPI and being able to grab that from there?

16:17.180 --> 16:20.520
The first question was looking at the processor.

16:20.520 --> 16:25.460
It's an RTL8198D, featured here in this slide.

16:25.480 --> 16:34.920
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.

16:35.760 --> 16:49.880
But what I did find on the board was a Winbond W25N01GV, which is a 3 volt, 1 gigabit flash chip.

16:50.000 --> 16:53.440
But they said 128 meg.

16:53.880 --> 17:01.020
No, 1 gigabit available on this board and they're only using 128 megabit according to what they're saying.

17:01.020 --> 17:03.920
Yeah, so there's a lot more room on this.

17:03.980 --> 17:04.900
Yeah, why?

17:04.900 --> 17:05.640
I don't know.

17:05.640 --> 17:07.480
Because they're cheap, honestly.

17:07.560 --> 17:08.920
Ask me how I know this.

17:08.920 --> 17:10.500
We'll see this in a little bit here.

17:11.020 --> 17:14.260
So SPI and it is NAND.

17:14.720 --> 17:17.620
So all right, this will be interesting.

17:17.920 --> 17:20.880
And apparently Bob is really hungry for some chips.

17:21.960 --> 17:27.640
All right, so I had to go now get this flash off of this Winbond SPI flash chip.

17:27.640 --> 17:33.120
And there was very much of progression of frustration going through this.

17:33.120 --> 17:38.020
So this is what society thinks I do when I remove firmware from a chip.

17:38.120 --> 17:41.780
Credit to Wired and IBM here.

17:41.780 --> 17:48.220
Sorry, Intel in some of their photographs about doing some really great work with a microscope and all sorts of fun stuff.

17:48.220 --> 17:57.620
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.

17:58.300 --> 18:02.760
This is what my friends think I do using the PC bytes.

18:02.760 --> 18:07.920
And I'm starting to look a lot worse and maybe a little bit nerdier and geekier.

18:07.920 --> 18:11.240
And yes, this is my disaster of a desk and home office.

18:11.240 --> 18:14.220
And you get to see also other fun stuff in the background.

18:14.320 --> 18:16.260
So this is what my friends think I do.

18:16.260 --> 18:17.000
Right, Mick?

18:17.100 --> 18:17.540
Yeah.

18:17.540 --> 18:18.180
All right.

18:18.540 --> 18:20.360
This is what I think I do.

18:20.360 --> 18:27.380
This is also one of my attempts, soldering wires directly to the flash chip and then holding it down with some tape.

18:28.120 --> 18:30.380
This didn't work either.

18:30.740 --> 18:31.800
Okay.

18:31.880 --> 18:36.660
So I'm getting worse and worse in my studiousness here.

18:36.660 --> 18:40.060
And ultimately, this is what I really did.

18:40.060 --> 18:43.080
I now look like a really big goober.

18:43.080 --> 18:58.520
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.

18:58.540 --> 19:04.260
Yeah, and just 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:09.920
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.

19:09.920 --> 19:15.520
And it may not have been the fact that there was anything wrong with my PC bytes or with my solder job.

19:16.020 --> 19:20.440
But I do know that I bricked the one that I did the solder job to.

19:21.260 --> 19:22.820
No longer functions.

19:24.080 --> 19:31.280
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.

19:31.760 --> 19:32.700
We're out of time?

19:33.740 --> 19:36.000
Oh, see, I thought I had an hour.

19:36.100 --> 19:38.800
Okay, I will I'll get out of your head here.

19:38.800 --> 19:42.480
Let's uh, I'm going to do these slides real quick here what I really did.

19:43.280 --> 20:02.080
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,

20:02.580 --> 20:15.440
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.

20:15.440 --> 20:19.080
And I really want to do the brain transplant to fix the one that I broke.

20:19.380 --> 20:20.500
And I've had no luck.

20:20.500 --> 20:26.020
I spent a week on the struggle bus with that, because the NAND support that I needed has no right support.

20:26.020 --> 20:27.460
So coming soon.

20:27.720 --> 20:28.620
All right.

20:29.360 --> 20:30.280
I'm out of here.

20:30.280 --> 20:35.600
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.

20:35.600 --> 20:42.480
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.

20:42.480 --> 20:43.640
So thank you very much.

20:43.640 --> 20:46.400
And apologies for taking an extra moment of your time.

20:46.500 --> 20:49.100
And I'll see you over at the IoT village will be right up front here.

20:49.140 --> 20:52.500
If you've got any questions, and you want to see some more of these slides and some of the URLs.

