start	end	text
0	5240	Okay, and we're about to move into our next session. This is our first live tool demo of
5240	10840	the day, and so far, so good. But things might go a little skew-iff. So we've got backup
10840	14660	options on the backup options on the backup options. And we'll see what ends up happening.
14840	19460	I will hand over to these guys, pretty sharp-ish, because their tool is... their tool?
19460	23280	That's going to sound a bit dodgy. But never mind. The project that they work on has already
23280	28300	been mentioned in the past two talks. There was an entire slide on the last one that basically
28300	33040	listed every single one of the things that was involved in this project. The project, I'm asked,
33040	37760	does focus on automation of network mapping and asset mapping and asset discovery.
38160	41280	And without further ado, I will hand over to Jeff. Thanks very much.
41760	55300	Thank you. All right. So yes, this is about OWASP Amass. So when I first started doing this,
55300	66720	I dreaded having to do asset discovery. It took too long, too many tools. It was cumbersome.
67900	77240	And that's what caused Amass to be born. We just needed a smoother way to do this, an easier way
77240	87100	to do this. And all the years that I had spent in this field, 17 years, I shouldn't reveal my
87100	94380	secrets, but it just taught me to write my own tools when necessary. I don't like to rely on
94380	102760	what's already out there. If it's not suiting my needs or meeting my requirements. So I started
102760	108820	working on this. Seems like a lot of other people were happy to receive it as well.
111040	118700	I'm Jeff Foley. This is Anthony Rhodes. He is a major contributor to this project. He joined so
118700	125320	he could bring his advanced penetration testing skills and software development as well to this
125320	135840	project and enhance the capabilities. And regardless of what your current experience with
135840	141960	this is, we're going to be covering everything from the basic usage of this initially, but then
141960	145760	we're going to dive in pretty quick to how to get more out of this. Because we've been getting
145760	153880	some interesting feedback from people just saying we'd like to go further with Amass now. And with
153880	185860	that, I'll hand it over to Anthony. All right. Is this too small? I can bump it up. Okay. That's
185860	190480	all. I'm going to be doing a demo of Amass today. I'm just going to show you a basic
190480	198620	enumeration right now. I think most people would start out with this command. The enum sub
198620	210100	command. And just pardon the slow network connection. So Amass has several sub commands. A
210100	214640	couple of them for enumerations and then a couple of them like support tools, you know,
214640	219860	tracker, database, visualization tool. So we're just going to start off with a basic
219860	224300	enumeration where we're going to give it a domain name and we're going to try to find
224300	231540	subdomains off of that. So I'm going to give it the dash source flag to show, you know, where
231540	238600	all these subdomains are coming from. There's a lot of open source intelligence feeds that
238600	244400	we're kind of pulling from. We also have brute forcing and alterations. And then I'm going to
244400	251200	tell it to give me the IP because it goes out and resolves them all. So while that's
251200	259000	thinking, sometimes it takes a little bit to get the first results. But the way Amass
259000	263140	works, and I think what sets it apart from a lot of the other subdomain enumeration tools
263140	271580	is that, you know, a lot of those tools will grab from the open source feeds and they'll do
271580	279820	brute forcing. But then that's it. And it's done. What Amass does is whenever it resolves a
279820	286040	name, it feeds it back into the enumeration. And so then it performs brute forcing and
286040	294440	alterations on that. So now that we're getting results, I can talk to those. So, yeah, so
294440	303120	you can see there's ‑‑ we got threat crowd, cert SH, you know, that's certificates. Way
303120	311300	back we crawl archives and grab stuff there. Alterations. I'll get more into that later.
311300	321320	That's a little heavy right now. Buffer over is the rapid 7 project sonar DNS scans. So
321320	328120	that's just API that someone threw up. So that gives a lot of results. Rapid 7 did a lot of
328120	334880	good work there. And then we got Markov model. That's kind of similar to alterations.
334880	343980	Uses Markov model, like Markov chains to try to, you know, guess based on the, you know,
343980	357220	previous input that's training the model. So, yeah, it will keep going. You can see just if you
357220	363300	like looking at this data, you can already see that, like, this organization has some
363300	372920	patterns where, you know, we might be able to iterate that on that further. And, yeah, so
372920	384360	like, let's see. Oh, yeah, so like the CSTS3, CSTS4. So, yeah, it looks like alterations, you
384360	391280	know, caught on to that and, you know, generated more hits. So whenever, yeah, alterations
391900	398000	supports a lot of different features that I've added in the past year. Originally it
398000	403200	focused on just, like, pulling numbers out and then, you know, flipping them to every other
403200	408720	possible number and then adding numbers. So, like, every time I saw a number, it basically
408720	416480	generated a thousand more requests. Because, you know, it's really common for people to just
417320	422440	keep adding to the number, you know, when they have, you know, multiple of these domains
422440	431820	that are, you know, meant for the same purpose. So the features that I added to alterations,
431820	440780	you know, were doing something similar like that except with words. So if you see right
440780	450020	here, we have www-dev. And this is really common across, like, all organizations. You
450020	455620	know, you have dash prod, dash test, and a bunch of those. So mass will look for those
455620	460700	too. It looks for subdomains that have dashes in them and then it pulls out the first and
460700	468680	last words. And then it has a word list of, like, 200 or so really common words that it
468680	474440	will throw in there in the place of dash dev to try to, you know, enumerate, you know,
474440	478860	all the iterations of, like, this source. So you get the dev, the prod, the test, and
478860	488180	all that. So, yeah, let's see if this is done. No, it's still going. Okay, yeah, it's
488180	495220	pretty fast. This is default settings and it's, like, a couple hundred a second. So you
495220	499200	can crank that up. There's a setting for that where you can increase how many
499200	506440	connections it can support at a time. All right, cool. So I finished. So, yeah, I'll talk
506440	517980	about this output right here. Don't get mad at me. Okay. Yeah, so during the whole
517980	522020	enumeration, it's resolving all these IPs and it's grabbing, you know, the net blocks
522020	527780	and the autonomous systems that are related. And then it, you know, throws all of this
527780	534400	into a graph database, you know, where all the relationships are preserved. So you can
534400	541260	and then at the end, it prints out all of the, that information. So you can see, you
541260	549780	know, how many hits you're getting per net block. So you can see, like, they have an
549780	556080	AS Utica college, which makes sense. Utica.edu. And that's where, that's the primary
556080	565540	source of all their subdomains. So, yeah, you did this. So say you did this basic
565540	569240	enumeration and you want to, like, take it a little further and try to discover, you
569240	579120	know, more of this target, you know, beyond just looking at Utica.edu. So Teamux wants
579120	596120	to cooperate. So Amass has a subcommand called Intel. And this does, it basically tries
596120	601260	to expand the scope of what you're looking at, whereas the enum just tries to find all
601260	608820	the subdomains and assets within the scope you give it. So this will try to find domain
608820	616980	names that are related to Utica.edu. So we can give it, we can, like, pull this AS number
618240	627800	out and we can give it to the Intel command. We also want to give it the active flag, too.
628520	633440	And what it will do there is it will pull the net block for that and then it will do,
634820	645020	like, reverse DNS and, you know, cert grabbing to try to find other domains.
650880	662140	All right. So, yeah, while that's thinking, Intel also supports reverse who is. So if
662140	670000	you're unfamiliar with that, reverse who is, there's a ton of these APIs out there.
670000	676460	And most of them cost money, unfortunately. But, you know, the information is invaluable,
676460	690920	so that's why. So, you know, what reverse who is is you can perform a who is on, you know,
690920	697820	grab email addresses like the admin and the tech contact and all that out of that and also name
697820	703020	servers when available in the who is information. And then you can feed it into these reverse who
703020	708340	is services and it will give you all the domains that are registered, you know, with those same
708340	714620	details. So really to be able to offer that kind of service, you have to really scrape who is,
714620	722860	which is really hard. Unless you can somehow acquire, you know, the bulk of the who is
722860	732760	information out there. And I tried and it's not feasible. At least from home. Yeah, so this
732760	738100	command finished. Gave us a few other domains that appear to be related. Like we got UC
738100	746620	fishing, Utico college. I guess probably typo squatting there.
748480	751020	So, yeah, I can show you the who is stuff.
751020	769560	Doo doo. So, oh, no, too far. Who is dash D, Utico.edu.
772920	779260	So there's only one service for oh, yes, okay. There's only one service for reverse who is
779260	784900	that we support that's free. But it only gives you like the top 50 results and sometimes they
784900	790380	get angry and, you know, they rate limit and we don't really handle that exactly yet. So
791540	794700	this morning when I was testing this out, you know, I got no results for that. But
795700	803640	glad that I got results. So you see here that, you know, this gave us like a treasure trove of
805120	811140	new domains to look at. So then we can throw these back into the enum command
812660	821320	and, you know, try to get some domains for those. So earlier I picked out a few
826500	832540	yeah, a few of what looks like they really own. Because sometimes you can get like
833840	839460	you know, especially in this case for a college, you can get like student websites. Like if they
839460	847760	registered with their college email or something. So this list for the who is stuff, you really
847760	853900	have to kind of like parse through yourself. Or, you know, I mean, sometimes it's really obvious.
853900	859760	Sometimes it's not. Yeah, so this is the list I grabbed. And then we're going to do
861340	865100	another enumeration feeding that stuff in there.
872040	878260	All right. So now it's in a file. So we can do the df flag.
881840	884780	All right. What else did I want to do?
887480	892320	Throw in brute forcing now. I didn't do brute forcing last time.
899580	907620	Mm‑hmm. I want you to hate slow SSH connections. All right.
908660	913640	So there's some other ‑‑ so like I was talking with the alteration stuff earlier,
913640	919960	just very recently I added the ability to ‑‑ on top of supplying word lists
920480	927820	for alterations and brute forcing, you can now throw in hash cat style masks into those word
927820	932980	lists or you can just throw them on the command line. So we'll do that, too.
939180	946580	So, yeah, if you're unfamiliar with how hash cat masks work,
947000	952540	you know, hash cat supports what's called a mask attack. And it allows you to put wild cards
953020	959420	into your word lists, you know, where this question mark A refers to, like, any character
959420	965300	that's possible. For DNS it's, like, 37 different characters. Or you can do, like,
965300	972200	dash L for letter. That's, like, A through Z. Or you can do dash D or question mark D
972880	980920	for digit. Zero through nine. Yeah, I'm just going to do some basic ones.
982580	998020	And dash WM does it for brute force. And then dash AWM throws it into alterations.
1014190	1023250	Okay. All right. So that's going to think a little bit. So, like I said earlier,
1023810	1028930	everything's stored into a graph database. And what's cool about that is that, you know,
1028930	1035470	we can support a lot of support functions for that, like tracking. So you can track between
1037590	1042790	different enumerations. So say you ran one last week. You want to run one this week. It'll,
1042790	1047910	you know, tell you, you know, which ones are found that are new. You know, which ones are
1047910	1053350	modified. So you can see if, like, something's changing IPs. That might be more useful if you're,
1053350	1058830	like, trying to map out a threat actor or something. See if they're trying to move their
1058830	1068450	infrastructure. And there's also visualization. But another really cool thing that we can do
1068450	1076170	with that is if you have a previous enumeration for a domain, for a mass, and then you run a
1076170	1083430	new enumeration, it'll pull all the names it discovered previously and throw them into the
1083430	1088230	new enumeration right in the beginning. So that adds a little more consistency and it also just
1088230	1098100	speeds it up a little bit. Yeah. How are we doing on time? We got, like, 15 minutes, right?
1099020	1111240	Shit. Yeah. So I guess while that's running, I can talk about the visualization stuff. So this is
1111240	1123380	enumeration of the OWASP. OWASP.org domain. So this is pretty much exactly how it's stored in
1123380	1132660	the graph database. Yeah. This lets you, you know, kind of explore, you know, all the
1132660	1139420	relationships between everything. And you can see, like, clusters where so you got, like,
1139420	1147660	OWASP.org and then a subdomain would be, you know, like, docs and gapps. And I can see where
1147660	1154640	this is going. Mail. So, yeah, obviously all that points to, you know, Google apps. And you can
1154640	1162420	see that here where it all eventually, you know, goes from to, you know, IPs, net blocks, and
1162420	1173820	then eventually Google's AS or one of Google's ASs. But, yeah, this is really cool. You can a
1173820	1179540	lot of times in much larger enumerations, you can, you know, discover patterns or, you know,
1179540	1183800	see, you know, where they're using third parties like I just showed or you can see acquisitions
1183800	1189400	where, you know, you acquired a company and that will be like a huge cluster, you know, way off
1190680	1198300	if it hasn't been fully migrated yet into, you know, existing company's infrastructure.
1200000	1218890	And it wiggles. Yeah. Yeah, it's just a snapshot of the enumeration. But we've definitely
1218890	1224870	explored options of, like, streaming the data so we can get, like, live feeds, especially for,
1224870	1229910	like, larger environments where an enumeration might take days or something. It would be really
1229910	1240650	cool to have that kind of visibility. Yeah. Let's see if this found anything good.
1267060	1272020	Oh, yeah. That's a good point. All right. Yeah, I'm just going to kill this now.
1274020	1280720	So, yeah, it was, like, kind of showing you how you can, you know, go from, you know, a single
1280720	1286120	domain and, you know, really kind of iterate on that. And you can go even further. As you
1286120	1293180	discover more patterns, you can keep feeding it in. So now I'm just going to, you know, back up
1293180	1302540	and I'll go over some of the configuration options. So this is our example config, and it has,
1302540	1310020	I believe, everything we support. So, yeah, active mode, that's grabbing certs and doing
1310020	1321040	zone transfers where possible. By default, it's active mode is off. There is a passive mode,
1321040	1328400	which will just grab the open source intelligence feeds, and it won't do any resolution. So the
1328700	1336200	default is kind of like this in between passive and active, where you're only dealing with the
1336200	1353880	DNS servers and not actually poking the target. So this maximum DNS queries, you can ramp that up
1353880	1362260	to, you know, pretty high, like 100,000 if you really want to improve the performance. I mean,
1362260	1368900	what this means is it's how many concurrent DNS queries can be performed. It's not, you know,
1368900	1374900	how many queries per second. So if you put in, like, 100,000, you're not going to get 100,000
1374900	1382520	queries per second. It's just, you know, how concurrent it is. If you want, you can, like, tell
1382520	1387820	it to, you know, give you the unresolvable ones by default. The enumeration only prints out things
1387820	1401670	that resolve. Yeah, you can give it, this is the default list of resolvers that it reaches out to. A
1401670	1408710	lot of the, you know, common public ones. But you can give it a list of 1,000 or so. I mean, as
1408710	1415970	much as your system can support in terms of file descriptors. What we like to do is grab the public
1415970	1427150	DNS service list, server list, and throw it in there. And pretty recently we wrote some code in
1427150	1435330	there to actively determine, you know, which servers are, you know, giving us bad information or
1435910	1439730	just not responding, you know, because maybe they're rate limiting or stuff. So there's an
1439730	1447890	election set up, you know, where each request will try on three different servers. And then, you
1447890	1454150	know, if we find that one gives a different result than, you know, the other two, it'll, you know,
1454150	1461750	score down the one that gave the bad result. And then once it gets below a threshold, then we just
1461750	1468970	remove it from the enumeration. It also helps, you know, if you don't have any DNS
1468970	1476210	connectivity to any of these servers, it'll tell you pretty instantly now, whereas before it
1476210	1487650	wouldn't. So, yeah, say you're in assessment and you have, like, some subdomains that you wanted
1487650	1493350	to exclude because they're specifically out of scope, you can do that here, too. Or if you're
1493350	1498170	just weary of some of the data sources, like you don't want to reach out to them for whatever
1498170	1507670	reason, you can disable them, too. And then the last thing I'm going to go over, well, here's all
1507670	1514670	the brute force and alteration settings. I think I'm running out of time pretty soon. But
1515490	1521610	basically you can modify if you want for brute forcing, you can tell it, you know, if you want to
1521610	1531270	do recursive brute forcing and, you know, how often you want to recurse or, like, under what
1531270	1536210	circumstances you want to recurse because sometimes you don't necessarily want to recurse on
1536210	1543910	everything because that'll generate way too much traffic. You can see here there's a ton of
1545510	1553590	flags for tweaking the alterations where you can tell it not to add words and not to flip words or
1553590	1560050	flip numbers, which that's just like an in place substitution rather than appending or
1560050	1566390	prepending. And for brute force and alterations, you can give multiple word lists and it'll
1566390	1577950	deduplicate them down to a single word list that it'll use. And then finally, we have a bunch of
1577950	1585890	commercial APIs that we support, and this is where you put them if you have them. So some
1585890	1594430	really good ones, we have census, alien vault is free. We have passive total, that's a good
1594430	1603110	one. Security trails, show it in. Twitter is all right. It searches tweets for subdomains. It's
1603110	1613050	not really that effective, but it's a cool thing to do. Cisco umbrella and virus total. But,
1613050	1636550	yeah, that's about it. Any questions? All right. Oh, you got a question? Hmm? Oh, no.
1637350	1648380	He wants my show in an API key. So as I mentioned in the beginning, you know, Anthony is one of
1648380	1653080	our contributors. We're always looking for more contributors. This project wouldn't be where it
1653080	1660720	is today without them. And also, contributing can mean more than just writing code for
1660720	1667140	this. We have quite a few testers that are constantly helping us improve this project. We're
1667140	1673120	always looking for people to help us with documentation and things like that or ways to help
1673120	1679820	people use it better. So if anyone is interested in contributing, please let us know. Join us on
1679820	1705830	our discord or reach out to us on Twitter and we can discuss it. Yeah, so you asked if you can
1705830	1714290	specify the ports that it reaches out for like certificates and stuff? Yeah, you can. So in the
1714290	1720050	config file, you can under network settings, there's a port and you can give any number of
1720050	1726350	those that you want. We have a couple in there. I think by default, we just do 443, right?
1727310	1735650	Yeah. And I think you can do comma separated. Yeah, and on the command line, you can do
1735650	1746730	comma separated port values, all of that dash port option. And this is our GitHub page. It's
1746730	1751730	pretty easy. But, yeah, thanks for coming.
