start	end	text
0	6080	Up next, it's time for the second workshop for today.
6080	14380	And this workshop is OAMAS, Expanding Data Horizons, Amassing More Than Subdomains.
14380	21940	This talk is brought to you by Jeff Foley, who has 20 years of experience with a focus on research and development.
23360	29160	He also performs assessment of security in critical information technology and infrastructure.
29160	34280	He is the project leader of AMAS, an OS project.
34500	40280	Jeff is also a lecturer, and he teaches penetration testing at State University of New York.
42180	47560	In his spare time, Jeff enjoys experimenting with new blends of coffee, which is awesome.
48480	53740	And giving back to the information security community is also one of his hobbies.
54660	58320	I'd like to talk to you more about coffee as well, after AMAS, AMAS first though.
59920	67660	Right, in this talk, here we're going to get an in-depth workshop on the OAMAS project.
67860	74860	This is a powerful open source tool used for network mapping, attack surface analysis, and asset discovery.
74860	78500	This is more than just network mapping happening over here.
78680	82380	And it's an open source tool, so that's even better.
84060	93620	We will get to know the advancements in data collection capabilities within AMAS, leading to its advancement to an amazing OSINT collection system.
93780	98160	So yes, let's have a good demo and a hands-on experience with this.
98160	99420	Please welcome Jeff.
103590	106690	All right, how many people here have used AMAS before?
107730	110310	All right, good, we've got some hands up, I love it.
111010	120510	All right, so, most of the time, I've been the primary speaker at these events, but this year, we have a special opportunity.
120510	127220	We have some excellent contributors to this project, a great community that we've built around this project.
127610	133350	And I would like to introduce Adam Rosick, who has been a major contributor.
133410	140710	He knows so much about the enhancements we've made to the project in the last 12 months or so.
141550	154550	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.
159490	162470	Can I skip ahead here?
163350	166450	Yeah, we'll do a proper intro here.
167830	184490	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.
184990	193790	He's just been so active ever since he got out of his academic career.
193970	202450	So, definitely a great person to have on this project, and I would like to now let him take over.
202690	209710	I'll be here answering questions or adding to what we're talking about here, but he's going to run this.
215170	221090	So, I just want to say thank you very much to Jeff for giving me this opportunity to do a talk right now.
221410	224190	It's my first one, so bear with me, everybody, all right?
225130	233690	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.
236030	238350	Do you guys see me well in the back, by the way?
238350	238830	Yeah?
238830	239430	All right, cool.
240630	241250	So...
249720	252660	Okay, so...
252660	254560	Let me make this bigger.
254560	255720	All right, there we go.
255740	259520	So, the history and the evolution of AMAS, right?
259520	274400	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.
274820	281860	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.
281860	283360	Is that right, in some regard?
283600	285360	Yeah, close enough, right?
285820	286280	So...
288500	294000	As it was being developed, there was a realization that was scary, but true.
294180	303640	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.
304740	310460	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.
310940	318560	That is what kicked off what we all know as the go-to subdomain command line tool at the time being, called AMAS.
318700	331080	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.
333620	344360	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.
344360	361040	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.
362500	374940	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.
376640	383060	So, the core functionalities of this, there are many use cases for this, but I only have like two listed up here.
383580	387760	So one of them is organizational surveillance.
388980	399940	With the mass providing visualization, organizations can easily actively monitor their attack surface to spot any anomalies.
399940	412220	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.
412220	421720	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.
421820	424820	And this is obviously used for security assessments.
425300	431000	So, it helps find assets that would otherwise be missed if you were to do this manually.
431000	439700	This does it in a systematic approach so otherwise you would be able to miss a lot of things by doing it manually.
439700	444160	Day by day, you're going over multiple things multiple times.
444540	445980	Eventually, you're going to miss some stuff.
445980	453700	Obviously, with automation in general, not even with this tool but with any other tools, that is the main benefit of that.
454320	457440	So that's also with blue teaming and red teaming.
457520	465980	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.
466380	468000	Anything you want to add on to this?
472910	490110	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.
490310	494730	You don't have everything necessarily has to be baked into amass.
495050	502370	You could also be pulling the data out obviously to create your own reporting, whatever.
502370	523530	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,
523530	541550	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.
542170	543730	That's why we created this.
543730	547390	It really was to say, well, what if we missed something in amass?
547390	550730	What if it doesn't do exactly what you wanted it to do?
551850	556450	Now we can just kind of say, well then, build it the way you want to build it.
556710	558310	Or do it the way you want to do it.
558310	564510	Because in the past we've had data models that were, I would say, difficult to understand.
564510	567750	We used database management systems that were proprietary.
567870	570410	Not many people were comfortable with it.
570490	573130	Now, the data model is completely open source.
573130	574190	It's documented.
574190	578510	We're using Postgres as the DBMS.
578590	582410	It makes all of this quite easy for people to work with.
582410	586130	So that's the real big benefit here.
586130	591250	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.
592790	595790	Haddix called this the Recon Data Standard.
595790	600170	I tried to stay away from the word standard last year, but he, of course, dropped the bomb.
601350	602750	But he's right, kind of.
602750	605050	That's what this is, or what we're trying to do with it.
608730	609450	Awesome.
609630	613290	So here is our agenda that we're going to talk about.
614250	618310	We're going to start with understanding Amass's data collection capabilities.
618310	620470	We're going to touch a little bit hands-on.
620470	627810	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.
627930	633930	And then we're going to, of course, demonstrate the new OEM asset types being collected by Amass, one of them being the emails.
634050	637150	And then we're going to head off to a Q&A.
638210	639970	Hopefully that makes sense to everybody.
641190	642090	All right.
642090	646690	So let's start off with understanding Amass's data collection capabilities.
647190	660030	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.
660030	668510	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.
668650	669130	Right?
669130	672350	So I normally don't like to say...
672350	684390	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.
684390	699270	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.
700910	701790	There are...
701790	704310	well, like I said before, we'll dive more into handlers.
704530	715250	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.
715370	718430	And I will touch upon that any sooner.
719170	721410	Anything you want to add on this one, or we're good here?
725800	727040	Nothing big.
729920	740680	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.
740680	741760	Perhaps you know this.
741760	749040	You give them the config, they go out and pull things, they sort it, get unique results, and print it.
750540	755400	Amass has always said, oh, you found something, put it back at the beginning, and let's re-evaluate.
755400	757300	Let's see what else comes out of it.
757340	761980	That's part of why it takes longer to run it, because it's searching for more things.
762880	764680	And it still does pretty good, in my opinion.
767020	772360	In this event-driven architecture, it's that times ten.
772360	773280	It's pure.
773280	790720	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.
790720	799020	And it's only based on, the only, say, constraint or thing that keeps all this ordered, is the OAM data model.
799020	799860	That's it.
799860	824060	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,
824060	829660	feel it, go get more findings from it .
830420	832340	So it's that simple.
832360	835500	As Adam already said, it's also that chaotic.
837020	841320	But that simplicity has made it so easy to extend this.
841320	842620	It's all dynamic.
842680	850080	It's all based on your configuration and what was registered by the plug-ins that were compiled into the engine.
850080	856200	So it's basically like, do we have the capability and what did the user want to do here?
856200	865060	And as long as there's overlay or overlap there, then there will be pipelines to execute for those data types.
866000	871040	So the reason he's telling you about this, though, is this is actually pretty exciting.
871040	875040	It's been very interesting what this has yielded since we've built it.
875040	877160	So we wanted to make sure everybody knew about it.
879580	880320	Exactly.
880320	885340	And we have a visual of the event-driven pipeline.
886280	898960	So anything that comes into this will be utilized by any of the handlers that, like he says, overlaps with what the user wants.
898960	907260	So say for this case, we have an FQDN and say this was just a C data for whatever client utilized this engine.
907560	926400	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.
926400	934760	But usually when it does produce something, it'll get right back into the pipeline as another event.
935100	938780	And this will usually span out to multiple events.
938780	943660	It could be like 5, 10, 50, however many it actually produces.
943660	945540	So say in this case it produces 20 of them.
945580	949680	You'll have 20 of these that'll get put right back into the event pipeline.
949700	952680	And then if it has anything else that we want to do with the IP.
952680	956240	So say in our configuration we wanted to produce a net block.
957560	965600	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.
965740	968920	And we're going to work on those handlers.
968920	970400	It's going to do the processing.
970760	974460	This will happen and repeat until it comes to a halt .
974460	981160	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.
981160	984600	Or if it has nothing else that it's capable of at the time being.
984960	988180	Did I mess anything up?
988180	989400	Or did I miss anything?
991300	993840	Yeah, I think I got most of that stuff.
993980	997640	So what we have here are the supported OEM types.
997640	1001380	There are plenty more that we are going to add and I'll talk about that much later.
1002240	1013980	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.
1013980	1016340	We just added email addresses.
1016560	1027320	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.
1027320	1029380	That's the beauty of this engine, right?
1030020	1042300	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.
1042300	1049240	You can make whatever handler that you want or you can remove any handler that you want and it will work perfectly fine.
1050300	1052000	And that's the beauty of it.
1052000	1054980	And it's really easy to create.
1055260	1062180	In this case like I just said the integrations are enhanced yet easy.
1063280	1068240	With the previous tool, we've used Lua, pretty sure, right?
1068680	1087140	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,
1087140	1096240	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.
1096240	1098280	Hence why we had to create this engine.
1098340	1101360	The way we have this now, it's literally just like this puzzle piece right here.
1101360	1115480	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,
1115480	1118740	you can easily build it and it will work seamlessly in that manner.
1119860	1121260	There's benefits to this, right?
1121260	1129880	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?
1130920	1137040	You could keep that all to yourself and just still be able to use it effectively with the engine.
1137040	1144960	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?
1144960	1147240	That's the beauty of it, the modularity of it.
1147240	1159580	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?
1160260	1162540	If you want to add anything while I look up, go for it.
1170720	1177200	Only to only to repeat what he kind of already said.
1180880	1190060	The only limitation to what you can put in as a plugin or how you can extend this is the OAM.
1190100	1202920	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.
1202920	1206300	You could write this in an evening.
1206440	1212380	I mean it's literally that easy and there's nothing else about Amass that you need to know.
1212640	1215080	Like he said before that wouldn't have been the case.
1215080	1219420	There would have been many changes you would have had to make or had requested that we make.
1219640	1224340	Now, you could just do it and recompile it and you're rocking and rolling.
1224340	1236020	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.
1236020	1242700	And we're interested in hearing anyone's feedback about this as well because we're trying to empower all of you.
1242700	1244080	That's the point here, right?
1244080	1250620	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.
1253450	1261850	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.
1261850	1263690	All of that is appreciated, right?
1264150	1264550	So...
1264550	1266530	Yeah, make it bigger?
1266530	1267290	Alright, cool.
1268610	1270910	Alright, you guys, everyone sees it pretty clear, right?
1270910	1273350	If not, raise a hand and I'll make it bigger.
1273410	1276010	But this stuff we don't need to worry about.
1276230	1286030	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.
1286190	1292790	You're making a struct and you are able to just make sure it aligns with the correct interface that we use.
1292790	1295650	Nonetheless, it's very easy to register.
1295670	1309690	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.
1309730	1312490	And then the callback is a callback function that we have.
1313990	1317150	I'll show you how many lines this callback function is.
1317150	1319090	It's quite crazy.
1319170	1320770	It's less than 100 lines of code.
1320770	1330150	If we start here at 65 and go all the way down to 131, that's about 66 lines of code.
1330150	1332270	Like he said, you can make this in the evening.
1332270	1333830	It's very simple.
1333930	1338110	What this handler does specifically, it's called grep.app.
1338450	1351230	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.
1351230	1362510	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.
1363530	1373050	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.
1373130	1377290	But nonetheless, this just goes to show how easy it is to make this type of stuff.
1377350	1378730	It's all ran and going.
1378730	1386290	It's not in Lua anymore, so there may be benefits to using everything natively as opposed to using multiple languages and whatnot.
1386510	1389910	But nonetheless, it's very simple, very easy.
1390110	1391170	It doesn't take that much.
1391170	1398410	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.
1398410	1402890	You can make this in one night, in an evening, while you're watching a movie or something.
1402890	1405830	And yeah, that's the beauty of it.
1405830	1407810	So let me get that thing out of here right now.
1407810	1411530	Unless you guys want to take a look further, but...
1411530	1412690	I'll just get out of here.
1418590	1418990	So...
1420290	1422050	We talk about the registry, right?
1422050	1423890	Let me just pull this up real quick.
1423890	1425190	I'm missing one thing.
1433700	1444720	The registry is what helps the event pipeline determine what it is that we need to do to fulfill the user's needs, right?
1447080	1448820	How do I word this the best?
1449000	1454600	So the plugins, which have handlers, submit themselves in that registry, right?
1455420	1468940	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.
1471740	1477020	And I'll show you, I already showed you guys the registration part and the grep.app.
1479260	1480100	I'm drawing a blaze.
1480100	1481020	Do you have any idea?
1486230	1498270	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.
1498270	1502130	Maybe that's just what you see this as and it's all you want it to do.
1502130	1511290	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.
1512530	1514810	Because the registry keeps track of all this.
1514810	1525830	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.
1525830	1533410	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.
1533410	1536170	We won't call the callback for that one.
1536610	1538370	And it's all dynamic.
1538590	1552610	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.
1552610	1554070	So it's all dynamic.
1554070	1555370	It's all automatic.
1556490	1561210	And like I think we've said earlier, it's based on two things.
1561210	1570690	It's what was registered as capabilities for the engine and what the session configuration said, this is what we're trying to do.
1571470	1579810	The Venn diagram, you might say, where the two overlap, that's what's going to actually happen when this is executing.
1579810	1593190	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.
1593250	1602050	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.
1602690	1605070	So that's why this is so important.
1605870	1609990	It's what makes this... we never have to look at this.
1611230	1621810	We never are finding ourselves touching this or maintaining this because it's handling everything for us and it expands with the OAM.
1621810	1630450	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.
1630450	1639690	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.
1639690	1648390	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.
1652260	1653180	Exactly.
1653180	1657700	So, speaking of that, we have the configuration with the mass.
1657860	1663480	So, last year we talked a bit about how it went to YAML instead of INI.
1664500	1673740	Usually with the last tool, users found themselves often confused with what is the best approach?
1673740	1675340	What are the best options to set?
1675340	1678200	We had a lot of options in our previous tool.
1678700	1688640	But that may have made it a bit confusing for users to identify what is best needed for their situation, right?
1689820	1693620	But with this approach, we decided to take a declarative approach.
1693620	1696620	So, this allows simplicity and readability.
1696920	1699480	So, you don't need to be too specific.
1700080	1701260	I mean, you could, of course.
1701260	1703340	We have a ton of options here as well.
1703440	1708580	But as far as getting what you want, you don't have to write too much.
1708840	1717240	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.
1717400	1720980	And the engine will read that and it will say, okay, no problem.
1720980	1721820	I'll make it work.
1721820	1723380	You don't have to worry about a thing.
1723380	1728620	Of course, you could do things like excluding certain handlers and things of that nature.
1730840	1731340	But...
1731340	1732240	Yeah.
1732740	1734260	Okay, so...
1735440	1742600	And with that being said, what's running this, as we mentioned before, is the OEM, right?
1742600	1746460	If you guys weren't here last year, I'll just quickly go over it.
1746460	1752600	So, it just provides a new standard, just like how Haddock said it, for asset definitions.
1752740	1757920	It represents a framework describing and categorizing any of the assets that you have.
1758260	1761520	So, it categorizes it, like we just said.
1761520	1764420	It could be an FQDN, IP address, whatever you want it to be.
1764420	1766140	If we support it, it could be that.
1766140	1768260	So, we have categorization for that.
1768260	1771280	And we have all the data, which is stored in JSON.
1771560	1780020	It'll say information about such type that we normally see on a usual basis with whatever type comes in.
1781600	1783220	And the AssetDB just holds it, right?
1783740	1790100	We're able to hold it in SQLite and Postgres QL, database management services.
1790440	1794320	For more information, though, you can just head over to the GitHub org page.
1794320	1795780	We'll talk about that.
1797860	1807380	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.
1807400	1812440	So, say, for example, we have a FQDN and an IP address.
1813340	1814920	It's not really...
1814920	1821220	it's worth something, but it adds much more value when you're able to map two things to one asset to another.
1821220	1823740	And it'll go down in a transitive manner, right?
1823740	1829060	So, for this case, we have the relations table being the A record.
1829060	1837720	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.
1837980	1839340	That's the beauty of it, right?
1839340	1840520	And it's not just...
1840520	1841840	it can expand upon it.
1841840	1845900	There'll be a ton of relations that could come from one asset.
1845920	1847180	And that's what the beauty of this is.
1847180	1853420	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.
1853500	1861980	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?
1861980	1863700	That's the beauty of that.
1863740	1867200	More information about that, we can head over right to the org page.
1869660	1878380	Also, with that, with AssetDB, you can ask any questions that you may not find in a standard tool, right?
1880160	1886480	Previously, others would find themselves not saving the information, or...
1887840	1888920	How do I word this?
1888920	1898080	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.
1898080	1901060	The beauty of this is, it's all stored in one spot.
1901120	1905420	And you could use this for multiple tools, and whatever query you want it to be.
1905420	1908500	It could be complicated, or it could be as simple as you want.
1909140	1911400	You can make that happen with this.
1913480	1920800	And the overall design, and the taxonomy of the OAM allows the community to extend it further with new asset types.
1921520	1923600	Any other things you want to say with that?
1925240	1937660	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.
1937660	1939420	And it takes a while.
1939620	1945220	So, it probably got frustrating, I imagine, having to sit around and wait for these things.
1945220	1949160	But with the AssetDB, it's storing all this for you.
1949160	1955720	So the only time you really need to run the enumeration again is when you need the data to be refreshed.
1956020	1958160	Or you think something new could be out there.
1958160	1959940	But otherwise, it's already sitting there.
1959940	1963820	All you got to do is run the query again and pull the data out.
1963820	1967000	I think there's a lot of people, though, that don't actually realize that.
1967120	1970100	And frankly, they're wasting a lot of time.
1970260	1981340	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?
1981340	1984640	Or what, you know, network block is it sitting in?
1984820	1986000	It's all right there.
1986000	1989140	You just have to ask the right question and you can pull that right out.
1989140	1991420	You can pull out the mappings between the two.
1991520	1996440	So, there's a lot of work that this can do for you, so that you're not doing it anymore.
1996440	2007440	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.
2007760	2018860	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.
2022560	2031080	Yeah, and one example of what we've used with the AssetDB information is we've made our own web interface, right?
2031080	2040500	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.
2040780	2050480	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.
2050500	2061920	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.
2061920	2065320	And we have, right here, IP to location.
2066380	2068200	What is it, like a database?
2068200	2072340	Like a local database that tells us okay, most likely it's residing in there.
2072340	2074740	There's a bunch of other capabilities.
2075100	2086540	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.
2091180	2092420	No, I'm sorry.
2093400	2104360	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.
2104360	2119360	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.
2120960	2122900	But it won't be that long.
2122960	2140980	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.
2141860	2143100	And it's just going to do it.
2143100	2144760	Then you just leave it.
2144940	2146620	And it's just going to do it for you.
2146620	2153280	And from that point forward, you could just either keep using these dashboards to look for new findings.
2153280	2158400	You could set up your own queries to pull the data and then do whatever you want with it.
2158400	2163340	But it's just going to start making this all much easier.
2165640	2167980	Some people are already using this.
2168380	2171740	I mean, personally, I'm not a big GUI person.
2171740	2174480	You know, I'm a little tied to the command line myself.
2174480	2177320	But I can see the appeal, why this would be pretty interesting.
2177320	2187960	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.
2190420	2204560	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.
2205360	2207580	So that's pretty exciting.
2207580	2230680	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.
2230680	2234940	That's the real light at the end of the tunnel here.
2239610	2241090	That was awesome.
2241090	2249210	So we're going to now touch upon the demonstration of the new OEM asset types being collected by Amass.
2249210	2252490	In this case, we're going to use the email enumeration here.
2252490	2254290	You guys are free to follow along.
2255370	2261450	What I advise you guys to use for this case is to use Docker Compose to get the full capabilities.
2261470	2274570	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.
2274750	2277370	And, of course, the command line interface.
2277670	2288030	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?
2288030	2296670	You could use any sort of API request to this collection engine, and it'll perform the work for you.
2297450	2302710	So that's also one key thing to notice as well, but nonetheless, let's just go dive into the...
2308450	2310250	Yeah, oh yeah, good point.
2310350	2319390	Okay, so we're going to dive into this, but usually I would highly recommend that you guys use your cellular in this.
2319670	2323710	The network here could be goofy, and you're in DefCon, right?
2323710	2328990	So you shouldn't probably be using that to begin with, but use your cellular.
2329610	2335270	I've had my luck with using cellular, and hopefully the same thing applies to you guys.
2336750	2340530	So we're going to follow along during the demo if you want to.
2342050	2344730	So you could use Docker Desktop.
2344790	2349070	You could install or update Docker and get it on your system.
2349070	2351170	And you could use Docker Desktop.
2351170	2355010	You need Compose in this, so Docker Desktop usually comes with it.
2355010	2358850	I'm going to be taking a different approach, and I'll show you guys exactly that as well.
2358850	2361970	But if you use Docker Desktop, you should be perfectly fine.
2361970	2368810	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.
2372550	2373430	So the
2376820	2385840	Kali repository, it might not be as up-to-date, so you're probably better off using the Docker environment.
2388480	2390860	Yeah, and it's also just not the same exact thing, right?
2390860	2398980	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.
2398980	2409780	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.
2411380	2416060	Yeah, but the big thing is 4.2 is almost a year old.
2416280	2418600	That's what you're going to get from Kali right now, right?
2418600	2421840	That's not what we're talking about today, and that's not where this is going.
2423720	2431660	There's been no release of this for almost a year, because of all the things we're talking about today.
2431960	2437420	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...
2437420	2447260	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.
2448100	2455340	You can't currently use the official release of the tool and get what we're talking about today.
2458510	2459270	Okay.
2459270	2461770	Hopefully that answers all the questions.
2461770	2465630	If anyone has anyone else, feel free to put your hand up.
2466310	2468730	And I'll just start putting on my screen.
2469670	2473610	Do you guys need a moment, by the way, to get Docker Desktop running?
2473810	2475190	Yeah, you guys do your thing.
2476570	2477230	Exactly.
2477230	2481710	Okay, I'll give you guys a bit, and then I'll ask in a bit if we're ready to go.
2485850	2493530	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.
2494730	2497850	If you're trying to get it set up and you have questions, just raise your hand.
2497850	2500610	I can come out and answer your questions quickly.
2527060	2530000	If anyone else needs help, I'm free to help as well.
2629770	2633090	I think it's 3,000, but I'll also check when I run the...
2644200	2644840	Okay.
2649260	2658380	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.
2659460	2661980	And then we'll just dive right into that.
2666880	2685620	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.
2685620	2691340	Otherwise, once the containers are set up, once the containers are running, it's pointless at that point.
2691340	2699420	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.
2699480	2703420	That's for the Postgres DB and for the engine.
2704680	2710060	It's under the config directory that's under the Compose repository.
2710060	2711240	I'll go and show you guys.
2711840	2714620	I'll do it right now and you guys can just follow along too.
2747130	2751450	Let me just...
2760130	2770150	I'm going to mirror my display, so it should pop up of me taking an attempt at the alternate approach.
2776420	2781940	Okay, so I'll minimize this and we'll head on to the terminal.
2784280	2791600	I'm using a digital ocean droplet just to run this, just for the sake of the internet connection.
2791600	2793000	I just want it to be more stable.
2793800	2796020	I'm just going to SSH into this.
2797420	2803240	I have a key-based SSH and I'm going to just switch over to the test user that I have.
2803560	2806480	Let me just see if I have sudo permissions before I even go forward.
2808320	2809460	Alright, we're good.
2811380	2818260	One way is to, of course, install Docker Desktop and you should be fine with the Compose.
2818260	2830120	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...
2830120	2834720	and for my case, I'm running Ubuntu on this droplet, so I'm going to be heading over to Ubuntu.
2835060	2840240	If you have any old versions, just get rid of them.
2840240	2848560	They should have something here, just a quick little one-liner that'll remove everything if you have anything present in here.
2848760	2852860	This is fresh, this is new, so I don't have to run this in my case.
2855120	2869500	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,
2870720	2875000	you guys should be able to look at the web interface just fine as well.
2877160	2877540	So...
2878980	2880200	Make it bigger too?
2880260	2880840	Okay.
2888090	2890210	Maybe always on top as well.
2890210	2891090	Okay, cool.
2891430	2893690	So, hopefully you guys all see this just fine.
2894090	2896590	If you guys don't, just raise a hand, I'll make it bigger as well.
2896850	2898630	We're just going to copy and paste this.
2898630	2904710	We're just going to put Docker's repository URLs into the environment.
2906730	2908130	Should work fine.
2911850	2914050	We're just going to update our system as well.
2921340	2921860	Cool.
2921860	2927440	And now we're going to install the latest Docker packages, and this is going to contain just the engine itself, right?
2930120	2933600	Just a quick little copy and paste will do the work for you most of the time.
2935760	2937440	Just click yes to move forward.
2948890	2954470	Might take a bit, depends on the architecture that you have in your environment.
2955250	2961770	And just to verify if it works, you can just run Hello World and it'll show up.
2961790	2964250	If it shows up like this, then you should be good.
2964250	2975130	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.
2975130	2980010	So if you click on next steps, it'll take you to post installation steps for Linux.
2980590	2984650	And if you want to do this, if you don't, it's up to you.
2984650	2986830	I'm just doing it for the sake of convenience.
2989250	2994030	So just make sure that you have the Docker group in your environment.
2994030	2995310	It doesn't hurt to just check.
2995310	2997450	If you don't, it'll just add it regardless.
2998150	3000330	It already exists, so we're good on that regard.
3000390	3004850	And we're going to add this user to the Docker group.
3006770	3019670	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.
3020790	3029270	And then to verify if this works, you just simply run docker run hello world again.
3029270	3035130	Now notice I don't have sudo in here, so if there's a permission issue, it'll throw up something.
3035810	3037290	And it looks like it's good, right?
3037290	3040890	So we have hello from Docker and we're good on that note.
3041010	3052830	Okay, so we're going to go to the slides now to show you guys where to get your Amass Docker Compose repository.
3052830	3054830	It's right up in this link here.
3055570	3058070	So here, let me just look it up real quick.
3062080	3064160	Amass Docker Compose.
3065560	3071800	We just copy this over if you want, or if you go down here as well, it says the same exact thing.
3079390	3081110	It's the wrong terminal.
3084070	3087510	And just simply, we just go to my home directory.
3088430	3091110	Simply git clone it.
3093110	3098270	And you should have what is present here as Amass Docker Compose.
3098270	3100950	You can change this name to whatever you like.
3100950	3103850	We're just going to change it to Compose.
3108220	3110000	As you see, it's right here.
3110480	3112640	Now let's hop right into this.
3113060	3115240	What resides here?
3115400	3117580	This resides the Compose YAML.
3117580	3123700	If you have any major technical issues with your Compose environment, you can change whatever you want there.
3123700	3128820	It has your config, it has the data, and it has the logs.
3130240	3132840	Let's just look into the config real quick.
3135180	3139880	Just a quick note though.
3139880	3143660	At this point, it would be good to check the data and the logs directory.
3144060	3162820	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.
3162820	3172820	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.
3172960	3175740	You're going to wonder why it's not working and it's just something that simple.
3175740	3182560	Those two directories need 777 on both of them
3188920	3189200	.
3189200	3197000	If your guys' connection is slow, I'll wait for you guys to get the get repo locally.
3197440	3201120	We could give it a couple minutes if it's taking you guys a bit.
3243310	3244970	Anybody else have any questions?
3270520	3274260	I'll change my setting up right now.
3282300	3294780	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.
3296980	3298620	It'll be work done.
3300900	3301800	So we're all good.
3301800	3305620	Everybody has their repository cloned locally?
3305620	3308000	If not, we could give it a little bit more.
3371380	3373900	Just give it one more minute and I'll ask again.
3382940	3384540	Does it seem like we're good?
3384780	3389840	If you need help, Jeff will be around as well.
3389980	3393740	But let's just dive into the configuration directory.
3394320	3396360	So what does this entail?
3396400	3397460	Let's take a look.
3398160	3404520	So we have here the AssetDB environment, the config.yaml, the datasources.yaml.
3404660	3406480	I'll explain all of those.
3406480	3415360	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.
3415360	3417520	So let's take a look at that.
3425160	3428300	So what does this have here?
3428460	3441120	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.
3441140	3448100	So what I said before is you probably, if you're going to make any changes right now, do it.
3448100	3459600	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.
3459820	3463400	So if you're going to make any changes, it's best that you do it now.
3463400	3466580	I'll give you guys just a minute to make whatever changes that you want.
3466580	3470080	I'll keep mine the same just because this is just for testing, right?
3470080	3472320	So I'll just give like a minute.
3474180	3476320	Other things, I can actually talk a little bit further.
3476320	3479260	So other things we could talk about is the config.yaml.
3480740	3485700	It might have been a little bit too small on the slides, but we could go over this real quick, right?
3485720	3488580	It has the domains, the IPs, the CIDRs.
3488600	3498400	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.
3499660	3501640	We have options here.
3501880	3508020	You probably don't want to change this because this is where your data source credentials will be located.
3508020	3515520	If you're going to change this or change a name, you probably need to also update this area as well.
3515520	3517860	People often get that mixed up.
3517860	3519820	I sometimes even fall for that too.
3533100	3534420	Fair enough.
3535160	3537460	Also, it's a good catch as well.
3539620	3550480	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.
3550840	3553260	And this is what is used to connect to the database.
3553260	3560120	You want to change that accordingly to have it match up with what you had in your AssetDB file as well.
3560120	3561840	Otherwise, it will fail to connect.
3564000	3567700	And then, what we talked about before with the transformation.
3567740	3568940	This is what we were talking about.
3568940	3581560	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.
3582060	3584400	We could add anything we want here.
3584400	3587140	We could remove anything we want.
3587140	3590700	We could also add exclusions if we want to do that as well.
3591220	3594540	But for this case, we're just going to keep it as is just for the sake of running it.
3594540	3603260	But if you guys did change your credentials, I'll give you a minute to just make the following changes to the database align.
3612910	3614570	If you want to add something, go ahead.
3616130	3622890	One neat thing to mention here is, let's say you wanted to run five of these engines.
3623610	3631850	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.
3632290	3635170	But they all could point to the same database.
3635590	3648830	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.
3648830	3654630	Some could be coming out of TOR, some could be coming out of residential proxies, whatever floats your boat.
3656250	3660470	But they're all contributing to the same DB.
3660710	3680090	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.
3680310	3688710	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.
3693080	3695080	Yeah , that's a good point.
3695580	3697780	I'll just move forward with the data sources.
3699120	3705240	If you guys are if anything's messing you up with the config or anything like that, feel free to just raise a hand.
3705240	3707340	We'll be able to help out gladly.
3708180	3710260	Let's just take a look at the data sources.
3711720	3716220	This is where you want to put all the creds that you want to possibly use.
3716220	3721900	We have a ton of options here with data sources if they are used in our engine.
3723740	3726040	We're working on adding more, of course.
3730320	3731560	What was I going to say?
3731560	3732820	I just lost the train of thought.
3733620	3736720	The key part about this too, which is pretty nice as well.
3736720	3756720	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.
3756800	3758480	That's also a pretty nice thing as well.
3761620	3764580	It allows you to control how hard you're hitting the credits as well.
3785520	3787800	That's just because how YAML is.
3787800	3795180	If I just have all this stuff right here, if I have it all this usually throws me up some problems.
3795180	3799720	You see how already on that parser right there, it already just gave up a different color on that syntax.
3800400	3805900	It's not just like us thing, it's literally just how YAML works.
3816060	3816720	Quotes.
3816720	3818440	Yeah, that's also a fair point too.
3824120	3825580	That's a good point as well.
3825580	3827980	This is just me putting whatever it is in.
3827980	3833540	I'm going to have to probably bring the screen down and just put some of my API creds to generate emails.
3834180	3841400	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.
3841580	3845620	On top of API keys, I can go down here and hopefully I find other ones too.
3845620	3849140	You can have username and passwords into this as well.
3849660	3857520	Other secret information that may be useful for whatever the data source is that you're trying to use.
3857560	3859120	So on and so forth.
3867280	3868820	Good point.
3868940	3870580	These are all commented out.
3870580	3875440	As it says here, uncomment and add credentials for data sources that you'd like to use in the engine.
3875440	3880760	So if you want to just uncomment it, just get rid of this hashtag right over here and you'll be good to go.
3881120	3882220	Just add a block.
3884160	3888060	So if you guys have any questions, Jeff will go around.
3888060	3893600	I'm going to put my own creds, but I'm just going to have to bring this off the screen real quick.
3893600	3895520	So let me just add this all.
3895980	3897280	Just comment this.
3898000	3904440	And I'm just going to real quick change the display settings on this.
3906000	3906860	Yeah, no.
3908100	3910460	Alright, so let's see here.
3942200	3949180	So I'm just going to add my own stuff, but you guys do whatever you guys want to do with the API keys.
4139010	4142650	Okay, I'm going to be putting my screen back on mirror.
4143350	4144550	Should be good.
4152790	4155330	Yeah, if there's any questions, feel free to ask.
4157370	4160530	I'm going to be assuming that people have their stuff in.
4160530	4163610	If not, just raise your hand and I can give you guys an extra minute.
4164390	4165150	We're good?
4165150	4165770	Okay.
4166090	4166810	Cool.
4167310	4170770	So all we need to do now is also if you look at...
4172350	4173370	Okay, cool.
4173370	4174270	Even if we don't.
4174490	4180070	So now that we have everything good to go, we are going to look at our compose.
4180370	4196670	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.
4196670	4199290	So for this case, we're just going to do os.org.
4199370	4201430	Just to check real quick.
4201770	4203270	Just want to make sure I get it right.
4204850	4205410	Docker...
4205410	4206170	Yeah?
4206830	4209330	Alright, we'll just run it then.
4209330	4209930	Cool.
4210930	4213450	Let me just go back to here.
4213630	4215570	Alright, so we're just going to run it.
4216010	4224070	Now, it's pulling all the images that we need to run our environment.
4224250	4231310	So like we said, Grafana's here, Loki's here, and we're using syslog for our logging management.
4232810	4233930	This might take a bit.
4233930	4235630	Depends on your infrastructure, right?
4235630	4237830	So that's what it's doing right now.
4237830	4243290	It's just getting the images and it's just extracting what it needs to extract.
4243410	4245630	Typical Docker stuff as of right now.
4253720	4254480	It's building
4266860	4269860	the engine stuff right now, as you see right here as well.
4270400	4271140	Engine.
4271860	4276140	So we have our engine image being pulled and built.
4283880	4286860	So this might take a bit.
4286860	4294640	Depends on, obviously, your connection and the hardware that you have on what you're running on.
4296620	4298580	But usually it goes pretty fast.
4333610	4336650	So as you see here, we're creating the network.
4336690	4338210	It's a mass network.
4338210	4343610	It's just a network within our Docker Compose environment that helps all the containers talk to each other.
4343970	4346950	Like I said, we have low-key here for log management.
4347270	4349530	AssetDB, that's where we store our assets.
4350650	4353930	We're using syslog for our logging services.
4353930	4355070	We're using Grafana.
4355670	4358110	Like I said before, Grafana is our web interface.
4358110	4366530	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.
4367470	4369070	And then, of course, we have the engine.
4371490	4373470	So just doing some extra stuff.
4373470	4376190	Everything should come up healthy at this point, right?
4376930	4380710	If it's not healthy, which is usually going to be low-key for this case.
4380710	4382630	I usually see it show up low-key.
4382630	4392850	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.
4393250	4405050	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.
4405150	4409270	So if you did that, it should look like this for now.
4423090	4423590	Yeah.
4424230	4424970	Cool.
4424970	4426070	Yeah, I can do that.
4429440	4431880	So how do I...
4440940	4441420	So...
4443100	4444060	Yeah?
4444980	4445520	Okay.
4445520	4446280	Yeah.
4448380	4448880	Okay .
4449060	4451280	So let's see here.
4455080	4455940	Alright.
4455940	4456480	So what was it?
4456480	4458120	Docker compose stats, right?
4458120	4458980	Alright.
4460560	4461100	So...
4462840	4468500	This is all of the statistics with what's going on within our environment.
4468940	4473800	What's pretty cool is there's not that much memory usage, right, as we see as of right now.
4474020	4475760	But that's because we're building stuff.
4475760	4481060	Once we actually get the enumeration to run, you'll see how efficient that is as well.
4482340	4482900	So...
4484060	4500620	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.
4500620	4503800	So you'd want to probably connect...
4503800	4512480	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.
4513400	4514280	Specifically.
4518590	4520050	I'll put the stats up.
4558210	4558850	Okay.
4558850	4561410	So now we have everything set up and it's building.
4561650	4565230	If it builds correctly, everything, you should get this progress bar.
4565230	4568650	That's the Amaz client doing its thing.
4568650	4575690	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.
4575770	4578050	We want to check out the stats right now.
4578110	4580910	So minimal usage still.
4580910	4584630	We're only using 138 megs as of right now.
4584630	4588130	So that's only 3% of what we gave it for the limit.
4588950	4591010	And it'll be pretty low.
4591010	4593370	I mean, this is pretty impressive as of right now.
4594050	4599510	Other tools, even the older client, it would probably use just a bit more.
4599510	4601690	But this is pretty efficient.
4601830	4603950	And this is actually really impressive.
4604830	4606330	It handles the events just well.
4606330	4607330	It drops them just well.
4607330	4614610	And given that garbage collecting automatically, it means that we're being very memory efficient in this case.
4618490	4619750	We're going to check it out.
4619750	4621210	Progress bar still going.
4621350	4625130	This is how many events we have and this is how many we processed.
4625370	4627350	Obviously we have a nice little percentage here.
4627850	4629670	So it should give you an idea.
4643360	4644600	Cool.
4651020	4656580	So, as he said, it's pretty efficient.
4656580	4662520	And we've had some interesting sponsors for this project recently.
4662520	4664700	One of which is on my shirt right here.
4664700	4666140	Fortified data.
4666540	4674260	And even though we've made sure they realize that what we're showing right now is beta technically.
4674900	4677020	Kind of bleeding edge for the project.
4677180	4682600	They have said, well, it works better than what I used to be able to get.
4683340	4685160	And they're using it.
4685160	4691240	And they've been able to confirm thousands of customers are being monitored with this.
4693420	4695820	Let's just call it every week at least.
4695960	4699220	With potentially thousands of namespaces.
4700280	4703840	A huge number of targets.
4703840	4711780	And it's all being managed and all the data is being collected by what you're seeing right now.
4711780	4716200	So, of course, we've got a pretty small target that Adam's using here.
4716300	4717200	OASPA mask.
4717200	4719160	We're just keeping this simple and light.
4719160	4724760	But you can fire this at pretty large scopes.
4724980	4728100	And this can keep up.
4728100	4736900	I mean, actually, the only even fortified data has said, Postgres pretty much laughs at us with this.
4736900	4741160	I mean, Postgres is a beast and it can handle this quite easily.
4741440	4748640	What we're doing with it doesn't even tickle Postgres.
4750300	4764200	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.
4764220	4766320	And we're going to be trying to keep it that way.
4771630	4772610	Good point.
4773870	4776310	See, now our progress bar just went down a bit.
4776310	4782050	But that is because one of these handlers just found a crap ton of data.
4782250	4783430	Additional events.
4783730	4785570	So, that might trick you a bit.
4785570	4787370	You might be sitting at 96 for a little bit.
4787370	4789630	The next thing you know, you're like at 70.
4789630	4796930	Just because one handler possibly found 40 other different events that it just dispatched to our pipeline.
4800640	4802400	And same thing again.
4802400	4803820	And look at this again.
4804760	4809010	Now we went from 96 to 1,200.
4811500	4817400	And even then, still pretty memory efficient.
4827800	4832880	Now hopefully, you know, this thing does its enumeration nice and quick.
4836940	4839060	What's the longest it's enumerated at?
4839820	4843920	I've had it sometimes with the math before too.
4843920	4845340	Sometimes it could be days.
4845340	4847980	Just because of how many... That question just varies.
4848100	4851680	Just because of what are you running this on?
4851680	4853100	Who are you running this against?
4853100	4860780	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.
4860780	4861600	So...
4863160	4868080	I wouldn't be surprised if it lasts you a long time with some cases.
4868420	4872900	But that's just the nature of the organization that you're running this against.
4906980	4910160	Even though it has a bit, it's chugging along pretty decently.
4911580	4917340	So even when we do have a lot, we're tackling this on at a pretty fast rate.
4970160	4972100	Now we're three quarters of the way there.
4974540	4976660	Like I said, this thing is just chugging along.
4989770	4998150	For the sake of this demo, I hope we don't get another 500 events just get thrown in my face right now.
5030240	5032220	Just got two more left.
5032380	5033640	One more.
5063900	5066850	So now we're done with our enumeration process.
5068620	5070180	Woohoo, right?
5071640	5072180	So...
5072180	5075000	You could do a lot of things here at this point, right?
5076120	5079240	For this case, say I wanted to just get emails.
5080700	5085780	I could just say docker-compose run dash dash rm.
5085780	5088420	Same thing, but I could do emails for this.
5088420	5092760	The mass client supports this sub-command right here called emails.
5092820	5095200	And you just got to type in the domain that you're looking for.
5095200	5099900	And if I click enter, it'll do the typical just checking the head's health.
5099900	5102420	And all of these emails right here just showing up.
5102420	5106460	I mean, if you want, I could probably do a word count real quick.
5106900	5109840	I just hope it doesn't include the...
5109840	5112160	Yeah, okay, we'll see.
5113840	5117320	So at this point, we got 1,037 emails.
5117560	5120700	Now, this could vary, right?
5120700	5124060	So we have a verification handler here.
5124880	5130680	Now , the way our engine works with the verification handling is if we even attempt to...
5130680	5141140	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.
5141200	5151000	Now, with my case, the credits that I used since I've done so much testing, I ran out of credits for verification purposes.
5151000	5165340	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.
5165340	5171000	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.
5172100	5178740	So if you do have credits for an API that we support where it does verification, your results may vary.
5178740	5181920	But this is, for my case, what I got out of my results.
5182960	5198580	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.
5198960	5201420	Real quick, show them the subs output.
5201420	5203300	Yes, so I'll show you the subs output.
5208920	5210900	Just like that?
5217760	5231300	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.
5231820	5239620	So you can see a couple of DigitalOcean instances here running, Amazon instances running, and a bunch of things that are masked behind CloudFlare.
5239800	5242380	So this is really good information.
5242380	5247180	And this just shows you, just with tooling, what you can make out of the AssetDB and OAM.
5247180	5248620	This is all done with tooling.
5248620	5257720	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.
5257720	5268860	In this case, we have our own subcommand to specifically show us CIDRs, ASNs, subdomains, all in this one little output right here.
5268860	5274780	But that's just the power of us doing the same thing that we encourage you guys doing, which is just utilizing the AssetDB.
5275820	5277020	That's the beauty of it.
5299170	5301950	So I'm just going to hop into my... okay.
5324480	5327680	I mean, I think you're better off explaining this.
5330140	5330900	All right.
5330900	5332020	So we had a question.
5332020	5341260	I'll summarize it or paraphrase it as how do we avoid reporting false positives with this architecture or infrastructure?
5341320	5343660	Or, sorry, engine.
5344320	5357380	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.
5358520	5362080	If you have support, we will validate.
5362380	5368140	So like in the case of the FQDNs, we do the DNS lookups to make sure that these things are still there.
5368300	5373580	We can reach out to the IP addresses and make sure they're still responding.
5375040	5389040	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.
5389420	5400240	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.
5400240	5410260	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.
5410960	5418740	If you run the enumeration again or refresh the data, it will still show well, a month ago, we found it.
5418960	5428940	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.
5428940	5433420	It's going to say, well, it's in the database, so we're going to look for it again.
5434100	5436180	And it's going to check to see if it's active.
5436180	5446900	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.
5446960	5448200	Hence, it's gone.
5448200	5449640	Or you could go the other way around.
5449640	5456400	You could say, show me only the things that have been found, but a month ago we did not find these things.
5456400	5458680	Hence, they're new or they're popping up.
5458900	5466980	So , all the historic information is maintained with the proper timestamps to make it easy to do the queries.
5467260	5468620	We have another question.
5468620	5470120	I hope that answers your question.
5470660	5471780	Next question?
5472080	5473820	Yeah, just get close to him.
5572130	5581590	So, this is just an example of me running a simple SQL query on this thing.
5581590	5588070	So, I just dropped into the AssetDB container and just ran bash on it.
5588070	5593770	And I just used Postgres PSQL with the username flag being a mass as a user.
5593770	5597350	And then the database I was connecting to, which is AssetDB.
5598290	5602310	It's obviously different if you changed your AssetDB environment file.
5602510	5605130	But , say I just wanted to get everything, right?
5605130	5606330	This is what I mean.
5606330	5611930	Where you could just do simple SQL queries or even complicated ones to get what you're looking for.
5611930	5615030	So , just like I always said here, select everything from assets.
5615190	5616970	Everything will show up here, right?
5617250	5624510	And then, just to show you the other table with relations, these are all the relations that show up, right?
5624510	5629710	Now, if you see there, it says what type of relation it is.
5629710	5633590	A record, quad A record, so on and so forth.
5634930	5637190	Let's see here if there's anything else.
5637190	5643730	There's like nodes, contains, for like CIDR containing IP addresses, pretty sure.
5644090	5649170	But, this is just another way to just look at your data as well, by just simple SQL queries like that.
5649170	5654090	It could be complicated, of course, too, but just showing you that there's a different approach that you could tackle as well.
5655630	5657110	Yeah, you showed a query?
5657170	5660390	Yeah, I just did a basic one, just select everything from it.
5661070	5662210	And it could be done.
5662310	5665690	I mean, maybe I'm just too comfortable with databases.
5665690	5674710	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?
5674710	5685970	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.
5686290	5690370	It's like, again, I would say, it's easy.
5690650	5691190	Right?
5691190	5699050	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?
5699050	5700310	And it's not hard.
5700830	5709170	So, and we have example queries that we can point you to if you want to know some, say, popular extractions of the data.
5709170	5713130	We've got them all laying around where we can just hand them out to people.
5713350	5722150	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?
5722150	5734550	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.
5734550	5742150	It's like, it's just a headache when you could directly extract the data and bring it into whatever you're doing.
5746010	5751790	So, for my environment, I'm not going to be able to demo it because it's just headless.
5751950	5762950	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.
5762950	5764370	So let me just get off this.
5766870	5773350	So as you see here, Grafana is binded outside for port 3000.
5773350	5786250	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.
5786250	5792230	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.
5800410	5801970	Just one comment.
5803330	5818810	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.
5818810	5821770	You're going to have to sign up for it, but there's no cost.
5821770	5824370	It's their free version, or community version.
5824390	5839270	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.
5839750	5855790	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.
5855790	5868850	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.
5869050	5875010	So it's about as easy as we could get it for you so far, since you have to go get the data yourself.
5875110	5877010	We're not allowed to give it to you.
5877010	5883170	And it does get updated fairly frequently, so I would say you have to maintain it to a degree.
5883450	5892170	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.
5892170	5893350	I like it.
5897680	5899880	Okay, let me just bring the slides up here.
5910330	5920790	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.
5920910	5922130	That's the beauty of SADB.
5922130	5931850	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
5935030	5943450	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.
5944190	5950290	So in this case, we're just getting any of the full name addresses from assets where the type is equal to email address.
5950990	5952690	It showed up just fine.
5953170	5957830	It does the same exact job, but there's different ways that you could do it.
5960050	5966490	So, this just goes to show that attack surface mapping is just more than just infrastructure.
5966490	5968030	Let me stand up for this.
5969030	5974030	So, for this case, think about how social engineering can be done.
5975770	5983370	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.
5983370	5993210	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.
5993210	5997810	So, in this case, traditional IT mappings won't really do it for you.
5997810	6006270	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.
6006270	6017390	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.
6017590	6024370	So, that's what the beauty of viewing attack surface mapping as more than just infrastructure.
6025410	6031990	I want to go over the upcoming OEM types that we have that are IT asset-related and non-IT related.
6032010	6033810	So, as you can see here, we have a bunch .
6033910	6035150	I can name them.
6035250	6043710	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.
6043710	6055250	We were trying to get individuals, organizations, phone numbers, street addresses, affiliated individuals, third-party vendors, so on and so forth.
6055250	6059190	Because, like I just said, it's more than just IT assets.
6059190	6061850	If you're an adversary, you're going to be looking more.
6061850	6063510	You won't care what you find.
6063510	6065890	You're going to just find something to take advantage of.
6069490	6071730	That's about it that we have.
6071730	6081170	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.
6089630	6091370	Thank you guys very much.
