1 00:00:00,000 --> 00:00:06,080 Up next, it's time for the second workshop for today. 2 00:00:06,080 --> 00:00:14,380 And this workshop is OAMAS, Expanding Data Horizons, Amassing More Than Subdomains. 3 00:00:14,380 --> 00: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. 4 00:00:23,360 --> 00:00:29,160 He also performs assessment of security in critical information technology and infrastructure. 5 00:00:29,160 --> 00:00:34,280 He is the project leader of AMAS, an OS project. 6 00:00:34,500 --> 00:00:40,280 Jeff is also a lecturer, and he teaches penetration testing at State University of New York. 7 00:00:42,180 --> 00:00:47,560 In his spare time, Jeff enjoys experimenting with new blends of coffee, which is awesome. 8 00:00:48,480 --> 00:00:53,740 And giving back to the information security community is also one of his hobbies. 9 00:00:54,660 --> 00:00:58,320 I'd like to talk to you more about coffee as well, after AMAS, AMAS first though. 10 00:00:59,920 --> 00:01:07,660 Right, in this talk, here we're going to get an in-depth workshop on the OAMAS project. 11 00:01:07,860 --> 00:01:14,860 This is a powerful open source tool used for network mapping, attack surface analysis, and asset discovery. 12 00:01:14,860 --> 00:01:18,500 This is more than just network mapping happening over here. 13 00:01:18,680 --> 00:01:22,380 And it's an open source tool, so that's even better. 14 00:01:24,060 --> 00: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. 15 00:01:33,780 --> 00:01:38,160 So yes, let's have a good demo and a hands-on experience with this. 16 00:01:38,160 --> 00:01:39,420 Please welcome Jeff. 17 00:01:43,590 --> 00:01:46,690 All right, how many people here have used AMAS before? 18 00:01:47,730 --> 00:01:50,310 All right, good, we've got some hands up, I love it. 19 00:01:51,010 --> 00: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. 20 00:02:00,510 --> 00:02:07,220 We have some excellent contributors to this project, a great community that we've built around this project. 21 00:02:07,610 --> 00:02:13,350 And I would like to introduce Adam Rosick, who has been a major contributor. 22 00:02:13,410 --> 00:02:20,710 He knows so much about the enhancements we've made to the project in the last 12 months or so. 23 00:02:21,550 --> 00: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. 24 00:02:39,490 --> 00:02:42,470 Can I skip ahead here? 25 00:02:43,350 --> 00:02:46,450 Yeah, we'll do a proper intro here. 26 00:02:47,830 --> 00: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. 27 00:03:04,990 --> 00:03:13,790 He's just been so active ever since he got out of his academic career. 28 00:03:13,970 --> 00:03:22,450 So, definitely a great person to have on this project, and I would like to now let him take over. 29 00:03:22,690 --> 00: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. 30 00:03:35,170 --> 00: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. 31 00:03:41,410 --> 00:03:44,190 It's my first one, so bear with me, everybody, all right? 32 00:03:45,130 --> 00: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. 33 00:03:56,030 --> 00:03:58,350 Do you guys see me well in the back, by the way? 34 00:03:58,350 --> 00:03:58,830 Yeah? 35 00:03:58,830 --> 00:03:59,430 All right, cool. 36 00:04:00,630 --> 00:04:01,250 So... 37 00:04:09,720 --> 00:04:12,660 Okay, so... 38 00:04:12,660 --> 00:04:14,560 Let me make this bigger. 39 00:04:14,560 --> 00:04:15,720 All right, there we go. 40 00:04:15,740 --> 00:04:19,520 So, the history and the evolution of AMAS, right? 41 00:04:19,520 --> 00: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. 42 00:04:34,820 --> 00: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. 43 00:04:41,860 --> 00:04:43,360 Is that right, in some regard? 44 00:04:43,600 --> 00:04:45,360 Yeah, close enough, right? 45 00:04:45,820 --> 00:04:46,280 So... 46 00:04:48,500 --> 00:04:54,000 As it was being developed, there was a realization that was scary, but true. 47 00:04:54,180 --> 00: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. 48 00:05:04,740 --> 00: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. 49 00:05:10,940 --> 00: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. 50 00:05:18,700 --> 00: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. 51 00:05:33,620 --> 00: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. 52 00:05:44,360 --> 00: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. 53 00:06:02,500 --> 00: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. 54 00:06:16,640 --> 00: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. 55 00:06:23,580 --> 00:06:27,760 So one of them is organizational surveillance. 56 00:06:28,980 --> 00:06:39,940 With the mass providing visualization, organizations can easily actively monitor their attack surface to spot any anomalies. 57 00:06:39,940 --> 00: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. 58 00:06:52,220 --> 00: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. 59 00:07:01,820 --> 00:07:04,820 And this is obviously used for security assessments. 60 00:07:05,300 --> 00:07:11,000 So, it helps find assets that would otherwise be missed if you were to do this manually. 61 00:07:11,000 --> 00: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. 62 00:07:19,700 --> 00:07:24,160 Day by day, you're going over multiple things multiple times. 63 00:07:24,540 --> 00:07:25,980 Eventually, you're going to miss some stuff. 64 00:07:25,980 --> 00: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. 65 00:07:34,320 --> 00:07:37,440 So that's also with blue teaming and red teaming. 66 00:07:37,520 --> 00: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. 67 00:07:46,380 --> 00:07:48,000 Anything you want to add on to this? 68 00:07:52,910 --> 00: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. 69 00:08:10,310 --> 00:08:14,730 You don't have everything necessarily has to be baked into amass. 70 00:08:15,050 --> 00:08:22,370 You could also be pulling the data out obviously to create your own reporting, whatever. 71 00:08:22,370 --> 00: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, 72 00:08:43,530 --> 00: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. 73 00:09:02,170 --> 00:09:03,730 That's why we created this. 74 00:09:03,730 --> 00:09:07,390 It really was to say, well, what if we missed something in amass? 75 00:09:07,390 --> 00:09:10,730 What if it doesn't do exactly what you wanted it to do? 76 00:09:11,850 --> 00:09:16,450 Now we can just kind of say, well then, build it the way you want to build it. 77 00:09:16,710 --> 00:09:18,310 Or do it the way you want to do it. 78 00:09:18,310 --> 00:09:24,510 Because in the past we've had data models that were, I would say, difficult to understand. 79 00:09:24,510 --> 00:09:27,750 We used database management systems that were proprietary. 80 00:09:27,870 --> 00:09:30,410 Not many people were comfortable with it. 81 00:09:30,490 --> 00:09:33,130 Now, the data model is completely open source. 82 00:09:33,130 --> 00:09:34,190 It's documented. 83 00:09:34,190 --> 00:09:38,510 We're using Postgres as the DBMS. 84 00:09:38,590 --> 00:09:42,410 It makes all of this quite easy for people to work with. 85 00:09:42,410 --> 00:09:46,130 So that's the real big benefit here. 86 00:09:46,130 --> 00: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. 87 00:09:52,790 --> 00:09:55,790 Haddix called this the Recon Data Standard. 88 00:09:55,790 --> 00:10:00,170 I tried to stay away from the word standard last year, but he, of course, dropped the bomb. 89 00:10:01,350 --> 00:10:02,750 But he's right, kind of. 90 00:10:02,750 --> 00:10:05,050 That's what this is, or what we're trying to do with it. 91 00:10:08,730 --> 00:10:09,450 Awesome. 92 00:10:09,630 --> 00:10:13,290 So here is our agenda that we're going to talk about. 93 00:10:14,250 --> 00:10:18,310 We're going to start with understanding Amass's data collection capabilities. 94 00:10:18,310 --> 00:10:20,470 We're going to touch a little bit hands-on. 95 00:10:20,470 --> 00: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. 96 00:10:27,930 --> 00: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. 97 00:10:34,050 --> 00:10:37,150 And then we're going to head off to a Q&A. 98 00:10:38,210 --> 00:10:39,970 Hopefully that makes sense to everybody. 99 00:10:41,190 --> 00:10:42,090 All right. 100 00:10:42,090 --> 00:10:46,690 So let's start off with understanding Amass's data collection capabilities. 101 00:10:47,190 --> 00: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. 102 00:11:00,030 --> 00: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. 103 00:11:08,650 --> 00:11:09,130 Right? 104 00:11:09,130 --> 00:11:12,350 So I normally don't like to say... 105 00:11:12,350 --> 00: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. 106 00:11:24,390 --> 00: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. 107 00:11:40,910 --> 00:11:41,790 There are... 108 00:11:41,790 --> 00:11:44,310 well, like I said before, we'll dive more into handlers. 109 00:11:44,530 --> 00: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. 110 00:11:55,370 --> 00:11:58,430 And I will touch upon that any sooner. 111 00:11:59,170 --> 00:12:01,410 Anything you want to add on this one, or we're good here? 112 00:12:05,800 --> 00:12:07,040 Nothing big. 113 00:12:09,920 --> 00: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. 114 00:12:20,680 --> 00:12:21,760 Perhaps you know this. 115 00:12:21,760 --> 00:12:29,040 You give them the config, they go out and pull things, they sort it, get unique results, and print it. 116 00:12:30,540 --> 00:12:35,400 Amass has always said, oh, you found something, put it back at the beginning, and let's re-evaluate. 117 00:12:35,400 --> 00:12:37,300 Let's see what else comes out of it. 118 00:12:37,340 --> 00:12:41,980 That's part of why it takes longer to run it, because it's searching for more things. 119 00:12:42,880 --> 00:12:44,680 And it still does pretty good, in my opinion. 120 00:12:47,020 --> 00:12:52,360 In this event-driven architecture, it's that times ten. 121 00:12:52,360 --> 00:12:53,280 It's pure. 122 00:12:53,280 --> 00: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. 123 00:13:10,720 --> 00: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. 124 00:13:19,020 --> 00:13:19,860 That's it. 125 00:13:19,860 --> 00: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, 126 00:13:44,060 --> 00:13:49,660 feel it, go get more findings from it . 127 00:13:50,420 --> 00:13:52,340 So it's that simple. 128 00:13:52,360 --> 00:13:55,500 As Adam already said, it's also that chaotic. 129 00:13:57,020 --> 00:14:01,320 But that simplicity has made it so easy to extend this. 130 00:14:01,320 --> 00:14:02,620 It's all dynamic. 131 00:14:02,680 --> 00:14:10,080 It's all based on your configuration and what was registered by the plug-ins that were compiled into the engine. 132 00:14:10,080 --> 00:14:16,200 So it's basically like, do we have the capability and what did the user want to do here? 133 00:14:16,200 --> 00:14:25,060 And as long as there's overlay or overlap there, then there will be pipelines to execute for those data types. 134 00:14:26,000 --> 00:14:31,040 So the reason he's telling you about this, though, is this is actually pretty exciting. 135 00:14:31,040 --> 00:14:35,040 It's been very interesting what this has yielded since we've built it. 136 00:14:35,040 --> 00:14:37,160 So we wanted to make sure everybody knew about it. 137 00:14:39,580 --> 00:14:40,320 Exactly. 138 00:14:40,320 --> 00:14:45,340 And we have a visual of the event-driven pipeline. 139 00:14:46,280 --> 00: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. 140 00:14:58,960 --> 00: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. 141 00:15:07,560 --> 00: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. 142 00:15:26,400 --> 00:15:34,760 But usually when it does produce something, it'll get right back into the pipeline as another event. 143 00:15:35,100 --> 00:15:38,780 And this will usually span out to multiple events. 144 00:15:38,780 --> 00:15:43,660 It could be like 5, 10, 50, however many it actually produces. 145 00:15:43,660 --> 00:15:45,540 So say in this case it produces 20 of them. 146 00:15:45,580 --> 00:15:49,680 You'll have 20 of these that'll get put right back into the event pipeline. 147 00:15:49,700 --> 00:15:52,680 And then if it has anything else that we want to do with the IP. 148 00:15:52,680 --> 00:15:56,240 So say in our configuration we wanted to produce a net block. 149 00:15:57,560 --> 00: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. 150 00:16:05,740 --> 00:16:08,920 And we're going to work on those handlers. 151 00:16:08,920 --> 00:16:10,400 It's going to do the processing. 152 00:16:10,760 --> 00:16:14,460 This will happen and repeat until it comes to a halt . 153 00:16:14,460 --> 00: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. 154 00:16:21,160 --> 00:16:24,600 Or if it has nothing else that it's capable of at the time being. 155 00:16:24,960 --> 00:16:28,180 Did I mess anything up? 156 00:16:28,180 --> 00:16:29,400 Or did I miss anything? 157 00:16:31,300 --> 00:16:33,840 Yeah, I think I got most of that stuff. 158 00:16:33,980 --> 00:16:37,640 So what we have here are the supported OEM types. 159 00:16:37,640 --> 00:16:41,380 There are plenty more that we are going to add and I'll talk about that much later. 160 00:16:42,240 --> 00: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. 161 00:16:53,980 --> 00:16:56,340 We just added email addresses. 162 00:16:56,560 --> 00: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. 163 00:17:07,320 --> 00:17:09,380 That's the beauty of this engine, right? 164 00:17:10,020 --> 00: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. 165 00:17:22,300 --> 00: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. 166 00:17:30,300 --> 00:17:32,000 And that's the beauty of it. 167 00:17:32,000 --> 00:17:34,980 And it's really easy to create. 168 00:17:35,260 --> 00:17:42,180 In this case like I just said the integrations are enhanced yet easy. 169 00:17:43,280 --> 00:17:48,240 With the previous tool, we've used Lua, pretty sure, right? 170 00:17:48,680 --> 00: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, 171 00:18:07,140 --> 00: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. 172 00:18:16,240 --> 00:18:18,280 Hence why we had to create this engine. 173 00:18:18,340 --> 00:18:21,360 The way we have this now, it's literally just like this puzzle piece right here. 174 00:18:21,360 --> 00: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, 175 00:18:35,480 --> 00:18:38,740 you can easily build it and it will work seamlessly in that manner. 176 00:18:39,860 --> 00:18:41,260 There's benefits to this, right? 177 00:18:41,260 --> 00: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? 178 00:18:50,920 --> 00:18:57,040 You could keep that all to yourself and just still be able to use it effectively with the engine. 179 00:18:57,040 --> 00: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? 180 00:19:04,960 --> 00:19:07,240 That's the beauty of it, the modularity of it. 181 00:19:07,240 --> 00: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? 182 00:19:20,260 --> 00:19:22,540 If you want to add anything while I look up, go for it. 183 00:19:30,720 --> 00:19:37,200 Only to only to repeat what he kind of already said. 184 00:19:40,880 --> 00:19:50,060 The only limitation to what you can put in as a plugin or how you can extend this is the OAM. 185 00:19:50,100 --> 00: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. 186 00:20:02,920 --> 00:20:06,300 You could write this in an evening. 187 00:20:06,440 --> 00:20:12,380 I mean it's literally that easy and there's nothing else about Amass that you need to know. 188 00:20:12,640 --> 00:20:15,080 Like he said before that wouldn't have been the case. 189 00:20:15,080 --> 00:20:19,420 There would have been many changes you would have had to make or had requested that we make. 190 00:20:19,640 --> 00:20:24,340 Now, you could just do it and recompile it and you're rocking and rolling. 191 00:20:24,340 --> 00: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. 192 00:20:36,020 --> 00: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. 193 00:20:42,700 --> 00:20:44,080 That's the point here, right? 194 00:20:44,080 --> 00: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. 195 00:20:53,450 --> 00: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. 196 00:21:01,850 --> 00:21:03,690 All of that is appreciated, right? 197 00:21:04,150 --> 00:21:04,550 So... 198 00:21:04,550 --> 00:21:06,530 Yeah, make it bigger? 199 00:21:06,530 --> 00:21:07,290 Alright, cool. 200 00:21:08,610 --> 00:21:10,910 Alright, you guys, everyone sees it pretty clear, right? 201 00:21:10,910 --> 00:21:13,350 If not, raise a hand and I'll make it bigger. 202 00:21:13,410 --> 00:21:16,010 But this stuff we don't need to worry about. 203 00:21:16,230 --> 00: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. 204 00:21:26,190 --> 00: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. 205 00:21:32,790 --> 00:21:35,650 Nonetheless, it's very easy to register. 206 00:21:35,670 --> 00: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. 207 00:21:49,730 --> 00:21:52,490 And then the callback is a callback function that we have. 208 00:21:53,990 --> 00:21:57,150 I'll show you how many lines this callback function is. 209 00:21:57,150 --> 00:21:59,090 It's quite crazy. 210 00:21:59,170 --> 00:22:00,770 It's less than 100 lines of code. 211 00:22:00,770 --> 00:22:10,150 If we start here at 65 and go all the way down to 131, that's about 66 lines of code. 212 00:22:10,150 --> 00:22:12,270 Like he said, you can make this in the evening. 213 00:22:12,270 --> 00:22:13,830 It's very simple. 214 00:22:13,930 --> 00:22:18,110 What this handler does specifically, it's called grep.app. 215 00:22:18,450 --> 00: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. 216 00:22:31,230 --> 00: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. 217 00:22:43,530 --> 00: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. 218 00:22:53,130 --> 00:22:57,290 But nonetheless, this just goes to show how easy it is to make this type of stuff. 219 00:22:57,350 --> 00:22:58,730 It's all ran and going. 220 00:22:58,730 --> 00: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. 221 00:23:06,510 --> 00:23:09,910 But nonetheless, it's very simple, very easy. 222 00:23:10,110 --> 00:23:11,170 It doesn't take that much. 223 00:23:11,170 --> 00: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. 224 00:23:18,410 --> 00:23:22,890 You can make this in one night, in an evening, while you're watching a movie or something. 225 00:23:22,890 --> 00:23:25,830 And yeah, that's the beauty of it. 226 00:23:25,830 --> 00:23:27,810 So let me get that thing out of here right now. 227 00:23:27,810 --> 00:23:31,530 Unless you guys want to take a look further, but... 228 00:23:31,530 --> 00:23:32,690 I'll just get out of here. 229 00:23:38,590 --> 00:23:38,990 So... 230 00:23:40,290 --> 00:23:42,050 We talk about the registry, right? 231 00:23:42,050 --> 00:23:43,890 Let me just pull this up real quick. 232 00:23:43,890 --> 00:23:45,190 I'm missing one thing. 233 00:23:53,700 --> 00: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? 234 00:24:07,080 --> 00:24:08,820 How do I word this the best? 235 00:24:09,000 --> 00:24:14,600 So the plugins, which have handlers, submit themselves in that registry, right? 236 00:24:15,420 --> 00: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. 237 00:24:31,740 --> 00:24:37,020 And I'll show you, I already showed you guys the registration part and the grep.app. 238 00:24:39,260 --> 00:24:40,100 I'm drawing a blaze. 239 00:24:40,100 --> 00:24:41,020 Do you have any idea? 240 00:24:46,230 --> 00: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. 241 00:24:58,270 --> 00:25:02,130 Maybe that's just what you see this as and it's all you want it to do. 242 00:25:02,130 --> 00: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. 243 00:25:12,530 --> 00:25:14,810 Because the registry keeps track of all this. 244 00:25:14,810 --> 00: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. 245 00:25:25,830 --> 00: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. 246 00:25:33,410 --> 00:25:36,170 We won't call the callback for that one. 247 00:25:36,610 --> 00:25:38,370 And it's all dynamic. 248 00:25:38,590 --> 00: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. 249 00:25:52,610 --> 00:25:54,070 So it's all dynamic. 250 00:25:54,070 --> 00:25:55,370 It's all automatic. 251 00:25:56,490 --> 00:26:01,210 And like I think we've said earlier, it's based on two things. 252 00:26:01,210 --> 00: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. 253 00:26:11,470 --> 00: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. 254 00:26:19,810 --> 00: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. 255 00:26:33,250 --> 00: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. 256 00:26:42,690 --> 00:26:45,070 So that's why this is so important. 257 00:26:45,870 --> 00:26:49,990 It's what makes this... we never have to look at this. 258 00:26:51,230 --> 00: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. 259 00:27:01,810 --> 00: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. 260 00:27:10,450 --> 00: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. 261 00:27:19,690 --> 00: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. 262 00:27:32,260 --> 00:27:33,180 Exactly. 263 00:27:33,180 --> 00:27:37,700 So, speaking of that, we have the configuration with the mass. 264 00:27:37,860 --> 00:27:43,480 So, last year we talked a bit about how it went to YAML instead of INI. 265 00:27:44,500 --> 00:27:53,740 Usually with the last tool, users found themselves often confused with what is the best approach? 266 00:27:53,740 --> 00:27:55,340 What are the best options to set? 267 00:27:55,340 --> 00:27:58,200 We had a lot of options in our previous tool. 268 00:27:58,700 --> 00:28:08,640 But that may have made it a bit confusing for users to identify what is best needed for their situation, right? 269 00:28:09,820 --> 00:28:13,620 But with this approach, we decided to take a declarative approach. 270 00:28:13,620 --> 00:28:16,620 So, this allows simplicity and readability. 271 00:28:16,920 --> 00:28:19,480 So, you don't need to be too specific. 272 00:28:20,080 --> 00:28:21,260 I mean, you could, of course. 273 00:28:21,260 --> 00:28:23,340 We have a ton of options here as well. 274 00:28:23,440 --> 00:28:28,580 But as far as getting what you want, you don't have to write too much. 275 00:28:28,840 --> 00: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. 276 00:28:37,400 --> 00:28:40,980 And the engine will read that and it will say, okay, no problem. 277 00:28:40,980 --> 00:28:41,820 I'll make it work. 278 00:28:41,820 --> 00:28:43,380 You don't have to worry about a thing. 279 00:28:43,380 --> 00:28:48,620 Of course, you could do things like excluding certain handlers and things of that nature. 280 00:28:50,840 --> 00:28:51,340 But... 281 00:28:51,340 --> 00:28:52,240 Yeah. 282 00:28:52,740 --> 00:28:54,260 Okay, so... 283 00:28:55,440 --> 00:29:02,600 And with that being said, what's running this, as we mentioned before, is the OEM, right? 284 00:29:02,600 --> 00:29:06,460 If you guys weren't here last year, I'll just quickly go over it. 285 00:29:06,460 --> 00:29:12,600 So, it just provides a new standard, just like how Haddock said it, for asset definitions. 286 00:29:12,740 --> 00:29:17,920 It represents a framework describing and categorizing any of the assets that you have. 287 00:29:18,260 --> 00:29:21,520 So, it categorizes it, like we just said. 288 00:29:21,520 --> 00:29:24,420 It could be an FQDN, IP address, whatever you want it to be. 289 00:29:24,420 --> 00:29:26,140 If we support it, it could be that. 290 00:29:26,140 --> 00:29:28,260 So, we have categorization for that. 291 00:29:28,260 --> 00:29:31,280 And we have all the data, which is stored in JSON. 292 00:29:31,560 --> 00:29:40,020 It'll say information about such type that we normally see on a usual basis with whatever type comes in. 293 00:29:41,600 --> 00:29:43,220 And the AssetDB just holds it, right? 294 00:29:43,740 --> 00:29:50,100 We're able to hold it in SQLite and Postgres QL, database management services. 295 00:29:50,440 --> 00:29:54,320 For more information, though, you can just head over to the GitHub org page. 296 00:29:54,320 --> 00:29:55,780 We'll talk about that. 297 00:29:57,860 --> 00: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. 298 00:30:07,400 --> 00:30:12,440 So, say, for example, we have a FQDN and an IP address. 299 00:30:13,340 --> 00:30:14,920 It's not really... 300 00:30:14,920 --> 00: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. 301 00:30:21,220 --> 00:30:23,740 And it'll go down in a transitive manner, right? 302 00:30:23,740 --> 00:30:29,060 So, for this case, we have the relations table being the A record. 303 00:30:29,060 --> 00: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. 304 00:30:37,980 --> 00:30:39,340 That's the beauty of it, right? 305 00:30:39,340 --> 00:30:40,520 And it's not just... 306 00:30:40,520 --> 00:30:41,840 it can expand upon it. 307 00:30:41,840 --> 00:30:45,900 There'll be a ton of relations that could come from one asset. 308 00:30:45,920 --> 00:30:47,180 And that's what the beauty of this is. 309 00:30:47,180 --> 00: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. 310 00:30:53,500 --> 00: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? 311 00:31:01,980 --> 00:31:03,700 That's the beauty of that. 312 00:31:03,740 --> 00:31:07,200 More information about that, we can head over right to the org page. 313 00:31:09,660 --> 00:31:18,380 Also, with that, with AssetDB, you can ask any questions that you may not find in a standard tool, right? 314 00:31:20,160 --> 00:31:26,480 Previously, others would find themselves not saving the information, or... 315 00:31:27,840 --> 00:31:28,920 How do I word this? 316 00:31:28,920 --> 00: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. 317 00:31:38,080 --> 00:31:41,060 The beauty of this is, it's all stored in one spot. 318 00:31:41,120 --> 00:31:45,420 And you could use this for multiple tools, and whatever query you want it to be. 319 00:31:45,420 --> 00:31:48,500 It could be complicated, or it could be as simple as you want. 320 00:31:49,140 --> 00:31:51,400 You can make that happen with this. 321 00:31:53,480 --> 00:32:00,800 And the overall design, and the taxonomy of the OAM allows the community to extend it further with new asset types. 322 00:32:01,520 --> 00:32:03,600 Any other things you want to say with that? 323 00:32:05,240 --> 00: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. 324 00:32:17,660 --> 00:32:19,420 And it takes a while. 325 00:32:19,620 --> 00:32:25,220 So, it probably got frustrating, I imagine, having to sit around and wait for these things. 326 00:32:25,220 --> 00:32:29,160 But with the AssetDB, it's storing all this for you. 327 00:32:29,160 --> 00:32:35,720 So the only time you really need to run the enumeration again is when you need the data to be refreshed. 328 00:32:36,020 --> 00:32:38,160 Or you think something new could be out there. 329 00:32:38,160 --> 00:32:39,940 But otherwise, it's already sitting there. 330 00:32:39,940 --> 00:32:43,820 All you got to do is run the query again and pull the data out. 331 00:32:43,820 --> 00:32:47,000 I think there's a lot of people, though, that don't actually realize that. 332 00:32:47,120 --> 00:32:50,100 And frankly, they're wasting a lot of time. 333 00:32:50,260 --> 00: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? 334 00:33:01,340 --> 00:33:04,640 Or what, you know, network block is it sitting in? 335 00:33:04,820 --> 00:33:06,000 It's all right there. 336 00:33:06,000 --> 00:33:09,140 You just have to ask the right question and you can pull that right out. 337 00:33:09,140 --> 00:33:11,420 You can pull out the mappings between the two. 338 00:33:11,520 --> 00:33:16,440 So, there's a lot of work that this can do for you, so that you're not doing it anymore. 339 00:33:16,440 --> 00: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. 340 00:33:27,760 --> 00: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. 341 00:33:42,560 --> 00: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? 342 00:33:51,080 --> 00: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. 343 00:34:00,780 --> 00: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. 344 00:34:10,500 --> 00: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. 345 00:34:21,920 --> 00:34:25,320 And we have, right here, IP to location. 346 00:34:26,380 --> 00:34:28,200 What is it, like a database? 347 00:34:28,200 --> 00:34:32,340 Like a local database that tells us okay, most likely it's residing in there. 348 00:34:32,340 --> 00:34:34,740 There's a bunch of other capabilities. 349 00:34:35,100 --> 00: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. 350 00:34:51,180 --> 00:34:52,420 No, I'm sorry. 351 00:34:53,400 --> 00: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. 352 00:35:04,360 --> 00: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. 353 00:35:20,960 --> 00:35:22,900 But it won't be that long. 354 00:35:22,960 --> 00: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. 355 00:35:41,860 --> 00:35:43,100 And it's just going to do it. 356 00:35:43,100 --> 00:35:44,760 Then you just leave it. 357 00:35:44,940 --> 00:35:46,620 And it's just going to do it for you. 358 00:35:46,620 --> 00:35:53,280 And from that point forward, you could just either keep using these dashboards to look for new findings. 359 00:35:53,280 --> 00:35:58,400 You could set up your own queries to pull the data and then do whatever you want with it. 360 00:35:58,400 --> 00:36:03,340 But it's just going to start making this all much easier. 361 00:36:05,640 --> 00:36:07,980 Some people are already using this. 362 00:36:08,380 --> 00:36:11,740 I mean, personally, I'm not a big GUI person. 363 00:36:11,740 --> 00:36:14,480 You know, I'm a little tied to the command line myself. 364 00:36:14,480 --> 00:36:17,320 But I can see the appeal, why this would be pretty interesting. 365 00:36:17,320 --> 00: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. 366 00:36:30,420 --> 00: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. 367 00:36:45,360 --> 00:36:47,580 So that's pretty exciting. 368 00:36:47,580 --> 00: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. 369 00:37:10,680 --> 00:37:14,940 That's the real light at the end of the tunnel here. 370 00:37:19,610 --> 00:37:21,090 That was awesome. 371 00:37:21,090 --> 00:37:29,210 So we're going to now touch upon the demonstration of the new OEM asset types being collected by Amass. 372 00:37:29,210 --> 00:37:32,490 In this case, we're going to use the email enumeration here. 373 00:37:32,490 --> 00:37:34,290 You guys are free to follow along. 374 00:37:35,370 --> 00:37:41,450 What I advise you guys to use for this case is to use Docker Compose to get the full capabilities. 375 00:37:41,470 --> 00: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. 376 00:37:54,750 --> 00:37:57,370 And, of course, the command line interface. 377 00:37:57,670 --> 00: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? 378 00:38:08,030 --> 00:38:16,670 You could use any sort of API request to this collection engine, and it'll perform the work for you. 379 00:38:17,450 --> 00:38:22,710 So that's also one key thing to notice as well, but nonetheless, let's just go dive into the... 380 00:38:28,450 --> 00:38:30,250 Yeah, oh yeah, good point. 381 00:38:30,350 --> 00: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. 382 00:38:39,670 --> 00:38:43,710 The network here could be goofy, and you're in DefCon, right? 383 00:38:43,710 --> 00:38:48,990 So you shouldn't probably be using that to begin with, but use your cellular. 384 00:38:49,610 --> 00:38:55,270 I've had my luck with using cellular, and hopefully the same thing applies to you guys. 385 00:38:56,750 --> 00:39:00,530 So we're going to follow along during the demo if you want to. 386 00:39:02,050 --> 00:39:04,730 So you could use Docker Desktop. 387 00:39:04,790 --> 00:39:09,070 You could install or update Docker and get it on your system. 388 00:39:09,070 --> 00:39:11,170 And you could use Docker Desktop. 389 00:39:11,170 --> 00:39:15,010 You need Compose in this, so Docker Desktop usually comes with it. 390 00:39:15,010 --> 00:39:18,850 I'm going to be taking a different approach, and I'll show you guys exactly that as well. 391 00:39:18,850 --> 00:39:21,970 But if you use Docker Desktop, you should be perfectly fine. 392 00:39:21,970 --> 00: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. 393 00:39:32,550 --> 00:39:33,430 So the 394 00:39:36,820 --> 00:39:45,840 Kali repository, it might not be as up-to-date, so you're probably better off using the Docker environment. 395 00:39:48,480 --> 00:39:50,860 Yeah, and it's also just not the same exact thing, right? 396 00:39:50,860 --> 00: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. 397 00:39:58,980 --> 00: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. 398 00:40:11,380 --> 00:40:16,060 Yeah, but the big thing is 4.2 is almost a year old. 399 00:40:16,280 --> 00:40:18,600 That's what you're going to get from Kali right now, right? 400 00:40:18,600 --> 00:40:21,840 That's not what we're talking about today, and that's not where this is going. 401 00:40:23,720 --> 00:40:31,660 There's been no release of this for almost a year, because of all the things we're talking about today. 402 00:40:31,960 --> 00: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... 403 00:40:37,420 --> 00: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. 404 00:40:48,100 --> 00:40:55,340 You can't currently use the official release of the tool and get what we're talking about today. 405 00:40:58,510 --> 00:40:59,270 Okay. 406 00:40:59,270 --> 00:41:01,770 Hopefully that answers all the questions. 407 00:41:01,770 --> 00:41:05,630 If anyone has anyone else, feel free to put your hand up. 408 00:41:06,310 --> 00:41:08,730 And I'll just start putting on my screen. 409 00:41:09,670 --> 00:41:13,610 Do you guys need a moment, by the way, to get Docker Desktop running? 410 00:41:13,810 --> 00:41:15,190 Yeah, you guys do your thing. 411 00:41:16,570 --> 00:41:17,230 Exactly. 412 00:41:17,230 --> 00: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. 413 00:41:25,850 --> 00: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. 414 00:41:34,730 --> 00:41:37,850 If you're trying to get it set up and you have questions, just raise your hand. 415 00:41:37,850 --> 00:41:40,610 I can come out and answer your questions quickly. 416 00:42:07,060 --> 00:42:10,000 If anyone else needs help, I'm free to help as well. 417 00:43:49,770 --> 00:43:53,090 I think it's 3,000, but I'll also check when I run the... 418 00:44:04,200 --> 00:44:04,840 Okay. 419 00:44:09,260 --> 00: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. 420 00:44:19,460 --> 00:44:21,980 And then we'll just dive right into that. 421 00:44:26,880 --> 00: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. 422 00:44:45,620 --> 00:44:51,340 Otherwise, once the containers are set up, once the containers are running, it's pointless at that point. 423 00:44:51,340 --> 00: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. 424 00:44:59,480 --> 00:45:03,420 That's for the Postgres DB and for the engine. 425 00:45:04,680 --> 00:45:10,060 It's under the config directory that's under the Compose repository. 426 00:45:10,060 --> 00:45:11,240 I'll go and show you guys. 427 00:45:11,840 --> 00:45:14,620 I'll do it right now and you guys can just follow along too. 428 00:45:47,130 --> 00:45:51,450 Let me just... 429 00:46:00,130 --> 00:46:10,150 I'm going to mirror my display, so it should pop up of me taking an attempt at the alternate approach. 430 00:46:16,420 --> 00:46:21,940 Okay, so I'll minimize this and we'll head on to the terminal. 431 00:46:24,280 --> 00:46:31,600 I'm using a digital ocean droplet just to run this, just for the sake of the internet connection. 432 00:46:31,600 --> 00:46:33,000 I just want it to be more stable. 433 00:46:33,800 --> 00:46:36,020 I'm just going to SSH into this. 434 00:46:37,420 --> 00:46:43,240 I have a key-based SSH and I'm going to just switch over to the test user that I have. 435 00:46:43,560 --> 00:46:46,480 Let me just see if I have sudo permissions before I even go forward. 436 00:46:48,320 --> 00:46:49,460 Alright, we're good. 437 00:46:51,380 --> 00:46:58,260 One way is to, of course, install Docker Desktop and you should be fine with the Compose. 438 00:46:58,260 --> 00: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... 439 00:47:10,120 --> 00:47:14,720 and for my case, I'm running Ubuntu on this droplet, so I'm going to be heading over to Ubuntu. 440 00:47:15,060 --> 00:47:20,240 If you have any old versions, just get rid of them. 441 00:47:20,240 --> 00: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. 442 00:47:28,760 --> 00:47:32,860 This is fresh, this is new, so I don't have to run this in my case. 443 00:47:35,120 --> 00: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, 444 00:47:50,720 --> 00:47:55,000 you guys should be able to look at the web interface just fine as well. 445 00:47:57,160 --> 00:47:57,540 So... 446 00:47:58,980 --> 00:48:00,200 Make it bigger too? 447 00:48:00,260 --> 00:48:00,840 Okay. 448 00:48:08,090 --> 00:48:10,210 Maybe always on top as well. 449 00:48:10,210 --> 00:48:11,090 Okay, cool. 450 00:48:11,430 --> 00:48:13,690 So, hopefully you guys all see this just fine. 451 00:48:14,090 --> 00:48:16,590 If you guys don't, just raise a hand, I'll make it bigger as well. 452 00:48:16,850 --> 00:48:18,630 We're just going to copy and paste this. 453 00:48:18,630 --> 00:48:24,710 We're just going to put Docker's repository URLs into the environment. 454 00:48:26,730 --> 00:48:28,130 Should work fine. 455 00:48:31,850 --> 00:48:34,050 We're just going to update our system as well. 456 00:48:41,340 --> 00:48:41,860 Cool. 457 00:48:41,860 --> 00: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? 458 00:48:50,120 --> 00:48:53,600 Just a quick little copy and paste will do the work for you most of the time. 459 00:48:55,760 --> 00:48:57,440 Just click yes to move forward. 460 00:49:08,890 --> 00:49:14,470 Might take a bit, depends on the architecture that you have in your environment. 461 00:49:15,250 --> 00:49:21,770 And just to verify if it works, you can just run Hello World and it'll show up. 462 00:49:21,790 --> 00:49:24,250 If it shows up like this, then you should be good. 463 00:49:24,250 --> 00: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. 464 00:49:35,130 --> 00:49:40,010 So if you click on next steps, it'll take you to post installation steps for Linux. 465 00:49:40,590 --> 00:49:44,650 And if you want to do this, if you don't, it's up to you. 466 00:49:44,650 --> 00:49:46,830 I'm just doing it for the sake of convenience. 467 00:49:49,250 --> 00:49:54,030 So just make sure that you have the Docker group in your environment. 468 00:49:54,030 --> 00:49:55,310 It doesn't hurt to just check. 469 00:49:55,310 --> 00:49:57,450 If you don't, it'll just add it regardless. 470 00:49:58,150 --> 00:50:00,330 It already exists, so we're good on that regard. 471 00:50:00,390 --> 00:50:04,850 And we're going to add this user to the Docker group. 472 00:50:06,770 --> 00: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. 473 00:50:20,790 --> 00:50:29,270 And then to verify if this works, you just simply run docker run hello world again. 474 00:50:29,270 --> 00:50:35,130 Now notice I don't have sudo in here, so if there's a permission issue, it'll throw up something. 475 00:50:35,810 --> 00:50:37,290 And it looks like it's good, right? 476 00:50:37,290 --> 00:50:40,890 So we have hello from Docker and we're good on that note. 477 00:50:41,010 --> 00: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. 478 00:50:52,830 --> 00:50:54,830 It's right up in this link here. 479 00:50:55,570 --> 00:50:58,070 So here, let me just look it up real quick. 480 00:51:02,080 --> 00:51:04,160 Amass Docker Compose. 481 00:51:05,560 --> 00: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. 482 00:51:19,390 --> 00:51:21,110 It's the wrong terminal. 483 00:51:24,070 --> 00:51:27,510 And just simply, we just go to my home directory. 484 00:51:28,430 --> 00:51:31,110 Simply git clone it. 485 00:51:33,110 --> 00:51:38,270 And you should have what is present here as Amass Docker Compose. 486 00:51:38,270 --> 00:51:40,950 You can change this name to whatever you like. 487 00:51:40,950 --> 00:51:43,850 We're just going to change it to Compose. 488 00:51:48,220 --> 00:51:50,000 As you see, it's right here. 489 00:51:50,480 --> 00:51:52,640 Now let's hop right into this. 490 00:51:53,060 --> 00:51:55,240 What resides here? 491 00:51:55,400 --> 00:51:57,580 This resides the Compose YAML. 492 00:51:57,580 --> 00:52:03,700 If you have any major technical issues with your Compose environment, you can change whatever you want there. 493 00:52:03,700 --> 00:52:08,820 It has your config, it has the data, and it has the logs. 494 00:52:10,240 --> 00:52:12,840 Let's just look into the config real quick. 495 00:52:15,180 --> 00:52:19,880 Just a quick note though. 496 00:52:19,880 --> 00:52:23,660 At this point, it would be good to check the data and the logs directory. 497 00:52:24,060 --> 00: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. 498 00:52:42,820 --> 00: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. 499 00:52:52,960 --> 00:52:55,740 You're going to wonder why it's not working and it's just something that simple. 500 00:52:55,740 --> 00:53:02,560 Those two directories need 777 on both of them 501 00:53:08,920 --> 00:53:09,200 . 502 00:53:09,200 --> 00:53:17,000 If your guys' connection is slow, I'll wait for you guys to get the get repo locally. 503 00:53:17,440 --> 00:53:21,120 We could give it a couple minutes if it's taking you guys a bit. 504 00:54:03,310 --> 00:54:04,970 Anybody else have any questions? 505 00:54:30,520 --> 00:54:34,260 I'll change my setting up right now. 506 00:54:42,300 --> 00: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. 507 00:54:56,980 --> 00:54:58,620 It'll be work done. 508 00:55:00,900 --> 00:55:01,800 So we're all good. 509 00:55:01,800 --> 00:55:05,620 Everybody has their repository cloned locally? 510 00:55:05,620 --> 00:55:08,000 If not, we could give it a little bit more. 511 00:56:11,380 --> 00:56:13,900 Just give it one more minute and I'll ask again. 512 00:56:22,940 --> 00:56:24,540 Does it seem like we're good? 513 00:56:24,780 --> 00:56:29,840 If you need help, Jeff will be around as well. 514 00:56:29,980 --> 00:56:33,740 But let's just dive into the configuration directory. 515 00:56:34,320 --> 00:56:36,360 So what does this entail? 516 00:56:36,400 --> 00:56:37,460 Let's take a look. 517 00:56:38,160 --> 00:56:44,520 So we have here the AssetDB environment, the config.yaml, the datasources.yaml. 518 00:56:44,660 --> 00:56:46,480 I'll explain all of those. 519 00:56:46,480 --> 00: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. 520 00:56:55,360 --> 00:56:57,520 So let's take a look at that. 521 00:57:05,160 --> 00:57:08,300 So what does this have here? 522 00:57:08,460 --> 00: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. 523 00:57:21,140 --> 00:57:28,100 So what I said before is you probably, if you're going to make any changes right now, do it. 524 00:57:28,100 --> 00: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. 525 00:57:39,820 --> 00:57:43,400 So if you're going to make any changes, it's best that you do it now. 526 00:57:43,400 --> 00:57:46,580 I'll give you guys just a minute to make whatever changes that you want. 527 00:57:46,580 --> 00:57:50,080 I'll keep mine the same just because this is just for testing, right? 528 00:57:50,080 --> 00:57:52,320 So I'll just give like a minute. 529 00:57:54,180 --> 00:57:56,320 Other things, I can actually talk a little bit further. 530 00:57:56,320 --> 00:57:59,260 So other things we could talk about is the config.yaml. 531 00:58:00,740 --> 00:58:05,700 It might have been a little bit too small on the slides, but we could go over this real quick, right? 532 00:58:05,720 --> 00:58:08,580 It has the domains, the IPs, the CIDRs. 533 00:58:08,600 --> 00: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. 534 00:58:19,660 --> 00:58:21,640 We have options here. 535 00:58:21,880 --> 00:58:28,020 You probably don't want to change this because this is where your data source credentials will be located. 536 00:58:28,020 --> 00:58:35,520 If you're going to change this or change a name, you probably need to also update this area as well. 537 00:58:35,520 --> 00:58:37,860 People often get that mixed up. 538 00:58:37,860 --> 00:58:39,820 I sometimes even fall for that too. 539 00:58:53,100 --> 00:58:54,420 Fair enough. 540 00:58:55,160 --> 00:58:57,460 Also, it's a good catch as well. 541 00:58:59,620 --> 00: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. 542 00:59:10,840 --> 00:59:13,260 And this is what is used to connect to the database. 543 00:59:13,260 --> 00:59:20,120 You want to change that accordingly to have it match up with what you had in your AssetDB file as well. 544 00:59:20,120 --> 00:59:21,840 Otherwise, it will fail to connect. 545 00:59:24,000 --> 00:59:27,700 And then, what we talked about before with the transformation. 546 00:59:27,740 --> 00:59:28,940 This is what we were talking about. 547 00:59:28,940 --> 00: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. 548 00:59:42,060 --> 00:59:44,400 We could add anything we want here. 549 00:59:44,400 --> 00:59:47,140 We could remove anything we want. 550 00:59:47,140 --> 00:59:50,700 We could also add exclusions if we want to do that as well. 551 00:59:51,220 --> 00:59:54,540 But for this case, we're just going to keep it as is just for the sake of running it. 552 00: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. 553 01:00:12,910 --> 01:00:14,570 If you want to add something, go ahead. 554 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. 555 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. 556 01:00:32,290 --> 01:00:35,170 But they all could point to the same database. 557 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. 558 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. 559 01:00:56,250 --> 01:01:00,470 But they're all contributing to the same DB. 560 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. 561 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. 562 01:01:33,080 --> 01:01:35,080 Yeah , that's a good point. 563 01:01:35,580 --> 01:01:37,780 I'll just move forward with the data sources. 564 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. 565 01:01:45,240 --> 01:01:47,340 We'll be able to help out gladly. 566 01:01:48,180 --> 01:01:50,260 Let's just take a look at the data sources. 567 01:01:51,720 --> 01:01:56,220 This is where you want to put all the creds that you want to possibly use. 568 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. 569 01:02:03,740 --> 01:02:06,040 We're working on adding more, of course. 570 01:02:10,320 --> 01:02:11,560 What was I going to say? 571 01:02:11,560 --> 01:02:12,820 I just lost the train of thought. 572 01:02:13,620 --> 01:02:16,720 The key part about this too, which is pretty nice as well. 573 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. 574 01:02:36,800 --> 01:02:38,480 That's also a pretty nice thing as well. 575 01:02:41,620 --> 01:02:44,580 It allows you to control how hard you're hitting the credits as well. 576 01:03:05,520 --> 01:03:07,800 That's just because how YAML is. 577 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. 578 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. 579 01:03:20,400 --> 01:03:25,900 It's not just like us thing, it's literally just how YAML works. 580 01:03:36,060 --> 01:03:36,720 Quotes. 581 01:03:36,720 --> 01:03:38,440 Yeah, that's also a fair point too. 582 01:03:44,120 --> 01:03:45,580 That's a good point as well. 583 01:03:45,580 --> 01:03:47,980 This is just me putting whatever it is in. 584 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. 585 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. 586 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. 587 01:04:05,620 --> 01:04:09,140 You can have username and passwords into this as well. 588 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. 589 01:04:17,560 --> 01:04:19,120 So on and so forth. 590 01:04:27,280 --> 01:04:28,820 Good point. 591 01:04:28,940 --> 01:04:30,580 These are all commented out. 592 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. 593 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. 594 01:04:41,120 --> 01:04:42,220 Just add a block. 595 01:04:44,160 --> 01:04:48,060 So if you guys have any questions, Jeff will go around. 596 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. 597 01:04:53,600 --> 01:04:55,520 So let me just add this all. 598 01:04:55,980 --> 01:04:57,280 Just comment this. 599 01:04:58,000 --> 01:05:04,440 And I'm just going to real quick change the display settings on this. 600 01:05:06,000 --> 01:05:06,860 Yeah, no. 601 01:05:08,100 --> 01:05:10,460 Alright, so let's see here. 602 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. 603 01:08:59,010 --> 01:09:02,650 Okay, I'm going to be putting my screen back on mirror. 604 01:09:03,350 --> 01:09:04,550 Should be good. 605 01:09:12,790 --> 01:09:15,330 Yeah, if there's any questions, feel free to ask. 606 01:09:17,370 --> 01:09:20,530 I'm going to be assuming that people have their stuff in. 607 01:09:20,530 --> 01:09:23,610 If not, just raise your hand and I can give you guys an extra minute. 608 01:09:24,390 --> 01:09:25,150 We're good? 609 01:09:25,150 --> 01:09:25,770 Okay. 610 01:09:26,090 --> 01:09:26,810 Cool. 611 01:09:27,310 --> 01:09:30,770 So all we need to do now is also if you look at... 612 01:09:32,350 --> 01:09:33,370 Okay, cool. 613 01:09:33,370 --> 01:09:34,270 Even if we don't. 614 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. 615 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. 616 01:09:56,670 --> 01:09:59,290 So for this case, we're just going to do os.org. 617 01:09:59,370 --> 01:10:01,430 Just to check real quick. 618 01:10:01,770 --> 01:10:03,270 Just want to make sure I get it right. 619 01:10:04,850 --> 01:10:05,410 Docker... 620 01:10:05,410 --> 01:10:06,170 Yeah? 621 01:10:06,830 --> 01:10:09,330 Alright, we'll just run it then. 622 01:10:09,330 --> 01:10:09,930 Cool. 623 01:10:10,930 --> 01:10:13,450 Let me just go back to here. 624 01:10:13,630 --> 01:10:15,570 Alright, so we're just going to run it. 625 01:10:16,010 --> 01:10:24,070 Now, it's pulling all the images that we need to run our environment. 626 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. 627 01:10:32,810 --> 01:10:33,930 This might take a bit. 628 01:10:33,930 --> 01:10:35,630 Depends on your infrastructure, right? 629 01:10:35,630 --> 01:10:37,830 So that's what it's doing right now. 630 01:10:37,830 --> 01:10:43,290 It's just getting the images and it's just extracting what it needs to extract. 631 01:10:43,410 --> 01:10:45,630 Typical Docker stuff as of right now. 632 01:10:53,720 --> 01:10:54,480 It's building 633 01:11:06,860 --> 01:11:09,860 the engine stuff right now, as you see right here as well. 634 01:11:10,400 --> 01:11:11,140 Engine. 635 01:11:11,860 --> 01:11:16,140 So we have our engine image being pulled and built. 636 01:11:23,880 --> 01:11:26,860 So this might take a bit. 637 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. 638 01:11:36,620 --> 01:11:38,580 But usually it goes pretty fast. 639 01:12:13,610 --> 01:12:16,650 So as you see here, we're creating the network. 640 01:12:16,690 --> 01:12:18,210 It's a mass network. 641 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. 642 01:12:23,970 --> 01:12:26,950 Like I said, we have low-key here for log management. 643 01:12:27,270 --> 01:12:29,530 AssetDB, that's where we store our assets. 644 01:12:30,650 --> 01:12:33,930 We're using syslog for our logging services. 645 01:12:33,930 --> 01:12:35,070 We're using Grafana. 646 01:12:35,670 --> 01:12:38,110 Like I said before, Grafana is our web interface. 647 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. 648 01:12:47,470 --> 01:12:49,070 And then, of course, we have the engine. 649 01:12:51,490 --> 01:12:53,470 So just doing some extra stuff. 650 01:12:53,470 --> 01:12:56,190 Everything should come up healthy at this point, right? 651 01:12:56,930 --> 01:13:00,710 If it's not healthy, which is usually going to be low-key for this case. 652 01:13:00,710 --> 01:13:02,630 I usually see it show up low-key. 653 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. 654 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. 655 01:13:25,150 --> 01:13:29,270 So if you did that, it should look like this for now. 656 01:13:43,090 --> 01:13:43,590 Yeah. 657 01:13:44,230 --> 01:13:44,970 Cool. 658 01:13:44,970 --> 01:13:46,070 Yeah, I can do that. 659 01:13:49,440 --> 01:13:51,880 So how do I... 660 01:14:00,940 --> 01:14:01,420 So... 661 01:14:03,100 --> 01:14:04,060 Yeah? 662 01:14:04,980 --> 01:14:05,520 Okay. 663 01:14:05,520 --> 01:14:06,280 Yeah. 664 01:14:08,380 --> 01:14:08,880 Okay . 665 01:14:09,060 --> 01:14:11,280 So let's see here. 666 01:14:15,080 --> 01:14:15,940 Alright. 667 01:14:15,940 --> 01:14:16,480 So what was it? 668 01:14:16,480 --> 01:14:18,120 Docker compose stats, right? 669 01:14:18,120 --> 01:14:18,980 Alright. 670 01:14:20,560 --> 01:14:21,100 So... 671 01:14:22,840 --> 01:14:28,500 This is all of the statistics with what's going on within our environment. 672 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. 673 01:14:34,020 --> 01:14:35,760 But that's because we're building stuff. 674 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. 675 01:14:42,340 --> 01:14:42,900 So... 676 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. 677 01:15:00,620 --> 01:15:03,800 So you'd want to probably connect... 678 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. 679 01:15:13,400 --> 01:15:14,280 Specifically. 680 01:15:18,590 --> 01:15:20,050 I'll put the stats up. 681 01:15:58,210 --> 01:15:58,850 Okay. 682 01:15:58,850 --> 01:16:01,410 So now we have everything set up and it's building. 683 01:16:01,650 --> 01:16:05,230 If it builds correctly, everything, you should get this progress bar. 684 01:16:05,230 --> 01:16:08,650 That's the Amaz client doing its thing. 685 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. 686 01:16:15,770 --> 01:16:18,050 We want to check out the stats right now. 687 01:16:18,110 --> 01:16:20,910 So minimal usage still. 688 01:16:20,910 --> 01:16:24,630 We're only using 138 megs as of right now. 689 01:16:24,630 --> 01:16:28,130 So that's only 3% of what we gave it for the limit. 690 01:16:28,950 --> 01:16:31,010 And it'll be pretty low. 691 01:16:31,010 --> 01:16:33,370 I mean, this is pretty impressive as of right now. 692 01:16:34,050 --> 01:16:39,510 Other tools, even the older client, it would probably use just a bit more. 693 01:16:39,510 --> 01:16:41,690 But this is pretty efficient. 694 01:16:41,830 --> 01:16:43,950 And this is actually really impressive. 695 01:16:44,830 --> 01:16:46,330 It handles the events just well. 696 01:16:46,330 --> 01:16:47,330 It drops them just well. 697 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. 698 01:16:58,490 --> 01:16:59,750 We're going to check it out. 699 01:16:59,750 --> 01:17:01,210 Progress bar still going. 700 01:17:01,350 --> 01:17:05,130 This is how many events we have and this is how many we processed. 701 01:17:05,370 --> 01:17:07,350 Obviously we have a nice little percentage here. 702 01:17:07,850 --> 01:17:09,670 So it should give you an idea. 703 01:17:23,360 --> 01:17:24,600 Cool. 704 01:17:31,020 --> 01:17:36,580 So, as he said, it's pretty efficient. 705 01:17:36,580 --> 01:17:42,520 And we've had some interesting sponsors for this project recently. 706 01:17:42,520 --> 01:17:44,700 One of which is on my shirt right here. 707 01:17:44,700 --> 01:17:46,140 Fortified data. 708 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. 709 01:17:54,900 --> 01:17:57,020 Kind of bleeding edge for the project. 710 01:17:57,180 --> 01:18:02,600 They have said, well, it works better than what I used to be able to get. 711 01:18:03,340 --> 01:18:05,160 And they're using it. 712 01:18:05,160 --> 01:18:11,240 And they've been able to confirm thousands of customers are being monitored with this. 713 01:18:13,420 --> 01:18:15,820 Let's just call it every week at least. 714 01:18:15,960 --> 01:18:19,220 With potentially thousands of namespaces. 715 01:18:20,280 --> 01:18:23,840 A huge number of targets. 716 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. 717 01:18:31,780 --> 01:18:36,200 So, of course, we've got a pretty small target that Adam's using here. 718 01:18:36,300 --> 01:18:37,200 OASPA mask. 719 01:18:37,200 --> 01:18:39,160 We're just keeping this simple and light. 720 01:18:39,160 --> 01:18:44,760 But you can fire this at pretty large scopes. 721 01:18:44,980 --> 01:18:48,100 And this can keep up. 722 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. 723 01:18:56,900 --> 01:19:01,160 I mean, Postgres is a beast and it can handle this quite easily. 724 01:19:01,440 --> 01:19:08,640 What we're doing with it doesn't even tickle Postgres. 725 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. 726 01:19:24,220 --> 01:19:26,320 And we're going to be trying to keep it that way. 727 01:19:31,630 --> 01:19:32,610 Good point. 728 01:19:33,870 --> 01:19:36,310 See, now our progress bar just went down a bit. 729 01:19:36,310 --> 01:19:42,050 But that is because one of these handlers just found a crap ton of data. 730 01:19:42,250 --> 01:19:43,430 Additional events. 731 01:19:43,730 --> 01:19:45,570 So, that might trick you a bit. 732 01:19:45,570 --> 01:19:47,370 You might be sitting at 96 for a little bit. 733 01:19:47,370 --> 01:19:49,630 The next thing you know, you're like at 70. 734 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. 735 01:20:00,640 --> 01:20:02,400 And same thing again. 736 01:20:02,400 --> 01:20:03,820 And look at this again. 737 01:20:04,760 --> 01:20:09,010 Now we went from 96 to 1,200. 738 01:20:11,500 --> 01:20:17,400 And even then, still pretty memory efficient. 739 01:20:27,800 --> 01:20:32,880 Now hopefully, you know, this thing does its enumeration nice and quick. 740 01:20:36,940 --> 01:20:39,060 What's the longest it's enumerated at? 741 01:20:39,820 --> 01:20:43,920 I've had it sometimes with the math before too. 742 01:20:43,920 --> 01:20:45,340 Sometimes it could be days. 743 01:20:45,340 --> 01:20:47,980 Just because of how many... That question just varies. 744 01:20:48,100 --> 01:20:51,680 Just because of what are you running this on? 745 01:20:51,680 --> 01:20:53,100 Who are you running this against? 746 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. 747 01:21:00,780 --> 01:21:01,600 So... 748 01:21:03,160 --> 01:21:08,080 I wouldn't be surprised if it lasts you a long time with some cases. 749 01:21:08,420 --> 01:21:12,900 But that's just the nature of the organization that you're running this against. 750 01:21:46,980 --> 01:21:50,160 Even though it has a bit, it's chugging along pretty decently. 751 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. 752 01:22:50,160 --> 01:22:52,100 Now we're three quarters of the way there. 753 01:22:54,540 --> 01:22:56,660 Like I said, this thing is just chugging along. 754 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. 755 01:23:50,240 --> 01:23:52,220 Just got two more left. 756 01:23:52,380 --> 01:23:53,640 One more. 757 01:24:23,900 --> 01:24:26,850 So now we're done with our enumeration process. 758 01:24:28,620 --> 01:24:30,180 Woohoo, right? 759 01:24:31,640 --> 01:24:32,180 So... 760 01:24:32,180 --> 01:24:35,000 You could do a lot of things here at this point, right? 761 01:24:36,120 --> 01:24:39,240 For this case, say I wanted to just get emails. 762 01:24:40,700 --> 01:24:45,780 I could just say docker-compose run dash dash rm. 763 01:24:45,780 --> 01:24:48,420 Same thing, but I could do emails for this. 764 01:24:48,420 --> 01:24:52,760 The mass client supports this sub-command right here called emails. 765 01:24:52,820 --> 01:24:55,200 And you just got to type in the domain that you're looking for. 766 01:24:55,200 --> 01:24:59,900 And if I click enter, it'll do the typical just checking the head's health. 767 01:24:59,900 --> 01:25:02,420 And all of these emails right here just showing up. 768 01:25:02,420 --> 01:25:06,460 I mean, if you want, I could probably do a word count real quick. 769 01:25:06,900 --> 01:25:09,840 I just hope it doesn't include the... 770 01:25:09,840 --> 01:25:12,160 Yeah, okay, we'll see. 771 01:25:13,840 --> 01:25:17,320 So at this point, we got 1,037 emails. 772 01:25:17,560 --> 01:25:20,700 Now, this could vary, right? 773 01:25:20,700 --> 01:25:24,060 So we have a verification handler here. 774 01:25:24,880 --> 01:25:30,680 Now , the way our engine works with the verification handling is if we even attempt to... 775 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. 776 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. 777 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. 778 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. 779 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. 780 01:26:18,740 --> 01:26:21,920 But this is, for my case, what I got out of my results. 781 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. 782 01:26:38,960 --> 01:26:41,420 Real quick, show them the subs output. 783 01:26:41,420 --> 01:26:43,300 Yes, so I'll show you the subs output. 784 01:26:48,920 --> 01:26:50,900 Just like that? 785 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. 786 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. 787 01:27:19,800 --> 01:27:22,380 So this is really good information. 788 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. 789 01:27:27,180 --> 01:27:28,620 This is all done with tooling. 790 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. 791 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. 792 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. 793 01:27:55,820 --> 01:27:57,020 That's the beauty of it. 794 01:28:19,170 --> 01:28:21,950 So I'm just going to hop into my... okay. 795 01:28:44,480 --> 01:28:47,680 I mean, I think you're better off explaining this. 796 01:28:50,140 --> 01:28:50,900 All right. 797 01:28:50,900 --> 01:28:52,020 So we had a question. 798 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? 799 01:29:01,320 --> 01:29:03,660 Or, sorry, engine. 800 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. 801 01:29:18,520 --> 01:29:22,080 If you have support, we will validate. 802 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. 803 01:29:28,300 --> 01:29:33,580 We can reach out to the IP addresses and make sure they're still responding. 804 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. 805 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. 806 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. 807 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. 808 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. 809 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. 810 01:30:34,100 --> 01:30:36,180 And it's going to check to see if it's active. 811 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. 812 01:30:46,960 --> 01:30:48,200 Hence, it's gone. 813 01:30:48,200 --> 01:30:49,640 Or you could go the other way around. 814 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. 815 01:30:56,400 --> 01:30:58,680 Hence, they're new or they're popping up. 816 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. 817 01:31:07,260 --> 01:31:08,620 We have another question. 818 01:31:08,620 --> 01:31:10,120 I hope that answers your question. 819 01:31:10,660 --> 01:31:11,780 Next question? 820 01:31:12,080 --> 01:31:13,820 Yeah, just get close to him. 821 01:32:52,130 --> 01:33:01,590 So, this is just an example of me running a simple SQL query on this thing. 822 01:33:01,590 --> 01:33:08,070 So, I just dropped into the AssetDB container and just ran bash on it. 823 01:33:08,070 --> 01:33:13,770 And I just used Postgres PSQL with the username flag being a mass as a user. 824 01:33:13,770 --> 01:33:17,350 And then the database I was connecting to, which is AssetDB. 825 01:33:18,290 --> 01:33:22,310 It's obviously different if you changed your AssetDB environment file. 826 01:33:22,510 --> 01:33:25,130 But , say I just wanted to get everything, right? 827 01:33:25,130 --> 01:33:26,330 This is what I mean. 828 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. 829 01:33:31,930 --> 01:33:35,030 So , just like I always said here, select everything from assets. 830 01:33:35,190 --> 01:33:36,970 Everything will show up here, right? 831 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? 832 01:33:44,510 --> 01:33:49,710 Now, if you see there, it says what type of relation it is. 833 01:33:49,710 --> 01:33:53,590 A record, quad A record, so on and so forth. 834 01:33:54,930 --> 01:33:57,190 Let's see here if there's anything else. 835 01:33:57,190 --> 01:34:03,730 There's like nodes, contains, for like CIDR containing IP addresses, pretty sure. 836 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. 837 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. 838 01:34:15,630 --> 01:34:17,110 Yeah, you showed a query? 839 01:34:17,170 --> 01:34:20,390 Yeah, I just did a basic one, just select everything from it. 840 01:34:21,070 --> 01:34:22,210 And it could be done. 841 01:34:22,310 --> 01:34:25,690 I mean, maybe I'm just too comfortable with databases. 842 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? 843 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. 844 01:34:46,290 --> 01:34:50,370 It's like, again, I would say, it's easy. 845 01:34:50,650 --> 01:34:51,190 Right? 846 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? 847 01:34:59,050 --> 01:35:00,310 And it's not hard. 848 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. 849 01:35:09,170 --> 01:35:13,130 We've got them all laying around where we can just hand them out to people. 850 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? 851 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. 852 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. 853 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. 854 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. 855 01:36:02,950 --> 01:36:04,370 So let me just get off this. 856 01:36:06,870 --> 01:36:13,350 So as you see here, Grafana is binded outside for port 3000. 857 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. 858 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. 859 01:36:40,410 --> 01:36:41,970 Just one comment. 860 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. 861 01:36:58,810 --> 01:37:01,770 You're going to have to sign up for it, but there's no cost. 862 01:37:01,770 --> 01:37:04,370 It's their free version, or community version. 863 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. 864 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. 865 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. 866 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. 867 01:37:55,110 --> 01:37:57,010 We're not allowed to give it to you. 868 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. 869 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. 870 01:38:12,170 --> 01:38:13,350 I like it. 871 01:38:17,680 --> 01:38:19,880 Okay, let me just bring the slides up here. 872 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. 873 01:38:40,910 --> 01:38:42,130 That's the beauty of SADB. 874 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 875 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. 876 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. 877 01:39:10,990 --> 01:39:12,690 It showed up just fine. 878 01:39:13,170 --> 01:39:17,830 It does the same exact job, but there's different ways that you could do it. 879 01:39:20,050 --> 01:39:26,490 So, this just goes to show that attack surface mapping is just more than just infrastructure. 880 01:39:26,490 --> 01:39:28,030 Let me stand up for this. 881 01:39:29,030 --> 01:39:34,030 So, for this case, think about how social engineering can be done. 882 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. 883 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. 884 01:39:53,210 --> 01:39:57,810 So, in this case, traditional IT mappings won't really do it for you. 885 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. 886 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. 887 01:40:17,590 --> 01:40:24,370 So, that's what the beauty of viewing attack surface mapping as more than just infrastructure. 888 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. 889 01:40:32,010 --> 01:40:33,810 So, as you can see here, we have a bunch . 890 01:40:33,910 --> 01:40:35,150 I can name them. 891 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. 892 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. 893 01:40:55,250 --> 01:40:59,190 Because, like I just said, it's more than just IT assets. 894 01:40:59,190 --> 01:41:01,850 If you're an adversary, you're going to be looking more. 895 01:41:01,850 --> 01:41:03,510 You won't care what you find. 896 01:41:03,510 --> 01:41:05,890 You're going to just find something to take advantage of. 897 01:41:09,490 --> 01:41:11,730 That's about it that we have. 898 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. 899 01:41:29,630 --> 01:41:31,370 Thank you guys very much.