Okay, and we're about to move into our next session. This is our first live tool demo of the day, and so far, so good. But things might go a little skew-iff. So we've got backup options on the backup options on the backup options. And we'll see what ends up happening. I will hand over to these guys, pretty sharp-ish, because their tool is... their tool? That's going to sound a bit dodgy. But never mind. The project that they work on has already been mentioned in the past two talks. There was an entire slide on the last one that basically listed every single one of the things that was involved in this project. The project, I'm asked, does focus on automation of network mapping and asset mapping and asset discovery. And without further ado, I will hand over to Jeff. Thanks very much. Thank you. All right. So yes, this is about OWASP Amass. So when I first started doing this, I dreaded having to do asset discovery. It took too long, too many tools. It was cumbersome. And that's what caused Amass to be born. We just needed a smoother way to do this, an easier way to do this. And all the years that I had spent in this field, 17 years, I shouldn't reveal my secrets, but it just taught me to write my own tools when necessary. I don't like to rely on what's already out there. If it's not suiting my needs or meeting my requirements. So I started working on this. Seems like a lot of other people were happy to receive it as well. I'm Jeff Foley. This is Anthony Rhodes. He is a major contributor to this project. He joined so he could bring his advanced penetration testing skills and software development as well to this project and enhance the capabilities. And regardless of what your current experience with this is, we're going to be covering everything from the basic usage of this initially, but then we're going to dive in pretty quick to how to get more out of this. Because we've been getting some interesting feedback from people just saying we'd like to go further with Amass now. And with that, I'll hand it over to Anthony. All right. Is this too small? I can bump it up. Okay. That's all. I'm going to be doing a demo of Amass today. I'm just going to show you a basic enumeration right now. I think most people would start out with this command. The enum sub command. And just pardon the slow network connection. So Amass has several sub commands. A couple of them for enumerations and then a couple of them like support tools, you know, tracker, database, visualization tool. So we're just going to start off with a basic enumeration where we're going to give it a domain name and we're going to try to find subdomains off of that. So I'm going to give it the dash source flag to show, you know, where all these subdomains are coming from. There's a lot of open source intelligence feeds that we're kind of pulling from. We also have brute forcing and alterations. And then I'm going to tell it to give me the IP because it goes out and resolves them all. So while that's thinking, sometimes it takes a little bit to get the first results. But the way Amass works, and I think what sets it apart from a lot of the other subdomain enumeration tools is that, you know, a lot of those tools will grab from the open source feeds and they'll do brute forcing. But then that's it. And it's done. What Amass does is whenever it resolves a name, it feeds it back into the enumeration. And so then it performs brute forcing and alterations on that. So now that we're getting results, I can talk to those. So, yeah, so you can see there's ‑‑ we got threat crowd, cert SH, you know, that's certificates. Way back we crawl archives and grab stuff there. Alterations. I'll get more into that later. That's a little heavy right now. Buffer over is the rapid 7 project sonar DNS scans. So that's just API that someone threw up. So that gives a lot of results. Rapid 7 did a lot of good work there. And then we got Markov model. That's kind of similar to alterations. Uses Markov model, like Markov chains to try to, you know, guess based on the, you know, previous input that's training the model. So, yeah, it will keep going. You can see just if you like looking at this data, you can already see that, like, this organization has some patterns where, you know, we might be able to iterate that on that further. And, yeah, so like, let's see. Oh, yeah, so like the CSTS3, CSTS4. So, yeah, it looks like alterations, you know, caught on to that and, you know, generated more hits. So whenever, yeah, alterations supports a lot of different features that I've added in the past year. Originally it focused on just, like, pulling numbers out and then, you know, flipping them to every other possible number and then adding numbers. So, like, every time I saw a number, it basically generated a thousand more requests. Because, you know, it's really common for people to just keep adding to the number, you know, when they have, you know, multiple of these domains that are, you know, meant for the same purpose. So the features that I added to alterations, you know, were doing something similar like that except with words. So if you see right here, we have www-dev. And this is really common across, like, all organizations. You know, you have dash prod, dash test, and a bunch of those. So mass will look for those too. It looks for subdomains that have dashes in them and then it pulls out the first and last words. And then it has a word list of, like, 200 or so really common words that it will throw in there in the place of dash dev to try to, you know, enumerate, you know, all the iterations of, like, this source. So you get the dev, the prod, the test, and all that. So, yeah, let's see if this is done. No, it's still going. Okay, yeah, it's pretty fast. This is default settings and it's, like, a couple hundred a second. So you can crank that up. There's a setting for that where you can increase how many connections it can support at a time. All right, cool. So I finished. So, yeah, I'll talk about this output right here. Don't get mad at me. Okay. Yeah, so during the whole enumeration, it's resolving all these IPs and it's grabbing, you know, the net blocks and the autonomous systems that are related. And then it, you know, throws all of this into a graph database, you know, where all the relationships are preserved. So you can and then at the end, it prints out all of the, that information. So you can see, you know, how many hits you're getting per net block. So you can see, like, they have an AS Utica college, which makes sense. Utica.edu. And that's where, that's the primary source of all their subdomains. So, yeah, you did this. So say you did this basic enumeration and you want to, like, take it a little further and try to discover, you know, more of this target, you know, beyond just looking at Utica.edu. So Teamux wants to cooperate. So Amass has a subcommand called Intel. And this does, it basically tries to expand the scope of what you're looking at, whereas the enum just tries to find all the subdomains and assets within the scope you give it. So this will try to find domain names that are related to Utica.edu. So we can give it, we can, like, pull this AS number out and we can give it to the Intel command. We also want to give it the active flag, too. And what it will do there is it will pull the net block for that and then it will do, like, reverse DNS and, you know, cert grabbing to try to find other domains. All right. So, yeah, while that's thinking, Intel also supports reverse who is. So if you're unfamiliar with that, reverse who is, there's a ton of these APIs out there. And most of them cost money, unfortunately. But, you know, the information is invaluable, so that's why. So, you know, what reverse who is is you can perform a who is on, you know, grab email addresses like the admin and the tech contact and all that out of that and also name servers when available in the who is information. And then you can feed it into these reverse who is services and it will give you all the domains that are registered, you know, with those same details. So really to be able to offer that kind of service, you have to really scrape who is, which is really hard. Unless you can somehow acquire, you know, the bulk of the who is information out there. And I tried and it's not feasible. At least from home. Yeah, so this command finished. Gave us a few other domains that appear to be related. Like we got UC fishing, Utico college. I guess probably typo squatting there. So, yeah, I can show you the who is stuff. Doo doo. So, oh, no, too far. Who is dash D, Utico.edu. So there's only one service for oh, yes, okay. There's only one service for reverse who is that we support that's free. But it only gives you like the top 50 results and sometimes they get angry and, you know, they rate limit and we don't really handle that exactly yet. So this morning when I was testing this out, you know, I got no results for that. But glad that I got results. So you see here that, you know, this gave us like a treasure trove of new domains to look at. So then we can throw these back into the enum command and, you know, try to get some domains for those. So earlier I picked out a few yeah, a few of what looks like they really own. Because sometimes you can get like you know, especially in this case for a college, you can get like student websites. Like if they registered with their college email or something. So this list for the who is stuff, you really have to kind of like parse through yourself. Or, you know, I mean, sometimes it's really obvious. Sometimes it's not. Yeah, so this is the list I grabbed. And then we're going to do another enumeration feeding that stuff in there. All right. So now it's in a file. So we can do the df flag. All right. What else did I want to do? Throw in brute forcing now. I didn't do brute forcing last time. Mm‑hmm. I want you to hate slow SSH connections. All right. So there's some other ‑‑ so like I was talking with the alteration stuff earlier, just very recently I added the ability to ‑‑ on top of supplying word lists for alterations and brute forcing, you can now throw in hash cat style masks into those word lists or you can just throw them on the command line. So we'll do that, too. So, yeah, if you're unfamiliar with how hash cat masks work, you know, hash cat supports what's called a mask attack. And it allows you to put wild cards into your word lists, you know, where this question mark A refers to, like, any character that's possible. For DNS it's, like, 37 different characters. Or you can do, like, dash L for letter. That's, like, A through Z. Or you can do dash D or question mark D for digit. Zero through nine. Yeah, I'm just going to do some basic ones. And dash WM does it for brute force. And then dash AWM throws it into alterations. Okay. All right. So that's going to think a little bit. So, like I said earlier, everything's stored into a graph database. And what's cool about that is that, you know, we can support a lot of support functions for that, like tracking. So you can track between different enumerations. So say you ran one last week. You want to run one this week. It'll, you know, tell you, you know, which ones are found that are new. You know, which ones are modified. So you can see if, like, something's changing IPs. That might be more useful if you're, like, trying to map out a threat actor or something. See if they're trying to move their infrastructure. And there's also visualization. But another really cool thing that we can do with that is if you have a previous enumeration for a domain, for a mass, and then you run a new enumeration, it'll pull all the names it discovered previously and throw them into the new enumeration right in the beginning. So that adds a little more consistency and it also just speeds it up a little bit. Yeah. How are we doing on time? We got, like, 15 minutes, right? Shit. Yeah. So I guess while that's running, I can talk about the visualization stuff. So this is enumeration of the OWASP. OWASP.org domain. So this is pretty much exactly how it's stored in the graph database. Yeah. This lets you, you know, kind of explore, you know, all the relationships between everything. And you can see, like, clusters where so you got, like, OWASP.org and then a subdomain would be, you know, like, docs and gapps. And I can see where this is going. Mail. So, yeah, obviously all that points to, you know, Google apps. And you can see that here where it all eventually, you know, goes from to, you know, IPs, net blocks, and then eventually Google's AS or one of Google's ASs. But, yeah, this is really cool. You can a lot of times in much larger enumerations, you can, you know, discover patterns or, you know, see, you know, where they're using third parties like I just showed or you can see acquisitions where, you know, you acquired a company and that will be like a huge cluster, you know, way off if it hasn't been fully migrated yet into, you know, existing company's infrastructure. And it wiggles. Yeah. Yeah, it's just a snapshot of the enumeration. But we've definitely explored options of, like, streaming the data so we can get, like, live feeds, especially for, like, larger environments where an enumeration might take days or something. It would be really cool to have that kind of visibility. Yeah. Let's see if this found anything good. Oh, yeah. That's a good point. All right. Yeah, I'm just going to kill this now. So, yeah, it was, like, kind of showing you how you can, you know, go from, you know, a single domain and, you know, really kind of iterate on that. And you can go even further. As you discover more patterns, you can keep feeding it in. So now I'm just going to, you know, back up and I'll go over some of the configuration options. So this is our example config, and it has, I believe, everything we support. So, yeah, active mode, that's grabbing certs and doing zone transfers where possible. By default, it's active mode is off. There is a passive mode, which will just grab the open source intelligence feeds, and it won't do any resolution. So the default is kind of like this in between passive and active, where you're only dealing with the DNS servers and not actually poking the target. So this maximum DNS queries, you can ramp that up to, you know, pretty high, like 100,000 if you really want to improve the performance. I mean, what this means is it's how many concurrent DNS queries can be performed. It's not, you know, how many queries per second. So if you put in, like, 100,000, you're not going to get 100,000 queries per second. It's just, you know, how concurrent it is. If you want, you can, like, tell it to, you know, give you the unresolvable ones by default. The enumeration only prints out things that resolve. Yeah, you can give it, this is the default list of resolvers that it reaches out to. A lot of the, you know, common public ones. But you can give it a list of 1,000 or so. I mean, as much as your system can support in terms of file descriptors. What we like to do is grab the public DNS service list, server list, and throw it in there. And pretty recently we wrote some code in there to actively determine, you know, which servers are, you know, giving us bad information or just not responding, you know, because maybe they're rate limiting or stuff. So there's an election set up, you know, where each request will try on three different servers. And then, you know, if we find that one gives a different result than, you know, the other two, it'll, you know, score down the one that gave the bad result. And then once it gets below a threshold, then we just remove it from the enumeration. It also helps, you know, if you don't have any DNS connectivity to any of these servers, it'll tell you pretty instantly now, whereas before it wouldn't. So, yeah, say you're in assessment and you have, like, some subdomains that you wanted to exclude because they're specifically out of scope, you can do that here, too. Or if you're just weary of some of the data sources, like you don't want to reach out to them for whatever reason, you can disable them, too. And then the last thing I'm going to go over, well, here's all the brute force and alteration settings. I think I'm running out of time pretty soon. But basically you can modify if you want for brute forcing, you can tell it, you know, if you want to do recursive brute forcing and, you know, how often you want to recurse or, like, under what circumstances you want to recurse because sometimes you don't necessarily want to recurse on everything because that'll generate way too much traffic. You can see here there's a ton of flags for tweaking the alterations where you can tell it not to add words and not to flip words or flip numbers, which that's just like an in place substitution rather than appending or prepending. And for brute force and alterations, you can give multiple word lists and it'll deduplicate them down to a single word list that it'll use. And then finally, we have a bunch of commercial APIs that we support, and this is where you put them if you have them. So some really good ones, we have census, alien vault is free. We have passive total, that's a good one. Security trails, show it in. Twitter is all right. It searches tweets for subdomains. It's not really that effective, but it's a cool thing to do. Cisco umbrella and virus total. But, yeah, that's about it. Any questions? All right. Oh, you got a question? Hmm? Oh, no. He wants my show in an API key. So as I mentioned in the beginning, you know, Anthony is one of our contributors. We're always looking for more contributors. This project wouldn't be where it is today without them. And also, contributing can mean more than just writing code for this. We have quite a few testers that are constantly helping us improve this project. We're always looking for people to help us with documentation and things like that or ways to help people use it better. So if anyone is interested in contributing, please let us know. Join us on our discord or reach out to us on Twitter and we can discuss it. Yeah, so you asked if you can specify the ports that it reaches out for like certificates and stuff? Yeah, you can. So in the config file, you can under network settings, there's a port and you can give any number of those that you want. We have a couple in there. I think by default, we just do 443, right? Yeah. And I think you can do comma separated. Yeah, and on the command line, you can do comma separated port values, all of that dash port option. And this is our GitHub page. It's pretty easy. But, yeah, thanks for coming.