WEBVTT
Kind: captions
Language: en

00:00:00.320 --> 00:00:06.640 align:start position:19%
What's up everybody? This is Matt Brown
with another IoT hacking video. Today

00:00:04.080 --> 00:00:14.000 align:start position:19%
I'm joined with Andrew Bellini and he
has created a awesome new tool to

00:00:10.320 --> 00:00:19.040 align:start position:19%
automate a lot of IoT hacking tasks and
he is going to show us. Andrew, welcome.

00:00:17.040 --> 00:00:23.720 align:start position:19%
Hey, thanks so much for having me Matt.
Yeah, I've been working on this really

00:00:21.200 --> 00:00:27.800 align:start position:19%
awesome open-source firmware analysis
tool that very on theme for right now

00:00:26.240 --> 00:00:33.640 align:start position:19%
does use
AI. It has an MCP server and yeah, I'm

00:00:31.480 --> 00:00:37.240 align:start position:19%
excited to just you know, let people
take it for a spin. It's out in beta

00:00:35.240 --> 00:00:43.040 align:start position:19%
right now, but in my early testing I've
already found some really critical and

00:00:40.040 --> 00:00:47.560 align:start position:19%
interesting volns with it that I just
reported as CVs yesterday, but

00:00:45.560 --> 00:00:52.120 align:start position:19%
since they're with Tenda who doesn't
like to talk to security researchers or

00:00:49.840 --> 00:00:56.640 align:start position:19%
even have a responsible disclosure
program, we can show them today on the

00:00:54.320 --> 00:01:01.880 align:start position:19%
video as well.
I'm super psyched to see that and yeah,

00:00:59.160 --> 00:01:06.760 align:start position:19%
like you said everybody is
playing around with AI with LLMs and

00:01:05.000 --> 00:01:10.480 align:start position:19%
kind of asking that question, hey, how
can I integrate those into my workflow?

00:01:08.440 --> 00:01:14.520 align:start position:19%
So this is really awesome to have this
open-source tool. So you're going to

00:01:12.560 --> 00:01:17.560 align:start position:19%
kick the tires for us here? Yeah, yeah,
we'll launch it up and yeah, it's you

00:01:16.120 --> 00:01:21.200 align:start position:19%
know, the cool thing about this tool is
you can use as much or as little AI as

00:01:19.160 --> 00:01:25.440 align:start position:19%
you want. So it's not like forced like
uh Microslop or like any of those where

00:01:23.440 --> 00:01:28.760 align:start position:19%
it's like you will use this AI and you
will enjoy it. No. We're going to put a

00:01:27.080 --> 00:01:32.680 align:start position:19%
whole button on your keyboard for it.
&gt;&gt; Yeah, you can use better like it. You

00:01:30.120 --> 00:01:36.480 align:start position:19%
can use as much or as little as you
want. So yeah, let's take a look at it

00:01:34.760 --> 00:01:39.760 align:start position:19%
now and
I'll show you how you can launch it up,

00:01:37.800 --> 00:01:43.760 align:start position:19%
how you can use it and I'd love to get
your opinion.

00:01:41.160 --> 00:01:48.800 align:start position:19%
Love to get your opinion on it here. So
let's go ahead first and launch it up.

00:01:45.600 --> 00:01:54.680 align:start position:19%
So the tool is called Wares which is
like a play on firmware

00:01:52.520 --> 00:01:59.480 align:start position:19%
AI and also I don't know if you've ever
played Skyrim, but one of my favorite

00:01:56.680 --> 00:02:03.080 align:start position:19%
games And uh there's like a meme that's
like, "Khajiit has coins if you have

00:02:01.800 --> 00:02:07.040 align:start position:19%
wares." But it's uh
&gt;&gt; Oh man, I need to go play that. I I I

00:02:05.120 --> 00:02:11.560 align:start position:19%
I'm not familiar. I got I got to got to
get in on the reference. "Khajiit has

00:02:09.440 --> 00:02:18.640 align:start position:19%
volumes if you have wares." is my is my
new meme. So, everything in this one

00:02:14.320 --> 00:02:22.640 align:start position:19%
runs in a Docker environment. Um which
I've done for a specific reason. I know

00:02:21.240 --> 00:02:25.920 align:start position:19%
some people are not fans of Docker
containers, but

00:02:24.360 --> 00:02:31.000 align:start position:19%
there's two big reasons for that on this
one. So, the first one is

00:02:29.000 --> 00:02:35.720 align:start position:19%
everything then will just work for you.
So, you actually can run this in a local

00:02:33.000 --> 00:02:39.040 align:start position:19%
mode if you want. But then you have to
install all the tools and dependencies,

00:02:37.600 --> 00:02:45.240 align:start position:19%
and there's a lot of them. There's like
Ghidra, Radar, Binwalk, Unblob, DD, you

00:02:43.560 --> 00:02:48.959 align:start position:19%
know, like your Sasquatch, Jefferson,
like all There's a whole large tool

00:02:47.240 --> 00:02:53.600 align:start position:19%
chain in the back end.
All that's done for you with the Docker

00:02:50.480 --> 00:02:58.240 align:start position:19%
images I pre-created. And I don't know
if you've ever done this, but I've done

00:02:54.640 --> 00:03:02.120 align:start position:19%
this before many a times. I have gone CD
{slash} Etsy

00:03:00.400 --> 00:03:06.640 align:start position:19%
inside of a firmware sample that I'm
reverse engineering instead of CD Etsy

00:03:04.320 --> 00:03:10.040 align:start position:19%
and ended up in my own configuration
files, and then I'm so confused, and I'm

00:03:08.680 --> 00:03:12.600 align:start position:19%
like, "What the hell is this?" And then
I realize.

00:03:11.320 --> 00:03:16.920 align:start position:19%
So,
if you are giving AI access

00:03:15.400 --> 00:03:20.760 align:start position:19%
to do stuff for your firmware samples, I
feel like it's better to sandbox it, but

00:03:19.120 --> 00:03:25.760 align:start position:19%
uh to each their own. So, yeah, once you
launch it up with the um Docker

00:03:23.080 --> 00:03:31.720 align:start position:19%
container, then we can get to it here.
It just runs in a web browser. So, I'll

00:03:28.440 --> 00:03:31.720 align:start position:19%
launch that up as well.

00:03:32.519 --> 00:03:38.080 align:start position:19%
Yeah, that's really awesome cuz I feel
like if you've ever used Binwalk, you've

00:03:36.000 --> 00:03:41.840 align:start position:19%
always had that experience of, "Oh,
there's an error. It's because I don't

00:03:39.519 --> 00:03:46.239 align:start position:19%
have some weird obscure extractor
installed." So, it's nice that it's all

00:03:43.760 --> 00:03:51.720 align:start position:19%
just Dockerized and ready to go. Yeah,
and I will say, so like we see we've got

00:03:48.600 --> 00:03:55.360 align:start position:19%
this pop-up um here as well. We're like
um

00:03:52.440 --> 00:03:59.000 align:start position:19%
you know, it is in beta and
because of the uniqueness of like

00:03:57.280 --> 00:04:04.360 align:start position:19%
firmware samples and like all the crazy
things that companies do of like no two

00:04:02.000 --> 00:04:07.440 align:start position:19%
firmware samples are alike. There is
going to be things where like yeah, you

00:04:05.640 --> 00:04:10.040 align:start position:19%
run into issues. Uh, and that's why I
want a bunch of people to take this for

00:04:08.560 --> 00:04:14.920 align:start position:19%
a test drive and like try it out and
then please tell me about them and I

00:04:12.360 --> 00:04:17.880 align:start position:19%
will fix them. Um, and what's the best
way for people to give you that

00:04:16.040 --> 00:04:22.360 align:start position:19%
feedback? Is probably as a GitHub issue?
Yeah, so this all we can link down below

00:04:20.239 --> 00:04:26.560 align:start position:19%
to the the get repo for this. But yeah,
get get issue is the best cuz it's

00:04:25.200 --> 00:04:30.720 align:start position:19%
easier to track it, but I don't know,
you can like yell at me at LinkedIn or

00:04:28.760 --> 00:04:35.160 align:start position:19%
send me an email, whatever.
Uh, yeah, and hopefully this will become

00:04:32.120 --> 00:04:43.040 align:start position:19%
like a community project as well, like
happy to take PRs from other people. Um,

00:04:39.480 --> 00:04:47.600 align:start position:19%
I did a lot of the coding for the rework
of this with Claude. Um, because it's so

00:04:46.240 --> 00:04:52.720 align:start position:19%
good now. So I've been working on this
project for about over a year now.

00:04:50.520 --> 00:04:57.000 align:start position:19%
Um, and then I refactored it and changed
a lot of things with Claude code um,

00:04:54.919 --> 00:05:01.520 align:start position:19%
because over like the last few months I
think it's reached a point where like

00:04:58.280 --> 00:05:06.600 align:start position:19%
it's it's good enough that like I I do
um, a lot of my coding with it and

00:05:04.600 --> 00:05:09.560 align:start position:19%
mostly just review what it's doing now.
So

00:05:07.720 --> 00:05:13.320 align:start position:19%
there's a Claude MD as well included in
the get repo to make it easier for other

00:05:11.560 --> 00:05:17.960 align:start position:19%
people to work on it. And if you want to
fork it and do whatever you want with

00:05:14.960 --> 00:05:21.600 align:start position:19%
it, please. This is 100% open source.
Um, the only thing I ask and I put this

00:05:20.240 --> 00:05:27.000 align:start position:19%
here is like
just be nice to bug bounties and like CV

00:05:24.360 --> 00:05:30.640 align:start position:19%
reporting and stuff. Like no, you know,
confirm what confirm the output and

00:05:29.040 --> 00:05:34.760 align:start position:19%
don't like be you know, just
contributing to the slop that is coming

00:05:32.720 --> 00:05:37.160 align:start position:19%
into those right now cuz
I know that is an issue with firmware

00:05:37.000 --> 00:05:41.280 align:start position:19%
samples.
&gt;&gt; Yeah, with like the with curl that's

00:05:39.480 --> 00:05:46.400 align:start position:19%
recently they they got rid of their bug
bounty program cuz they're getting way

00:05:42.800 --> 00:05:51.000 align:start position:19%
too many AI slop submissions. So verify
verify outputs of tools in general is

00:05:48.920 --> 00:05:53.840 align:start position:19%
probably good Yeah. guidance, right?
&gt;&gt; And the one thing that's nice about Wair

00:05:52.520 --> 00:05:58.320 align:start position:19%
is it has some really good ways to do
that, even if you don't have the device,

00:05:55.480 --> 00:06:03.040 align:start position:19%
which is cool. So,
yeah, again, this So, this device or

00:06:00.240 --> 00:06:08.680 align:start position:19%
this tool works on the front end and
looks similar to like other

00:06:05.400 --> 00:06:12.480 align:start position:19%
firmware analysis tools that are out
there where they do like volume scanning

00:06:10.360 --> 00:06:15.400 align:start position:19%
and stuff. So, I won't name any of this
on this video, but like there's quite a

00:06:14.080 --> 00:06:18.520 align:start position:19%
few products that do this where you have
like a web UI.

00:06:16.840 --> 00:06:21.520 align:start position:19%
You upload the firmware, it does bin
walk in the back end, and then, you

00:06:20.200 --> 00:06:25.320 align:start position:19%
know, gives you some reports and stuff.
But, that's all like static analysis

00:06:24.000 --> 00:06:29.640 align:start position:19%
without AI.
At least to my knowledge, I'm not

00:06:27.240 --> 00:06:33.120 align:start position:19%
aware of any products like this, but I
mean, I'm sure people are working on it,

00:06:31.000 --> 00:06:36.520 align:start position:19%
and there's maybe people have secret
ones. Um so, yeah, when you get to Wair

00:06:35.280 --> 00:06:41.360 align:start position:19%
is you have all your projects. It's
nice. It's split up by projects, so you

00:06:38.760 --> 00:06:45.560 align:start position:19%
can create a new project. Another really
cool feature I added is you can export

00:06:43.680 --> 00:06:48.640 align:start position:19%
and import projects. So, say I want you
to like pick up where I am on this Tenda

00:06:47.480 --> 00:06:53.040 align:start position:19%
router,
you can export every single thing, all

00:06:51.000 --> 00:06:58.280 align:start position:19%
the AI scratch notes,
um emulation presets, the findings, any

00:06:56.000 --> 00:07:01.840 align:start position:19%
custom scripts, POCs, like everything.
You can just export it and pick it up as

00:06:59.919 --> 00:07:05.360 align:start position:19%
a team. So, if you're working as a team,
too, you can do that as well.

00:07:03.800 --> 00:07:08.360 align:start position:19%
Um So, yeah, let's take a look at a
project. Again, you can create a new

00:07:06.680 --> 00:07:13.160 align:start position:19%
project to upload firmware, but I've got
this Tenda router, which is one Ah, you

00:07:11.320 --> 00:07:14.760 align:start position:19%
you've told me a bit about this one. I'm
I'm looking forward to it. Looking

00:07:14.680 --> 00:07:18.640 align:start position:19%
forward
&gt;&gt; Yes. So, I've been working on this one.

00:07:16.720 --> 00:07:23.000 align:start position:19%
I I picked this router up because it was
the most popular one on Amazon,

00:07:20.840 --> 00:07:27.200 align:start position:19%
um and it was like $25, and I needed
something on streams to to hack.

00:07:25.560 --> 00:07:30.840 align:start position:19%
Um so, I started playing around with it,
and then, when I was doing most of the

00:07:28.800 --> 00:07:35.040 align:start position:19%
testing for
this software, I was using firmware that

00:07:33.080 --> 00:07:39.520 align:start position:19%
I wrote cuz I understand it very well,
and I wrote it by hand. So, I can make

00:07:37.480 --> 00:07:44.240 align:start position:19%
sense of like, is this garbage what the
AI is telling me or like, you know, cuz

00:07:41.960 --> 00:07:47.520 align:start position:19%
is it hallucinating but
Yeah, so this was though then I was

00:07:46.120 --> 00:07:50.280 align:start position:19%
like, okay, I'm I'm ready now or I need
to start putting commercial firmware

00:07:48.840 --> 00:07:53.400 align:start position:19%
through and seeing how it was. So this
was my first run through

00:07:52.040 --> 00:07:58.160 align:start position:19%
of something and I was actually really
shocked at how how well uh how well it

00:07:56.080 --> 00:08:01.560 align:start position:19%
did. So the first thing you get here is
the overview. So again, this is like

00:07:59.960 --> 00:08:04.480 align:start position:19%
your a lot of your static stuff. So you
know, you see we get like it picks out a

00:08:02.920 --> 00:08:07.560 align:start position:19%
firmware version, we get like, you know,
your SHA hash, which is important,

00:08:06.080 --> 00:08:11.680 align:start position:19%
architecture,
um some size, like all that standard

00:08:08.880 --> 00:08:16.160 align:start position:19%
stuff. Um one of the cool features I I
added is the ability to add project

00:08:14.200 --> 00:08:20.640 align:start position:19%
documents, which are like outside of the
firmware documents.

00:08:17.800 --> 00:08:25.680 align:start position:19%
And the the AI
can read and write to these. So

00:08:24.400 --> 00:08:29.720 align:start position:19%
for here, for example, we'll take a look
at these more in depth, but like

00:08:27.760 --> 00:08:34.320 align:start position:19%
the scratchpad is here for the AI to
like talk to itself for later and save

00:08:32.039 --> 00:08:38.640 align:start position:19%
sessions. And then there's also a file
here called the wares.md.

00:08:37.080 --> 00:08:43.640 align:start position:19%
This is like claw.md. So if you have
specific instructions

00:08:40.719 --> 00:08:48.240 align:start position:19%
for what you want the AI to do or like
anything you already know about the

00:08:45.520 --> 00:08:52.600 align:start position:19%
firmware or the company, this will guide
the AI the same as a claw.md does.

00:08:51.640 --> 00:08:56.440 align:start position:19%
And then
you can just

00:08:54.160 --> 00:09:01.720 align:start position:19%
add and create other documents here. So
you'll notice like I have ROCs here or

00:08:59.280 --> 00:09:07.880 align:start position:19%
POCs, sorry, of RCEs here and other
things. And these are written by the AI

00:09:05.480 --> 00:09:10.720 align:start position:19%
and they work, which is crazy. But like
it can just write them and then this is

00:09:09.280 --> 00:09:13.960 align:start position:19%
a spot for it to all be saved. And of
course this would all be like saved if

00:09:11.960 --> 00:09:18.400 align:start position:19%
you did that upload. Um so we have that
in the overview. Scroll down here, get

00:09:16.280 --> 00:09:21.839 align:start position:19%
some details about like the firmware
image structure, gives us some details

00:09:20.440 --> 00:09:24.600 align:start position:19%
about U-Boot.
Um you can see the U-Boot environment

00:09:23.560 --> 00:09:27.200 align:start position:19%
variables, which is kind of cool
sometimes to see like, you know, what

00:09:26.200 --> 00:09:30.800 align:start position:19%
the
the init launches and like baud rate and

00:09:29.520 --> 00:09:34.160 align:start position:19%
things like that.
Um

00:09:31.880 --> 00:09:39.760 align:start position:19%
and then so this is where the real power
has with this tool comes in is we've got

00:09:36.360 --> 00:09:44.880 align:start position:19%
uh an MCP server. So, I actually started
this project and we were talking about

00:09:41.000 --> 00:09:48.920 align:start position:19%
this before as like needing an API key
and working that way to where like

00:09:46.560 --> 00:09:53.920 align:start position:19%
everything then was inside the app,
which does make the UI experience a bit

00:09:51.040 --> 00:09:59.000 align:start position:19%
better, but it's so expensive. It was
like I put like $25 credit in and like

00:09:56.960 --> 00:10:02.800 align:start position:19%
with Claude Opus, I was just burning
through it. But

00:10:00.680 --> 00:10:07.480 align:start position:19%
Claude code right now is so heavily
subsidized by

00:10:05.040 --> 00:10:11.080 align:start position:19%
Anthropic that it's better to have this
be an MCP server and then connect that

00:10:09.840 --> 00:10:13.800 align:start position:19%
way and then you can just use your
Claude code plan

00:10:12.720 --> 00:10:19.680 align:start position:19%
and you know, you
&gt;&gt; Yeah, so like the $20 or the $100 plan

00:10:16.800 --> 00:10:25.640 align:start position:19%
that just gives you a huge value bang
for your buck, right? Yeah. So,

00:10:21.480 --> 00:10:28.560 align:start position:19%
personally I'm using the $100 one cuz I
Also cuz developing this was using a lot

00:10:27.800 --> 00:10:33.200 align:start position:19%
of
credits, but like yeah, if you're doing

00:10:30.160 --> 00:10:37.360 align:start position:19%
like a fully autonomous
review with this depending on the

00:10:34.560 --> 00:10:42.880 align:start position:19%
firmware, it will burn up your credits
on the the $20 plan. $100 plan, I never

00:10:40.560 --> 00:10:46.040 align:start position:19%
reach the limits doing firmware analysis
with this. So,

00:10:44.360 --> 00:10:49.960 align:start position:19%
and also like it's not limited to
Claude. It's using MCP, which is like a

00:10:48.400 --> 00:10:55.280 align:start position:19%
standard. So,
like I suggest using Claude and Opus

00:10:52.560 --> 00:11:01.560 align:start position:19%
because it's by far the best in my
opinion, but you can use code acts, you

00:10:57.480 --> 00:11:06.240 align:start position:19%
could use cursor, like any AI client
that has MCP capability, you can do

00:11:03.839 --> 00:11:09.520 align:start position:19%
that. There's a set up a llama if you
want to self-host your own model. Like

00:11:07.680 --> 00:11:13.200 align:start position:19%
you're not tied to any specific model
here. You can

00:11:11.000 --> 00:11:19.320 align:start position:19%
you can use whatever you want. But I
&gt;&gt; I I really like that because in my mind

00:11:17.000 --> 00:11:23.400 align:start position:19%
when I'm using these tools, vendor
lock-in is something I'm always worried

00:11:21.200 --> 00:11:28.600 align:start position:19%
about because I'm like, okay, it seems
like all these frontier models are

00:11:25.240 --> 00:11:32.720 align:start position:19%
subsidized by, you know, they're all
trying to get you hooked on on their

00:11:30.960 --> 00:11:36.960 align:start position:19%
drug, right? They're all trying to get
you and it's it's it's a bunch of

00:11:34.560 --> 00:11:40.600 align:start position:19%
investor money that's that's subsidizing
that low that low price, right? And so

00:11:39.320 --> 00:11:46.000 align:start position:19%
that's always in the back of my mind.
I'm like, okay, when's when's the when's

00:11:43.280 --> 00:11:50.280 align:start position:19%
the price going to go and ramp up? And
if if hardware gets better for you to be

00:11:48.280 --> 00:11:55.880 align:start position:19%
able to run it locally, it's nice to be
able to have things move on to like a

00:11:52.360 --> 00:11:59.040 align:start position:19%
local LLM implementation. Yes. And so
that's that's why I did this, too,

00:11:58.040 --> 00:12:04.760 align:start position:19%
because
um I've been doing some testing with

00:12:01.040 --> 00:12:08.280 align:start position:19%
Qwen, which is open-source model, and
it's actually pretty good at reverse

00:12:06.680 --> 00:12:12.280 align:start position:19%
engineering, too.
Um and if you use specialized models and

00:12:11.040 --> 00:12:15.680 align:start position:19%
you're a lot stricter with your
prompting, so you need to like do more

00:12:13.720 --> 00:12:20.200 align:start position:19%
work up front, um you can get some
pretty decent results with like smaller

00:12:17.760 --> 00:12:23.840 align:start position:19%
to medium-size models that like you
know, you're not going to be running on

00:12:20.920 --> 00:12:30.720 align:start position:19%
your laptop, but like I have um
an Evo X2 by GMK Tech here. It's like a

00:12:27.200 --> 00:12:35.440 align:start position:19%
mini computer, and it's got the Ryzen AI
Max chip, which has that like combined

00:12:33.800 --> 00:12:38.800 align:start position:19%
memory, where the memory can be
allocated your system memory can be

00:12:37.040 --> 00:12:44.960 align:start position:19%
allocated to the GPU.
So it can do like 128 gigs of

00:12:42.680 --> 00:12:49.480 align:start position:19%
um VRAM, which means I can run, you
know, like the 100 billion parameter

00:12:46.760 --> 00:12:52.520 align:start position:19%
models. Um and those are pretty good.
Like they're nowhere near as good as

00:12:51.600 --> 00:12:57.680 align:start position:19%
um
like top Anthropic, but sometimes that's

00:12:55.440 --> 00:13:01.800 align:start position:19%
like a sledgehammer for like, you know,
hammering in a small nail with

00:12:59.880 --> 00:13:06.040 align:start position:19%
Anthropic. So, but yeah, nice. It's not
tied to anything. Um and also like this

00:13:04.520 --> 00:13:10.000 align:start position:19%
is all open-source and free. Like I'm
not coming here as like a vendor demo or

00:13:07.960 --> 00:13:13.920 align:start position:19%
anything. Like I told people already
they want to make changes to it. I was

00:13:11.280 --> 00:13:18.800 align:start position:19%
like, fork it, put in a get like
whatever. It's this is

00:13:16.360 --> 00:13:22.880 align:start position:19%
just the tool for people to make um
embedded systems and IoT more secure.

00:13:21.200 --> 00:13:26.680 align:start position:19%
Awesome. So yeah, so you're saying this
is this is the AI piece though. This is

00:13:24.520 --> 00:13:29.000 align:start position:19%
where we get to yeah, kind of kind of
interact with the the tool that way.

00:13:28.600 --> 00:13:32.680 align:start position:19%
Nice.
&gt;&gt; Yeah. And then optionally, if you do

00:13:30.800 --> 00:13:35.480 align:start position:19%
have the device, there's a UART bridge
here that makes it really easy

00:13:34.920 --> 00:13:38.200 align:start position:19%
um
to hook your device up. And I know you

00:13:37.040 --> 00:13:40.680 align:start position:19%
were doing this with a camera, and I
thought that was really cool. But so

00:13:39.440 --> 00:13:45.680 align:start position:19%
that's where I got the idea from this
actually. This makes it really easy then

00:13:42.600 --> 00:13:48.920 align:start position:19%
to just tie um that MCP, which has the
contacts of like all the file systems,

00:13:47.440 --> 00:13:51.960 align:start position:19%
all the notes, everything, and then you
can go on the device with serial as

00:13:50.680 --> 00:13:56.200 align:start position:19%
well. So like it can actually do the
device. Um and of course, if you have it

00:13:54.120 --> 00:13:59.560 align:start position:19%
connected to the network too, like just
regular cloud code can interact with

00:13:58.120 --> 00:14:03.360 align:start position:19%
like your network stuff if you give it
permissions. So like it can

00:14:01.400 --> 00:14:07.760 align:start position:19%
you know, test the POCs, write the POCs,
you can go to serial, it can reverse

00:14:05.400 --> 00:14:11.560 align:start position:19%
engineer. Like it it is a it is a
monster at reverse engineering.

00:14:10.480 --> 00:14:14.600 align:start position:19%
It is the beast.
&gt;&gt; Oh, yeah. Uh yeah, so this is the

00:14:13.360 --> 00:14:17.840 align:start position:19%
overview. So then we got the file
explorer here. Again, this is just like

00:14:16.040 --> 00:14:20.960 align:start position:19%
your standard like here's, you know, it
uses binwalk.

00:14:19.200 --> 00:14:25.200 align:start position:19%
And uh here's the file system. So if we
look in like bin, for example, um

00:14:24.000 --> 00:14:29.080 align:start position:19%
one of the nice things I added is I
always hit symlinks. They just drive me

00:14:26.840 --> 00:14:31.760 align:start position:19%
crazy. So I added symlinks here. So you
can like see, okay, yeah, there's no

00:14:30.360 --> 00:14:35.240 align:start position:19%
cat, right? Whatever. Cuz then you don't
have to waste your time on it. Um but

00:14:34.080 --> 00:14:39.320 align:start position:19%
like obviously one of the ones you
always go for is HTTP

00:14:37.680 --> 00:14:43.120 align:start position:19%
um if it has it, cuz that's where a lot
of vulns are going to be. So when we

00:14:40.960 --> 00:14:46.680 align:start position:19%
click on this, again, like your standard
stuff, you know, it does have security

00:14:44.400 --> 00:14:50.320 align:start position:19%
protections, your static analysis.
Here's um

00:14:48.920 --> 00:14:53.640 align:start position:19%
a hex viewer, and then you also got
strings here, so you can see like the

00:14:51.560 --> 00:14:56.160 align:start position:19%
magic bytes for elf there. And like if
you scroll through here, like you know,

00:14:54.800 --> 00:14:59.839 align:start position:19%
you can start to pick out some strings
or whatever. Um but then we take a look

00:14:58.480 --> 00:15:03.880 align:start position:19%
at the functions. So list all the
functions here, the addresses. If

00:15:01.920 --> 00:15:08.760 align:start position:19%
there's imports, it lists them here,
which is kind of nice. Um so like here's

00:15:06.520 --> 00:15:12.360 align:start position:19%
one that I was specifically interested
in, the web security handler, for

00:15:10.520 --> 00:15:16.880 align:start position:19%
example. Um so if we click on that
function, we can automatically see the

00:15:14.320 --> 00:15:22.360 align:start position:19%
disassembly. So if you're into reading,
you know, MIPS assembly or ARM assembly,

00:15:20.080 --> 00:15:25.600 align:start position:19%
uh you can do that here. But again, this
is where the AI stuff comes in really

00:15:24.000 --> 00:15:29.240 align:start position:19%
handy. So, you can also decompile it.
So, it uses Ghidra in the back end. Um,

00:15:27.800 --> 00:15:34.320 align:start position:19%
so, this has been decompiled with
Ghidra, and this is like what you would

00:15:30.360 --> 00:15:37.960 align:start position:19%
see um, in Ghidra right here.
Uh, but then

00:15:36.160 --> 00:15:41.360 align:start position:19%
cuz even this to me, like this takes me
forever to read this stuff, and I used

00:15:39.440 --> 00:15:46.600 align:start position:19%
to just like I would go through and like
rename all the variables manually by

00:15:43.920 --> 00:15:50.680 align:start position:19%
hand cuz I'm like, you know, IVR7,
whatever these. So, you can ask AI to go

00:15:49.120 --> 00:15:54.880 align:start position:19%
and clean it up, too. And then it shows
up here. Um, and it gives you all these

00:15:52.600 --> 00:15:59.240 align:start position:19%
comments here about what's going on. And
then you can see here now, like we have

00:15:56.440 --> 00:16:03.280 align:start position:19%
our defines, like int, for example, we
have a check is IPv6, which this is

00:16:02.000 --> 00:16:07.320 align:start position:19%
going to come back all we'll we'll we'll
come back to this later, too. That's

00:16:05.240 --> 00:16:12.640 align:start position:19%
incredible because when you're doing
that work manually, that can like one

00:16:10.080 --> 00:16:15.640 align:start position:19%
function can take, you know, it could it
could it could it could take 30 minutes,

00:16:13.960 --> 00:16:18.840 align:start position:19%
hours, yeah, it depends on how complex
it is, right? Cuz

00:16:17.360 --> 00:16:23.320 align:start position:19%
that's that's that's amazing.
&gt;&gt; And I found that I was just like then

00:16:21.280 --> 00:16:27.640 align:start position:19%
pasting stuff. Like I was just pasting
stuff into the ChatGPT or Claude anyway.

00:16:25.960 --> 00:16:30.839 align:start position:19%
So, I was like, I might as well just,
you know, close the loop and give it

00:16:28.920 --> 00:16:33.760 align:start position:19%
away. So, this is where, you know, you
can bring in as much or as little as you

00:16:32.440 --> 00:16:37.800 align:start position:19%
want. So, you can ask it to clean up a
function for you, and it will.

00:16:35.800 --> 00:16:42.440 align:start position:19%
Um, and then like yeah, you know, it's
not crazy what it's doing, and but it's

00:16:39.720 --> 00:16:46.040 align:start position:19%
nice. Like it gives you comments about
what what everything is doing. So, we're

00:16:44.000 --> 00:16:49.160 align:start position:19%
initializing buffers
um, and here. So,

00:16:48.056 --> 00:16:52.400 align:start position:19%
&gt;&gt; [laughter]
&gt;&gt; So, what what I'll show this vuln later

00:16:51.120 --> 00:16:57.680 align:start position:19%
in the POC, but like this is one of the
fun things I found in this, and this

00:16:54.680 --> 00:17:01.560 align:start position:19%
vulnerability is just hilarious. If you
if the device uses IPv6, there's no

00:17:00.400 --> 00:17:07.959 align:start position:19%
authentication.
They They must have left it open. I

00:17:03.280 --> 00:17:07.959 align:start position:19%
haven't dug deeper into why, but um,

00:17:09.160 --> 00:17:16.640 align:start position:19%
there's one um,
uh, endpoint that they wanted reachable

00:17:14.800 --> 00:17:21.439 align:start position:19%
through IPv6, and I don't know if it's
for some sort of setup or something. So,

00:17:19.319 --> 00:17:24.680 align:start position:19%
what they did is they disabled off so
that if you change the password or

00:17:22.839 --> 00:17:29.480 align:start position:19%
whatever, it doesn't matter. If you make
a IPv6 request, um

00:17:27.240 --> 00:17:34.280 align:start position:19%
there's a check here where it checks
with like uh string string

00:17:31.960 --> 00:17:39.480 align:start position:19%
for a certain
substring and if that's in it,

00:17:36.800 --> 00:17:43.200 align:start position:19%
which matches that uh endpoint, it will
go to it. But, since it's using string

00:17:41.480 --> 00:17:45.880 align:start position:19%
string, you can just make a
uh

00:17:43.920 --> 00:17:48.960 align:start position:19%
a garbage URL param, which just gets
discarded, and put that there and then

00:17:47.560 --> 00:17:51.000 align:start position:19%
you can go to like all the admin
endpoints.

00:17:50.040 --> 00:17:54.120 align:start position:19%
Um so, this is probably the most
critical finding that I found on this

00:17:52.640 --> 00:17:57.720 align:start position:19%
device and we can look at the POC and
stuff in the finding for that a little

00:17:55.400 --> 00:18:01.040 align:start position:19%
bit more in detail, but like even when I
asked it to clean this up, it's funny

00:17:59.480 --> 00:18:04.760 align:start position:19%
cuz like it does it with like a security
context and like it added comments about

00:18:02.880 --> 00:18:07.680 align:start position:19%
like, "Yeah, this is not good. Like,
don't

00:18:05.880 --> 00:18:11.520 align:start position:19%
don't do this."
It's commenting vul- vuln here. Yeah,

00:18:10.080 --> 00:18:14.840 align:start position:19%
it's right right here on this line,
yeah. Yeah, exactly. Um

00:18:13.560 --> 00:18:18.000 align:start position:19%
so, yeah, this is cool. And then like if
you want to, you can switch back to like

00:18:16.200 --> 00:18:22.320 align:start position:19%
this is what you would see in Ghidra
um to verify. And uh we can get some

00:18:20.160 --> 00:18:25.840 align:start position:19%
more, you know, this is all the details
like your security protec- protections

00:18:24.320 --> 00:18:31.280 align:start position:19%
which like, "Yeah, okay, non-executable
stack, but like no no stack canaries, no

00:18:29.280 --> 00:18:34.840 align:start position:19%
uh position-independent executables, no
fortify." It is a little stripped, but

00:18:33.600 --> 00:18:38.760 align:start position:19%
like yeah. So, you can see all these
details here. Um But, not having uh

00:18:37.120 --> 00:18:40.480 align:start position:19%
canaries, that might help uh for one of
the other things you found. Is that what

00:18:40.080 --> 00:18:43.680 align:start position:19%
you're saying?
&gt;&gt; Yes.

00:18:41.040 --> 00:18:47.280 align:start position:19%
Uh yep, yep, I found a buffer overflow
and uh wrote a rop chain pretty easily

00:18:46.040 --> 00:18:51.040 align:start position:19%
for it. Actually, sorry, I shouldn't say
I wrote a rop chain. Wears did um with a

00:18:49.360 --> 00:18:54.760 align:start position:19%
little bit of help from me.
Um but yeah, let's let's look at the

00:18:52.480 --> 00:19:00.120 align:start position:19%
findings now. So, this is a cool
um part of it here where when the AI

00:18:58.120 --> 00:19:03.640 align:start position:19%
finds something or you want to add
something, you can.

00:19:01.600 --> 00:19:07.280 align:start position:19%
Um they all get added here as findings.
So, here's one the one we were just

00:19:05.600 --> 00:19:11.240 align:start position:19%
talking about.
IPv6

00:19:09.080 --> 00:19:16.600 align:start position:19%
authentication bypass via string string
substring match. So,

00:19:14.160 --> 00:19:22.120 align:start position:19%
all of this is written by AI. I did zero
of this. So, this is like um

00:19:19.400 --> 00:19:26.120 align:start position:19%
talks about how there's a logic flaw
where it allows completely

00:19:23.880 --> 00:19:28.760 align:start position:19%
unauthenticated attacker on the LAN. So,
this is local area network, which is why

00:19:27.600 --> 00:19:32.680 align:start position:19%
I'm okay like sharing it. Like this is
not a WAN. Yeah.

00:19:30.680 --> 00:19:38.400 align:start position:19%
&gt;&gt; one, but you go to any go form handler,
which this is like the stuff that lets

00:19:34.640 --> 00:19:42.880 align:start position:19%
you do everything on the router. So, um
including starting Telnet. So, that's

00:19:40.600 --> 00:19:46.320 align:start position:19%
what the the POC does is it just It's a
just a point-and-click.

00:19:45.040 --> 00:19:52.080 align:start position:19%
You literally just if you're on the
network, the it has a default IP, IPv4

00:19:50.320 --> 00:19:56.560 align:start position:19%
and IPv6. Yeah.
&gt;&gt; Um you can open up Telnet and the uh

00:19:55.000 --> 00:19:59.760 align:start position:19%
password is set dynamically from the MAC
address. So, it just looks in the ARP

00:19:57.800 --> 00:20:05.120 align:start position:19%
table, gets the MAC address. It's a just
the most point basic point-and-click. Um

00:20:02.840 --> 00:20:07.920 align:start position:19%
so yeah, it says here, and this is true.
I looked at the code and like it's

00:20:06.200 --> 00:20:13.880 align:start position:19%
hilarious. When a client connects from
IPv6, detected by that check is IPv6,

00:20:12.160 --> 00:20:16.800 align:start position:19%
which it just checks for greater than
two colons in the IP string. So, I

00:20:15.480 --> 00:20:21.120 align:start position:19%
actually think maybe you could might be
able to even somehow do this with IPv4

00:20:19.040 --> 00:20:27.120 align:start position:19%
potentially, but um I've played around
with this, but then security handler

00:20:23.400 --> 00:20:31.240 align:start position:19%
enters a special IPv6 code path before
any cookie session authentication

00:20:28.880 --> 00:20:35.560 align:start position:19%
checks. And it just uses string-string
to decide how to handle the requests.

00:20:33.080 --> 00:20:39.680 align:start position:19%
So, um
like yeah, because this because it

00:20:37.480 --> 00:20:44.320 align:start position:19%
matches anywhere, you can just
bypass authentication. Um and you can

00:20:42.400 --> 00:20:47.040 align:start position:19%
get unauthenticated RC on this device,
which like it's just This is what

00:20:45.760 --> 00:20:51.760 align:start position:19%
probably one of the most hilarious
faults I found. Like literally,

00:20:49.640 --> 00:20:56.200 align:start position:19%
security is an afterthought or like not
even considered. Like, oh,

00:20:53.720 --> 00:20:57.880 align:start position:19%
yeah, IPv6, no one's going to use it.
Who cares?

00:20:57.614 --> 00:21:01.480 align:start position:19%
&gt;&gt; [laughter]
&gt;&gt; Yeah. So yeah, I found a bunch of vulns

00:21:00.240 --> 00:21:05.560 align:start position:19%
here and like you can see where they
come from. And also we can add them as

00:21:03.680 --> 00:21:11.160 align:start position:19%
confirmed. So like you can either do
that yourself. Um

00:21:08.520 --> 00:21:13.880 align:start position:19%
or like you can get the AI to confirm it
as well, which we'll talk about a little

00:21:12.320 --> 00:21:18.240 align:start position:19%
bit, but um
yeah, so you see some of these are from

00:21:16.280 --> 00:21:22.360 align:start position:19%
like AI, some of them are from my own
review. Um

00:21:20.640 --> 00:21:28.520 align:start position:19%
some of them are from the S-bomb scan,
so uh here's another one, not good,

00:21:24.760 --> 00:21:31.840 align:start position:19%
hardcoded TLS private key. Um let's see
if we can There's a command injection,

00:21:30.000 --> 00:21:35.600 align:start position:19%
so I figured this one. Another
interesting command injection here where

00:21:34.080 --> 00:21:39.520 align:start position:19%
you can upload
like your config, like a lot of routers

00:21:37.480 --> 00:21:42.680 align:start position:19%
have these where it if if you need to
like factory reset, but you want to keep

00:21:41.560 --> 00:21:47.080 align:start position:19%
your
SSID and like all that stuff, you export

00:21:45.080 --> 00:21:49.960 align:start position:19%
&gt;&gt; can like export and then like import
into another device, that kind of thing

00:21:48.680 --> 00:21:53.080 align:start position:19%
or something like that. Okay.
&gt;&gt; so you can do that with this, but

00:21:51.200 --> 00:22:00.200 align:start position:19%
there's command injection cuz they set
the SSID with like WLAN

00:21:56.640 --> 00:22:06.200 align:start position:19%
or like uh WPA supplicant, whatever,
like a bash call, a shell call to bash

00:22:02.800 --> 00:22:09.640 align:start position:19%
SSID and like so if you if you um
put command injection

00:22:07.960 --> 00:22:14.240 align:start position:19%
like, you know, instead of your SSID you
put like uh you know, telnetd or like

00:22:11.920 --> 00:22:17.080 align:start position:19%
insert whatever you want. Um so yeah,
another interesting one. And like again,

00:22:16.040 --> 00:22:20.680 align:start position:19%
like I went back and looked at these
after and like I probably would have

00:22:18.080 --> 00:22:23.280 align:start position:19%
found like most of these, maybe not
Actually, I probably I would not have

00:22:21.720 --> 00:22:28.080 align:start position:19%
found the buffer overflow.
I will say that much. Um

00:22:25.920 --> 00:22:32.760 align:start position:19%
but yeah, this is found by AI and then
confirmed because we tested it, um me

00:22:31.480 --> 00:22:35.640 align:start position:19%
and AI.
So yeah, and you can see all the vulns

00:22:34.200 --> 00:22:38.840 align:start position:19%
here. So the other interesting thing
then, too, which we can get to now from

00:22:37.400 --> 00:22:42.320 align:start position:19%
the findings is
um

00:22:39.920 --> 00:22:46.720 align:start position:19%
we jump jump to the S-bomb. So there's
an S-bomb here. This is automatically

00:22:44.120 --> 00:22:52.440 align:start position:19%
done. It's just static analysis, and
this is what a lot of those other um

00:22:49.960 --> 00:22:55.520 align:start position:19%
vuln scanners for firmware are very good
at. Like they just pick it open and

00:22:54.520 --> 00:23:00.120 align:start position:19%
they're actually probably going to be
better than mine at identifying

00:22:57.520 --> 00:23:03.880 align:start position:19%
signatures and things like that, but um
it it you know, it picks up things like,

00:23:01.760 --> 00:23:06.480 align:start position:19%
you know, what Linux kernel it is, what
G lib C,

00:23:05.440 --> 00:23:10.520 align:start position:19%
um
things like that. And and it gives you a

00:23:08.160 --> 00:23:15.000 align:start position:19%
confidence as well. So, like if it can
determine it from the cell name or like

00:23:12.720 --> 00:23:19.360 align:start position:19%
things like that. Um you see this one
like low because it's just using

00:23:17.840 --> 00:23:23.120 align:start position:19%
um heuristic matching. But like there's
a bunch of ways that it does this.

00:23:21.240 --> 00:23:27.360 align:start position:19%
Um but then we can go and do a
vulnerability scan on this. And this

00:23:24.960 --> 00:23:32.280 align:start position:19%
uses the um National Vulnerability
Database. They have a open API

00:23:30.720 --> 00:23:35.400 align:start position:19%
that's free.
It is a little bit slower than like if

00:23:33.960 --> 00:23:40.800 align:start position:19%
you pay for it, but even for like this
4,001, it was like a minute of um

00:23:38.360 --> 00:23:43.280 align:start position:19%
scanning it. And then
so all the other vulnerability scanners

00:23:42.080 --> 00:23:46.520 align:start position:19%
had this, right? Like you've probably
seen this. Actually, you've seen this in

00:23:44.560 --> 00:23:51.000 align:start position:19%
like your work, too, like professional,
right? And then I used to see this, too,

00:23:48.720 --> 00:23:57.400 align:start position:19%
and I would get like you can see here
4,000 vulnerabilities, 1,000 critical.

00:23:54.960 --> 00:24:03.440 align:start position:19%
Um So many of them like the Linux kernel
version is like is old, right? Yeah, cuz

00:24:00.680 --> 00:24:08.160 align:start position:19%
this is Linux 4. something, which I
think is from like 2015.

00:24:06.080 --> 00:24:12.160 align:start position:19%
Yeah. Um That's not that's not the
oldest uh kernel version you'd you've

00:24:10.080 --> 00:24:18.000 align:start position:19%
seen on an IoT device for sure, but
yeah, it's still not fresh, yeah.

00:24:14.800 --> 00:24:20.840 align:start position:19%
&gt;&gt; but um
&gt;&gt; Yeah.

00:24:18.920 --> 00:24:24.720 align:start position:19%
Yeah, so like you're saying, like you'll
get like a bunch like, "Oh, dirty pipe,

00:24:22.680 --> 00:24:28.960 align:start position:19%
root like local privilege escalation."
Well, everything runs as root, right? Um

00:24:27.360 --> 00:24:33.760 align:start position:19%
so I always hated that when I got handed
these, and then I have to go through and

00:24:31.080 --> 00:24:38.560 align:start position:19%
look, right? So,
what one one of the MCP things I added

00:24:36.120 --> 00:24:42.920 align:start position:19%
is you can ask the AI to go in and like
look at these, kind of like you would

00:24:39.840 --> 00:24:45.600 align:start position:19%
like a a junior pen tester or something.
Um

00:24:43.920 --> 00:24:50.200 align:start position:19%
and what they'll do is they'll actually
go through uh and open it up, and

00:24:49.000 --> 00:24:54.120 align:start position:19%
they'll read through, and then since
they have access to the the all the

00:24:51.720 --> 00:24:57.640 align:start position:19%
firmware, everything,
and the context of like the device,

00:24:56.240 --> 00:25:02.080 align:start position:19%
they'll just close them. And they'll
leave a note, too, and be like, oh yeah,

00:24:59.840 --> 00:25:05.520 align:start position:19%
you know, dirty pipe uh privilege
escalation while everything runs as root

00:25:03.760 --> 00:25:08.720 align:start position:19%
like on an embedded system. Or it'll be
like, this vulnerability of Linux

00:25:07.120 --> 00:25:12.080 align:start position:19%
kernel, but only if you have like these
kernel modules running. Well, it has

00:25:10.760 --> 00:25:15.480 align:start position:19%
access to the whole file system, it'll
go and say like, you don't have kernel

00:25:13.360 --> 00:25:19.040 align:start position:19%
module this, so I'm going to close it
and it leaves like um

00:25:17.920 --> 00:25:24.040 align:start position:19%
Yeah, so like we can see like the
resolved ones, for example, here if we

00:25:20.760 --> 00:25:28.560 align:start position:19%
can Where can I find open?
Or false positive. Maybe if I can get

00:25:25.600 --> 00:25:28.560 align:start position:19%
them to load here.

00:25:28.720 --> 00:25:36.240 align:start position:19%
So yeah, we can see like these ones were
triggered as false positive here.

00:25:33.640 --> 00:25:39.560 align:start position:19%
Um and you can see like
it's been resolved and it gives you a

00:25:38.320 --> 00:25:42.760 align:start position:19%
note and like everything, which is like
super cool. So like, yeah, you don't

00:25:40.920 --> 00:25:46.080 align:start position:19%
have to like
I mean

00:25:43.760 --> 00:25:52.480 align:start position:19%
That's saving That's saving
somebody, you know, hundreds of hours of

00:25:48.760 --> 00:25:56.720 align:start position:19%
like of like very painstaking work to to
to track things through. Yeah, that's

00:25:54.640 --> 00:26:00.760 align:start position:19%
that's that that's a huge improvement,
yeah. And I mean, there's still the

00:25:58.520 --> 00:26:05.600 align:start position:19%
issue of like, yeah, can you fully trust
AI and like But in my in my opinion or

00:26:04.320 --> 00:26:09.720 align:start position:19%
like in my experience, a lot of this
just didn't get checked, right?

00:26:07.880 --> 00:26:13.920 align:start position:19%
So at least like this gives you the best
chance of like what's going to float up

00:26:12.040 --> 00:26:17.200 align:start position:19%
to the very top and at least fix those
first and then if you're like, hey, I

00:26:15.680 --> 00:26:22.320 align:start position:19%
now have more time on my hands, I can go
back and manually review the AI ones um

00:26:20.160 --> 00:26:24.600 align:start position:19%
and make sure, but like in a lot of
times just like I think it was just

00:26:23.280 --> 00:26:27.880 align:start position:19%
getting put in the backlog anyway,
right? Of like, hey, well, we'll we'll

00:26:25.920 --> 00:26:31.640 align:start position:19%
we'll review this vuln scan that we got
later, but like there's 4,000 things and

00:26:29.800 --> 00:26:34.400 align:start position:19%
I don't know where to start. And like if
you try and start with the most critical

00:26:33.240 --> 00:26:39.280 align:start position:19%
ones,
it's not actually a lot of times what is

00:26:36.640 --> 00:26:43.600 align:start position:19%
the most important things to fix.
That's true, yeah. Yeah, and and that's

00:26:41.400 --> 00:26:47.120 align:start position:19%
and and especially
uh I feel like the CV

00:26:45.680 --> 00:26:51.360 align:start position:19%
You know, like in the national in the
CVE system, the national vulnerability

00:26:49.080 --> 00:26:55.440 align:start position:19%
database, you know,
uh those CVSS scores, you know,

00:26:53.520 --> 00:26:59.960 align:start position:19%
sometimes you're like, "Really? Is this
really a 9.8?" Or you know, something

00:26:58.680 --> 00:27:02.760 align:start position:19%
like that, right?
&gt;&gt; Actually, I'm so glad you brought that

00:27:01.000 --> 00:27:08.720 align:start position:19%
up. Let's see if we can find one here.
If I go back to the open ones,

00:27:05.040 --> 00:27:12.000 align:start position:19%
um and see if I can find any that So,
what the AI can also do here, and I'm

00:27:10.720 --> 00:27:18.680 align:start position:19%
just going to see if I can find here.
So, you see these ones right here. So,

00:27:15.280 --> 00:27:23.600 align:start position:19%
uh the AI re- like has the ability to
re-score them based on its opinion of

00:27:20.840 --> 00:27:28.800 align:start position:19%
how it impacts like
the CVSS is not wrong, but it it changes

00:27:26.400 --> 00:27:31.680 align:start position:19%
in the context of the device and how
things are set up. And it's like, "Well,

00:27:30.040 --> 00:27:35.240 align:start position:19%
if you have these controls in place,
then like it really minimizes um the

00:27:33.880 --> 00:27:38.760 align:start position:19%
impact of that, right?" And that's like
what an analyst or like a

00:27:37.280 --> 00:27:41.440 align:start position:19%
uh pen tester or whatever would do,
right? Like they would go through and be

00:27:39.760 --> 00:27:44.000 align:start position:19%
like, "Yeah, okay, it's critical, but
like, you know, we have a firewall that

00:27:42.760 --> 00:27:47.720 align:start position:19%
will block this. So, like the risk is
much lower." So, um the AI does that as

00:27:46.120 --> 00:27:51.680 align:start position:19%
well, and it gives you a reason here.
So, it says like, "It's a privilege

00:27:49.160 --> 00:27:54.400 align:start position:19%
escalation, but um they're reduced
because everything runs as root, right?"

00:27:53.400 --> 00:27:56.600 align:start position:19%
So, it's like, "Yeah, okay, it's there,
but

00:27:55.240 --> 00:28:00.200 align:start position:19%
um So, yeah, I thought that was
interesting, too, of like it it if it's

00:27:58.360 --> 00:28:03.240 align:start position:19%
like I kind of agree with this, it can
leave it open, but it can also change

00:28:01.920 --> 00:28:07.120 align:start position:19%
these. So, like some of them it'll put
it down to like low, or some of them it

00:28:04.720 --> 00:28:10.320 align:start position:19%
will close completely. Um and in my
opinion,

00:28:08.400 --> 00:28:16.120 align:start position:19%
so far of like my reviewing of this is
the AI is very good at it. It's there's

00:28:12.280 --> 00:28:19.960 align:start position:19%
a lot of like um past this has been done
so many times that the AI is good enough

00:28:18.400 --> 00:28:23.920 align:start position:19%
to know like, "Yeah, okay, I know what I
know what I should check."

00:28:21.440 --> 00:28:28.600 align:start position:19%
Um So, yeah, that's the S-bomb again for
like

00:28:24.880 --> 00:28:32.040 align:start position:19%
your pure vuln researchers and like um
people that just want to find like CVEs,

00:28:30.640 --> 00:28:36.120 align:start position:19%
this isn't going to be as interesting,
but I think for like people in the

00:28:33.000 --> 00:28:41.480 align:start position:19%
industry, they'll find this very useful.
Cuz this is kind of more like what the

00:28:37.880 --> 00:28:46.000 align:start position:19%
day-to-day is of like at least I
Was that your experience? Oh, yeah. No,

00:28:43.960 --> 00:28:49.760 align:start position:19%
no. Like like definitely like in the
kind of corporate, you know, security

00:28:47.360 --> 00:28:53.080 align:start position:19%
and compliance world, uh
software bill of materials is a big

00:28:51.800 --> 00:28:58.400 align:start position:19%
thing.
Um and there are some, you know, kind of

00:28:55.080 --> 00:29:02.360 align:start position:19%
regulations kind of coming like top-down
from certain compliance standards that

00:29:00.360 --> 00:29:06.120 align:start position:19%
are requiring this for embedded devices.
It's very big a very big in the

00:29:03.720 --> 00:29:11.960 align:start position:19%
government space is is is what I'm
familiar with. Um Yeah. But yeah. So, I

00:29:09.280 --> 00:29:17.480 align:start position:19%
see the next item there on your on your
list on the sidebar, the emulation. I

00:29:14.200 --> 00:29:22.080 align:start position:19%
have had so many people ask me about
like how how do you emulate stuff? And

00:29:19.440 --> 00:29:25.880 align:start position:19%
honestly, I got to say personally, I I
don't do it that much because it's such

00:29:23.720 --> 00:29:30.440 align:start position:19%
a pain. It's such a pain to set up. So,
I'm really curious what your tool can

00:29:28.240 --> 00:29:36.520 align:start position:19%
can do in that realm.
&gt;&gt; Me too. I agree. It's a pain

00:29:33.560 --> 00:29:38.960 align:start position:19%
to get it all working and there's so
much stuff you have to fix, right?

00:29:38.200 --> 00:29:43.360 align:start position:19%
That's the thing.
&gt;&gt; Yeah. Um so yeah, I wanted a way for

00:29:41.840 --> 00:29:49.200 align:start position:19%
this tool to have emulation because then
the AI can potentially like validate

00:29:45.920 --> 00:29:55.440 align:start position:19%
things itself really easily and it has
like GDB hooks in as well. So, like it

00:29:52.440 --> 00:29:59.680 align:start position:19%
can that's how it was able to um find
the buffer overflow,

00:29:57.240 --> 00:30:03.520 align:start position:19%
like triage the crash, trigger it,
investigate the GDB logs, and generate a

00:30:01.760 --> 00:30:06.560 align:start position:19%
rob chain is because it has access to
all of this.

00:30:04.680 --> 00:30:10.520 align:start position:19%
Um so yeah, we've got two types of
emulation. So, these are the two

00:30:08.560 --> 00:30:14.720 align:start position:19%
standard types. You have user mode,
which this just lets you run a single

00:30:12.200 --> 00:30:21.560 align:start position:19%
binary. Um so this can be useful and I
used it in this one because there's a

00:30:17.040 --> 00:30:26.520 align:start position:19%
binary called CN SRL safe, which is what
creates the shell and dynamically

00:30:23.560 --> 00:30:31.240 align:start position:19%
generates the root password. Mhm.
Running that in user mode, it made it a

00:30:28.960 --> 00:30:35.000 align:start position:19%
lot easier to figure out that algorithm
of how

00:30:32.520 --> 00:30:38.320 align:start position:19%
um the root password is generated. So,
it can be useful for that stuff, but

00:30:36.640 --> 00:30:40.920 align:start position:19%
it's not as useful cuz you can't do like
networking and things like that, right?

00:30:40.000 --> 00:30:45.440 align:start position:19%
In
user mode, you need to run full system

00:30:43.680 --> 00:30:49.080 align:start position:19%
mode emulation, which is the hard one to
get running because

00:30:47.480 --> 00:30:53.120 align:start position:19%
um the embedded devices of course rely
on a lot of hardware that's not going to

00:30:50.280 --> 00:30:57.880 align:start position:19%
be there. So, you can just So, we've got
system mode here. So, I'll navigate over

00:30:55.080 --> 00:31:01.280 align:start position:19%
to system mode. Um and then you need a
kernel. So,

00:30:59.400 --> 00:31:05.360 align:start position:19%
you can try and use the kernel that gets
extracted from binwalk, but a lot of

00:31:02.720 --> 00:31:09.200 align:start position:19%
times it won't work with QEMU. So, um by
default it comes with a few kernels

00:31:07.640 --> 00:31:13.200 align:start position:19%
loaded in. One for MIPS little endian
that I found works. Well, so that's MIPS

00:31:10.960 --> 00:31:16.720 align:start position:19%
little endian for your viewers. Um and
then another arm one.

00:31:15.080 --> 00:31:20.360 align:start position:19%
But, you can bring your own kernel as
well. So, you can upload a kernel as

00:31:18.520 --> 00:31:23.146 align:start position:19%
well. So, you can go download whatever,
bring your own BYOK, bring your own

00:31:22.600 --> 00:31:24.280 align:start position:19%
kernel.
&gt;&gt; [laughter]

00:31:23.800 --> 00:31:28.000 align:start position:19%
&gt;&gt; Um
&gt;&gt; it. I like it.

00:31:25.920 --> 00:31:31.320 align:start position:19%
But, that won't get you very far with
many devices. You're going to need a

00:31:29.800 --> 00:31:33.880 align:start position:19%
bunch of other things. So, the other
things you're going to need is you're

00:31:32.280 --> 00:31:37.440 align:start position:19%
going to need stub libraries. So, these
are things that mock out like your

00:31:35.560 --> 00:31:42.160 align:start position:19%
hardware. So, for example, I have a
generic one that's built here, which is

00:31:39.440 --> 00:31:46.840 align:start position:19%
for trying to help with MTD um and
wireless stubs. And then I have

00:31:44.560 --> 00:31:52.640 align:start position:19%
right now in the current beta iteration
one for Tenda cuz I worked on this. Um

00:31:49.680 --> 00:31:57.680 align:start position:19%
and my my goal is to start doing more
devices and getting these profiles like

00:31:54.640 --> 00:31:59.680 align:start position:19%
in. So, when you pull or clone from uh
GitHub,

00:31:58.840 --> 00:32:02.920 align:start position:19%
it
ideally it will have like something that

00:32:01.560 --> 00:32:06.720 align:start position:19%
works for your device. So, like I'm
working on a TP-Link one right now cuz a

00:32:04.760 --> 00:32:10.520 align:start position:19%
lot of them if you get like a generic
Tenda or TP-Link they use the same kind

00:32:08.840 --> 00:32:14.440 align:start position:19%
of stuff. So, Oh, yeah. it can work
well. Um so, yeah. So, I have right now

00:32:13.080 --> 00:32:18.960 align:start position:19%
a preset here though. This is saved to
the project. So, if I click here on this

00:32:16.240 --> 00:32:22.800 align:start position:19%
preset um and load it, then it's going
to pick in all the stuff. So, we we've

00:32:21.280 --> 00:32:26.240 align:start position:19%
also got a pre-init script here. So,
this is always really important when

00:32:24.320 --> 00:32:30.480 align:start position:19%
you're running QEMU to like
you know, change your your um interface

00:32:28.720 --> 00:32:34.200 align:start position:19%
addresses. And like there's things you
just need to do uh

00:32:32.760 --> 00:32:36.360 align:start position:19%
create this startup script. Like there's
all these things you just you got to do

00:32:35.760 --> 00:32:40.360 align:start position:19%
them to
&gt;&gt; Yep. So, you you've been here, right?

00:32:38.760 --> 00:32:43.760 align:start position:19%
Oh, yeah. Yeah. Yeah. Yeah.
&gt;&gt; Yeah. Okay, so we can start this now.

00:32:42.120 --> 00:32:48.120 align:start position:19%
So, we can start up an emulation then.
So, I got this Tenda preset. So, we can

00:32:46.160 --> 00:32:51.280 align:start position:19%
start an emulation
and it'll start booting here. Oh, and we

00:32:49.760 --> 00:32:55.200 align:start position:19%
have port forwarding too here. So, like
we can get to the um like the

00:32:53.880 --> 00:32:58.840 align:start position:19%
networking, right? So, it's it's going
to boot and we'll get a shell and you

00:32:57.680 --> 00:33:02.360 align:start position:19%
can see like sometimes it's like
complaining, "Oh, these but like then

00:33:00.760 --> 00:33:06.840 align:start position:19%
the stub will kick in for like these
flash values. So, like so now it just

00:33:05.000 --> 00:33:09.560 align:start position:19%
launched to the the web browser for
example.

00:33:08.120 --> 00:33:15.280 align:start position:19%
Um and like yeah, if we get here like
you know, we can now we can run PS and

00:33:11.800 --> 00:33:18.520 align:start position:19%
like see So, we get a shell in here. Oh,
that's so cool that that's built right

00:33:17.320 --> 00:33:23.400 align:start position:19%
into the web interface.
&gt;&gt; in and then the AI has access to this as

00:33:21.160 --> 00:33:28.160 align:start position:19%
well, right? So, and it it can you don't
even have to start it. It can start it,

00:33:25.480 --> 00:33:31.800 align:start position:19%
stop it. It can and
but then I was like, I don't want to

00:33:29.880 --> 00:33:37.920 align:start position:19%
ever have to do this stuff again cuz
it's annoying. So, I gave

00:33:34.840 --> 00:33:43.360 align:start position:19%
the AI all the tools to write the stub
libraries, set up the pre-init scripts,

00:33:40.680 --> 00:33:47.400 align:start position:19%
troubleshoot. So, if you bring your own
device and it doesn't work, you can go

00:33:45.680 --> 00:33:51.720 align:start position:19%
into the MCP server and be like, "I want
to get emulation working

00:33:49.240 --> 00:33:56.440 align:start position:19%
but it's not." And
the AI gets access to the QEMU boot

00:33:53.680 --> 00:34:00.160 align:start position:19%
logs, to the shell. It can write all
these and save them. It can write these

00:33:58.200 --> 00:34:06.720 align:start position:19%
stubs. It can compile. Like it has
access to do all that stuff. So,

00:34:03.600 --> 00:34:11.159 align:start position:19%
this Tenda one I got it to reset it up
and like the AI did it. Like it figured

00:34:08.440 --> 00:34:14.720 align:start position:19%
all this out. It takes a while. Like
this is one of those ones where you

00:34:12.200 --> 00:34:17.679 align:start position:19%
maybe going to going to let it sit.
Yeah.

00:34:16.000 --> 00:34:20.639 align:start position:19%
But yeah, and so if you if you also like
you'll if um

00:34:19.679 --> 00:34:24.919 align:start position:19%
you'll get disconnected from the
terminal if you don't use it. But yeah,

00:34:22.840 --> 00:34:27.040 align:start position:19%
this is this is a really cool feature in
my opinion.

00:34:26.080 --> 00:34:30.960 align:start position:19%
Um and then so yeah, this is
experimental because yeah, it's not

00:34:29.159 --> 00:34:34.879 align:start position:19%
going to work for all devices. There's
some devices you just you'll never be

00:34:32.520 --> 00:34:38.120 align:start position:19%
able to get emulating or at least like I
would never be able to by hand cuz they

00:34:36.720 --> 00:34:42.159 align:start position:19%
have too much
interdependency between like hardware

00:34:40.360 --> 00:34:45.720 align:start position:19%
features on the sock that are like
you'll just

00:34:43.800 --> 00:34:51.240 align:start position:19%
like it's not possible for like the
normal human to like do that. Um unless

00:34:49.399 --> 00:34:53.800 align:start position:19%
you have like yeah, some really complex
emulator.

00:34:52.399 --> 00:34:57.440 align:start position:19%
Um so that's why I have an experimental
cuz yeah, this one still work in

00:34:55.560 --> 00:35:01.880 align:start position:19%
progress, but it does work. It's pretty
cool. Um especially with the AI working

00:35:00.040 --> 00:35:06.240 align:start position:19%
with it. And then
we also have fuzzing campaigns. So if

00:35:04.600 --> 00:35:11.440 align:start position:19%
you're going to do emulation, one of the
reasons you want to do that is so you

00:35:07.680 --> 00:35:15.480 align:start position:19%
can fuzz. Um so this has AFL++ built in
here and

00:35:13.520 --> 00:35:19.240 align:start position:19%
you can kick off campaigns. So you
choose your binary, what you want to run

00:35:16.960 --> 00:35:23.640 align:start position:19%
it against.
What your seeds are going to be.

00:35:21.520 --> 00:35:27.560 align:start position:19%
And you can run those yourself from here
or the AI can do it. So if you tell the

00:35:25.920 --> 00:35:32.360 align:start position:19%
AI to like run a full security
assessment and a fuzzing campaign and

00:35:29.760 --> 00:35:37.520 align:start position:19%
everything, it'll go
kick off the emulation

00:35:34.160 --> 00:35:40.120 align:start position:19%
um and do this for you. So
like it's pretty cool. Yeah, all this

00:35:39.640 --> 00:35:44.880 align:start position:19%
and then
&gt;&gt; is awesome. That is so cool. Cuz yeah,

00:35:42.160 --> 00:35:49.080 align:start position:19%
cuz cuz again, like with the emulation
and then with fuzzing, there's there's

00:35:46.760 --> 00:35:54.080 align:start position:19%
usually tons of like like setup work
that is that is very painstaking, right?

00:35:52.160 --> 00:35:57.640 align:start position:19%
Uh and then like once and then like kind
of kind of like once it works, it works,

00:35:55.880 --> 00:36:01.400 align:start position:19%
but yeah, there's there's there's all
that work up front that this is going to

00:35:59.280 --> 00:36:05.800 align:start position:19%
be a big help with automating that, I
bet. Yes. Yeah, and it is I will say

00:36:03.880 --> 00:36:09.600 align:start position:19%
like this is the most experimental. Like
the rest of it I would say is in beta.

00:36:07.400 --> 00:36:13.560 align:start position:19%
This is like alpha. Like there's a good
chance it's not going to work for your

00:36:10.880 --> 00:36:17.320 align:start position:19%
device unless you spend time
um like your own time. But then yeah,

00:36:15.640 --> 00:36:23.800 align:start position:19%
once you get it working though, then the
AI can take over too and like do

00:36:20.480 --> 00:36:28.800 align:start position:19%
the like review it and like if um if you
have like if you if you trigger a crash

00:36:26.200 --> 00:36:34.960 align:start position:19%
in AFL, right? That's like only like
the very start of your journey of that.

00:36:31.680 --> 00:36:40.160 align:start position:19%
So then um AI can pick up from there and
read those the crash report um and go in

00:36:37.720 --> 00:36:44.560 align:start position:19%
with GDB and triage, which is like
really cool to see it do that. Like when

00:36:41.920 --> 00:36:48.480 align:start position:19%
I was watching um for the first time it
find the one buffer overflow in here. I

00:36:47.080 --> 00:36:51.480 align:start position:19%
was just like amazed at seeing the tool
calls and it being like, "Okay, I I I'm

00:36:50.160 --> 00:36:55.560 align:start position:19%
looking at this function like I can see
there's this copy that takes place. Um

00:36:54.120 --> 00:36:59.560 align:start position:19%
I'm going to start emulation and verify
that. Okay, I pass this in. Okay, yeah,

00:36:57.240 --> 00:37:04.000 align:start position:19%
I can see um the crash report like
there's A's here cuz it's using its

00:37:01.360 --> 00:37:06.760 align:start position:19%
classic uh you know, all A's.
Um

00:37:05.040 --> 00:37:10.080 align:start position:19%
Now I'm going to hook in GDB and like,
you know, it's interesting to like cuz

00:37:08.880 --> 00:37:13.280 align:start position:19%
it um
Claude at least kind of outputs its

00:37:11.920 --> 00:37:18.320 align:start position:19%
stream of thoughts, right? To like
pre-prompt itself.

00:37:15.560 --> 00:37:23.120 align:start position:19%
Yes. Yeah, no, and that's how it like it
keeps like that information fresh in its

00:37:21.000 --> 00:37:27.640 align:start position:19%
mind, right? Like top of the context
window, yeah. Yeah. Yeah, absolutely. So

00:37:25.400 --> 00:37:30.520 align:start position:19%
if we look at um there's one other thing
I want to show here, too, which is

00:37:28.920 --> 00:37:34.920 align:start position:19%
something that I always wanted is this
component map. So this helps a lot with

00:37:33.360 --> 00:37:38.320 align:start position:19%
taint analysis, right? Cuz one of the
things is like say you find something

00:37:36.360 --> 00:37:42.360 align:start position:19%
vulnerable, but like is there any path
from like user input to

00:37:40.920 --> 00:37:47.280 align:start position:19%
to it and like what there's so many
components. So like this this then lets

00:37:45.120 --> 00:37:52.320 align:start position:19%
you see like exactly how and if you
hover over these as well um if I zoom

00:37:49.960 --> 00:37:55.520 align:start position:19%
in, you can like see the relations as
well

00:37:53.240 --> 00:37:58.960 align:start position:19%
between the two. So and then if you
click on it, it will just go like right

00:37:57.160 --> 00:38:02.701 align:start position:19%
there in the file explorer. Which I
always thought was cool. So like kind of

00:38:00.520 --> 00:38:04.320 align:start position:19%
like Ghidra. Um
&gt;&gt; [clears throat]

00:38:02.720 --> 00:38:07.640 align:start position:19%
&gt;&gt; So yeah, we got this component map and
you can filter too if you're like, "Oh,

00:38:05.600 --> 00:38:11.160 align:start position:19%
I just only want like binaries or
libraries or I don't want kernel

00:38:09.520 --> 00:38:15.080 align:start position:19%
modules, for example." You can filter
those out. Um So yeah, just cool little

00:38:13.360 --> 00:38:18.920 align:start position:19%
graph feature here.
Um so yeah, that's the front end. And

00:38:17.440 --> 00:38:22.680 align:start position:19%
like we'd looked at some of the stuff in
the front end here that is done by AI,

00:38:20.960 --> 00:38:26.960 align:start position:19%
but I should probably also show like how
you actually, you know, interact with

00:38:24.640 --> 00:38:32.040 align:start position:19%
this with AI then cuz yeah, it's not
built into the front end here. So,

00:38:29.440 --> 00:38:35.200 align:start position:19%
let me launch up on my terminal again
here. Yeah, so we'll open up a new tab.

00:38:33.800 --> 00:38:39.440 align:start position:19%
So, you got the docker logs running
here. Just nice to see them sometimes,

00:38:37.360 --> 00:38:45.880 align:start position:19%
but um
new shell and uh

00:38:43.360 --> 00:38:48.960 align:start position:19%
let's clear this out. So, yeah, you just
run this with Claude. So, the first

00:38:48.080 --> 00:38:52.520 align:start position:19%
thing you'll actually need to do
actually, I'll just quickly show Yeah,

00:38:50.120 --> 00:38:58.600 align:start position:19%
we showed this before, but um if you go
into like the the main project overview,

00:38:56.280 --> 00:39:02.360 align:start position:19%
it gives you um this. This is how you
add MCPs with Claude. And again, it's

00:39:00.920 --> 00:39:05.080 align:start position:19%
going to be different depending on, you
know, if you bring a different like

00:39:03.720 --> 00:39:08.400 align:start position:19%
codex or whatever. They all have their
own function. Um but yeah, this is just

00:39:07.120 --> 00:39:12.640 align:start position:19%
telling Claude. So, I've already done
this. Um so, it's as easy as, you know,

00:39:10.840 --> 00:39:16.560 align:start position:19%
you copy this, paste it into your
terminal. You only need to do that once.

00:39:14.560 --> 00:39:19.600 align:start position:19%
Then that adds the MCP.
Um

00:39:17.240 --> 00:39:23.320 align:start position:19%
so, then you'll come in here and uh you
then you can just run Claude. So, um I

00:39:21.600 --> 00:39:26.560 align:start position:19%
always run it with this dangerously skin
permissions cuz I like to live

00:39:26.000 --> 00:39:29.400 align:start position:19%
life.
&gt;&gt; I I do too. I do too. Yep.

00:39:29.162 --> 00:39:33.840 align:start position:19%
&gt;&gt; [laughter]
&gt;&gt; So, then we can tell it like well,

00:39:31.840 --> 00:39:37.200 align:start position:19%
whatever. You know, this is just Claude.
I'm going to say hi cuz like why not?

00:39:36.367 --> 00:39:41.880 align:start position:19%
[laughter]
Um

00:39:38.600 --> 00:39:45.640 align:start position:19%
and then if you go uh {slash} MCP here,
so we'll go {slash} MCP. You can just

00:39:43.440 --> 00:39:51.240 align:start position:19%
check and make sure it's loaded. Um so,
you can see we've got the wares NPC MCP

00:39:48.360 --> 00:39:55.000 align:start position:19%
server loaded here. And then now like
the context. So, if we want to we can

00:39:52.600 --> 00:39:58.840 align:start position:19%
view the tools for example as well.
Um so, you can see all the tools. So, it

00:39:56.360 --> 00:40:02.840 align:start position:19%
can like everything that you can do um
it can do, right? So, we can

00:40:00.640 --> 00:40:06.800 align:start position:19%
find files, get component map, get
firmware map, like

00:40:04.760 --> 00:40:09.680 align:start position:19%
everything. Extra even like extract
bootloader environment strings, search

00:40:08.480 --> 00:40:15.280 align:start position:19%
strings.
There's over 60 plus tools right now.

00:40:12.360 --> 00:40:19.720 align:start position:19%
Um so, like for example, find hardcoded
credentials, all this stuff. Like it can

00:40:17.480 --> 00:40:23.440 align:start position:19%
just call these tools.
Um and it's not only just the tools as

00:40:21.480 --> 00:40:28.320 align:start position:19%
well, right? Because with MCP, it's also
the prompt that it tells. So, like all

00:40:26.080 --> 00:40:31.840 align:start position:19%
that knowledge and like what I've
learned about IoT hacking, I've like

00:40:30.160 --> 00:40:34.800 align:start position:19%
tried to ingrain into this to tell
Claude like, "Hey, you have this like,

00:40:33.880 --> 00:40:37.640 align:start position:19%
you know,
find hardcoded credentials tool, but

00:40:36.360 --> 00:40:41.840 align:start position:19%
like here's what you should do with it
also." Like not just like here's the

00:40:39.320 --> 00:40:44.880 align:start position:19%
here's, you know, whatever like um
a search or whatever. So,

00:40:44.000 --> 00:40:48.600 align:start position:19%
So, yeah, you have access to all these
tools, but you don't even need to

00:40:46.360 --> 00:40:51.680 align:start position:19%
necessarily like know these tools or
like

00:40:49.960 --> 00:40:56.960 align:start position:19%
you don't have to tell Claude to to do
it because that's the beauty of MCP is

00:40:53.560 --> 00:41:00.440 align:start position:19%
like the AI can decide what it wants to
do, right? Um so, if we get out here,

00:40:59.040 --> 00:41:03.520 align:start position:19%
like for example, you could just like be
like um you know, you could tell it to

00:41:01.880 --> 00:41:05.680 align:start position:19%
like do a thorough security review. So,
if you say like something like this, I'm

00:41:04.560 --> 00:41:10.160 align:start position:19%
not going to do this right now cuz it'll
take a while, but you could just say

00:41:06.640 --> 00:41:15.120 align:start position:19%
like do a thorough security review here
and it will decide what the best um

00:41:13.480 --> 00:41:19.000 align:start position:19%
strategy is to do. And this is what I
did and it found

00:41:17.160 --> 00:41:22.800 align:start position:19%
um the command injection and buffer
overflow. It did not find the off bypass

00:41:20.920 --> 00:41:25.880 align:start position:19%
actually at first until I started like
poking around more

00:41:24.240 --> 00:41:29.760 align:start position:19%
um and asking it to, but like it found a
bunch of stuff. So, you can do that or

00:41:27.720 --> 00:41:36.760 align:start position:19%
like you can ask it like very um
specific things like um

00:41:34.280 --> 00:41:42.880 align:start position:19%
can you tell me
how the init

00:41:39.640 --> 00:41:46.720 align:start position:19%
script works in this
device.

00:41:44.800 --> 00:41:50.320 align:start position:19%
Um and then it will just start going.
Like you don't even need to tell it

00:41:47.880 --> 00:41:52.280 align:start position:19%
like, "Hey, I'm in the wares."
Uh

00:41:50.880 --> 00:41:57.280 align:start position:19%
I'm in the wares thing. So, you can see
it starts using tools. Like what project

00:41:53.920 --> 00:42:01.600 align:start position:19%
am I in? I'm analyzing the scripts.
Let me dig deeper into the the file

00:41:59.560 --> 00:42:05.840 align:start position:19%
system, right? So, like
it'll just start calling the tools and

00:42:03.200 --> 00:42:09.920 align:start position:19%
running in the backgrounds and um
yeah, you can see like now it's in Etsy.

00:42:07.960 --> 00:42:13.720 align:start position:19%
It's found init.d, right? Cuz like it's
like, "Yeah, I know." Like and there's

00:42:11.240 --> 00:42:16.280 align:start position:19%
instructions of like telling it this as
well. Yeah.

00:42:15.320 --> 00:42:20.480 align:start position:19%
So,
this is where you can bring in or as

00:42:18.520 --> 00:42:23.520 align:start position:19%
much or as little AI as you want, right?
So, like if you want to do it all

00:42:21.600 --> 00:42:27.080 align:start position:19%
manually, Yeah.
which is a fine approach and like some

00:42:25.400 --> 00:42:32.400 align:start position:19%
things you're not sure about or you want
to confirm,

00:42:28.360 --> 00:42:36.360 align:start position:19%
um you can ask it to do that as well or
you can tell it to do everything for you

00:42:34.200 --> 00:42:38.760 align:start position:19%
and to be honest, it does a pretty good
job. Like, I found um

00:42:37.800 --> 00:42:43.120 align:start position:19%
&gt;&gt; Yeah.
Yeah, three critical CVEs that I just

00:42:40.720 --> 00:42:47.480 align:start position:19%
reported um
yesterday. So, and yeah, so here we can

00:42:45.680 --> 00:42:51.080 align:start position:19%
see like it gives and like I haven't
asked it to do this, but like yet, so I

00:42:49.520 --> 00:42:53.920 align:start position:19%
don't know, but like it's like here's
the boot flow.

00:42:52.440 --> 00:42:59.800 align:start position:19%
Tells us that, you know, this is the
sock, minimal embedded Linux boot

00:42:56.640 --> 00:43:05.120 align:start position:19%
process, init is a symlink to this, it
reads at C init tab, sysinit spawns the

00:43:03.120 --> 00:43:11.560 align:start position:19%
RCS script, the entire boot system,
mount file systems, um overload and read

00:43:08.600 --> 00:43:14.320 align:start position:19%
the config, product initialization,
all this stuff. And I mean, I just

00:43:13.120 --> 00:43:16.400 align:start position:19%
picked this cuz I was like randomly
like, what's something that I look at

00:43:15.560 --> 00:43:21.320 align:start position:19%
first? Well, I look at the
&gt;&gt; That's so that's so helpful, right? Cuz

00:43:18.720 --> 00:43:25.440 align:start position:19%
there's been so many times where I'm in
the situation and I want to do a

00:43:22.640 --> 00:43:31.280 align:start position:19%
firmware mod to get a root shell. Yes.
And I'm and I'm like going in like

00:43:28.080 --> 00:43:36.000 align:start position:19%
painstakingly like reversing the boot
flow, right? To be like, okay, what what

00:43:34.120 --> 00:43:40.200 align:start position:19%
what init script? Where should I put my
modification in, right? Like like you

00:43:37.920 --> 00:43:43.960 align:start position:19%
could you could you could ask it this
question and then give it like the

00:43:41.760 --> 00:43:48.440 align:start position:19%
secondary like context of like, I want
to know where like I should like, you

00:43:45.960 --> 00:43:52.880 align:start position:19%
know, I should put my thing to like give
me like drop me a shell or set the root

00:43:50.880 --> 00:43:56.800 align:start position:19%
password to something I know or like
something like that, right? Yes,

00:43:54.680 --> 00:44:01.120 align:start position:19%
exactly. Yep. So, like yeah, well, so we
could ask it for example, be like, um I

00:43:59.720 --> 00:44:08.800 align:start position:19%
want
to get a root shell, but

00:44:05.280 --> 00:44:13.400 align:start position:19%
there is a password.
Are there s

00:44:11.400 --> 00:44:17.320 align:start position:19%
U-Boot
envs

00:44:15.040 --> 00:44:20.360 align:start position:19%
I could
set.

00:44:18.920 --> 00:44:23.360 align:start position:19%
So, we can just like ask it that, right,
too? Cuz like sometimes that's a way in

00:44:22.280 --> 00:44:28.320 align:start position:19%
as well. You don't even need to a
firmware mod if they have poor

00:44:26.120 --> 00:44:32.000 align:start position:19%
um boot security, right?
&gt;&gt; No, cuz yeah, and and and I'm just

00:44:30.200 --> 00:44:36.000 align:start position:19%
thinking like like you said, like you
can you can take the fully automated

00:44:33.800 --> 00:44:40.400 align:start position:19%
approach or you can kind of take that
manual approach where you're where this

00:44:38.160 --> 00:44:45.200 align:start position:19%
is like like you said, like this is
you're like a team of junior analysts

00:44:43.080 --> 00:44:49.400 align:start position:19%
that you can like you can send off to be
like, "Okay, you you go figure out how

00:44:48.080 --> 00:44:53.440 align:start position:19%
we're going to get a root shell on this.
You go start reversing the firmware. You

00:44:51.560 --> 00:44:57.880 align:start position:19%
go you know." And and but you're like
the orchestrator of uh the pen test and

00:44:56.640 --> 00:45:00.800 align:start position:19%
you just got your you just have like an
army, right? It's like yeah, that's uh

00:45:00.400 --> 00:45:04.000 align:start position:19%
that's cool.
&gt;&gt; Yeah, exactly. So, like now it's

00:45:02.160 --> 00:45:07.801 align:start position:19%
working. Oh, I also like it's using
hashcat right now to see if it can crack

00:45:06.240 --> 00:45:10.080 align:start position:19%
the password as well.
&gt;&gt; [laughter]

00:45:08.120 --> 00:45:13.041 align:start position:19%
&gt;&gt; Which is like, "Okay." Oh, it yeah, so
it cracked the password here, which is

00:45:12.120 --> 00:45:14.840 align:start position:19%
funny.
&gt;&gt; [laughter]

00:45:13.160 --> 00:45:17.626 align:start position:19%
&gt;&gt; Uh It's like, "You don't need you don't
need to firmware modify, man. I I got

00:45:17.120 --> 00:45:19.880 align:start position:19%
you."
&gt;&gt; [laughter]

00:45:17.880 --> 00:45:24.440 align:start position:19%
&gt;&gt; Um
But uh so here, actually though, it did

00:45:22.880 --> 00:45:28.320 align:start position:19%
figure it out. So, it says, "No need,
the password is this." But actually like

00:45:26.280 --> 00:45:31.760 align:start position:19%
unfortunately, if you look deeper, um
that password gets overwritten, which is

00:45:30.240 --> 00:45:35.440 align:start position:19%
common on a lot of embedded devices
where like the first thing it does in

00:45:33.480 --> 00:45:40.960 align:start position:19%
the init script is it um dynamically
overwrites the shadow file. Yep.

00:45:37.680 --> 00:45:44.200 align:start position:19%
&gt;&gt; Um but it says if that doesn't work,
uh there's a U-Boot method as well. And

00:45:42.560 --> 00:45:47.200 align:start position:19%
it tells you right here, which is
interesting. So, I found this myself,

00:45:45.520 --> 00:45:51.240 align:start position:19%
but like it just found this. Yeah.
&gt;&gt; Uh if you set the boot args to

00:45:49.120 --> 00:45:53.920 align:start position:19%
init/bin/sh,
um they don't have those [clears throat]

00:45:52.440 --> 00:45:57.360 align:start position:19%
locked down, so you could just put them
boot with a root shell. So,

00:45:55.600 --> 00:46:00.640 align:start position:19%
&gt;&gt; That's awesome. Um yeah, so
interestingly enough that like it finds

00:45:59.560 --> 00:46:05.080 align:start position:19%
that stuff. But like yeah, it's very
good, you're right, at being like um

00:46:03.320 --> 00:46:07.920 align:start position:19%
you know, this would take me 5 minutes
or this would take me an hour or

00:46:06.080 --> 00:46:10.040 align:start position:19%
whatever. Like go figure this out. And
then it can run sub agents, too, right?

00:46:09.560 --> 00:46:13.600 align:start position:19%
So like
&gt;&gt; Yep. Yeah. And I don't know, it just

00:46:12.120 --> 00:46:17.600 align:start position:19%
goes and does its thing and comes back
and it's like, "Hey,

00:46:15.880 --> 00:46:23.120 align:start position:19%
this is it." So
It's uh it's definitely a game changer.

00:46:20.160 --> 00:46:30.640 align:start position:19%
Uh yeah. Yep. Yeah, absolutely. And
like, you know, a lot of this is um

00:46:27.040 --> 00:46:33.760 align:start position:19%
powered by Claude or like Open this.
Like the models are getting better. So

00:46:32.080 --> 00:46:36.840 align:start position:19%
like realistically, that that is like,
you know,

00:46:34.720 --> 00:46:39.440 align:start position:19%
I'm not like, you know, some insane
like [laughter]

00:46:37.600 --> 00:46:43.040 align:start position:19%
genius. I just wanted to give a better
way cuz I was you I I feel like you're

00:46:41.480 --> 00:46:46.360 align:start position:19%
probably the same. I was using Claude a
lot in the background.

00:46:44.760 --> 00:46:50.400 align:start position:19%
And I was just manually copying and
pasting things. And then it would be

00:46:48.800 --> 00:46:53.120 align:start position:19%
like, "Can you try this for me?" And I
like I I was getting frustrated with

00:46:51.920 --> 00:46:57.680 align:start position:19%
that and being like, "It's not that
complicated. Like you do it yourself." I

00:46:55.000 --> 00:47:02.400 align:start position:19%
don't want to like, you know, So this is
just my way of like giving Claude access

00:47:00.520 --> 00:47:08.200 align:start position:19%
to everything that I would do and
imparting some of the instructions and

00:47:04.880 --> 00:47:13.080 align:start position:19%
things that like I know into um the
prompts that are built into the MCP.

00:47:11.000 --> 00:47:15.960 align:start position:19%
Yeah, and that is where some of that
like, you know, whatever what I don't

00:47:14.920 --> 00:47:20.280 align:start position:19%
know, people call like prompt
engineering, whatever whatever you want

00:47:17.480 --> 00:47:23.000 align:start position:19%
to call that, right? Yeah, it's uh this
process of where like you yeah, you

00:47:21.800 --> 00:47:26.640 align:start position:19%
really like think about like, "Okay,
what would I do on a pen test? How would

00:47:24.840 --> 00:47:31.080 align:start position:19%
I look at, you know, this certain
problem and break it down into a set of

00:47:28.600 --> 00:47:34.400 align:start position:19%
steps?" And so yeah, you clearly Yeah,
you clearly have imparted a lot of that

00:47:33.040 --> 00:47:38.520 align:start position:19%
into
uh into the context window via, you

00:47:36.320 --> 00:47:42.760 align:start position:19%
know, all the all the that markdown and
all the instructions uh that this tool

00:47:40.520 --> 00:47:46.400 align:start position:19%
has. So that's that's pretty awesome.
Yeah, it's been a fun project. And yeah,

00:47:44.800 --> 00:47:50.480 align:start position:19%
I'm really I hope people just like if
you want to find a CVE,

00:47:48.040 --> 00:47:55.040 align:start position:19%
now is the time. Like uh
there couldn't be an easier time to add

00:47:51.960 --> 00:47:59.560 align:start position:19%
a CVE to your resume, in my opinion. Um
not just IoT, like other stuff as well,

00:47:57.840 --> 00:48:03.480 align:start position:19%
but and there's cool tools, but there
there wasn't one I saw for firmware

00:48:01.040 --> 00:48:08.200 align:start position:19%
analysis. So, I built this and yeah, if
you want to add a CVE to your resume,

00:48:06.280 --> 00:48:12.280 align:start position:19%
now's the time. I mean, please verify it
and um you can ask Claude to verify it

00:48:10.080 --> 00:48:16.000 align:start position:19%
as well, right? If you have the device.
Um but yeah, review it yourself

00:48:13.960 --> 00:48:20.360 align:start position:19%
manually, make sure you're not just
writing slop and uh

00:48:18.520 --> 00:48:26.600 align:start position:19%
but yeah, this this it's just a force
multiplier, a huge force multiplier.

00:48:23.160 --> 00:48:31.640 align:start position:19%
Absolutely. Absolutely. So, um how can
how can people find you and uh your your

00:48:29.320 --> 00:48:35.240 align:start position:19%
work on the internet and uh and then
like what are some cool projects you're

00:48:33.320 --> 00:48:41.520 align:start position:19%
working on next? Yeah, absolutely. Thank
you. So, find me uh digitalandrew.io

00:48:38.880 --> 00:48:45.920 align:start position:19%
is where you can find like my blog and I
released this tool for example uh early

00:48:44.160 --> 00:48:50.560 align:start position:19%
to those people to conference like a few
people on it. Um this is like the big

00:48:47.480 --> 00:48:56.000 align:start position:19%
release of it, but yeah, so my blog um
if you want to check out Wears, it's w a

00:48:53.880 --> 00:49:01.080 align:start position:19%
i r z.ai.
That's the So, that's a doc site with um

00:48:59.400 --> 00:49:04.920 align:start position:19%
all the details you could want, all the
MCP tools, everything, how to launch it.

00:49:03.520 --> 00:49:08.960 align:start position:19%
Um and then from there there's a link to
the GitHub where it is free, open

00:49:06.600 --> 00:49:11.360 align:start position:19%
source, entirely open source. Um it's
got a pretty permissive license that

00:49:10.280 --> 00:49:14.600 align:start position:19%
basically just says like if you're a
company, you can't take this and sell it

00:49:12.880 --> 00:49:17.760 align:start position:19%
to people. That's about it, but anything
else, if you want to use it

00:49:15.640 --> 00:49:21.320 align:start position:19%
commercially, I don't mind. Like if you
run If you want to use this on your pen

00:49:19.520 --> 00:49:25.000 align:start position:19%
test, if other people want to, I don't
mind. Just like I don't want people like

00:49:23.120 --> 00:49:29.080 align:start position:19%
selling this as a product. Uh
Absolutely. Yeah. Uh so yeah, it's

00:49:27.760 --> 00:49:32.880 align:start position:19%
completely open source. And then other
projects? Yes, I am glad you asked.

00:49:31.160 --> 00:49:37.400 align:start position:19%
People may have seen in my terminal
window that I have your logo actually in

00:49:34.920 --> 00:49:41.800 align:start position:19%
my terminal window because I am in the
process right now of recording another

00:49:40.080 --> 00:49:47.240 align:start position:19%
uh IoT and hardware hacking course for
your platform. Um and it's going to be

00:49:44.520 --> 00:49:53.800 align:start position:19%
free, which is super cool. Uh it's going
to be a beginner intro course to

00:49:49.880 --> 00:49:57.720 align:start position:19%
hardware hacking and UART. And that's
the coolest project I have right now.

00:49:55.800 --> 00:50:01.960 align:start position:19%
I'm super excited about it. I don't know
when this video is going to come out but

00:49:59.000 --> 00:50:08.080 align:start position:19%
the training will follow shortly. Yeah.
Yeah, we're super excited about that and

00:50:04.600 --> 00:50:11.920 align:start position:19%
be sure to subscribe to both of our
YouTube channels. So this video should

00:50:09.520 --> 00:50:15.360 align:start position:19%
show up on both of our our YouTube
channels as a collaboration. So

00:50:13.640 --> 00:50:19.760 align:start position:19%
definitely go and give his channel a
sub. So uh

00:50:17.320 --> 00:50:24.200 align:start position:19%
&gt;&gt; Yeah. Uh so yeah, I want to thank
everybody for

00:50:21.920 --> 00:50:26.800 align:start position:19%
watching this video as always and have a
great day.

