WEBVTT

00:00.000 --> 00:06.080
Up next, it's time for the second workshop for today.

00:06.080 --> 00:14.380
And this workshop is OAMAS, Expanding Data Horizons, Amassing More Than Subdomains.

00:14.380 --> 00:21.940
This talk is brought to you by Jeff Foley, who has 20 years of experience with a focus on research and development.

00:23.360 --> 00:29.160
He also performs assessment of security in critical information technology and infrastructure.

00:29.160 --> 00:34.280
He is the project leader of AMAS, an OS project.

00:34.500 --> 00:40.280
Jeff is also a lecturer, and he teaches penetration testing at State University of New York.

00:42.180 --> 00:47.560
In his spare time, Jeff enjoys experimenting with new blends of coffee, which is awesome.

00:48.480 --> 00:53.740
And giving back to the information security community is also one of his hobbies.

00:54.660 --> 00:58.320
I'd like to talk to you more about coffee as well, after AMAS, AMAS first though.

00:59.920 --> 01:07.660
Right, in this talk, here we're going to get an in-depth workshop on the OAMAS project.

01:07.860 --> 01:14.860
This is a powerful open source tool used for network mapping, attack surface analysis, and asset discovery.

01:14.860 --> 01:18.500
This is more than just network mapping happening over here.

01:18.680 --> 01:22.380
And it's an open source tool, so that's even better.

01:24.060 --> 01:33.620
We will get to know the advancements in data collection capabilities within AMAS, leading to its advancement to an amazing OSINT collection system.

01:33.780 --> 01:38.160
So yes, let's have a good demo and a hands-on experience with this.

01:38.160 --> 01:39.420
Please welcome Jeff.

01:43.590 --> 01:46.690
All right, how many people here have used AMAS before?

01:47.730 --> 01:50.310
All right, good, we've got some hands up, I love it.

01:51.010 --> 02:00.510
All right, so, most of the time, I've been the primary speaker at these events, but this year, we have a special opportunity.

02:00.510 --> 02:07.220
We have some excellent contributors to this project, a great community that we've built around this project.

02:07.610 --> 02:13.350
And I would like to introduce Adam Rosick, who has been a major contributor.

02:13.410 --> 02:20.710
He knows so much about the enhancements we've made to the project in the last 12 months or so.

02:21.550 --> 02:34.550
And he's going to teach you or work with you on how to take advantage or leverage all of the work that we've been doing on OWASP AMAS.

02:39.490 --> 02:42.470
Can I skip ahead here?

02:43.350 --> 02:46.450
Yeah, we'll do a proper intro here.

02:47.830 --> 03:04.490
In addition to being such an excellent contributor to our project, he has been a penetration tester, he's a security researcher, he's an adjunct instructor for topics such as Unix and Linux.

03:04.990 --> 03:13.790
He's just been so active ever since he got out of his academic career.

03:13.970 --> 03:22.450
So, definitely a great person to have on this project, and I would like to now let him take over.

03:22.690 --> 03:29.710
I'll be here answering questions or adding to what we're talking about here, but he's going to run this.

03:35.170 --> 03:41.090
So, I just want to say thank you very much to Jeff for giving me this opportunity to do a talk right now.

03:41.410 --> 03:44.190
It's my first one, so bear with me, everybody, all right?

03:45.130 --> 03:53.690
All right, so we're just going to go over an overview of OWASP AMAS for everybody here, whether you've used it or whether you have not.

03:56.030 --> 03:58.350
Do you guys see me well in the back, by the way?

03:58.350 --> 03:58.830
Yeah?

03:58.830 --> 03:59.430
All right, cool.

04:00.630 --> 04:01.250
So...

04:09.720 --> 04:12.660
Okay, so...

04:12.660 --> 04:14.560
Let me make this bigger.

04:14.560 --> 04:15.720
All right, there we go.

04:15.740 --> 04:19.520
So, the history and the evolution of AMAS, right?

04:19.520 --> 04:34.400
So, I can't speak for Jeff, but the project started about roughly six years ago, and that was because in Jeff's previous lives, he saw a solution to help with his previous reconnaissance techniques.

04:34.820 --> 04:41.860
Normally, you'd have to do all of this manually, so I'm pretty sure Jeff grew frustrated and was like, you know what, I'm just going to make my own tool.

04:41.860 --> 04:43.360
Is that right, in some regard?

04:43.600 --> 04:45.360
Yeah, close enough, right?

04:45.820 --> 04:46.280
So...

04:48.500 --> 04:54.000
As it was being developed, there was a realization that was scary, but true.

04:54.180 --> 05:03.640
Not many organizations actually know what they have even out there in their attack surface environment, which is quite crazy to be honest with you.

05:04.740 --> 05:10.460
You would think that would be the first thing that they would want to know, but for some apparent reason, there was other objectives in their mind.

05:10.940 --> 05:18.560
That is what kicked off what we all know as the go-to subdomain command line tool at the time being, called AMAS.

05:18.700 --> 05:31.080
But we want to expand upon that, so the idea was to have and evolve this to a broader solution, incorporating pieces that expands with the project's capabilities.

05:33.620 --> 05:44.360
Like I said, we want to expand upon this so not only its assets, but also other assets that may be valuable to an infrastructure that you would normally tie in with different tools.

05:44.360 --> 06:01.040
We want to put this all into one solution that you guys can easily create capabilities for and so that you could also run multiple tasks or enumeration, so to say, in the background while the engine does all the busy work.

06:02.500 --> 06:14.940
The new architecture that we have allows extending this capability in an effective and trivial manner, thanks to OEM, which we talked about last year, but I'll also dive a little bit into it.

06:16.640 --> 06:23.060
So, the core functionalities of this, there are many use cases for this, but I only have like two listed up here.

06:23.580 --> 06:27.760
So one of them is organizational surveillance.

06:28.980 --> 06:39.940
With the mass providing visualization, organizations can easily actively monitor their attack surface to spot any anomalies.

06:39.940 --> 06:52.220
Most of the time, reading everything all in one text, it confuses you sometimes and it often lets you miss what the heck you might be popping out that you might not want it to be there.

06:52.220 --> 07:01.720
So we have visualization tools that will help you see everything in a bigger picture and be able to spot out what anomalies there are in a much easier manner.

07:01.820 --> 07:04.820
And this is obviously used for security assessments.

07:05.300 --> 07:11.000
So, it helps find assets that would otherwise be missed if you were to do this manually.

07:11.000 --> 07:19.700
This does it in a systematic approach so otherwise you would be able to miss a lot of things by doing it manually.

07:19.700 --> 07:24.160
Day by day, you're going over multiple things multiple times.

07:24.540 --> 07:25.980
Eventually, you're going to miss some stuff.

07:25.980 --> 07:33.700
Obviously, with automation in general, not even with this tool but with any other tools, that is the main benefit of that.

07:34.320 --> 07:37.440
So that's also with blue teaming and red teaming.

07:37.520 --> 07:45.980
So red teams use this to be able to see what you have out there and the same thing can be applied with blue team as well but for different motives as we all know.

07:46.380 --> 07:48.000
Anything you want to add on to this?

07:52.910 --> 08:10.110
Like he said, we covered this pretty good last year but the real benefit of this hub-and-spoke model with OAM is that you could have other tools completely separate from amass that are contributing to this database or data model.

08:10.310 --> 08:14.730
You don't have everything necessarily has to be baked into amass.

08:15.050 --> 08:22.370
You could also be pulling the data out obviously to create your own reporting, whatever.

08:22.370 --> 08:43.530
It allows the freedom to go into your hands where instead of it being collect data, collect data, collect data from all these different tools and now having to deal with this mess, this pile that you've created of findings, if all these tools just are speaking the same language so to speak,

08:43.530 --> 09:01.550
they're using the OAM, they're putting it into the data model, now it's all just in there with all the associations of how did you find this, what was related to what, and it makes it easy to answer these complex questions with your analysis tools and such.

09:02.170 --> 09:03.730
That's why we created this.

09:03.730 --> 09:07.390
It really was to say, well, what if we missed something in amass?

09:07.390 --> 09:10.730
What if it doesn't do exactly what you wanted it to do?

09:11.850 --> 09:16.450
Now we can just kind of say, well then, build it the way you want to build it.

09:16.710 --> 09:18.310
Or do it the way you want to do it.

09:18.310 --> 09:24.510
Because in the past we've had data models that were, I would say, difficult to understand.

09:24.510 --> 09:27.750
We used database management systems that were proprietary.

09:27.870 --> 09:30.410
Not many people were comfortable with it.

09:30.490 --> 09:33.130
Now, the data model is completely open source.

09:33.130 --> 09:34.190
It's documented.

09:34.190 --> 09:38.510
We're using Postgres as the DBMS.

09:38.590 --> 09:42.410
It makes all of this quite easy for people to work with.

09:42.410 --> 09:46.130
So that's the real big benefit here.

09:46.130 --> 09:51.250
If you're not familiar with this, or you missed what we talked about last year, I'd say take a good look at this.

09:52.790 --> 09:55.790
Haddix called this the Recon Data Standard.

09:55.790 --> 10:00.170
I tried to stay away from the word standard last year, but he, of course, dropped the bomb.

10:01.350 --> 10:02.750
But he's right, kind of.

10:02.750 --> 10:05.050
That's what this is, or what we're trying to do with it.

10:08.730 --> 10:09.450
Awesome.

10:09.630 --> 10:13.290
So here is our agenda that we're going to talk about.

10:14.250 --> 10:18.310
We're going to start with understanding Amass's data collection capabilities.

10:18.310 --> 10:20.470
We're going to touch a little bit hands-on.

10:20.470 --> 10:27.810
We're just going to take a quick look within the code of how the data collection works, any of the new collection features that are present.

10:27.930 --> 10:33.930
And then we're going to, of course, demonstrate the new OEM asset types being collected by Amass, one of them being the emails.

10:34.050 --> 10:37.150
And then we're going to head off to a Q&A.

10:38.210 --> 10:39.970
Hopefully that makes sense to everybody.

10:41.190 --> 10:42.090
All right.

10:42.090 --> 10:46.690
So let's start off with understanding Amass's data collection capabilities.

10:47.190 --> 11:00.030
So we're going to be really talking about how the engine has a new event-driven architecture, which allows us to handle any event that has handlers for processing such events.

11:00.030 --> 11:08.510
The handlers are just responsible for whatever data comes in, what can we do with that data, and how can we put that right back into the pipeline.

11:08.650 --> 11:09.130
Right?

11:09.130 --> 11:12.350
So I normally don't like to say...

11:12.350 --> 11:24.390
I don't like to say it in this way, but the architecture that we have is meant to be careless of... well, not careless, but just... it doesn't really matter what events come into this.

11:24.390 --> 11:39.270
We wanted it to be so that anything that could come into this eventually, we'll be able to have, if the handler supports it, some sort of processing mechanism that could be able to spit out whatever it is that you need, and then be able to drop it right back in in a cyclic process.

11:40.910 --> 11:41.790
There are...

11:41.790 --> 11:44.310
well, like I said before, we'll dive more into handlers.

11:44.530 --> 11:55.250
There are third-party tools that we use, other data sources that we reach upon with API, and other OSINT normal tactics and techniques and procedures that we normally go about.

11:55.370 --> 11:58.430
And I will touch upon that any sooner.

11:59.170 --> 12:01.410
Anything you want to add on this one, or we're good here?

12:05.800 --> 12:07.040
Nothing big.

12:09.920 --> 12:20.680
Where this came from, the reason why this is important is, from day one, the Amass project has always had a cyclic architecture, which many tools don't.

12:20.680 --> 12:21.760
Perhaps you know this.

12:21.760 --> 12:29.040
You give them the config, they go out and pull things, they sort it, get unique results, and print it.

12:30.540 --> 12:35.400
Amass has always said, oh, you found something, put it back at the beginning, and let's re-evaluate.

12:35.400 --> 12:37.300
Let's see what else comes out of it.

12:37.340 --> 12:41.980
That's part of why it takes longer to run it, because it's searching for more things.

12:42.880 --> 12:44.680
And it still does pretty good, in my opinion.

12:47.020 --> 12:52.360
In this event-driven architecture, it's that times ten.

12:52.360 --> 12:53.280
It's pure.

12:53.280 --> 13:10.720
It's like ordered chaos, where everything it finds, it says, this could all be happening at the same time, where hundreds of things could be getting found and thrown back into the beginning of the pipelines to say, find more, find more, find more.

13:10.720 --> 13:19.020
And it's only based on, the only, say, constraint or thing that keeps all this ordered, is the OAM data model.

13:19.020 --> 13:19.860
That's it.

13:19.860 --> 13:44.060
As long as it's an event that matches to a data model asset type, and there's a plug-in somewhere that said, I want to receive events for that OAM asset type because I do a transformation on that to something else , then it's going to receive it and have its chance to touch it,

13:44.060 --> 13:49.660
feel it, go get more findings from it .

13:50.420 --> 13:52.340
So it's that simple.

13:52.360 --> 13:55.500
As Adam already said, it's also that chaotic.

13:57.020 --> 14:01.320
But that simplicity has made it so easy to extend this.

14:01.320 --> 14:02.620
It's all dynamic.

14:02.680 --> 14:10.080
It's all based on your configuration and what was registered by the plug-ins that were compiled into the engine.

14:10.080 --> 14:16.200
So it's basically like, do we have the capability and what did the user want to do here?

14:16.200 --> 14:25.060
And as long as there's overlay or overlap there, then there will be pipelines to execute for those data types.

14:26.000 --> 14:31.040
So the reason he's telling you about this, though, is this is actually pretty exciting.

14:31.040 --> 14:35.040
It's been very interesting what this has yielded since we've built it.

14:35.040 --> 14:37.160
So we wanted to make sure everybody knew about it.

14:39.580 --> 14:40.320
Exactly.

14:40.320 --> 14:45.340
And we have a visual of the event-driven pipeline.

14:46.280 --> 14:58.960
So anything that comes into this will be utilized by any of the handlers that, like he says, overlaps with what the user wants.

14:58.960 --> 15:07.260
So say for this case, we have an FQDN and say this was just a C data for whatever client utilized this engine.

15:07.560 --> 15:26.400
If we were to have a handler and also if we wanted it to produce any IPs, it would look for the specific handlers that are capable of doing that and whether or not it produces anything, that's fine.

15:26.400 --> 15:34.760
But usually when it does produce something, it'll get right back into the pipeline as another event.

15:35.100 --> 15:38.780
And this will usually span out to multiple events.

15:38.780 --> 15:43.660
It could be like 5, 10, 50, however many it actually produces.

15:43.660 --> 15:45.540
So say in this case it produces 20 of them.

15:45.580 --> 15:49.680
You'll have 20 of these that'll get put right back into the event pipeline.

15:49.700 --> 15:52.680
And then if it has anything else that we want to do with the IP.

15:52.680 --> 15:56.240
So say in our configuration we wanted to produce a net block.

15:57.560 --> 16:05.600
Alright, we're going to look into our event pipeline and we're going to see whether or not there's anything that overlaps with its capabilities and what we want.

16:05.740 --> 16:08.920
And we're going to work on those handlers.

16:08.920 --> 16:10.400
It's going to do the processing.

16:10.760 --> 16:14.460
This will happen and repeat until it comes to a halt .

16:14.460 --> 16:21.160
Now how it comes to a halt is whether it has if it has nothing else that we could do based off of what we wanted.

16:21.160 --> 16:24.600
Or if it has nothing else that it's capable of at the time being.

16:24.960 --> 16:28.180
Did I mess anything up?

16:28.180 --> 16:29.400
Or did I miss anything?

16:31.300 --> 16:33.840
Yeah, I think I got most of that stuff.

16:33.980 --> 16:37.640
So what we have here are the supported OEM types.

16:37.640 --> 16:41.380
There are plenty more that we are going to add and I'll talk about that much later.

16:42.240 --> 16:53.980
Just like in the previous tool we used FQDNs we were able to produce IP addresses netblocks, ciders and we were able to get the RRR orgs from our previous tool.

16:53.980 --> 16:56.340
We just added email addresses.

16:56.560 --> 17:07.320
And there are a couple of tools that we've used or data sources that we've used to be able to grab these email addresses and I'll show you how simple that is to actually do.

17:07.320 --> 17:09.380
That's the beauty of this engine, right?

17:10.020 --> 17:22.300
The architecture is you could say, modular in the sense that the architecture does its own things with the events so whatever event comes in the architecture just handles that and passes it off to a handler.

17:22.300 --> 17:29.240
You can make whatever handler that you want or you can remove any handler that you want and it will work perfectly fine.

17:30.300 --> 17:32.000
And that's the beauty of it.

17:32.000 --> 17:34.980
And it's really easy to create.

17:35.260 --> 17:42.180
In this case like I just said the integrations are enhanced yet easy.

17:43.280 --> 17:48.240
With the previous tool, we've used Lua, pretty sure, right?

17:48.680 --> 18:07.140
And the way our tool was made previously it was kind of hard to add any new capability there because once we created once we had an idea of like say for example the email addresses, if we wanted to make an email address pipeline for the previous tool,

18:07.140 --> 18:16.240
we would have to change dang near everything in our code base, which kind of made it a bit difficult to even add such functionalities that expanded upon that.

18:16.240 --> 18:18.280
Hence why we had to create this engine.

18:18.340 --> 18:21.360
The way we have this now, it's literally just like this puzzle piece right here.

18:21.360 --> 18:35.480
If you're missing something that you really want to add in, you can just simply create your own and you can just plug it right into the plugins directory and once it builds up once you get it builded or if you want to commit it to a PR or whatever nonetheless,

18:35.480 --> 18:38.740
you can easily build it and it will work seamlessly in that manner.

18:39.860 --> 18:41.260
There's benefits to this, right?

18:41.260 --> 18:49.880
So if you're an organization and you have some secret capability that you don't want to share with anybody else, that's your money maker right there, right?

18:50.920 --> 18:57.040
You could keep that all to yourself and just still be able to use it effectively with the engine.

18:57.040 --> 19:04.960
If the engine were to update at any time if we were to push any updates it wouldn't change too much with what you already have in your plugins, right?

19:04.960 --> 19:07.240
That's the beauty of it, the modularity of it.

19:07.240 --> 19:19.580
I'll go into I'll go real quick into our GitHub and show you one of the examples of the handlers that we use for our email so just give me one second, alright?

19:20.260 --> 19:22.540
If you want to add anything while I look up, go for it.

19:30.720 --> 19:37.200
Only to only to repeat what he kind of already said.

19:40.880 --> 19:50.060
The only limitation to what you can put in as a plugin or how you can extend this is the OAM.

19:50.100 --> 20:02.920
So as long as there's an OAM asset type for what you're interested in, then as he said it's seamless, it's easy and he's going to show you what one of these plugins with a handler looks like.

20:02.920 --> 20:06.300
You could write this in an evening.

20:06.440 --> 20:12.380
I mean it's literally that easy and there's nothing else about Amass that you need to know.

20:12.640 --> 20:15.080
Like he said before that wouldn't have been the case.

20:15.080 --> 20:19.420
There would have been many changes you would have had to make or had requested that we make.

20:19.640 --> 20:24.340
Now, you could just do it and recompile it and you're rocking and rolling.

20:24.340 --> 20:36.020
That's exactly how we wanted this to be is that, again, I said this earlier, we're trying to put the power back in your hands or make it so that this can be whatever you want it to be, not necessarily what we thought you wanted it to be.

20:36.020 --> 20:42.700
And we're interested in hearing anyone's feedback about this as well because we're trying to empower all of you.

20:42.700 --> 20:44.080
That's the point here, right?

20:44.080 --> 20:50.620
So if it's not working or you have ideas about how that could be even better, please make sure you reach out to the project and let us know that.

20:53.450 --> 21:01.850
Yeah, like he said, we're always down to listen to any of your guys' feedback, any contributions you make, whether that's actually putting something up or just giving us feedback.

21:01.850 --> 21:03.690
All of that is appreciated, right?

21:04.150 --> 21:04.550
So...

21:04.550 --> 21:06.530
Yeah, make it bigger?

21:06.530 --> 21:07.290
Alright, cool.

21:08.610 --> 21:10.910
Alright, you guys, everyone sees it pretty clear, right?

21:10.910 --> 21:13.350
If not, raise a hand and I'll make it bigger.

21:13.410 --> 21:16.010
But this stuff we don't need to worry about.

21:16.230 --> 21:26.030
Over here we have some basic code to... I'm not going to dive too much into this part, but this is just basic stuff that applies to all these handlers.

21:26.190 --> 21:32.790
You're making a struct and you are able to just make sure it aligns with the correct interface that we use.

21:32.790 --> 21:35.650
Nonetheless, it's very easy to register.

21:35.670 --> 21:49.690
All you have to do is put the name, the plugin itself, the transformations, what are we going to produce out of this, and what are we expecting to come in.

21:49.730 --> 21:52.490
And then the callback is a callback function that we have.

21:53.990 --> 21:57.150
I'll show you how many lines this callback function is.

21:57.150 --> 21:59.090
It's quite crazy.

21:59.170 --> 22:00.770
It's less than 100 lines of code.

22:00.770 --> 22:10.150
If we start here at 65 and go all the way down to 131, that's about 66 lines of code.

22:10.150 --> 22:12.270
Like he said, you can make this in the evening.

22:12.270 --> 22:13.830
It's very simple.

22:13.930 --> 22:18.110
What this handler does specifically, it's called grep.app.

22:18.450 --> 22:31.230
What this does is it searches half a million GitHub repositories and whatever data you want it to search for, it will spit out anything to you if it has anything.

22:31.230 --> 22:42.510
For this case, it handles regex and we just simply had a regex pattern that matches any emails that we find associated with the domain that you put into here.

22:43.530 --> 22:53.050
And like I said before, once it's done getting these emails, it'll process them and it'll send it right back into the pipeline.

22:53.130 --> 22:57.290
But nonetheless, this just goes to show how easy it is to make this type of stuff.

22:57.350 --> 22:58.730
It's all ran and going.

22:58.730 --> 23:06.290
It's not in Lua anymore, so there may be benefits to using everything natively as opposed to using multiple languages and whatnot.

23:06.510 --> 23:09.910
But nonetheless, it's very simple, very easy.

23:10.110 --> 23:11.170
It doesn't take that much.

23:11.170 --> 23:18.410
I mean, if there's really advanced stuff, obviously it might take you a bit, but there are cases where, like this, it's really easy.

23:18.410 --> 23:22.890
You can make this in one night, in an evening, while you're watching a movie or something.

23:22.890 --> 23:25.830
And yeah, that's the beauty of it.

23:25.830 --> 23:27.810
So let me get that thing out of here right now.

23:27.810 --> 23:31.530
Unless you guys want to take a look further, but...

23:31.530 --> 23:32.690
I'll just get out of here.

23:38.590 --> 23:38.990
So...

23:40.290 --> 23:42.050
We talk about the registry, right?

23:42.050 --> 23:43.890
Let me just pull this up real quick.

23:43.890 --> 23:45.190
I'm missing one thing.

23:53.700 --> 24:04.720
The registry is what helps the event pipeline determine what it is that we need to do to fulfill the user's needs, right?

24:07.080 --> 24:08.820
How do I word this the best?

24:09.000 --> 24:14.600
So the plugins, which have handlers, submit themselves in that registry, right?

24:15.420 --> 24:28.940
It tells it, okay, we want, if anything over here comes in to this pipeline, you bring it to us, and if we are able to produce what the user wants in their configuration, we'll make it happen.

24:31.740 --> 24:37.020
And I'll show you, I already showed you guys the registration part and the grep.app.

24:39.260 --> 24:40.100
I'm drawing a blaze.

24:40.100 --> 24:41.020
Do you have any idea?

24:46.230 --> 24:58.270
Well, part of what I like about this is, let's say you set up your configuration so that the only thing this is going to do is, maybe you just want to keep it subdomain enumeration.

24:58.270 --> 25:02.130
Maybe that's just what you see this as and it's all you want it to do.

25:02.130 --> 25:11.290
So you set up your config for that, and your session is never going to execute anything other than things relevant to the subdomain enumeration.

25:12.530 --> 25:14.810
Because the registry keeps track of all this.

25:14.810 --> 25:25.830
It has all the mappings of this handler said, when this data comes in, I will try to turn it into this kind of data.

25:25.830 --> 25:33.410
If that mapping is not something you were interested in, then the registry will say, oh, well then we're not going to execute it.

25:33.410 --> 25:36.170
We won't call the callback for that one.

25:36.610 --> 25:38.370
And it's all dynamic.

25:38.590 --> 25:52.610
When the engine is started up, if some of these things are just missing, it's just going to say, well, we don't have any handlers for this pipeline or this OAM data type, so we won't create the pipeline.

25:52.610 --> 25:54.070
So it's all dynamic.

25:54.070 --> 25:55.370
It's all automatic.

25:56.490 --> 26:01.210
And like I think we've said earlier, it's based on two things.

26:01.210 --> 26:10.690
It's what was registered as capabilities for the engine and what the session configuration said, this is what we're trying to do.

26:11.470 --> 26:19.810
The Venn diagram, you might say, where the two overlap, that's what's going to actually happen when this is executing.

26:19.810 --> 26:33.190
But you could also have another session running at the same time in this engine with a completely different configuration where it could be doing ten times that amount of work because that's what you told it to do.

26:33.250 --> 26:42.050
And the registry is the beast, you might say, that's managing all of that or making that happen so easily and, as Adam said, seamlessly.

26:42.690 --> 26:45.070
So that's why this is so important.

26:45.870 --> 26:49.990
It's what makes this... we never have to look at this.

26:51.230 --> 27:01.810
We never are finding ourselves touching this or maintaining this because it's handling everything for us and it expands with the OAM.

27:01.810 --> 27:10.450
So if I add more data types to the OAM, which we will be, by the way, as time goes on, this is just going to take care of it and we're still not going to touch it.

27:10.450 --> 27:19.690
It's just kind of amazing that it's been designed so that this is just going to keep taking care of everything as we need it to be as this project continues.

27:19.690 --> 27:28.390
But it makes it really easy, I would say, for users because you know it's only going to do what you want it to do for you.

27:32.260 --> 27:33.180
Exactly.

27:33.180 --> 27:37.700
So, speaking of that, we have the configuration with the mass.

27:37.860 --> 27:43.480
So, last year we talked a bit about how it went to YAML instead of INI.

27:44.500 --> 27:53.740
Usually with the last tool, users found themselves often confused with what is the best approach?

27:53.740 --> 27:55.340
What are the best options to set?

27:55.340 --> 27:58.200
We had a lot of options in our previous tool.

27:58.700 --> 28:08.640
But that may have made it a bit confusing for users to identify what is best needed for their situation, right?

28:09.820 --> 28:13.620
But with this approach, we decided to take a declarative approach.

28:13.620 --> 28:16.620
So, this allows simplicity and readability.

28:16.920 --> 28:19.480
So, you don't need to be too specific.

28:20.080 --> 28:21.260
I mean, you could, of course.

28:21.260 --> 28:23.340
We have a ton of options here as well.

28:23.440 --> 28:28.580
But as far as getting what you want, you don't have to write too much.

28:28.840 --> 28:37.240
You just have to say, hey, look, I expect an FQDN and whenever it comes in, I want it to produce anything that we have capable of it.

28:37.400 --> 28:40.980
And the engine will read that and it will say, okay, no problem.

28:40.980 --> 28:41.820
I'll make it work.

28:41.820 --> 28:43.380
You don't have to worry about a thing.

28:43.380 --> 28:48.620
Of course, you could do things like excluding certain handlers and things of that nature.

28:50.840 --> 28:51.340
But...

28:51.340 --> 28:52.240
Yeah.

28:52.740 --> 28:54.260
Okay, so...

28:55.440 --> 29:02.600
And with that being said, what's running this, as we mentioned before, is the OEM, right?

29:02.600 --> 29:06.460
If you guys weren't here last year, I'll just quickly go over it.

29:06.460 --> 29:12.600
So, it just provides a new standard, just like how Haddock said it, for asset definitions.

29:12.740 --> 29:17.920
It represents a framework describing and categorizing any of the assets that you have.

29:18.260 --> 29:21.520
So, it categorizes it, like we just said.

29:21.520 --> 29:24.420
It could be an FQDN, IP address, whatever you want it to be.

29:24.420 --> 29:26.140
If we support it, it could be that.

29:26.140 --> 29:28.260
So, we have categorization for that.

29:28.260 --> 29:31.280
And we have all the data, which is stored in JSON.

29:31.560 --> 29:40.020
It'll say information about such type that we normally see on a usual basis with whatever type comes in.

29:41.600 --> 29:43.220
And the AssetDB just holds it, right?

29:43.740 --> 29:50.100
We're able to hold it in SQLite and Postgres QL, database management services.

29:50.440 --> 29:54.320
For more information, though, you can just head over to the GitHub org page.

29:54.320 --> 29:55.780
We'll talk about that.

29:57.860 --> 30:07.380
Yeah, so the beauty of that, too, though, with the AssetDB is along with it storing the assets, it has the relations of it as well.

30:07.400 --> 30:12.440
So, say, for example, we have a FQDN and an IP address.

30:13.340 --> 30:14.920
It's not really...

30:14.920 --> 30:21.220
it's worth something, but it adds much more value when you're able to map two things to one asset to another.

30:21.220 --> 30:23.740
And it'll go down in a transitive manner, right?

30:23.740 --> 30:29.060
So, for this case, we have the relations table being the A record.

30:29.060 --> 30:37.720
And it basically says, okay, so, from this FQDN, we were able to get an A record that points to the IP address that resides in our AssetDB.

30:37.980 --> 30:39.340
That's the beauty of it, right?

30:39.340 --> 30:40.520
And it's not just...

30:40.520 --> 30:41.840
it can expand upon it.

30:41.840 --> 30:45.900
There'll be a ton of relations that could come from one asset.

30:45.920 --> 30:47.180
And that's what the beauty of this is.

30:47.180 --> 30:53.420
If you make a visualization tool, you could have something like graph nodes just show up all over the place, and you'll see the beauty of it.

30:53.500 --> 31:01.980
You'll see just multiple lines pointing to all different nodes, all coming back to one exact area, depending on how you query for that result, right?

31:01.980 --> 31:03.700
That's the beauty of that.

31:03.740 --> 31:07.200
More information about that, we can head over right to the org page.

31:09.660 --> 31:18.380
Also, with that, with AssetDB, you can ask any questions that you may not find in a standard tool, right?

31:20.160 --> 31:26.480
Previously, others would find themselves not saving the information, or...

31:27.840 --> 31:28.920
How do I word this?

31:28.920 --> 31:38.080
Not saving the information that they ran in their previous enumerations, and that would result to them having to run unnecessary enumerations to get their answers again.

31:38.080 --> 31:41.060
The beauty of this is, it's all stored in one spot.

31:41.120 --> 31:45.420
And you could use this for multiple tools, and whatever query you want it to be.

31:45.420 --> 31:48.500
It could be complicated, or it could be as simple as you want.

31:49.140 --> 31:51.400
You can make that happen with this.

31:53.480 --> 32:00.800
And the overall design, and the taxonomy of the OAM allows the community to extend it further with new asset types.

32:01.520 --> 32:03.600
Any other things you want to say with that?

32:05.240 --> 32:17.660
I mean, one thing I notice users telling me that they like about this is they got used to using a mass where, when they want the data, they have to run the enumeration again.

32:17.660 --> 32:19.420
And it takes a while.

32:19.620 --> 32:25.220
So, it probably got frustrating, I imagine, having to sit around and wait for these things.

32:25.220 --> 32:29.160
But with the AssetDB, it's storing all this for you.

32:29.160 --> 32:35.720
So the only time you really need to run the enumeration again is when you need the data to be refreshed.

32:36.020 --> 32:38.160
Or you think something new could be out there.

32:38.160 --> 32:39.940
But otherwise, it's already sitting there.

32:39.940 --> 32:43.820
All you got to do is run the query again and pull the data out.

32:43.820 --> 32:47.000
I think there's a lot of people, though, that don't actually realize that.

32:47.120 --> 32:50.100
And frankly, they're wasting a lot of time.

32:50.260 --> 33:01.340
I also don't know if they realize how much of this data is all linked together, so that when you want to answer questions like, for this asset with this name, what ASN is it sitting in?

33:01.340 --> 33:04.640
Or what, you know, network block is it sitting in?

33:04.820 --> 33:06.000
It's all right there.

33:06.000 --> 33:09.140
You just have to ask the right question and you can pull that right out.

33:09.140 --> 33:11.420
You can pull out the mappings between the two.

33:11.520 --> 33:16.440
So, there's a lot of work that this can do for you, so that you're not doing it anymore.

33:16.440 --> 33:27.440
And when I have these conversations with people who have been using the tool for years, and I tell them these things, they usually are very pleasantly surprised.

33:27.760 --> 33:38.860
So, I would just say, keep that in mind and maybe consider changing your workflows, or how you're using this, so that you're making better use of what it's already doing, you know, the heavy lifting it's already doing for you.

33:42.560 --> 33:51.080
Yeah, and one example of what we've used with the AssetDB information is we've made our own web interface, right?

33:51.080 --> 34:00.500
So, we've used something called Grafana for this web interface, but this goes to show that you guys can make anything you want out of the information assets as well.

34:00.780 --> 34:10.480
Like, in this instance we're able to make a pie chart of the ASNs that belong to whatever the assets are that you're running, or that you have open.

34:10.500 --> 34:21.920
We have a list, or a table, I know it's a bit hard to see over here, but it's a table showing all the things that we've found relating to such domain, or whatever asset that you're querying for.

34:21.920 --> 34:25.320
And we have, right here, IP to location.

34:26.380 --> 34:28.200
What is it, like a database?

34:28.200 --> 34:32.340
Like a local database that tells us okay, most likely it's residing in there.

34:32.340 --> 34:34.740
There's a bunch of other capabilities.

34:35.100 --> 34:46.540
Jeff could probably reach more into this web interface, but however, this is just another example of what you can do with the information that you have residing in the AssetDB.

34:51.180 --> 34:52.420
No, I'm sorry.

34:53.400 --> 35:04.360
I mean, the exciting thing about this, what makes me smile pretty big about this is this is going to turn into a platform before you know it.

35:04.360 --> 35:19.360
Right now it's just one dashboard that we've created, like he said, where we're just taking the data that's being commonly collected by this tool and we've done some fun things with it to make it a little easier for you to point and click and find what you're looking for.

35:20.960 --> 35:22.900
But it won't be that long.

35:22.960 --> 35:40.980
You'll be able to manage your workflows with this or set up these sessions that are, you'll say, this is the seed data, this is what we're, you know, what we're, is in scope, and we want it refreshed every seven days or, you know, whatever you choose.

35:41.860 --> 35:43.100
And it's just going to do it.

35:43.100 --> 35:44.760
Then you just leave it.

35:44.940 --> 35:46.620
And it's just going to do it for you.

35:46.620 --> 35:53.280
And from that point forward, you could just either keep using these dashboards to look for new findings.

35:53.280 --> 35:58.400
You could set up your own queries to pull the data and then do whatever you want with it.

35:58.400 --> 36:03.340
But it's just going to start making this all much easier.

36:05.640 --> 36:07.980
Some people are already using this.

36:08.380 --> 36:11.740
I mean, personally, I'm not a big GUI person.

36:11.740 --> 36:14.480
You know, I'm a little tied to the command line myself.

36:14.480 --> 36:17.320
But I can see the appeal, why this would be pretty interesting.

36:17.320 --> 36:27.960
I know some people really like the geolocation mapping because they feel it makes it easier to spot things that are popping up in places where they can say, well, I don't think that's supposed to be there.

36:30.420 --> 36:44.560
I'm kind of excited about the management through the interface because I think it's just going to make it easier for many people to have confidence that they're setting this up correctly for the way they want to use it, as opposed to having to, say, master the configuration file.

36:45.360 --> 36:47.580
So that's pretty exciting.

36:47.580 --> 37:10.680
But the real vision here, what I think is exciting about this is that eventually this will be like the free attack surface management platform that every company would be able to use to implement an ASM capability within their company that's easy to manage and integrate with other systems.

37:10.680 --> 37:14.940
That's the real light at the end of the tunnel here.

37:19.610 --> 37:21.090
That was awesome.

37:21.090 --> 37:29.210
So we're going to now touch upon the demonstration of the new OEM asset types being collected by Amass.

37:29.210 --> 37:32.490
In this case, we're going to use the email enumeration here.

37:32.490 --> 37:34.290
You guys are free to follow along.

37:35.370 --> 37:41.450
What I advise you guys to use for this case is to use Docker Compose to get the full capabilities.

37:41.470 --> 37:54.570
It's all these Docker containers all in together, such as the collection engine, the assetDB, the dashboard server, which is Grafana, and the central log management system, which we're using Loki for.

37:54.750 --> 37:57.370
And, of course, the command line interface.

37:57.670 --> 38:08.030
One thing to note with the command line interface, or just with using that in general, you're not tied to using the command line interface if you really are brave enough, right?

38:08.030 --> 38:16.670
You could use any sort of API request to this collection engine, and it'll perform the work for you.

38:17.450 --> 38:22.710
So that's also one key thing to notice as well, but nonetheless, let's just go dive into the...

38:28.450 --> 38:30.250
Yeah, oh yeah, good point.

38:30.350 --> 38:39.390
Okay, so we're going to dive into this, but usually I would highly recommend that you guys use your cellular in this.

38:39.670 --> 38:43.710
The network here could be goofy, and you're in DefCon, right?

38:43.710 --> 38:48.990
So you shouldn't probably be using that to begin with, but use your cellular.

38:49.610 --> 38:55.270
I've had my luck with using cellular, and hopefully the same thing applies to you guys.

38:56.750 --> 39:00.530
So we're going to follow along during the demo if you want to.

39:02.050 --> 39:04.730
So you could use Docker Desktop.

39:04.790 --> 39:09.070
You could install or update Docker and get it on your system.

39:09.070 --> 39:11.170
And you could use Docker Desktop.

39:11.170 --> 39:15.010
You need Compose in this, so Docker Desktop usually comes with it.

39:15.010 --> 39:18.850
I'm going to be taking a different approach, and I'll show you guys exactly that as well.

39:18.850 --> 39:21.970
But if you use Docker Desktop, you should be perfectly fine.

39:21.970 --> 39:28.810
You won't have to go through most of the prerequisites that I have to go through with Docker, because it's already bundled in together.

39:32.550 --> 39:33.430
So the

39:36.820 --> 39:45.840
Kali repository, it might not be as up-to-date, so you're probably better off using the Docker environment.

39:48.480 --> 39:50.860
Yeah, and it's also just not the same exact thing, right?

39:50.860 --> 39:58.980
Because when we're using... if you're just running it straight off of what Kali gives you, you're just going to be running the good old standard client.

39:58.980 --> 40:09.780
And you're not going to be able to use the full capabilities of the AssetDB and the OAM and all the things that we have bundled here together to really footstomp the impact that this could possibly have.

40:11.380 --> 40:16.060
Yeah, but the big thing is 4.2 is almost a year old.

40:16.280 --> 40:18.600
That's what you're going to get from Kali right now, right?

40:18.600 --> 40:21.840
That's not what we're talking about today, and that's not where this is going.

40:23.720 --> 40:31.660
There's been no release of this for almost a year, because of all the things we're talking about today.

40:31.960 --> 40:37.420
There's been a lot of work done to this, so the only way you're going to get all these features is if you...

40:37.420 --> 40:47.260
The only way right now that you can get all these features is to use a mass Docker Compose, which is a repo on our GitHub org.

40:48.100 --> 40:55.340
You can't currently use the official release of the tool and get what we're talking about today.

40:58.510 --> 40:59.270
Okay.

40:59.270 --> 41:01.770
Hopefully that answers all the questions.

41:01.770 --> 41:05.630
If anyone has anyone else, feel free to put your hand up.

41:06.310 --> 41:08.730
And I'll just start putting on my screen.

41:09.670 --> 41:13.610
Do you guys need a moment, by the way, to get Docker Desktop running?

41:13.810 --> 41:15.190
Yeah, you guys do your thing.

41:16.570 --> 41:17.230
Exactly.

41:17.230 --> 41:21.710
Okay, I'll give you guys a bit, and then I'll ask in a bit if we're ready to go.

41:25.850 --> 41:33.530
And then for those who truly want to follow the alternate approach that I'm taking, I will also be doing it afterwards as well.

41:34.730 --> 41:37.850
If you're trying to get it set up and you have questions, just raise your hand.

41:37.850 --> 41:40.610
I can come out and answer your questions quickly.

42:07.060 --> 42:10.000
If anyone else needs help, I'm free to help as well.

43:49.770 --> 43:53.090
I think it's 3,000, but I'll also check when I run the...

44:04.200 --> 44:04.840
Okay.

44:09.260 --> 44:18.380
I'll go about... I'll also do the alternate approach if you guys are using a headless setup, because that's what I'm using.

44:19.460 --> 44:21.980
And then we'll just dive right into that.

44:26.880 --> 44:45.620
We're going to dive into this as well, but in the AssetDB environment file that you're going to see under the config directory, once you clone the Docker Compose repo, you need to change... if you're going to make any changes on that, you need to do that initially.

44:45.620 --> 44:51.340
Otherwise, once the containers are set up, once the containers are running, it's pointless at that point.

44:51.340 --> 44:59.420
You're not going to be able to authenticate because it's going to be taking the initial creds that it saw on the AssetDB environment file.

44:59.480 --> 45:03.420
That's for the Postgres DB and for the engine.

45:04.680 --> 45:10.060
It's under the config directory that's under the Compose repository.

45:10.060 --> 45:11.240
I'll go and show you guys.

45:11.840 --> 45:14.620
I'll do it right now and you guys can just follow along too.

45:47.130 --> 45:51.450
Let me just...

46:00.130 --> 46:10.150
I'm going to mirror my display, so it should pop up of me taking an attempt at the alternate approach.

46:16.420 --> 46:21.940
Okay, so I'll minimize this and we'll head on to the terminal.

46:24.280 --> 46:31.600
I'm using a digital ocean droplet just to run this, just for the sake of the internet connection.

46:31.600 --> 46:33.000
I just want it to be more stable.

46:33.800 --> 46:36.020
I'm just going to SSH into this.

46:37.420 --> 46:43.240
I have a key-based SSH and I'm going to just switch over to the test user that I have.

46:43.560 --> 46:46.480
Let me just see if I have sudo permissions before I even go forward.

46:48.320 --> 46:49.460
Alright, we're good.

46:51.380 --> 46:58.260
One way is to, of course, install Docker Desktop and you should be fine with the Compose.

46:58.260 --> 47:10.120
But to get the engine, let's see here, you just head over to their documentation page, which is docs.docker.com and you should be...

47:10.120 --> 47:14.720
and for my case, I'm running Ubuntu on this droplet, so I'm going to be heading over to Ubuntu.

47:15.060 --> 47:20.240
If you have any old versions, just get rid of them.

47:20.240 --> 47:28.560
They should have something here, just a quick little one-liner that'll remove everything if you have anything present in here.

47:28.760 --> 47:32.860
This is fresh, this is new, so I don't have to run this in my case.

47:35.120 --> 47:49.500
I'm going to use the app repository to install this, if you guys want to follow along, if you guys are using a headless setup, just be warned, I'm not going to be able to show you guys the web interface with this method, but if you guys are using Docker Desktop and after my installation attempt,

47:50.720 --> 47:55.000
you guys should be able to look at the web interface just fine as well.

47:57.160 --> 47:57.540
So...

47:58.980 --> 48:00.200
Make it bigger too?

48:00.260 --> 48:00.840
Okay.

48:08.090 --> 48:10.210
Maybe always on top as well.

48:10.210 --> 48:11.090
Okay, cool.

48:11.430 --> 48:13.690
So, hopefully you guys all see this just fine.

48:14.090 --> 48:16.590
If you guys don't, just raise a hand, I'll make it bigger as well.

48:16.850 --> 48:18.630
We're just going to copy and paste this.

48:18.630 --> 48:24.710
We're just going to put Docker's repository URLs into the environment.

48:26.730 --> 48:28.130
Should work fine.

48:31.850 --> 48:34.050
We're just going to update our system as well.

48:41.340 --> 48:41.860
Cool.

48:41.860 --> 48:47.440
And now we're going to install the latest Docker packages, and this is going to contain just the engine itself, right?

48:50.120 --> 48:53.600
Just a quick little copy and paste will do the work for you most of the time.

48:55.760 --> 48:57.440
Just click yes to move forward.

49:08.890 --> 49:14.470
Might take a bit, depends on the architecture that you have in your environment.

49:15.250 --> 49:21.770
And just to verify if it works, you can just run Hello World and it'll show up.

49:21.790 --> 49:24.250
If it shows up like this, then you should be good.

49:24.250 --> 49:35.130
Now, if you want to run it so that you don't need sudo, which I personally like doing too, just for the sake of convenience, there is a specific method right here.

49:35.130 --> 49:40.010
So if you click on next steps, it'll take you to post installation steps for Linux.

49:40.590 --> 49:44.650
And if you want to do this, if you don't, it's up to you.

49:44.650 --> 49:46.830
I'm just doing it for the sake of convenience.

49:49.250 --> 49:54.030
So just make sure that you have the Docker group in your environment.

49:54.030 --> 49:55.310
It doesn't hurt to just check.

49:55.310 --> 49:57.450
If you don't, it'll just add it regardless.

49:58.150 --> 50:00.330
It already exists, so we're good on that regard.

50:00.390 --> 50:04.850
And we're going to add this user to the Docker group.

50:06.770 --> 50:19.670
Now at this point, you could just simply sign out, sign back in, or you could just simply run the new group command and the changes for the group permissions on your user will change immediately.

50:20.790 --> 50:29.270
And then to verify if this works, you just simply run docker run hello world again.

50:29.270 --> 50:35.130
Now notice I don't have sudo in here, so if there's a permission issue, it'll throw up something.

50:35.810 --> 50:37.290
And it looks like it's good, right?

50:37.290 --> 50:40.890
So we have hello from Docker and we're good on that note.

50:41.010 --> 50:52.830
Okay, so we're going to go to the slides now to show you guys where to get your Amass Docker Compose repository.

50:52.830 --> 50:54.830
It's right up in this link here.

50:55.570 --> 50:58.070
So here, let me just look it up real quick.

51:02.080 --> 51:04.160
Amass Docker Compose.

51:05.560 --> 51:11.800
We just copy this over if you want, or if you go down here as well, it says the same exact thing.

51:19.390 --> 51:21.110
It's the wrong terminal.

51:24.070 --> 51:27.510
And just simply, we just go to my home directory.

51:28.430 --> 51:31.110
Simply git clone it.

51:33.110 --> 51:38.270
And you should have what is present here as Amass Docker Compose.

51:38.270 --> 51:40.950
You can change this name to whatever you like.

51:40.950 --> 51:43.850
We're just going to change it to Compose.

51:48.220 --> 51:50.000
As you see, it's right here.

51:50.480 --> 51:52.640
Now let's hop right into this.

51:53.060 --> 51:55.240
What resides here?

51:55.400 --> 51:57.580
This resides the Compose YAML.

51:57.580 --> 52:03.700
If you have any major technical issues with your Compose environment, you can change whatever you want there.

52:03.700 --> 52:08.820
It has your config, it has the data, and it has the logs.

52:10.240 --> 52:12.840
Let's just look into the config real quick.

52:15.180 --> 52:19.880
Just a quick note though.

52:19.880 --> 52:23.660
At this point, it would be good to check the data and the logs directory.

52:24.060 --> 52:42.820
If they don't have permission for read-write for everyone, you're going to have problems because we don't yet have all the writes coming through a single user or a single container within the system.

52:42.820 --> 52:52.820
There's multiple containers that are writing to the same place and if you don't set it up to allow that, it's going to give you errors and it's probably not going to make sense to you.

52:52.960 --> 52:55.740
You're going to wonder why it's not working and it's just something that simple.

52:55.740 --> 53:02.560
Those two directories need 777 on both of them

53:08.920 --> 53:09.200
.

53:09.200 --> 53:17.000
If your guys' connection is slow, I'll wait for you guys to get the get repo locally.

53:17.440 --> 53:21.120
We could give it a couple minutes if it's taking you guys a bit.

54:03.310 --> 54:04.970
Anybody else have any questions?

54:30.520 --> 54:34.260
I'll change my setting up right now.

54:42.300 --> 54:54.780
So just make sure, like Jeff said as well, just make sure you have your data directory and your logs directory to be 777 for this case.

54:56.980 --> 54:58.620
It'll be work done.

55:00.900 --> 55:01.800
So we're all good.

55:01.800 --> 55:05.620
Everybody has their repository cloned locally?

55:05.620 --> 55:08.000
If not, we could give it a little bit more.

56:11.380 --> 56:13.900
Just give it one more minute and I'll ask again.

56:22.940 --> 56:24.540
Does it seem like we're good?

56:24.780 --> 56:29.840
If you need help, Jeff will be around as well.

56:29.980 --> 56:33.740
But let's just dive into the configuration directory.

56:34.320 --> 56:36.360
So what does this entail?

56:36.400 --> 56:37.460
Let's take a look.

56:38.160 --> 56:44.520
So we have here the AssetDB environment, the config.yaml, the datasources.yaml.

56:44.660 --> 56:46.480
I'll explain all of those.

56:46.480 --> 56:55.360
So let's start out with what I would say is pretty crucial to even get this working in your environment, is the assetdb.environment file.

56:55.360 --> 56:57.520
So let's take a look at that.

57:05.160 --> 57:08.300
So what does this have here?

57:08.460 --> 57:21.120
So it has the Postgres password for you to connect to your AssetDB, the Amass username, the Amass database, and the Amass engine password to get in.

57:21.140 --> 57:28.100
So what I said before is you probably, if you're going to make any changes right now, do it.

57:28.100 --> 57:39.600
Because otherwise, if you get the Compose environment running, it'll just take what you have and once you change it, it's just going to try to authenticate with technically credentials that don't match.

57:39.820 --> 57:43.400
So if you're going to make any changes, it's best that you do it now.

57:43.400 --> 57:46.580
I'll give you guys just a minute to make whatever changes that you want.

57:46.580 --> 57:50.080
I'll keep mine the same just because this is just for testing, right?

57:50.080 --> 57:52.320
So I'll just give like a minute.

57:54.180 --> 57:56.320
Other things, I can actually talk a little bit further.

57:56.320 --> 57:59.260
So other things we could talk about is the config.yaml.

58:00.740 --> 58:05.700
It might have been a little bit too small on the slides, but we could go over this real quick, right?

58:05.720 --> 58:08.580
It has the domains, the IPs, the CIDRs.

58:08.600 --> 58:18.400
We commented all that out, but you can obviously put in what items you want to be as seed data, or for this case also in your scope.

58:19.660 --> 58:21.640
We have options here.

58:21.880 --> 58:28.020
You probably don't want to change this because this is where your data source credentials will be located.

58:28.020 --> 58:35.520
If you're going to change this or change a name, you probably need to also update this area as well.

58:35.520 --> 58:37.860
People often get that mixed up.

58:37.860 --> 58:39.820
I sometimes even fall for that too.

58:53.100 --> 58:54.420
Fair enough.

58:55.160 --> 58:57.460
Also, it's a good catch as well.

58:59.620 --> 59:10.480
You want to make sure that if you do happen to change your AssetDB environment file, like the username, password, or whatever it is, you want to make sure we have an option here called database.

59:10.840 --> 59:13.260
And this is what is used to connect to the database.

59:13.260 --> 59:20.120
You want to change that accordingly to have it match up with what you had in your AssetDB file as well.

59:20.120 --> 59:21.840
Otherwise, it will fail to connect.

59:24.000 --> 59:27.700
And then, what we talked about before with the transformation.

59:27.740 --> 59:28.940
This is what we were talking about.

59:28.940 --> 59:41.560
These are all of what the user, you or me or whoever it is, this is what we request the engine to, or we tell the engine this is what we want to come out of the engine.

59:42.060 --> 59:44.400
We could add anything we want here.

59:44.400 --> 59:47.140
We could remove anything we want.

59:47.140 --> 59:50.700
We could also add exclusions if we want to do that as well.

59:51.220 --> 59:54.540
But for this case, we're just going to keep it as is just for the sake of running it.

59:54.540 --> 01:00:03.260
But if you guys did change your credentials, I'll give you a minute to just make the following changes to the database align.

01:00:12.910 --> 01:00:14.570
If you want to add something, go ahead.

01:00:16.130 --> 01:00:22.890
One neat thing to mention here is, let's say you wanted to run five of these engines.

01:00:23.610 --> 01:00:31.850
Maybe you want each one to have different IP addresses so you can have separate rate limiting on what they're doing and things like that.

01:00:32.290 --> 01:00:35.170
But they all could point to the same database.

01:00:35.590 --> 01:00:48.830
This would be a place possibly where you might want to update this so that they're all writing to the same place, but they can be operating from different parts of the internet, essentially.

01:00:48.830 --> 01:00:54.630
Some could be coming out of TOR, some could be coming out of residential proxies, whatever floats your boat.

01:00:56.250 --> 01:01:00.470
But they're all contributing to the same DB.

01:01:00.710 --> 01:01:20.090
In the future, we're going to make it so that you can send the request to one engine and as long as they're aware of each other, they can distribute the workload across the various engines to maximize on performance and reduce the chances of missing findings.

01:01:20.310 --> 01:01:28.710
But for right now, you have to invoke each one separately or have a different session with a different engine, but they can bring all the data back to a central place.

01:01:33.080 --> 01:01:35.080
Yeah , that's a good point.

01:01:35.580 --> 01:01:37.780
I'll just move forward with the data sources.

01:01:39.120 --> 01:01:45.240
If you guys are if anything's messing you up with the config or anything like that, feel free to just raise a hand.

01:01:45.240 --> 01:01:47.340
We'll be able to help out gladly.

01:01:48.180 --> 01:01:50.260
Let's just take a look at the data sources.

01:01:51.720 --> 01:01:56.220
This is where you want to put all the creds that you want to possibly use.

01:01:56.220 --> 01:02:01.900
We have a ton of options here with data sources if they are used in our engine.

01:02:03.740 --> 01:02:06.040
We're working on adding more, of course.

01:02:10.320 --> 01:02:11.560
What was I going to say?

01:02:11.560 --> 01:02:12.820
I just lost the train of thought.

01:02:13.620 --> 01:02:16.720
The key part about this too, which is pretty nice as well.

01:02:16.720 --> 01:02:36.720
Say you want to have a specific say you want to only use certain credentials for a certain purpose, whatever it is, you can have along with different sessions other data source files and you can just make sure it points to the recording data source that you want for whatever specific session enumeration session that you want to use.

01:02:36.800 --> 01:02:38.480
That's also a pretty nice thing as well.

01:02:41.620 --> 01:02:44.580
It allows you to control how hard you're hitting the credits as well.

01:03:05.520 --> 01:03:07.800
That's just because how YAML is.

01:03:07.800 --> 01:03:15.180
If I just have all this stuff right here, if I have it all this usually throws me up some problems.

01:03:15.180 --> 01:03:19.720
You see how already on that parser right there, it already just gave up a different color on that syntax.

01:03:20.400 --> 01:03:25.900
It's not just like us thing, it's literally just how YAML works.

01:03:36.060 --> 01:03:36.720
Quotes.

01:03:36.720 --> 01:03:38.440
Yeah, that's also a fair point too.

01:03:44.120 --> 01:03:45.580
That's a good point as well.

01:03:45.580 --> 01:03:47.980
This is just me putting whatever it is in.

01:03:47.980 --> 01:03:53.540
I'm going to have to probably bring the screen down and just put some of my API creds to generate emails.

01:03:54.180 --> 01:04:01.400
But if you guys have anything that you want to add on the fly, anything that pops up to your liking, feel free to add it real quick.

01:04:01.580 --> 01:04:05.620
On top of API keys, I can go down here and hopefully I find other ones too.

01:04:05.620 --> 01:04:09.140
You can have username and passwords into this as well.

01:04:09.660 --> 01:04:17.520
Other secret information that may be useful for whatever the data source is that you're trying to use.

01:04:17.560 --> 01:04:19.120
So on and so forth.

01:04:27.280 --> 01:04:28.820
Good point.

01:04:28.940 --> 01:04:30.580
These are all commented out.

01:04:30.580 --> 01:04:35.440
As it says here, uncomment and add credentials for data sources that you'd like to use in the engine.

01:04:35.440 --> 01:04:40.760
So if you want to just uncomment it, just get rid of this hashtag right over here and you'll be good to go.

01:04:41.120 --> 01:04:42.220
Just add a block.

01:04:44.160 --> 01:04:48.060
So if you guys have any questions, Jeff will go around.

01:04:48.060 --> 01:04:53.600
I'm going to put my own creds, but I'm just going to have to bring this off the screen real quick.

01:04:53.600 --> 01:04:55.520
So let me just add this all.

01:04:55.980 --> 01:04:57.280
Just comment this.

01:04:58.000 --> 01:05:04.440
And I'm just going to real quick change the display settings on this.

01:05:06.000 --> 01:05:06.860
Yeah, no.

01:05:08.100 --> 01:05:10.460
Alright, so let's see here.

01:05:42.200 --> 01:05:49.180
So I'm just going to add my own stuff, but you guys do whatever you guys want to do with the API keys.

01:08:59.010 --> 01:09:02.650
Okay, I'm going to be putting my screen back on mirror.

01:09:03.350 --> 01:09:04.550
Should be good.

01:09:12.790 --> 01:09:15.330
Yeah, if there's any questions, feel free to ask.

01:09:17.370 --> 01:09:20.530
I'm going to be assuming that people have their stuff in.

01:09:20.530 --> 01:09:23.610
If not, just raise your hand and I can give you guys an extra minute.

01:09:24.390 --> 01:09:25.150
We're good?

01:09:25.150 --> 01:09:25.770
Okay.

01:09:26.090 --> 01:09:26.810
Cool.

01:09:27.310 --> 01:09:30.770
So all we need to do now is also if you look at...

01:09:32.350 --> 01:09:33.370
Okay, cool.

01:09:33.370 --> 01:09:34.270
Even if we don't.

01:09:34.490 --> 01:09:40.070
So now that we have everything good to go, we are going to look at our compose.

01:09:40.370 --> 01:09:56.670
Alright, so now all you have to do is run docker compose run dash dash rm amass enum oops, dash g and then the domain that you want to put in.

01:09:56.670 --> 01:09:59.290
So for this case, we're just going to do os.org.

01:09:59.370 --> 01:10:01.430
Just to check real quick.

01:10:01.770 --> 01:10:03.270
Just want to make sure I get it right.

01:10:04.850 --> 01:10:05.410
Docker...

01:10:05.410 --> 01:10:06.170
Yeah?

01:10:06.830 --> 01:10:09.330
Alright, we'll just run it then.

01:10:09.330 --> 01:10:09.930
Cool.

01:10:10.930 --> 01:10:13.450
Let me just go back to here.

01:10:13.630 --> 01:10:15.570
Alright, so we're just going to run it.

01:10:16.010 --> 01:10:24.070
Now, it's pulling all the images that we need to run our environment.

01:10:24.250 --> 01:10:31.310
So like we said, Grafana's here, Loki's here, and we're using syslog for our logging management.

01:10:32.810 --> 01:10:33.930
This might take a bit.

01:10:33.930 --> 01:10:35.630
Depends on your infrastructure, right?

01:10:35.630 --> 01:10:37.830
So that's what it's doing right now.

01:10:37.830 --> 01:10:43.290
It's just getting the images and it's just extracting what it needs to extract.

01:10:43.410 --> 01:10:45.630
Typical Docker stuff as of right now.

01:10:53.720 --> 01:10:54.480
It's building

01:11:06.860 --> 01:11:09.860
the engine stuff right now, as you see right here as well.

01:11:10.400 --> 01:11:11.140
Engine.

01:11:11.860 --> 01:11:16.140
So we have our engine image being pulled and built.

01:11:23.880 --> 01:11:26.860
So this might take a bit.

01:11:26.860 --> 01:11:34.640
Depends on, obviously, your connection and the hardware that you have on what you're running on.

01:11:36.620 --> 01:11:38.580
But usually it goes pretty fast.

01:12:13.610 --> 01:12:16.650
So as you see here, we're creating the network.

01:12:16.690 --> 01:12:18.210
It's a mass network.

01:12:18.210 --> 01:12:23.610
It's just a network within our Docker Compose environment that helps all the containers talk to each other.

01:12:23.970 --> 01:12:26.950
Like I said, we have low-key here for log management.

01:12:27.270 --> 01:12:29.530
AssetDB, that's where we store our assets.

01:12:30.650 --> 01:12:33.930
We're using syslog for our logging services.

01:12:33.930 --> 01:12:35.070
We're using Grafana.

01:12:35.670 --> 01:12:38.110
Like I said before, Grafana is our web interface.

01:12:38.110 --> 01:12:46.530
If you're using this on an actual GUI, I'll show you guys what you would normally need to write in to be able to view it.

01:12:47.470 --> 01:12:49.070
And then, of course, we have the engine.

01:12:51.490 --> 01:12:53.470
So just doing some extra stuff.

01:12:53.470 --> 01:12:56.190
Everything should come up healthy at this point, right?

01:12:56.930 --> 01:13:00.710
If it's not healthy, which is usually going to be low-key for this case.

01:13:00.710 --> 01:13:02.630
I usually see it show up low-key.

01:13:02.630 --> 01:13:12.850
I'm not sure if it does the same thing with Grafana, but if it shows up as not healthy, then like we said before, check your data directory and your logs directory, the permissions on that.

01:13:13.250 --> 01:13:25.050
If it's not, 777, so read, write, and execute on for everybody, so including the owner, the group, and everybody else, then you're going to have trouble with that as of right now.

01:13:25.150 --> 01:13:29.270
So if you did that, it should look like this for now.

01:13:43.090 --> 01:13:43.590
Yeah.

01:13:44.230 --> 01:13:44.970
Cool.

01:13:44.970 --> 01:13:46.070
Yeah, I can do that.

01:13:49.440 --> 01:13:51.880
So how do I...

01:14:00.940 --> 01:14:01.420
So...

01:14:03.100 --> 01:14:04.060
Yeah?

01:14:04.980 --> 01:14:05.520
Okay.

01:14:05.520 --> 01:14:06.280
Yeah.

01:14:08.380 --> 01:14:08.880
Okay .

01:14:09.060 --> 01:14:11.280
So let's see here.

01:14:15.080 --> 01:14:15.940
Alright.

01:14:15.940 --> 01:14:16.480
So what was it?

01:14:16.480 --> 01:14:18.120
Docker compose stats, right?

01:14:18.120 --> 01:14:18.980
Alright.

01:14:20.560 --> 01:14:21.100
So...

01:14:22.840 --> 01:14:28.500
This is all of the statistics with what's going on within our environment.

01:14:28.940 --> 01:14:33.800
What's pretty cool is there's not that much memory usage, right, as we see as of right now.

01:14:34.020 --> 01:14:35.760
But that's because we're building stuff.

01:14:35.760 --> 01:14:41.060
Once we actually get the enumeration to run, you'll see how efficient that is as well.

01:14:42.340 --> 01:14:42.900
So...

01:14:44.060 --> 01:15:00.620
Also, if you want to check out what ports you're binded to with these services, just to clear anything up, specifically for Grafana, right, if you're curious about that, it's binded to 3000.

01:15:00.620 --> 01:15:03.800
So you'd want to probably connect...

01:15:03.800 --> 01:15:12.480
If you want to see the web interface, you want to connect to it on a browser, just put your local host address and you should be good with port 3000.

01:15:13.400 --> 01:15:14.280
Specifically.

01:15:18.590 --> 01:15:20.050
I'll put the stats up.

01:15:58.210 --> 01:15:58.850
Okay.

01:15:58.850 --> 01:16:01.410
So now we have everything set up and it's building.

01:16:01.650 --> 01:16:05.230
If it builds correctly, everything, you should get this progress bar.

01:16:05.230 --> 01:16:08.650
That's the Amaz client doing its thing.

01:16:08.650 --> 01:16:15.690
It sent a request to the engine and now the engine is processing all the events that it came up with and so on and so forth.

01:16:15.770 --> 01:16:18.050
We want to check out the stats right now.

01:16:18.110 --> 01:16:20.910
So minimal usage still.

01:16:20.910 --> 01:16:24.630
We're only using 138 megs as of right now.

01:16:24.630 --> 01:16:28.130
So that's only 3% of what we gave it for the limit.

01:16:28.950 --> 01:16:31.010
And it'll be pretty low.

01:16:31.010 --> 01:16:33.370
I mean, this is pretty impressive as of right now.

01:16:34.050 --> 01:16:39.510
Other tools, even the older client, it would probably use just a bit more.

01:16:39.510 --> 01:16:41.690
But this is pretty efficient.

01:16:41.830 --> 01:16:43.950
And this is actually really impressive.

01:16:44.830 --> 01:16:46.330
It handles the events just well.

01:16:46.330 --> 01:16:47.330
It drops them just well.

01:16:47.330 --> 01:16:54.610
And given that garbage collecting automatically, it means that we're being very memory efficient in this case.

01:16:58.490 --> 01:16:59.750
We're going to check it out.

01:16:59.750 --> 01:17:01.210
Progress bar still going.

01:17:01.350 --> 01:17:05.130
This is how many events we have and this is how many we processed.

01:17:05.370 --> 01:17:07.350
Obviously we have a nice little percentage here.

01:17:07.850 --> 01:17:09.670
So it should give you an idea.

01:17:23.360 --> 01:17:24.600
Cool.

01:17:31.020 --> 01:17:36.580
So, as he said, it's pretty efficient.

01:17:36.580 --> 01:17:42.520
And we've had some interesting sponsors for this project recently.

01:17:42.520 --> 01:17:44.700
One of which is on my shirt right here.

01:17:44.700 --> 01:17:46.140
Fortified data.

01:17:46.540 --> 01:17:54.260
And even though we've made sure they realize that what we're showing right now is beta technically.

01:17:54.900 --> 01:17:57.020
Kind of bleeding edge for the project.

01:17:57.180 --> 01:18:02.600
They have said, well, it works better than what I used to be able to get.

01:18:03.340 --> 01:18:05.160
And they're using it.

01:18:05.160 --> 01:18:11.240
And they've been able to confirm thousands of customers are being monitored with this.

01:18:13.420 --> 01:18:15.820
Let's just call it every week at least.

01:18:15.960 --> 01:18:19.220
With potentially thousands of namespaces.

01:18:20.280 --> 01:18:23.840
A huge number of targets.

01:18:23.840 --> 01:18:31.780
And it's all being managed and all the data is being collected by what you're seeing right now.

01:18:31.780 --> 01:18:36.200
So, of course, we've got a pretty small target that Adam's using here.

01:18:36.300 --> 01:18:37.200
OASPA mask.

01:18:37.200 --> 01:18:39.160
We're just keeping this simple and light.

01:18:39.160 --> 01:18:44.760
But you can fire this at pretty large scopes.

01:18:44.980 --> 01:18:48.100
And this can keep up.

01:18:48.100 --> 01:18:56.900
I mean, actually, the only even fortified data has said, Postgres pretty much laughs at us with this.

01:18:56.900 --> 01:19:01.160
I mean, Postgres is a beast and it can handle this quite easily.

01:19:01.440 --> 01:19:08.640
What we're doing with it doesn't even tickle Postgres.

01:19:10.300 --> 01:19:24.200
If you ever had say scalability issues in the past with this or concerns about whether this could handle the amount of work that you were going to throw at it, I would say we kind of have confirmation that that's not, at least right now, an issue.

01:19:24.220 --> 01:19:26.320
And we're going to be trying to keep it that way.

01:19:31.630 --> 01:19:32.610
Good point.

01:19:33.870 --> 01:19:36.310
See, now our progress bar just went down a bit.

01:19:36.310 --> 01:19:42.050
But that is because one of these handlers just found a crap ton of data.

01:19:42.250 --> 01:19:43.430
Additional events.

01:19:43.730 --> 01:19:45.570
So, that might trick you a bit.

01:19:45.570 --> 01:19:47.370
You might be sitting at 96 for a little bit.

01:19:47.370 --> 01:19:49.630
The next thing you know, you're like at 70.

01:19:49.630 --> 01:19:56.930
Just because one handler possibly found 40 other different events that it just dispatched to our pipeline.

01:20:00.640 --> 01:20:02.400
And same thing again.

01:20:02.400 --> 01:20:03.820
And look at this again.

01:20:04.760 --> 01:20:09.010
Now we went from 96 to 1,200.

01:20:11.500 --> 01:20:17.400
And even then, still pretty memory efficient.

01:20:27.800 --> 01:20:32.880
Now hopefully, you know, this thing does its enumeration nice and quick.

01:20:36.940 --> 01:20:39.060
What's the longest it's enumerated at?

01:20:39.820 --> 01:20:43.920
I've had it sometimes with the math before too.

01:20:43.920 --> 01:20:45.340
Sometimes it could be days.

01:20:45.340 --> 01:20:47.980
Just because of how many... That question just varies.

01:20:48.100 --> 01:20:51.680
Just because of what are you running this on?

01:20:51.680 --> 01:20:53.100
Who are you running this against?

01:20:53.100 --> 01:21:00.780
If you're running this against a big tech company, you're bound to get probably tens of thousands of assets you probably need to find.

01:21:00.780 --> 01:21:01.600
So...

01:21:03.160 --> 01:21:08.080
I wouldn't be surprised if it lasts you a long time with some cases.

01:21:08.420 --> 01:21:12.900
But that's just the nature of the organization that you're running this against.

01:21:46.980 --> 01:21:50.160
Even though it has a bit, it's chugging along pretty decently.

01:21:51.580 --> 01:21:57.340
So even when we do have a lot, we're tackling this on at a pretty fast rate.

01:22:50.160 --> 01:22:52.100
Now we're three quarters of the way there.

01:22:54.540 --> 01:22:56.660
Like I said, this thing is just chugging along.

01:23:09.770 --> 01:23:18.150
For the sake of this demo, I hope we don't get another 500 events just get thrown in my face right now.

01:23:50.240 --> 01:23:52.220
Just got two more left.

01:23:52.380 --> 01:23:53.640
One more.

01:24:23.900 --> 01:24:26.850
So now we're done with our enumeration process.

01:24:28.620 --> 01:24:30.180
Woohoo, right?

01:24:31.640 --> 01:24:32.180
So...

01:24:32.180 --> 01:24:35.000
You could do a lot of things here at this point, right?

01:24:36.120 --> 01:24:39.240
For this case, say I wanted to just get emails.

01:24:40.700 --> 01:24:45.780
I could just say docker-compose run dash dash rm.

01:24:45.780 --> 01:24:48.420
Same thing, but I could do emails for this.

01:24:48.420 --> 01:24:52.760
The mass client supports this sub-command right here called emails.

01:24:52.820 --> 01:24:55.200
And you just got to type in the domain that you're looking for.

01:24:55.200 --> 01:24:59.900
And if I click enter, it'll do the typical just checking the head's health.

01:24:59.900 --> 01:25:02.420
And all of these emails right here just showing up.

01:25:02.420 --> 01:25:06.460
I mean, if you want, I could probably do a word count real quick.

01:25:06.900 --> 01:25:09.840
I just hope it doesn't include the...

01:25:09.840 --> 01:25:12.160
Yeah, okay, we'll see.

01:25:13.840 --> 01:25:17.320
So at this point, we got 1,037 emails.

01:25:17.560 --> 01:25:20.700
Now, this could vary, right?

01:25:20.700 --> 01:25:24.060
So we have a verification handler here.

01:25:24.880 --> 01:25:30.680
Now , the way our engine works with the verification handling is if we even attempt to...

01:25:30.680 --> 01:25:41.140
If we even attempt to verify this and it doesn't come out confident enough to say that it's verified or it's legit, we'll throw this out.

01:25:41.200 --> 01:25:51.000
Now, with my case, the credits that I used since I've done so much testing, I ran out of credits for verification purposes.

01:25:51.000 --> 01:26:05.340
But if there is a point where we can't verify it and there's no true way to know, and even if you set it so that you don't want it to be verified, whatever you get, just dump it in there, that's just what's going to happen.

01:26:05.340 --> 01:26:11.000
So if we haven't even attempted to verify, then there's no way that we can know, thus, that we're dumping this in.

01:26:12.100 --> 01:26:18.740
So if you do have credits for an API that we support where it does verification, your results may vary.

01:26:18.740 --> 01:26:21.920
But this is, for my case, what I got out of my results.

01:26:22.960 --> 01:26:38.580
You could also run, if you don't want to use the amassed emails subcommand, this is the beauty of AssetDB, you could just drop in and run any SQL query that you want to get whatever answers that you're looking for.

01:26:38.960 --> 01:26:41.420
Real quick, show them the subs output.

01:26:41.420 --> 01:26:43.300
Yes, so I'll show you the subs output.

01:26:48.920 --> 01:26:50.900
Just like that?

01:26:57.760 --> 01:27:11.300
So this shows us everything that we've found as of right now, including the subdomains and these net blocks that we found, along with the ASNs that host those net blocks.

01:27:11.820 --> 01:27:19.620
So you can see a couple of DigitalOcean instances here running, Amazon instances running, and a bunch of things that are masked behind CloudFlare.

01:27:19.800 --> 01:27:22.380
So this is really good information.

01:27:22.380 --> 01:27:27.180
And this just shows you, just with tooling, what you can make out of the AssetDB and OAM.

01:27:27.180 --> 01:27:28.620
This is all done with tooling.

01:27:28.620 --> 01:27:37.720
Now, you could, of course, make your own tooling, or you could do whatever manual query that you want to spit out whatever that you're looking for.

01:27:37.720 --> 01:27:48.860
In this case, we have our own subcommand to specifically show us CIDRs, ASNs, subdomains, all in this one little output right here.

01:27:48.860 --> 01:27:54.780
But that's just the power of us doing the same thing that we encourage you guys doing, which is just utilizing the AssetDB.

01:27:55.820 --> 01:27:57.020
That's the beauty of it.

01:28:19.170 --> 01:28:21.950
So I'm just going to hop into my... okay.

01:28:44.480 --> 01:28:47.680
I mean, I think you're better off explaining this.

01:28:50.140 --> 01:28:50.900
All right.

01:28:50.900 --> 01:28:52.020
So we had a question.

01:28:52.020 --> 01:29:01.260
I'll summarize it or paraphrase it as how do we avoid reporting false positives with this architecture or infrastructure?

01:29:01.320 --> 01:29:03.660
Or, sorry, engine.

01:29:04.320 --> 01:29:17.380
So everything that the engine finds, when you submit internally, when I say we, I mean like if your plugin or handler says something was found, throw it back in the engine and investigate.

01:29:18.520 --> 01:29:22.080
If you have support, we will validate.

01:29:22.380 --> 01:29:28.140
So like in the case of the FQDNs, we do the DNS lookups to make sure that these things are still there.

01:29:28.300 --> 01:29:33.580
We can reach out to the IP addresses and make sure they're still responding.

01:29:35.040 --> 01:29:49.040
Adam already covered the fact that when we find the email addresses, if you have the support turned on, we'll use the verifiers to see that these are still active emails.

01:29:49.420 --> 01:30:00.240
So we, I'll call it, we do our best with what we have to validate the findings instead of just dropping a pile of dated information in front of you and saying good luck.

01:30:00.240 --> 01:30:10.260
Also, in the database, let's say you ran this a month ago and it found some things and now they're not active anymore.

01:30:10.960 --> 01:30:18.740
If you run the enumeration again or refresh the data, it will still show well, a month ago, we found it.

01:30:18.960 --> 01:30:28.940
Now, we didn't find it because everything that's in there, it's going to check that stuff again, even if you don't have the data sources turned on anymore that allowed you to find it.

01:30:28.940 --> 01:30:33.420
It's going to say, well, it's in the database, so we're going to look for it again.

01:30:34.100 --> 01:30:36.180
And it's going to check to see if it's active.

01:30:36.180 --> 01:30:46.900
If it's not, it's very easy for you to say, show me everything that a month ago was discovered and now it has not been discovered.

01:30:46.960 --> 01:30:48.200
Hence, it's gone.

01:30:48.200 --> 01:30:49.640
Or you could go the other way around.

01:30:49.640 --> 01:30:56.400
You could say, show me only the things that have been found, but a month ago we did not find these things.

01:30:56.400 --> 01:30:58.680
Hence, they're new or they're popping up.

01:30:58.900 --> 01:31:06.980
So , all the historic information is maintained with the proper timestamps to make it easy to do the queries.

01:31:07.260 --> 01:31:08.620
We have another question.

01:31:08.620 --> 01:31:10.120
I hope that answers your question.

01:31:10.660 --> 01:31:11.780
Next question?

01:31:12.080 --> 01:31:13.820
Yeah, just get close to him.

01:32:52.130 --> 01:33:01.590
So, this is just an example of me running a simple SQL query on this thing.

01:33:01.590 --> 01:33:08.070
So, I just dropped into the AssetDB container and just ran bash on it.

01:33:08.070 --> 01:33:13.770
And I just used Postgres PSQL with the username flag being a mass as a user.

01:33:13.770 --> 01:33:17.350
And then the database I was connecting to, which is AssetDB.

01:33:18.290 --> 01:33:22.310
It's obviously different if you changed your AssetDB environment file.

01:33:22.510 --> 01:33:25.130
But , say I just wanted to get everything, right?

01:33:25.130 --> 01:33:26.330
This is what I mean.

01:33:26.330 --> 01:33:31.930
Where you could just do simple SQL queries or even complicated ones to get what you're looking for.

01:33:31.930 --> 01:33:35.030
So , just like I always said here, select everything from assets.

01:33:35.190 --> 01:33:36.970
Everything will show up here, right?

01:33:37.250 --> 01:33:44.510
And then, just to show you the other table with relations, these are all the relations that show up, right?

01:33:44.510 --> 01:33:49.710
Now, if you see there, it says what type of relation it is.

01:33:49.710 --> 01:33:53.590
A record, quad A record, so on and so forth.

01:33:54.930 --> 01:33:57.190
Let's see here if there's anything else.

01:33:57.190 --> 01:34:03.730
There's like nodes, contains, for like CIDR containing IP addresses, pretty sure.

01:34:04.090 --> 01:34:09.170
But, this is just another way to just look at your data as well, by just simple SQL queries like that.

01:34:09.170 --> 01:34:14.090
It could be complicated, of course, too, but just showing you that there's a different approach that you could tackle as well.

01:34:15.630 --> 01:34:17.110
Yeah, you showed a query?

01:34:17.170 --> 01:34:20.390
Yeah, I just did a basic one, just select everything from it.

01:34:21.070 --> 01:34:22.210
And it could be done.

01:34:22.310 --> 01:34:25.690
I mean, maybe I'm just too comfortable with databases.

01:34:25.690 --> 01:34:34.710
I've been, you know, doing database programming for a long time, but if I were a user, I think this is something that would excite me a lot, right?

01:34:34.710 --> 01:34:45.970
Because now, if you don't like the way we're presenting the data, or you don't want to parse our output, or you need this pulled directly into something else that you're doing, do it.

01:34:46.290 --> 01:34:50.370
It's like, again, I would say, it's easy.

01:34:50.650 --> 01:34:51.190
Right?

01:34:51.190 --> 01:34:59.050
Maybe for someone who's never done this before, it might seem slightly intimidating, but you can look up the basics of SQL in an evening, right?

01:34:59.050 --> 01:35:00.310
And it's not hard.

01:35:00.830 --> 01:35:09.170
So, and we have example queries that we can point you to if you want to know some, say, popular extractions of the data.

01:35:09.170 --> 01:35:13.130
We've got them all laying around where we can just hand them out to people.

01:35:13.350 --> 01:35:22.150
But I think this is how I would want to pull the data into my, say, workflow, is just go get it out of the DB and bring it to whatever it is I'm doing, right?

01:35:22.150 --> 01:35:34.550
Don't bother, say, using our command line tools or whatever because it's just, you know, it means now you have to probably write scripts and you've got to parse the data and pull it out and put it into a file, probably, and then ingest it into something else.

01:35:34.550 --> 01:35:42.150
It's like, it's just a headache when you could directly extract the data and bring it into whatever you're doing.

01:35:46.010 --> 01:35:51.790
So, for my environment, I'm not going to be able to demo it because it's just headless.

01:35:51.950 --> 01:36:02.950
But if you want to see the web UI and if you have the Compose running, all you've got to do is just I'll just show you exactly where the bound is, where it's binded to.

01:36:02.950 --> 01:36:04.370
So let me just get off this.

01:36:06.870 --> 01:36:13.350
So as you see here, Grafana is binded outside for port 3000.

01:36:13.350 --> 01:36:26.250
So if you just want to simply look at the web UI, just go on a browser, use a local host address, and then just put port 3000 on it, and it should show up on your browser with all the pretty information that you want to see.

01:36:26.250 --> 01:36:32.230
But just for my case, it's headless, it's on a VPS, so I'm not going to be able to do that for you, unfortunately.

01:36:40.410 --> 01:36:41.970
Just one comment.

01:36:43.330 --> 01:36:58.810
Also, if you're liking the UI, and you want to play with that, and you want to take advantage of the geolocation mapping, go to IP2 Location Lite, which is the free option.

01:36:58.810 --> 01:37:01.770
You're going to have to sign up for it, but there's no cost.

01:37:01.770 --> 01:37:04.370
It's their free version, or community version.

01:37:04.390 --> 01:37:19.270
But make sure that you get the CSVs for both IPv4 and v6, and it's the one that, for each of those, it's the option that has the largest number of fields, which I believe they call DB11.

01:37:19.750 --> 01:37:35.790
If you pull those down, bring the CSVs, unzip them, bring the CSVs into the compose directory, and then you run the script in there called, I think it's upload IP2 location data, or something like that.

01:37:35.790 --> 01:37:48.850
It will create the database, upload the data, all for you, and the UI will immediately start pulling from that DB and populating the map.

01:37:49.050 --> 01:37:55.010
So it's about as easy as we could get it for you so far, since you have to go get the data yourself.

01:37:55.110 --> 01:37:57.010
We're not allowed to give it to you.

01:37:57.010 --> 01:38:03.170
And it does get updated fairly frequently, so I would say you have to maintain it to a degree.

01:38:03.450 --> 01:38:12.170
But it is pretty fun to have it, and can be enlightening to see where these things are popping up as far as, well, where are these things being hosted, and things like that.

01:38:12.170 --> 01:38:13.350
I like it.

01:38:17.680 --> 01:38:19.880
Okay, let me just bring the slides up here.

01:38:30.330 --> 01:38:40.790
Okay, yeah, so just what I showed you guys before, you could use just any other tool, or if it doesn't satisfy your needs, you could just query the DB directly.

01:38:40.910 --> 01:38:42.130
That's the beauty of SADB.

01:38:42.130 --> 01:38:51.850
In this example, I have another example right here, where it just specifically says, since it's in JSON, you just have to get the column of the actual

01:38:55.030 --> 01:39:03.450
schema , and then you have to dig into the content column, you have to dig into the key of the JSON that you're looking for.

01:39:04.190 --> 01:39:10.290
So in this case, we're just getting any of the full name addresses from assets where the type is equal to email address.

01:39:10.990 --> 01:39:12.690
It showed up just fine.

01:39:13.170 --> 01:39:17.830
It does the same exact job, but there's different ways that you could do it.

01:39:20.050 --> 01:39:26.490
So, this just goes to show that attack surface mapping is just more than just infrastructure.

01:39:26.490 --> 01:39:28.030
Let me stand up for this.

01:39:29.030 --> 01:39:34.030
So, for this case, think about how social engineering can be done.

01:39:35.770 --> 01:39:43.370
When you're trying to social engineer anyone, or just do any sort of attack, you're better off knowing as much as you can about a person.

01:39:43.370 --> 01:39:53.210
Now, usually with social engineering, what probably works in your best is how to get the victim to feel for you in some sort of way.

01:39:53.210 --> 01:39:57.810
So, in this case, traditional IT mappings won't really do it for you.

01:39:57.810 --> 01:40:06.270
You have to really expand upon that and look at people, what they do, their phone numbers, where they live, find anything around the area.

01:40:06.270 --> 01:40:17.390
This will help you dig deeper into seeing what your possible weak points are as a blue team, but also seeing how you can take advantage on the red team side as well.

01:40:17.590 --> 01:40:24.370
So, that's what the beauty of viewing attack surface mapping as more than just infrastructure.

01:40:25.410 --> 01:40:31.990
I want to go over the upcoming OEM types that we have that are IT asset-related and non-IT related.

01:40:32.010 --> 01:40:33.810
So, as you can see here, we have a bunch .

01:40:33.910 --> 01:40:35.150
I can name them.

01:40:35.250 --> 01:40:43.710
We've got a couple here, like TLS certificates, Whois records, the registrars for domain names, but also for the non-IT aspect of it.

01:40:43.710 --> 01:40:55.250
We were trying to get individuals, organizations, phone numbers, street addresses, affiliated individuals, third-party vendors, so on and so forth.

01:40:55.250 --> 01:40:59.190
Because, like I just said, it's more than just IT assets.

01:40:59.190 --> 01:41:01.850
If you're an adversary, you're going to be looking more.

01:41:01.850 --> 01:41:03.510
You won't care what you find.

01:41:03.510 --> 01:41:05.890
You're going to just find something to take advantage of.

01:41:09.490 --> 01:41:11.730
That's about it that we have.

01:41:11.730 --> 01:41:21.170
We have the Q&A up, so any questions that you guys may have, feel free to ask and we'll be here to just answer anything that you guys have questions for.

01:41:29.630 --> 01:41:31.370
Thank you guys very much.

