1 00:00:00,000 --> 00:00:04,660 So, this is the efficient bug bounty automation techniques talk. 2 00:00:04,940 --> 00:00:06,580 If that isn't the talk you're here for. 3 00:00:07,180 --> 00:00:07,760 You know? 4 00:00:09,020 --> 00:00:11,580 So, my name is Gunner Andrews. 5 00:00:11,580 --> 00:00:14,440 I'm an AppSec engineer by day, bug bounty hunter by night. 6 00:00:14,640 --> 00:00:20,000 I do a little bit of content creation on YouTube and Twitch and some other stuff around basically the same thing. 7 00:00:20,000 --> 00:00:23,300 Bug bounty hunting, recon, tool dev, that kind of thing. 8 00:00:24,040 --> 00:00:26,940 There's three main goals for the talk that I want to go over. 9 00:00:27,080 --> 00:00:29,240 So, three basically different parts. 10 00:00:29,380 --> 00:00:33,400 The first one is the idea of resources versus findings. 11 00:00:33,400 --> 00:00:39,920 In bug bounty automation, you can get a lot of data really fast and have zero findings, which means zero dollars. 12 00:00:39,920 --> 00:00:50,140 So, we're going to talk about getting from zero to 100 with as little cost as possible and scaling up to actually having results that can get you bugs, which means hopefully money. 13 00:00:50,320 --> 00:00:52,380 The second part is automating collection. 14 00:00:52,380 --> 00:00:56,400 So, I'm going to talk about what I personally collect and how I collect it efficiently. 15 00:00:56,640 --> 00:01:09,540 And then the little last portion at the end is going to be kind of a portion on data engineering for bug bounty automation to hopefully encourage some people to move away from flat text files as much as bug bounty hunters seem to love those. 16 00:01:10,120 --> 00:01:15,780 So , I want to start the talk with this slide because I think it's a weird take for some automationists . 17 00:01:15,780 --> 00:01:20,360 I basically don't do any brute forcing at all until I have to. 18 00:01:20,680 --> 00:01:24,280 I monitor millions of domains every day. 19 00:01:24,640 --> 00:01:27,240 I found all of them without brute forcing anything. 20 00:01:27,660 --> 00:01:31,800 I monitor a ton of endpoints, JavaScript files, all that kind of stuff, just like everybody else does. 21 00:01:31,800 --> 00:01:33,740 I didn't brute force for any of those. 22 00:01:33,800 --> 00:01:43,240 I only brute force something when I absolutely have to because brute forcing is guessing and nowadays there's just a lot of other techniques to cover before you start guessing. 23 00:01:43,280 --> 00:01:46,340 When you're taking a test, the last thing you do is guess. 24 00:01:46,360 --> 00:01:48,940 When you're totally screwed, then you guess. 25 00:01:48,940 --> 00:01:53,000 So, I'm going over all this stuff before you're screwed and you have to guess. 26 00:01:54,400 --> 00:02:05,940 So, I'm going to start at the beginning with Apex domains and kind of a warning about Apex domains because Apex domains are very important in bug bounty, especially for bug bounty automationists. 27 00:02:05,940 --> 00:02:10,640 Seeing that wild card, star dot anything dot com means we can hunt on everything. 28 00:02:10,660 --> 00:02:14,140 There's a lot of bug bounty programs that say hunt all of our stuff no matter what. 29 00:02:14,140 --> 00:02:19,240 Just anything that meta owns or anything that Yahoo owns or anything like that. 30 00:02:19,240 --> 00:02:27,740 So, for some programs, the place to start is Apex domains, finding all of the root domains to then put into automation, finding all of the IP space they own, that kind of stuff. 31 00:02:27,740 --> 00:02:32,000 But specifically for Apex domains, these are some of the sources. 32 00:02:32,900 --> 00:02:37,700 It's not the complete picture, especially if they're cloud friendly and we'll get into the cloud stuff later. 33 00:02:38,060 --> 00:02:39,500 There's reverse whizzing. 34 00:02:39,500 --> 00:02:42,720 There's ASN, like, checking their ASNs against certain ASN sources. 35 00:02:42,720 --> 00:02:50,300 But the thing at the bottom, I'm not going to hit on this for a whole bunch because I personally don't like automating this a ton. 36 00:02:50,440 --> 00:03:05,780 I do a little bit of it, I write some scripts to run it, but then I manually look at the output because I found and I have personally been burned multiple times on very big bugs where I turn in a huge bug, get really excited, and then the domain isn't in scope. 37 00:03:06,400 --> 00:03:07,040 Right? 38 00:03:07,100 --> 00:03:14,240 Maybe they shared some kind of registrar, they did some kind of thing and it happened to slip into my automation because I automated it and I got burned. 39 00:03:14,360 --> 00:03:15,800 So, these are some of the sources. 40 00:03:15,800 --> 00:03:17,080 I put them up there anyway. 41 00:03:17,080 --> 00:03:21,440 But as a warning, I personally don't start at Apex domains for that reason. 42 00:03:21,440 --> 00:03:26,480 It's hard to automatically 100% confirm that it's in scope. 43 00:03:27,480 --> 00:03:32,820 So, if you are interested in looking for Apex domains, though, automate it. 44 00:03:32,820 --> 00:03:34,500 And we'll talk about some of this later. 45 00:03:34,520 --> 00:03:36,620 But these are some of the things I do. 46 00:03:36,620 --> 00:03:45,880 So, nowadays, it is very easy for everybody in this room to get a hold of enough hardware to scan the entire IPv4 IP address space. 47 00:03:45,880 --> 00:03:47,440 You don't need an ASN. 48 00:03:47,860 --> 00:03:53,760 Some companies do run on IPv6 only, but it's very few, to be really honest. 49 00:03:54,100 --> 00:03:56,540 I built some of my own tooling for this. 50 00:03:56,820 --> 00:04:00,060 If you look on my GitHub, one of the tools is called Caduceus. 51 00:04:00,060 --> 00:04:04,100 I like naming my tools after mythological weapons, you'll see. 52 00:04:04,620 --> 00:04:05,860 But there's some ports there. 53 00:04:05,860 --> 00:04:11,340 I always do port 443, but there's some other ports that will have certificates on them that are used. 54 00:04:11,340 --> 00:04:26,020 Basically, what Caduceus does is it does half the TLS handshake, enough to get the certificate, and then it pulls any domain names out of the common name and subject alternative name fields and then gives the output with what IP address it found it from and what domains. 55 00:04:26,020 --> 00:04:26,760 Right? 56 00:04:27,880 --> 00:04:35,160 So you can use this, scan the entire internet, and I end up with a whole list of domain names and what IP address I got them from, right? 57 00:04:35,160 --> 00:04:39,760 And we'll talk about this a little bit more later in depth, because this obviously works for subdomains, too. 58 00:04:40,000 --> 00:04:42,680 But the other half of it is reverse DNS lookup. 59 00:04:42,680 --> 00:04:45,600 So I do reverse DNS, which is searching for PTR records. 60 00:04:45,600 --> 00:04:47,500 So it basically does the opposite of DNS, right? 61 00:04:47,500 --> 00:04:51,640 So instead of what IP address does this DNS name resolve to, it's the other way around. 62 00:04:51,640 --> 00:04:53,880 You put an IP address and it gives you DNS names. 63 00:04:53,940 --> 00:04:55,780 I do that using some of those tools. 64 00:04:55,780 --> 00:04:58,100 I prefer ZDNS, but there's a bunch of good tools. 65 00:04:58,320 --> 00:05:01,260 I do that across the whole IPv4 space as well. 66 00:05:02,040 --> 00:05:05,840 And then those scans can also give you APEX domains. 67 00:05:05,840 --> 00:05:08,260 We'll talk about it, because it can give you subdomains, too. 68 00:05:08,440 --> 00:05:13,920 But for APEX domains, I found a lot of APEX domains just looking around the internet. 69 00:05:13,920 --> 00:05:24,720 You'll find something that says Yahoo on it that you've never seen before, and then you can go back and check who it's registered to and all that kind of stuff and confirm that it does, in fact, belong to Yahoo or whatever company it is, right? 70 00:05:24,720 --> 00:05:32,740 The little tip at the bottom, we can mention later, too, but if you are scanning the IPv4 space, a big chunk of that is cloud providers. 71 00:05:33,100 --> 00:05:41,520 If you want to take the time, scanning a cloud provider from the cloud provider is disgustingly fast. 72 00:05:41,520 --> 00:05:43,260 Compared to everything else. 73 00:05:43,260 --> 00:05:45,460 They might not like it, but it is. 74 00:05:45,760 --> 00:05:54,060 So if you scan US East 1 in AWS from US East 1, you can finish it in, like, a minute. 75 00:05:54,400 --> 00:05:55,620 But I didn't tell you that. 76 00:05:56,860 --> 00:05:57,860 Okay? 77 00:05:57,860 --> 00:06:03,560 So now we're going to start with what actually is just automatically for me is automated. 78 00:06:03,720 --> 00:06:06,440 Everyone likes to start with subdomains, so that's where we're going to start. 79 00:06:06,440 --> 00:06:09,220 It's basically like Pokemon, right? 80 00:06:09,560 --> 00:06:27,800 I full, like, wholeheartedly use passive DNS sources, because if you read the small print for all these companies, especially the ones that run public DNS servers and big ISPs, everyone sells their DNS data to someone. 81 00:06:27,860 --> 00:06:37,420 They might say they don't sell it, but then at the end, it's loopholed because they add their DNS data as part of some other business contract with another company. 82 00:06:37,760 --> 00:06:43,320 So a lot of these companies you've heard of, like VirusTotal, Security Trails, and stuff like that, they do their own internet scanning. 83 00:06:43,320 --> 00:06:52,920 Sure, they might put bots out there and scan the internet and stuff like that, but they also buy a lot of this data from major DNS providers that are happy to also profit from it. 84 00:06:53,200 --> 00:06:55,800 So I pay for some. 85 00:06:55,800 --> 00:06:56,660 You don't have to. 86 00:06:56,660 --> 00:07:00,200 I'm not here to tell you to pay for any product, obviously, because I don't work for any of them. 87 00:07:00,320 --> 00:07:04,700 But I do pay for some of them, because in my opinion, they've been way worth it for me. 88 00:07:05,540 --> 00:07:11,780 I always, always, always tell someone, do not just hook up a tool and use it because it says it hits that API. 89 00:07:11,880 --> 00:07:19,480 Read the docs, look at the rate limiting, look at the pagination, how many credits you use per this or that, and just try writing it yourself first. 90 00:07:19,480 --> 00:07:30,620 Because we're gonna talk about it right now, but all those tools on the right, everyone has made all these tools that hit every passive DNS source on the planet, and you can put in your keys, and that's all great, and they are amazing. 91 00:07:30,740 --> 00:07:36,460 Project Discovery, the people that made Amass, Bbot, I think it's Black Lantern Security, they're all amazing. 92 00:07:36,460 --> 00:07:38,980 They've made amazing tools, and they work amazing. 93 00:07:39,100 --> 00:07:45,300 But if you want specific things, I would write your own logic, just so you 100% know what's going on. 94 00:07:45,500 --> 00:07:55,760 One of the reasons for that is because when you audit these tools, they try and make everybody, all of you in this room, as happy as they can, all at the same time. 95 00:07:55,760 --> 00:07:58,520 And to do that, sometimes you have to cut corners. 96 00:07:59,240 --> 00:08:03,100 Some of those corners are, for instance, failing quietly. 97 00:08:03,100 --> 00:08:06,540 So when you audit tools, you'll find something like this. 98 00:08:06,540 --> 00:08:08,700 If anyone recognizes this, this is Subfinder. 99 00:08:08,700 --> 00:08:12,200 Again, if someone from Project Discovery is here, I love you, please talk to me, okay? 100 00:08:12,200 --> 00:08:13,080 I'm sorry. 101 00:08:13,560 --> 00:08:17,960 But you'll notice on, like, the fifth row down, I ran this. 102 00:08:17,960 --> 00:08:23,080 If you run it with a dash stats flag, you'll get this output that will tell you the statistics of your run. 103 00:08:23,160 --> 00:08:30,560 I ran this against Tesla.com with dash all, meaning use all the sources you possibly can, which is how a lot of people are encouraged to run it. 104 00:08:30,560 --> 00:08:34,060 You'll notice it took 43 seconds and 43 and a half. 105 00:08:34,060 --> 00:08:38,020 Well, Common Crawl took 43 and a half seconds. 106 00:08:38,020 --> 00:08:39,360 And how many results did I get? 107 00:08:39,360 --> 00:08:44,960 Negative 70,782, which makes a ton of sense. 108 00:08:44,960 --> 00:08:49,120 So I ran for 43 seconds for an error, basically. 109 00:08:49,120 --> 00:08:58,620 If you look at the next fastest source or the next slowest, it was 10 seconds from Security Trails or 30 seconds from Wayback Archive that also gave me nothing. 110 00:08:59,000 --> 00:09:07,900 So if I cut out Common Crawl and Wayback Archive, lose no results, and I would have ran in about 10 seconds, because I think Security Trails is the next slowest. 111 00:09:07,900 --> 00:09:14,660 So I would have ran in a fourth of the time and gotten the same things, just by paying attention to what sources I'm using and what they're actually giving me. 112 00:09:14,760 --> 00:09:15,380 Right? 113 00:09:16,280 --> 00:09:18,140 So back to certificates. 114 00:09:18,420 --> 00:09:18,960 Okay? 115 00:09:18,960 --> 00:09:23,960 So again, I do IPv4 certificate scanning with Caduceus, which I just talked about. 116 00:09:24,260 --> 00:09:28,020 You get Apex domains from that, but what you really can look for is subdomains. 117 00:09:28,320 --> 00:09:38,040 Those subdomains can be used in a ton of different ways, which I will talk about in a second, but when we talk about certificates, we cannot not talk about cert.sh and CT logs. 118 00:09:38,040 --> 00:09:43,320 So CT logs are Merkle trees that are public to everybody, and cert.sh was made by some really smart people. 119 00:09:43,320 --> 00:09:47,340 It ingests those logs and saves them in a database that is queryable. 120 00:09:47,340 --> 00:09:50,180 Subfinder does it, other tools do it, and you can do it directly. 121 00:09:50,400 --> 00:09:55,480 The problem I found with cert.sh is I want domains before all of you have it. 122 00:09:55,480 --> 00:09:56,120 Sorry. 123 00:09:56,540 --> 00:09:57,240 Right? 124 00:09:57,460 --> 00:10:04,540 Some of the bigger CT logs, cert.sh actually won't have in their database queryable for up to 48 hours. 125 00:10:04,540 --> 00:10:06,620 Some are instant, some are not. 126 00:10:06,980 --> 00:10:24,220 So what I did is I made my own tool, it's also in my repo, it's called Gungnir, also another weapon, and all it does is it does the same thing that cert.sh does, but I already have databases and all that other stuff later, so it's just the Unix philosophy of CT log scraping. 127 00:10:24,220 --> 00:10:37,160 So it just scrapes the CT logs as fast as it can with exponential backoffs in case it gets rate limited and then it catches back up, and it will give you a domain within seconds of that certificate getting created. 128 00:10:37,160 --> 00:10:43,560 So if someone creates new site.example.com, it will show up in Gungnir in under 20 seconds. 129 00:10:43,560 --> 00:10:45,060 You'll know instantly. 130 00:10:45,240 --> 00:10:57,000 So if anyone puts a new service online and they want a real certificate behind it that's backed by a certificate authority, you'll know about it basically the second the certificate's created, no matter where they put it. 131 00:10:57,580 --> 00:11:04,920 Now, again, cert.sh will do that for you, and you can look historically with cert.sh, so it's still a fantastic tool. 132 00:11:05,220 --> 00:11:07,240 Gungnir is just if you want it immediately. 133 00:11:07,780 --> 00:11:09,540 So that's what I do. 134 00:11:09,540 --> 00:11:16,940 We'll talk about virtual hosting later, but Caduceus, like I said, Gungnir will give you certificates, but no IP address to what they go with. 135 00:11:17,200 --> 00:11:21,760 Caduceus and the certificate scanning will give me the IP address it came from, as well as all the domains. 136 00:11:22,120 --> 00:11:23,300 So keep that in mind. 137 00:11:23,540 --> 00:11:25,300 These are some other good things that I do. 138 00:11:25,300 --> 00:11:27,480 I automate them, but I don't do them constantly. 139 00:11:28,020 --> 00:11:32,980 Gwen made a very good tool called GitHub subdomains that I think he's actually rewriting, I've heard. 140 00:11:33,260 --> 00:11:43,160 I've talked about the reverse DNSing, and then I'll do light spidering, as in I'll land on a page and pull all the second order assets, which costs me nothing, and it doesn't get you banned. 141 00:11:43,160 --> 00:11:45,780 One Git request has not gotten me banned yet. 142 00:11:46,420 --> 00:11:47,660 Fingers crossed. 143 00:11:48,700 --> 00:11:51,640 Virtual host scanning, I wanted to release a tool today. 144 00:11:51,640 --> 00:11:57,040 It will be public very soon in my same repo, but I found a bug literally this morning, which is just terrible. 145 00:11:57,420 --> 00:12:11,720 But it's gonna be called Harpy, and basically what it'll do is you can take the JSON output from Caduceus, and you can pipe it right into Harpy, and it will do virtual host scanning specifically only for that IP address and the domains found on that certificate. 146 00:12:11,720 --> 00:12:18,860 So it's really efficient, and it doesn't do virtual host scanning for a huge list of subdomains against every single IP address. 147 00:12:18,860 --> 00:12:23,780 It's just what domains actually came from the certificate on that IP address. 148 00:12:23,780 --> 00:12:27,520 And I've already found a lot of nice stuff with it. 149 00:12:27,520 --> 00:12:30,720 So I would encourage you to look at it. 150 00:12:31,160 --> 00:12:33,600 So this is the other big part, is DNS resolution. 151 00:12:33,600 --> 00:12:39,680 Because if you get stuff from passive DNS, you are not 100% sure it resolves, right? 152 00:12:40,820 --> 00:12:55,980 So there's an issue if you're gonna do very high speed, very consistent resolving, is a lot of current tooling silently fails, just like I talked about with subfinder, or it returns surf fails, which if you're not looking for those, it will just drop, 153 00:12:55,980 --> 00:13:01,160 but surf fails can actually, if you guys are into, like, subdomain takeovers and stuff, those are nice to know about. 154 00:13:01,520 --> 00:13:10,520 If you attempt to resolve one time, like, if you get a domain from one of these APIs and you try and resolve it once, I promise you, you're missing assets. 155 00:13:10,660 --> 00:13:11,840 I promise you right now. 156 00:13:11,840 --> 00:13:19,080 If you don't have a running retry list of I'll try this for the next five days or something, I promise you, you're missing assets. 157 00:13:20,000 --> 00:13:26,980 So the trickest has a list of trusted resolvers that are public and out there and that kind of stuff, and I know a lot of people use those. 158 00:13:26,980 --> 00:13:28,420 It's what I started with. 159 00:13:28,420 --> 00:13:29,660 But I moved on. 160 00:13:29,980 --> 00:13:33,240 They have timeouts and a bunch of different issues. 161 00:13:33,400 --> 00:13:36,400 I actually wasn't going to talk about this, but I'll just do it anyway. 162 00:13:36,660 --> 00:13:44,560 So I look for subdomain takeovers personally, not in a bug bounty presence, but in a different engagement for consulting. 163 00:13:44,740 --> 00:13:57,220 I actually found a whole handful of takeovers that every public resolver on trickest's list actually says it's a no error, and what we'll talk about next actually gave it a surf fail. 164 00:13:57,220 --> 00:13:58,240 It was a surf fail. 165 00:13:58,240 --> 00:14:00,420 They were all takeoverable Azure assets. 166 00:14:00,580 --> 00:14:15,140 So I'm not sure why, because I'm not a DNS expert by any means, but the public resolvers, because they have to be on the edge and all that kind of stuff and very fast, can have other things behind the scenes that might mess up what you as a bug bounty hunter are trying to do. 167 00:14:15,740 --> 00:14:18,460 So this is what I did instead. 168 00:14:18,620 --> 00:14:22,660 So there's a tool or a set of tools called PowerDNS. 169 00:14:22,860 --> 00:14:24,060 They have three main tools. 170 00:14:24,060 --> 00:14:27,120 They have an authoritative server, which we don't really care about. 171 00:14:27,160 --> 00:14:38,320 They have a tool called PowerDNS Recursor, which is a recursive DNS resolver we definitely care about, and they have a tool called DNSdist, which is just a load balancer for DNS servers. 172 00:14:38,380 --> 00:14:39,820 Sounds pretty nice. 173 00:14:39,900 --> 00:14:55,000 So with very little dev effort, you can create a virtual IP, so all of your cluster has the same IP using something like keepalid and using DNSdist and Recursor, which all work together because they're the same company and it's basically plug and play. 174 00:14:55,000 --> 00:15:04,860 You can make your own DNS resolution cluster that has unlimited rate limits, can be tuned to your exact needs, whatever caching you want. 175 00:15:05,120 --> 00:15:08,640 Using this, you can attempt to resolve a domain as many times as you want. 176 00:15:08,640 --> 00:15:10,100 You don't hit rate limits. 177 00:15:10,140 --> 00:15:17,120 You can put it into Prometheus or any other kind of monitoring and monitor your own stack and make sure your stuff is working as you think it's working. 178 00:15:17,660 --> 00:15:22,440 And then to solve the problem of attempting to resolve multiple times, I actually use caching. 179 00:15:22,440 --> 00:15:23,140 I use Redis. 180 00:15:23,140 --> 00:15:23,920 You can use memcache. 181 00:15:23,920 --> 00:15:25,000 You can use whatever you want. 182 00:15:25,260 --> 00:15:30,520 Using just sorted sets with timestamps or anything else or the number of retries, whatever you want to do. 183 00:15:30,680 --> 00:15:31,980 It's lightning fast. 184 00:15:31,980 --> 00:15:33,420 You can pull it automatically. 185 00:15:33,440 --> 00:15:34,740 You're not pulling from a DB. 186 00:15:34,740 --> 00:15:36,220 You don't have to worry about a schema. 187 00:15:36,360 --> 00:15:42,920 You can just keep a running list of these are all the domains I've seen, this is how many times I've tried it or the last time I've seen it, whatever you want to do. 188 00:15:43,060 --> 00:15:51,540 That kind of stuff is what I do, so I can see when I resolve stuff last, how many times I've tried it, if it hasn't, that kind of stuff, and it's really fast right out of the box. 189 00:15:51,660 --> 00:15:54,640 Those are the records that I look for for bug bounty. 190 00:15:54,700 --> 00:15:56,340 I don't pull them all. 191 00:15:56,560 --> 00:16:13,060 So using this stack just for reference, I spend about $25 a month on my cluster, and just two days ago, I was able to ramp it up with no errors and no packet drops to write about 125,000 queries per second. 192 00:16:13,260 --> 00:16:22,900 So I do a couple hundred million, like 600 to 800 million requests a day to that cluster, and it works pretty nice. 193 00:16:23,660 --> 00:16:25,160 So port scanning. 194 00:16:25,220 --> 00:16:26,680 Now we're getting into the good stuff. 195 00:16:26,680 --> 00:16:27,140 Okay? 196 00:16:27,140 --> 00:16:28,120 Kind of. 197 00:16:28,380 --> 00:16:30,800 So there's active and there's passive. 198 00:16:30,800 --> 00:16:33,140 Now, I hold an opinion on this. 199 00:16:33,140 --> 00:16:35,140 This is a purely opinion post. 200 00:16:35,840 --> 00:16:49,900 There are active tools out there, but there is a passive tool that I learned about from Jason Haddix if he's in this room, but it's called SMAP, and all it does is it takes your NMAP flags, whatever, but it does it all against Shodan. 201 00:16:50,260 --> 00:16:52,560 It doesn't actively port scan. 202 00:16:52,600 --> 00:16:56,060 So if you want to port scan a bunch of IPs, it actually does it against Shodan. 203 00:16:56,060 --> 00:17:08,680 So what I do is I run everything through SMAP with Shodan, and then all the ports that it says are up, I then actively check with NMAP, whatever you want to use. 204 00:17:08,680 --> 00:17:09,860 Way less traffic. 205 00:17:09,860 --> 00:17:14,960 I've gotten banned zero times, and SMAP is right a lot of the time, because Shodan is pretty good. 206 00:17:15,260 --> 00:17:26,140 So you can still find all those ports on the right with all kinds of juice and all kinds of stuff without scanning every single port on every single IP until you eventually get abuse reports and get banned off of a cloud provider. 207 00:17:26,840 --> 00:17:28,120 I've never done that. 208 00:17:29,080 --> 00:17:29,680 Okay? 209 00:17:29,680 --> 00:17:31,420 Web servers and endpoints. 210 00:17:32,100 --> 00:17:33,860 Same thing scanning the web. 211 00:17:33,940 --> 00:17:37,940 So I obviously only do web fingerprinting on stuff that resolved. 212 00:17:38,140 --> 00:17:41,100 So again, do DNS resolution first. 213 00:17:41,200 --> 00:17:43,740 I'm assuming that's pretty basic, but we're going to start with that. 214 00:17:43,840 --> 00:17:46,000 Again, you don't want to get blocked, you don't want to get banned. 215 00:17:46,420 --> 00:17:48,280 So slow scanning is an idea. 216 00:17:48,740 --> 00:17:50,140 Always watch your user agent. 217 00:17:50,140 --> 00:17:53,020 A lot of these tools make their own custom user agents, and they're all blocked. 218 00:17:53,020 --> 00:17:53,460 Okay? 219 00:17:53,460 --> 00:18:08,880 There's probably someone from Akamai or someone else in this room, they block HTTPS, they block all that stuff that come with the custom user agents, go to Chrome, download Chrome, look in the requests, find the most recent user agent, and just paste that into your tooling. 220 00:18:08,880 --> 00:18:11,880 And like once a month, make sure it still matches. 221 00:18:12,080 --> 00:18:12,900 You're golden. 222 00:18:13,100 --> 00:18:13,740 All right? 223 00:18:14,220 --> 00:18:18,920 Some of the other things that we're not supposed to talk about are proxies and Lambdas, right? 224 00:18:20,100 --> 00:18:25,640 AWS Lambda, every time you spin up a Lambda, comes with a brand new IP address out of AWS's IP pool. 225 00:18:25,640 --> 00:18:27,960 It's a huge IP pool, and each one is new. 226 00:18:28,720 --> 00:18:42,340 I know Shubbs has talked about it, I know Shadow Clone has been out there for a ton, if you are going to do high speed scanning on the web, brute forcing, directories, whatever it may be, split it up with serverless architecture. 227 00:18:42,340 --> 00:18:47,060 It's cheap, I'm not supposed to tell you that, people don't like it, do it anyway. 228 00:18:47,880 --> 00:18:48,320 Okay? 229 00:18:48,320 --> 00:18:49,960 This is DEF CON, it's kind of the point. 230 00:18:49,960 --> 00:18:51,040 Okay? 231 00:18:51,040 --> 00:18:55,060 But, on the flip side, one Git request gets you a ton of data. 232 00:18:55,140 --> 00:19:07,740 Again, it will get you any second order resources, JavaScript files, S3 buckets, whatever it may be, it will get you the title, status code, you'll follow redirects, whatever that may be, you'll get your CSP from it, you'll get a lot of cookies from it. 233 00:19:07,740 --> 00:19:13,500 So, to be fair, on the flip side, one Git request gets you a ton of information. 234 00:19:13,580 --> 00:19:14,160 Right? 235 00:19:14,200 --> 00:19:18,200 So, you don't have to scan the web, and I personally don't. 236 00:19:18,200 --> 00:19:24,260 Because, basically, every request you send nowadays, you risk incurring wrath from someone. 237 00:19:24,260 --> 00:19:27,820 Especially because bug bounty tests in prod, because we're gangster. 238 00:19:28,360 --> 00:19:29,060 All right? 239 00:19:29,400 --> 00:19:32,500 So, for endpoints, there are passive sources. 240 00:19:34,080 --> 00:19:35,400 Varying results. 241 00:19:35,400 --> 00:19:44,720 Obviously, if you hit a brand new endpoint from Gungnir or something like that, and you go look for it in Gau or Waymore, which hits some of these passive sources, there's not going to be anything there. 242 00:19:44,720 --> 00:19:48,120 But if you find some old stuff, something might be there. 243 00:19:48,120 --> 00:19:49,260 So, it's worth looking. 244 00:19:49,260 --> 00:19:50,540 Again, it costs you nothing. 245 00:19:52,420 --> 00:19:53,380 I have two minutes. 246 00:19:53,380 --> 00:19:53,580 Okay. 247 00:19:53,580 --> 00:19:54,620 We're going to have to hustle. 248 00:19:55,220 --> 00:19:57,600 So, spidering and crawling is hard to do. 249 00:19:58,000 --> 00:20:01,040 When you kick off spidering, find stuff that looks interesting. 250 00:20:01,040 --> 00:20:02,380 Headless works best. 251 00:20:02,380 --> 00:20:02,680 Okay. 252 00:20:02,680 --> 00:20:03,960 Actually, I'm doing pretty good. 253 00:20:04,280 --> 00:20:06,300 So, this is the data engineering side. 254 00:20:06,340 --> 00:20:11,500 So, subdomains versus IP addresses, they're both extremely useful for those reasons. 255 00:20:11,960 --> 00:20:13,580 So, use both. 256 00:20:13,580 --> 00:20:17,060 I track subdomains and IPs, and I cross reference them. 257 00:20:17,060 --> 00:20:18,320 Track both. 258 00:20:18,320 --> 00:20:20,940 Do not just make subdomains your primary key in a database. 259 00:20:20,940 --> 00:20:22,240 Do not just make IPs. 260 00:20:22,240 --> 00:20:23,600 Do both, please. 261 00:20:23,600 --> 00:20:24,940 For those reasons. 262 00:20:25,300 --> 00:20:25,960 Okay? 263 00:20:25,960 --> 00:20:28,360 Look into data engineering, please. 264 00:20:28,360 --> 00:20:29,880 This is a plug. 265 00:20:29,880 --> 00:20:30,420 Okay? 266 00:20:30,420 --> 00:20:34,320 There are two books on the right side and a list of topics under them. 267 00:20:34,320 --> 00:20:38,600 I highly recommend those are both audio books on Audible. 268 00:20:38,600 --> 00:20:41,040 You can listen to them and fall asleep. 269 00:20:41,420 --> 00:20:42,540 I've never done it. 270 00:20:42,560 --> 00:20:43,160 Right? 271 00:20:43,340 --> 00:20:44,360 Read them. 272 00:20:44,360 --> 00:20:44,780 Okay? 273 00:20:44,780 --> 00:20:45,660 They are boring. 274 00:20:45,660 --> 00:20:46,500 They are technical. 275 00:20:46,500 --> 00:20:47,800 But it's so good. 276 00:20:47,800 --> 00:20:50,140 You're going to end up with so much data. 277 00:20:50,140 --> 00:20:55,320 And if you don't use the data or just put it in flat files and Postgres, you're going to regret it. 278 00:20:55,320 --> 00:20:56,600 I promise you. 279 00:20:56,600 --> 00:20:57,340 Okay? 280 00:20:57,340 --> 00:20:59,440 So, please take a picture of this slide. 281 00:20:59,440 --> 00:21:03,280 More data is more bugs, but only if you use it correctly. 282 00:21:03,580 --> 00:21:04,100 Okay? 283 00:21:04,840 --> 00:21:07,740 This slide is automation's advantage. 284 00:21:07,740 --> 00:21:10,140 Again, we can cruise through this, take a picture, whatever. 285 00:21:10,140 --> 00:21:12,420 This is what you want out of your automation. 286 00:21:12,520 --> 00:21:15,040 This should be your mission statement right here. 287 00:21:15,820 --> 00:21:17,240 This is what I do. 288 00:21:17,240 --> 00:21:18,600 Feel free to take a picture of it. 289 00:21:18,600 --> 00:21:20,380 This is basically my workflow. 290 00:21:21,300 --> 00:21:23,400 That's the second page of the workflow. 291 00:21:24,360 --> 00:21:26,340 That's a long workflow. 292 00:21:27,240 --> 00:21:27,660 Okay? 293 00:21:27,660 --> 00:21:33,740 The last thing I want to say is the people on this slide right here have been huge with me learning this stuff. 294 00:21:33,740 --> 00:21:35,600 And there's so many more people to list. 295 00:21:35,600 --> 00:21:37,400 I see some of you out there. 296 00:21:38,160 --> 00:21:42,240 But anyone who has interacted with me, thank you so much. 297 00:21:42,240 --> 00:21:44,960 These people are people I interact with every day. 298 00:21:45,080 --> 00:21:45,900 Find them. 299 00:21:45,900 --> 00:21:47,220 Look their names up. 300 00:21:47,220 --> 00:21:48,840 Everyone in this space is great. 301 00:21:48,840 --> 00:21:50,640 Don't do automation in a vacuum. 302 00:21:50,640 --> 00:21:52,060 There's bugs for everybody. 303 00:21:52,240 --> 00:21:53,260 Share your stuff. 304 00:21:53,260 --> 00:21:54,240 Talk to people. 305 00:21:55,000 --> 00:21:56,880 And this is a really crappy slide. 306 00:21:56,880 --> 00:21:59,260 If you want to reach out further, that's all I got. 307 00:21:59,260 --> 00:22:00,360 I think I made time.