1 00:00:00,000 --> 00:00:04,580 So I'm going to hand over pretty quickly. This is our first comprehensive talk of the day after 2 00:00:04,580 --> 00:00:09,120 the workshop we've just had. And this is on bug bounty hunting on steroids, which is a report 3 00:00:09,120 --> 00:00:13,120 that has just been released by these two guys. They're also going to be talking about their 4 00:00:13,120 --> 00:00:17,520 recent internal project that they've been working on at Bounty Hunter. And on that note, I'm going 5 00:00:17,520 --> 00:00:18,800 to hand it over to you guys. Thanks. 6 00:00:20,880 --> 00:00:29,260 Hello, everybody. So let's get started without delaying a lot. So first, introductions. We are 7 00:00:29,260 --> 00:00:34,780 a team of three, myself and Truman. I am a security engineer by day. I normally do bug 8 00:00:34,780 --> 00:00:40,740 bounties after work, but it's been super busy of it. I really believe in automating as much as 9 00:00:40,740 --> 00:00:46,440 we can and we should. And all things is code. Infrastructure is code. You know, security is 10 00:00:46,440 --> 00:00:52,040 code. Whatever we can solve so that we don't have to manually spend a lot of efforts in solving 11 00:00:52,040 --> 00:00:59,000 these problems. Muhammad is not here with us. He is from Egypt. He is 12 00:00:59,000 --> 00:00:59,240 a security engineer. He is a security engineer. He is a security engineer. He is a security 13 00:00:59,260 --> 00:01:06,640 developer as well. We've been working all of us together. So he's here in spirit. But yeah. 14 00:01:06,740 --> 00:01:07,360 And then Glenn. 15 00:01:08,380 --> 00:01:15,320 So hi, I'm Glenn or Devalius. And I'm a bit of a hacker, a bit of a polyglot developer. I like to 16 00:01:15,320 --> 00:01:22,460 automate things, build things. And yeah, I mentioned my company down here because they let me 17 00:01:22,460 --> 00:01:27,380 come today. So we're not hiring at the moment. But if you want to in future and you're from 18 00:01:27,380 --> 00:01:28,760 Australia, hit me up. 19 00:01:29,280 --> 00:01:31,420 And yeah, let's get into it. 20 00:01:32,440 --> 00:01:38,100 So first of all, just a bit of an overview of what we're going to talk about. We've got what the 21 00:01:38,100 --> 00:01:42,460 problem is, where things are at at the moment. We've got our target that we're going to be 22 00:01:42,460 --> 00:01:47,340 hacking. Talk a little bit about Bounty Machine, which is a project we've been working on. Some 23 00:01:47,340 --> 00:01:53,360 lessons learned and finally just conclude everything. So first of all, hacking can be fun, 24 00:01:53,500 --> 00:01:58,660 but there's a lot of really boring manual stuff that has to go on with the recon, the enumeration, 25 00:01:59,260 --> 00:02:05,080 doing all those dumb checks that just shouldn't be there these days, but still are. And there's just 26 00:02:05,080 --> 00:02:10,240 heaps of tools out there that keep repeating themselves, do the same things. And it's just a 27 00:02:10,240 --> 00:02:16,300 shitty situation, really. So how can we get that and scale across all of the targets we want to hit 28 00:02:16,300 --> 00:02:21,800 without wasting our time and actually getting some good sleep? And then when things change, how do we 29 00:02:21,800 --> 00:02:28,340 know? And what can we do about it? So where things are at at the moment, as I said, there's just too 30 00:02:28,340 --> 00:02:33,400 many tools out there. If you've ever looked at subdomain enumeration or S3 bucket scanners on 31 00:02:33,400 --> 00:02:38,840 GitHub, it's like five or 10 different tools and they all sort of do the same thing, but sort of not. 32 00:02:38,960 --> 00:02:44,600 Some work, some are broken, and it's just kind of annoying. It's like if you want to get them and 33 00:02:44,600 --> 00:02:49,900 combine all that data together or extract it out in a nice way to automate things, they don't really 34 00:02:49,900 --> 00:02:57,200 make it easy. A lot of it's just dumping text onto the logs. So a bit of an anti-Unix tool philosophy there. 35 00:02:58,700 --> 00:03:05,140 If you've seen this XKCD before, you might understand this, but the guy comes along and he's like, 36 00:03:05,240 --> 00:03:10,180 I've got this great idea for a new tool. And he builds it and he releases it and some people use it for a 37 00:03:10,180 --> 00:03:15,360 while. But it doesn't do all of those things he wants it to do. So someone comes along, builds a 38 00:03:15,360 --> 00:03:20,520 clone of it, does some more things, doesn't do some things pretty well. Eventually they run for a 39 00:03:20,520 --> 00:03:25,820 while, they get abandoned, people move on to new things, and someone new comes along, decides let's 40 00:03:25,820 --> 00:03:26,500 make another tool. 41 00:03:28,340 --> 00:03:33,220 So you can build everything from scratch, but please don't. Like, look what's out there, improve 42 00:03:33,220 --> 00:03:38,020 existing stuff. Like, let's just bring the whole bar up a little instead of reinventing that wheel. 43 00:03:39,800 --> 00:03:45,120 So given there's so many tools out there, like, how do we even know which ones to use? You can sit 44 00:03:45,120 --> 00:03:50,260 down there and you can, like, play through them all, read the code, read the features, hope they 45 00:03:50,260 --> 00:03:55,580 work. And it's really time-consuming and it would be great if we had some better comparisons between 46 00:03:55,580 --> 00:03:58,320 these or knew which ones we were going to be getting the most out of. 47 00:04:00,520 --> 00:04:07,500 So there's some good stuff happening out there, like Jason's bug hunter methodology, and he sort of 48 00:04:07,500 --> 00:04:13,500 digs in and does some great comparisons, figures out, like, just how slow some of these tools can be and 49 00:04:13,500 --> 00:04:16,340 maybe which ones you want to look at when you're doing some hunting. 50 00:04:18,380 --> 00:04:23,900 Interoperability between tools. So as I said, like, when things just dump out the results as a text 51 00:04:23,900 --> 00:04:28,320 file, it's not really that nice to consume. Like, you can hack some regex and stuff, but you can't do that. 52 00:04:28,320 --> 00:04:33,280 together, parse it out, but then you've got rejects and you've got more problems. So if we 53 00:04:33,280 --> 00:04:38,180 could have something that makes it easier to consume from a tool perspective, that would be 54 00:04:38,180 --> 00:04:44,360 really nice. Recon JSON is a thing that's been happening a bit on Twitter lately. A bunch of 55 00:04:44,360 --> 00:04:49,700 guys got together and were just like, you know what, let's define how we want this output to come 56 00:04:49,700 --> 00:04:55,460 and then we'll actually be able to build things that can talk nicely together. So there's heaps 57 00:04:55,460 --> 00:05:00,600 of discussion happening over on that GitHub repo and please head there, check it out, contribute. 58 00:05:01,060 --> 00:05:09,140 Like, it will really make our lives easier as hunters. Scaling and reliability. So running a 59 00:05:09,140 --> 00:05:13,880 Python script or hacking together some bash is great when you're attacking one thing or two 60 00:05:13,880 --> 00:05:19,280 things, but what if you want to hit all targets on something like, I don't know, Uber or one of 61 00:05:19,280 --> 00:05:25,120 these huge bug bounties. Like, you need something that can scale and handle that kind of thing. So 62 00:05:25,120 --> 00:05:28,600 So obviously there are big tech companies out there that do this. 63 00:05:29,020 --> 00:05:31,320 Maybe you've heard of Google, these things. 64 00:05:31,500 --> 00:05:33,780 They kind of know how to do things at scale. 65 00:05:34,060 --> 00:05:36,680 So why don't we leverage some of the things they know? 66 00:05:37,120 --> 00:05:40,260 Don't throw a giant server at it, but scale out horizontally. 67 00:05:40,760 --> 00:05:43,000 Maybe use things like Kubernetes, containers. 68 00:05:43,940 --> 00:05:46,040 Let's get some fault tolerance built in there. 69 00:05:46,660 --> 00:05:48,640 So there's lots of things we can learn 70 00:05:48,640 --> 00:05:50,900 if we look to that dev and tech side of things 71 00:05:50,900 --> 00:05:54,400 rather than just focusing really closely on our security area. 72 00:05:56,260 --> 00:05:59,640 And then having a practical research environment. 73 00:06:00,040 --> 00:06:02,260 So when you have all of these targets, 74 00:06:02,440 --> 00:06:05,480 like millions of bug bounty assets out there, 75 00:06:05,600 --> 00:06:07,920 how do you know which ones to look at? 76 00:06:08,080 --> 00:06:09,300 There's so many people looking, 77 00:06:09,500 --> 00:06:11,720 and you just kind of want to know where to start. 78 00:06:12,100 --> 00:06:14,260 So having a research environment 79 00:06:14,260 --> 00:06:16,440 where you can kind of get that salient information 80 00:06:16,440 --> 00:06:18,620 so I can just hack the things I want to hack. 81 00:06:19,680 --> 00:06:22,360 So gathering the information about the scopes, 82 00:06:22,440 --> 00:06:23,760 getting that recon data, 83 00:06:23,960 --> 00:06:25,100 and just kind of saving it, 84 00:06:25,120 --> 00:06:26,160 and putting it away in the database. 85 00:06:26,340 --> 00:06:28,000 So when I'm ready to hack on something, 86 00:06:28,200 --> 00:06:29,560 I can just get started. 87 00:06:31,480 --> 00:06:31,920 Yeah. 88 00:06:32,340 --> 00:06:34,820 And then I guess what this comes back to 89 00:06:34,820 --> 00:06:36,500 is identifying the assets. 90 00:06:36,800 --> 00:06:39,080 Like you don't know what to hack 91 00:06:39,080 --> 00:06:40,760 if you don't know what's out there. 92 00:06:41,160 --> 00:06:45,000 So keeping up with new hosts as they come online 93 00:06:45,000 --> 00:06:47,080 or when things have changed 94 00:06:47,080 --> 00:06:48,900 is really important for kind of knowing 95 00:06:48,900 --> 00:06:49,600 what you want to hit. 96 00:06:51,620 --> 00:06:53,440 As there's articles out there 97 00:06:53,440 --> 00:06:54,740 that talk about this, 98 00:06:55,120 --> 00:06:57,740 there are so many things where companies are getting owned 99 00:06:57,740 --> 00:06:59,260 or huge bounties are being paid 100 00:06:59,260 --> 00:07:02,380 just because the company didn't know what they had. 101 00:07:02,540 --> 00:07:03,780 And it just sat out there. 102 00:07:03,840 --> 00:07:05,240 Some dude found it and was like, 103 00:07:05,340 --> 00:07:06,600 sweet, I'm going to own that one. 104 00:07:07,540 --> 00:07:10,320 So looking at just two of the OWASP top 10, 105 00:07:10,420 --> 00:07:14,280 we have almost 50% of the breaches in this report. 106 00:07:15,100 --> 00:07:18,340 And they're really easy things to automate and look for. 107 00:07:18,580 --> 00:07:20,820 So why aren't we doing more of that? 108 00:07:22,080 --> 00:07:25,960 And I guess on that automated side, 109 00:07:26,180 --> 00:07:29,300 having that real-time update to your inventory of assets. 110 00:07:29,500 --> 00:07:32,040 So it's not some guy there writing down like, 111 00:07:32,160 --> 00:07:34,640 oh, we've got a box over here and I set that up there. 112 00:07:34,840 --> 00:07:37,340 But feeding it in and automatically keeping 113 00:07:37,340 --> 00:07:38,240 this stuff happening. 114 00:07:39,940 --> 00:07:41,700 Code changes all the time. 115 00:07:41,800 --> 00:07:45,200 You can spin up new servers like with no effort these days. 116 00:07:45,440 --> 00:07:48,160 So we really want to know what changes and when 117 00:07:48,160 --> 00:07:50,800 so that we can focus our efforts on that. 118 00:07:50,800 --> 00:07:51,720 So I'm looking at those things. 119 00:07:55,400 --> 00:07:56,220 All righty. 120 00:07:56,220 --> 00:07:59,460 So that was some background to give you more context 121 00:07:59,460 --> 00:08:00,680 on what we're going to show next, 122 00:08:00,880 --> 00:08:02,740 which is the more exciting part. 123 00:08:02,900 --> 00:08:04,620 So what are we going after today? 124 00:08:04,780 --> 00:08:06,060 So let's talk about that. 125 00:08:06,400 --> 00:08:08,020 We have set up a company. 126 00:08:08,060 --> 00:08:09,860 We call it Ellingson Mineral Corporation. 127 00:08:11,600 --> 00:08:14,180 There are two things we know about this company. 128 00:08:14,340 --> 00:08:17,440 First, there's a GitHub repository, Ellingson Corp. 129 00:08:17,440 --> 00:08:19,000 If you go online, you can probably find it. 130 00:08:19,000 --> 00:08:22,640 And it's main domain, EllingsonCorp.com. 131 00:08:23,400 --> 00:08:25,860 So this is all we know about this company. 132 00:08:26,240 --> 00:08:30,880 And we try to show you if we run what we have built 133 00:08:30,880 --> 00:08:34,540 against this organization, all the things that it can find 134 00:08:34,540 --> 00:08:38,980 in a way that we don't have to do a lot of work ourselves, 135 00:08:39,080 --> 00:08:41,300 but those results just come to us. 136 00:08:43,720 --> 00:08:46,820 So the whole run from end to end, 137 00:08:46,860 --> 00:08:48,580 it probably takes around 50, 20 minutes. 138 00:08:49,000 --> 00:08:50,400 So I'm going to start it right now. 139 00:08:50,500 --> 00:08:52,400 Glenn is going to continue the rest of the presentation. 140 00:08:52,680 --> 00:08:57,060 And then once he finishes, we'll actually go over the results, 141 00:08:57,240 --> 00:08:59,640 show you how it all works, and things like that. 142 00:08:59,760 --> 00:09:03,480 So I'm just going to show that how we start the workflow 143 00:09:03,480 --> 00:09:04,820 for, like, let's say an org. 144 00:09:11,760 --> 00:09:16,840 So the way it works right now is we treat Slack as a front end. 145 00:09:17,240 --> 00:09:18,860 So you see that. 146 00:09:19,000 --> 00:09:21,260 This is a Slack group that we have. 147 00:09:21,420 --> 00:09:24,220 And this is a private channel that we have. 148 00:09:24,300 --> 00:09:27,480 So I'm just going to start two workflows against this org. 149 00:09:28,040 --> 00:09:31,420 The first workflow will be to find all the secrets in the repositories. 150 00:09:31,560 --> 00:09:35,680 And the second one would be against the main domain, EllingsonCorp.com. 151 00:09:35,860 --> 00:09:38,240 And then we'll see what it can find. 152 00:09:39,440 --> 00:09:43,040 And the way we do it here is using slash commands in Slack. 153 00:09:43,500 --> 00:09:43,980 So... 154 00:09:54,660 --> 00:09:55,620 So if... 155 00:09:55,620 --> 00:09:56,400 I don't know if... 156 00:09:56,400 --> 00:09:57,520 Oh, wow, that's super small. 157 00:10:02,580 --> 00:10:03,680 Still pretty small. 158 00:10:03,880 --> 00:10:07,360 Well, I'll just read out what I've written. 159 00:10:07,520 --> 00:10:12,860 So what I'm doing there is I'm issuing a slash command that says add thing. 160 00:10:13,180 --> 00:10:17,060 And then I have what workflow I want to run. 161 00:10:17,200 --> 00:10:18,880 So that is the domain workflow. 162 00:10:18,880 --> 00:10:21,100 And then I specify the actual domain. 163 00:10:21,420 --> 00:10:27,200 Now, this, I just want to mention that we can do this for multiple domains in one go. 164 00:10:28,100 --> 00:10:33,220 By just, like, separating them using some kind of delimiter. 165 00:10:33,560 --> 00:10:36,160 Right now, we're just doing it against EllingsonCorp.com. 166 00:10:36,220 --> 00:10:37,100 So that's where you just see that. 167 00:10:37,240 --> 00:10:42,200 If I were to add more domains, I could just do Google.com, you know, like, what have you. 168 00:10:42,280 --> 00:10:43,960 So I'm just going to press enter. 169 00:10:44,800 --> 00:10:45,580 Hopefully it works. 170 00:10:45,640 --> 00:10:46,420 So you can see that. 171 00:10:46,420 --> 00:10:49,360 One of the two workflows I've started. 172 00:10:49,480 --> 00:10:52,580 I'm going to do the same thing for the GitHub repositories as well. 173 00:11:03,280 --> 00:11:04,320 Oh, yeah. 174 00:11:05,840 --> 00:11:06,660 Is that better? 175 00:11:06,820 --> 00:11:07,320 Thank you. 176 00:11:11,640 --> 00:11:14,660 So I'm doing something similar for the GitHub repositories. 177 00:11:14,780 --> 00:11:16,300 I'm just issuing a slash command. 178 00:11:16,420 --> 00:11:16,820 I'm going to run that thing. 179 00:11:17,240 --> 00:11:20,940 I'm mentioning what workflow I want to run, which is GitHub org. 180 00:11:21,100 --> 00:11:25,580 And then I'm mentioning the organization name, which is EllingsonCorp. 181 00:11:25,960 --> 00:11:27,220 Hopefully I spelled it right. 182 00:11:29,920 --> 00:11:30,520 All right. 183 00:11:30,640 --> 00:11:31,900 So let's get that going. 184 00:11:32,100 --> 00:11:35,840 So now you can see that I've also submitted the other workflow. 185 00:11:36,260 --> 00:11:39,240 And we'll start seeing the results here pretty soon. 186 00:11:39,380 --> 00:11:41,920 But let's just continue with the presentation, and then we'll get back to it later. 187 00:11:55,020 --> 00:11:55,580 Cool. 188 00:11:55,880 --> 00:12:00,780 So now that we've got that running, I might actually talk a little bit about what we have there. 189 00:12:01,240 --> 00:12:03,000 So we call it Bounty Machine. 190 00:12:03,240 --> 00:12:10,300 And we've tied together a bunch of open source and pretty prevalent technologies from the development side of things. 191 00:12:10,440 --> 00:12:14,720 And kind of turned it back against the security domain that we're more interested in. 192 00:12:14,720 --> 00:12:19,520 So to start off, this cute little guy here playing with Gopher. 193 00:12:20,680 --> 00:12:24,240 Golang is a compiled language that came out by Google. 194 00:12:24,400 --> 00:12:29,260 And it's really nice for writing these little, like, cloud microservice kind of architectures. 195 00:12:30,040 --> 00:12:31,460 You get a static binary. 196 00:12:31,700 --> 00:12:37,480 And you can do nice things with that, like throw it into a tiny little Docker container. 197 00:12:37,960 --> 00:12:41,240 So Docker, if you don't know, is a container runtime. 198 00:12:41,560 --> 00:12:44,700 And it's really nice for just encapsulating all of the Docker. 199 00:12:44,720 --> 00:12:45,680 And you can do all of the dependencies you need. 200 00:12:45,780 --> 00:12:48,960 So your project just runs the same no matter what server you throw it on. 201 00:12:49,600 --> 00:12:50,820 Now, this is nice. 202 00:12:51,020 --> 00:12:54,780 But when you want to scale, you kind of need to go beyond running a single container. 203 00:12:55,140 --> 00:12:58,260 So we bring in Kubernetes, which is an orchestration framework. 204 00:12:58,760 --> 00:13:04,000 And it basically allows us to set up a bunch of servers and just be like, here it is. 205 00:13:04,060 --> 00:13:05,400 Throw my containers at it. 206 00:13:05,660 --> 00:13:06,320 Distribute that. 207 00:13:06,400 --> 00:13:06,620 Run. 208 00:13:06,860 --> 00:13:07,220 Scale. 209 00:13:07,620 --> 00:13:08,600 Handle all my things. 210 00:13:08,720 --> 00:13:09,720 I don't want to think about it. 211 00:13:09,900 --> 00:13:10,900 So that's really nice. 212 00:13:11,600 --> 00:13:14,220 And then finally, this is a pretty new project. 213 00:13:14,720 --> 00:13:17,220 It's been coming out over the last sort of year or so, Argo. 214 00:13:17,480 --> 00:13:20,640 It runs on top of Kubernetes, uses Docker containers. 215 00:13:20,980 --> 00:13:23,840 And it defines a sort of workflow language. 216 00:13:24,220 --> 00:13:30,300 So you can say run these containers in parallel, put them in series, pass the inputs and outputs together. 217 00:13:30,600 --> 00:13:34,500 It allows you to wire this whole kind of workflow together in a really nice way. 218 00:13:35,380 --> 00:13:37,880 So that's sort of the core things we've built on. 219 00:13:38,100 --> 00:13:42,040 And we also use sort of Google Cloud and similar things to tie it all together. 220 00:13:43,440 --> 00:13:44,700 So talking about this. 221 00:13:44,720 --> 00:13:45,660 Let's talk about the architecture a little. 222 00:13:46,800 --> 00:13:50,400 As we mentioned before, like, we start off normally from Slack. 223 00:13:50,600 --> 00:13:54,680 Though we can have a CLI, a web interface or anything else that goes in there. 224 00:13:55,060 --> 00:13:56,260 That talks to an API. 225 00:13:56,720 --> 00:13:58,800 And that throws some data onto our first queue. 226 00:13:59,960 --> 00:14:04,220 Now, with each of these queues, we can have a number of workers that are listening on them. 227 00:14:04,420 --> 00:14:07,040 And so it might say, hey, you just put in a domain. 228 00:14:07,260 --> 00:14:08,260 I'm interested in that. 229 00:14:08,500 --> 00:14:09,700 Let me run some stuff. 230 00:14:10,200 --> 00:14:13,320 Now, when we run that, it might just be a simple little tool. 231 00:14:13,320 --> 00:14:14,640 Dealing with it directly. 232 00:14:15,100 --> 00:14:18,980 Maybe we pass it off to a whole workflow made out in Argo. 233 00:14:19,380 --> 00:14:25,180 And then when it's all done, pauses out its results and puts the salient information back on a new queue. 234 00:14:25,620 --> 00:14:31,940 So let's say we went to a subdomain and we did some directory brute forcing. 235 00:14:32,120 --> 00:14:33,640 We find a whole bunch of endpoints. 236 00:14:33,860 --> 00:14:38,880 And then we send those endpoints out in a really consumable way for other tools that are interested in that. 237 00:14:40,840 --> 00:14:42,580 Which is what I said there. 238 00:14:43,580 --> 00:14:48,060 So once it goes out there, we've got the diff worker, as we call it. 239 00:14:48,140 --> 00:14:49,560 And that kind of handles our persistence. 240 00:14:49,740 --> 00:14:53,440 So we're building up this database of all the things we know. 241 00:14:53,620 --> 00:15:01,200 And also figuring out what new information did we get so that other tools can then use that to react depending on what they're interested in. 242 00:15:02,280 --> 00:15:06,540 At the moment, one of the main things we do with that is pass it into notifications. 243 00:15:07,300 --> 00:15:08,820 So that could be Slack. 244 00:15:09,080 --> 00:15:12,760 Maybe we want to get it on, like, our mobile phone if it's a really urgent thing. 245 00:15:13,320 --> 00:15:16,120 Maybe it's out at the bar and you just want to know so you can get that down here. 246 00:15:16,820 --> 00:15:24,580 And pretty much this is set up in a really flexible way so that you can just plug in whatever output you want to get. 247 00:15:25,200 --> 00:15:26,200 So it's pretty nice. 248 00:15:27,260 --> 00:15:30,800 And then once you've done all that, how do we know when things are changing? 249 00:15:31,000 --> 00:15:35,760 So we can set up stuff to schedule to go back and revisit these things. 250 00:15:35,920 --> 00:15:36,960 See, has it changed? 251 00:15:37,120 --> 00:15:38,240 Is there anything new here? 252 00:15:38,620 --> 00:15:40,540 Maybe I found a new subdomain or something. 253 00:15:40,540 --> 00:15:45,240 So that kind of keeps our stuff up to date so that we know what we're hacking on. 254 00:15:45,980 --> 00:15:50,420 So when you put it all together, this is kind of what the basic workflow ends up looking like. 255 00:15:50,680 --> 00:15:55,840 And in any of these kind of worker areas, you can just add more and more, plugging them in individually. 256 00:15:56,880 --> 00:16:01,060 And this is all set up in a really decoupled sort of way. 257 00:16:01,220 --> 00:16:06,620 So most of these things you could rip out or replace or add new ones, and it's not going to break anything. 258 00:16:06,760 --> 00:16:08,140 It all just kind of works together. 259 00:16:08,440 --> 00:16:09,520 So that's really nice. 260 00:16:09,520 --> 00:16:15,760 When you want to hack in a new tool that you found or maybe some new attack factors come out, 261 00:16:15,940 --> 00:16:19,380 and you don't want to try and change this monolithic architecture. 262 00:16:22,160 --> 00:16:22,680 Yeah. 263 00:16:24,360 --> 00:16:25,080 All right. 264 00:16:25,120 --> 00:16:27,500 So let's discuss what we have learned. 265 00:16:27,920 --> 00:16:30,140 There are quite a few lessons there. 266 00:16:30,300 --> 00:16:31,600 So I'm just going to walk through them. 267 00:16:32,000 --> 00:16:34,400 The first one was geographic limitations. 268 00:16:34,500 --> 00:16:36,220 So Glenn is in Australia. 269 00:16:36,860 --> 00:16:38,420 I live in San Diego. 270 00:16:38,420 --> 00:16:40,480 And Mohamed is in Egypt. 271 00:16:40,700 --> 00:16:45,000 So pretty much all of us, there are three different time zones. 272 00:16:45,160 --> 00:16:49,620 So I remember there were only a few days where all of us could be online together. 273 00:16:50,040 --> 00:16:55,320 So we don't really have a company that we have all paid Slack channels on Google Meet. 274 00:16:55,520 --> 00:16:57,160 All of us just work via Slack. 275 00:16:57,580 --> 00:17:00,120 We have a free Slack organization set up. 276 00:17:00,740 --> 00:17:06,200 So, yeah, it was a pretty interesting thing that we've learned how to coordinate, 277 00:17:06,200 --> 00:17:10,980 how to communicate with each other, how to make sure that each one of us know what we're working on. 278 00:17:11,200 --> 00:17:16,500 And both of us have full-time jobs, so it was really difficult, you know, to do something after work as well. 279 00:17:18,060 --> 00:17:20,160 Communication, as I mentioned, was super important. 280 00:17:21,100 --> 00:17:24,960 You know, there were quite a few lessons there as well. 281 00:17:25,120 --> 00:17:26,500 One, to check your ego. 282 00:17:26,760 --> 00:17:31,980 That pretty much, I think, should be the case wherever you go. 283 00:17:32,080 --> 00:17:34,480 But communicating openly, honestly. 284 00:17:34,480 --> 00:17:37,500 With lots of input, right? 285 00:17:37,680 --> 00:17:40,320 And especially not to assume things. 286 00:17:40,820 --> 00:17:42,440 That's something that I used to do a lot. 287 00:17:42,540 --> 00:17:43,700 I used to assume a lot. 288 00:17:43,780 --> 00:17:46,220 And then, you know, I used to have conversations with Glen. 289 00:17:46,400 --> 00:17:50,080 And then he used to basically explain why I was wrong. 290 00:17:50,200 --> 00:17:58,660 So, you know, taking, yeah, taking responsibilities, kind of doing program management of this entire project as well. 291 00:17:58,820 --> 00:18:01,560 And all of us were doing multiple things. 292 00:18:01,680 --> 00:18:04,460 So it was quite a good learning experience for all of us. 293 00:18:06,400 --> 00:18:06,840 Technology. 294 00:18:07,660 --> 00:18:08,980 What did we learn technology-wise? 295 00:18:10,220 --> 00:18:20,460 So in the security industry, what I've seen personally, I've been in this industry for quite some time now, is that people are really afraid, skeptical of trying out new things. 296 00:18:20,600 --> 00:18:25,220 And I totally understand that, you know, because when new things come up, you don't really know how secure they are. 297 00:18:25,320 --> 00:18:27,040 Like, for instance, containers. 298 00:18:27,360 --> 00:18:28,220 Are containers really secure? 299 00:18:28,580 --> 00:18:30,140 This question keeps getting asked. 300 00:18:30,620 --> 00:18:34,460 I can tell you that, you know, there are ways you can secure them. 301 00:18:34,480 --> 00:18:35,660 You can securely deploy a Docker container. 302 00:18:35,940 --> 00:18:38,700 But how you do that, nobody even goes into that. 303 00:18:38,820 --> 00:18:42,600 People just get scared that, you know, oh, this is some fancy new tool. 304 00:18:42,720 --> 00:18:43,720 It's not really secure. 305 00:18:43,980 --> 00:18:44,900 Let's not go there. 306 00:18:45,060 --> 00:18:51,080 So I want to point out that or stress on the point that this thinking needs to change. 307 00:18:51,200 --> 00:18:54,940 And it needs to happen in the security industry more than anywhere else. 308 00:18:55,000 --> 00:19:04,460 Because there's some new cool technologies out there that we should use and, you know, do more innovative stuff in a way that, you know, we don't have to worry about. 309 00:19:04,460 --> 00:19:08,680 You know, we can actually build something for us and also share it with the community, which is what we're trying to do here, right? 310 00:19:09,400 --> 00:19:10,980 So just keep your eyes open. 311 00:19:11,200 --> 00:19:13,440 Keep, you know, explore what is out there. 312 00:19:15,120 --> 00:19:19,780 And especially if you take a particular technology that you want to go with, try to understand how it works. 313 00:19:19,920 --> 00:19:25,960 Try to understand how you can use that technology into what problem you're trying to solve, which is what we did here again. 314 00:19:26,140 --> 00:19:27,260 We looked at containers. 315 00:19:27,440 --> 00:19:28,960 We looked at orchestration frameworks. 316 00:19:29,500 --> 00:19:33,440 We knew we had a problem to solve of automation, of scalability. 317 00:19:33,440 --> 00:19:35,660 How do we correlate both of them together? 318 00:19:35,840 --> 00:19:37,520 And then we build this framework, right? 319 00:19:37,660 --> 00:19:38,900 So that's really important. 320 00:19:40,580 --> 00:19:47,160 And, yeah, sometimes there are things that you would want that you would like to have that don't necessarily exist. 321 00:19:47,960 --> 00:19:49,760 But that's the case in pretty much everywhere. 322 00:19:49,980 --> 00:19:51,860 So don't get bogged down too much. 323 00:19:52,140 --> 00:20:01,320 And one thing that we've learned a lot is even simple problems, you know, that it takes quite a while to get it right, like the first time. 324 00:20:01,400 --> 00:20:03,300 So that's important to stress that. 325 00:20:03,300 --> 00:20:04,880 It's an iterative process. 326 00:20:05,100 --> 00:20:06,460 So don't get stuck at one point. 327 00:20:08,500 --> 00:20:16,180 So one thing that we focused on really was building MVP or a working prototype that we know will work. 328 00:20:16,300 --> 00:20:17,900 It doesn't have to be perfect. 329 00:20:18,040 --> 00:20:20,140 The perfect code, you know, everything runs perfectly. 330 00:20:20,500 --> 00:20:28,680 And we feel that this approach of going after MVP product really worked out for us because we can see the results now. 331 00:20:28,860 --> 00:20:31,180 And we've been doing it for this. 332 00:20:31,280 --> 00:20:33,200 We've been working on this for almost a year. 333 00:20:33,300 --> 00:20:35,080 So it's been a long journey. 334 00:20:36,800 --> 00:20:41,940 So for the MVP product, what are some things that, you know, we focused on? 335 00:20:43,080 --> 00:20:47,380 One thing is that don't get too bogged down in details I mentioned earlier. 336 00:20:47,560 --> 00:20:49,820 But just look at the overall picture. 337 00:20:49,940 --> 00:20:52,400 Just have an idea of what we're trying to solve. 338 00:20:52,580 --> 00:20:57,360 And then once we encounter problems, try to solve them just in time, right? 339 00:20:58,040 --> 00:21:02,340 And if there's anything else that you can think of, just keep it in the backlog. 340 00:21:02,340 --> 00:21:05,880 Once you have something running, come back to it. 341 00:21:06,000 --> 00:21:07,360 Again, it's a feedback loop. 342 00:21:07,580 --> 00:21:10,100 Keep iterating on it and move fast. 343 00:21:10,820 --> 00:21:15,760 So these are some principles that we kind of advocate in the DevSecOps. 344 00:21:16,920 --> 00:21:20,880 If you will, you know, things like just keep iterating. 345 00:21:20,960 --> 00:21:22,160 Have a feedback loop. 346 00:21:22,420 --> 00:21:23,920 Don't go after the perfect product. 347 00:21:24,000 --> 00:21:27,180 Go after the best or go after the MVP product. 348 00:21:29,220 --> 00:21:29,940 All right. 349 00:21:30,060 --> 00:21:32,020 So has it been 20 minutes? 350 00:21:32,080 --> 00:21:32,320 I don't know. 351 00:21:32,340 --> 00:21:35,460 But coming back to the demo, let's see if we have anything. 352 00:21:35,680 --> 00:21:36,720 I hope we do. 353 00:21:39,100 --> 00:21:39,800 Oh, yeah. 354 00:21:39,900 --> 00:21:45,900 So can you see that? 355 00:21:46,600 --> 00:21:47,060 Okay. 356 00:21:47,120 --> 00:21:49,440 So it's probably going to take a few minutes more. 357 00:21:49,560 --> 00:21:51,100 But let's see what we have so far. 358 00:21:53,040 --> 00:21:57,560 So you remember we ran the workflow to find secrets in GitHub repository. 359 00:21:57,840 --> 00:21:59,400 So that's the first output we get. 360 00:21:59,620 --> 00:22:02,060 It basically shows that, you know, 361 00:22:02,060 --> 00:22:05,020 you have this repository here and these are all the secrets in there. 362 00:22:05,320 --> 00:22:09,120 So that was the output from that GitHub repository worker. 363 00:22:09,560 --> 00:22:11,060 Let's come down. 364 00:22:11,960 --> 00:22:16,360 We find that there's some new subdomains that our workflow found. 365 00:22:16,580 --> 00:22:18,720 So we started with EllingsonCorp.com. 366 00:22:19,640 --> 00:22:21,060 And the results are still coming. 367 00:22:21,200 --> 00:22:21,600 That's awesome. 368 00:22:21,920 --> 00:22:25,300 So we started with EllingsonCorp.com. 369 00:22:25,400 --> 00:22:29,460 And now you can see that it found all these other subdomains that might be interesting, 370 00:22:29,600 --> 00:22:30,380 might not be interesting. 371 00:22:30,520 --> 00:22:32,040 But we don't have to worry about that. 372 00:22:32,040 --> 00:22:32,580 Don't worry about it. 373 00:22:32,600 --> 00:22:34,140 Our workflow is just taking care of that, right? 374 00:22:34,980 --> 00:22:35,760 Let's come down. 375 00:22:36,500 --> 00:22:40,220 We can see that it found some subdomains that can be taken over. 376 00:22:41,420 --> 00:22:45,820 By that, what I mean is this subdomain, ellingsonpress.github.io, 377 00:22:46,240 --> 00:22:47,800 I think it's online right now. 378 00:22:47,920 --> 00:22:50,300 If somebody wants to take it over, feel free. 379 00:22:50,400 --> 00:22:51,720 You know, you can actually take it over. 380 00:22:51,820 --> 00:22:54,940 So the way it would work is you would go to your DNS account. 381 00:22:55,200 --> 00:22:58,700 You would, like, set up a CNAME pointing to GitHub.io. 382 00:22:58,900 --> 00:23:01,340 And if you go to that page, it would be your domain. 383 00:23:01,340 --> 00:23:02,720 It would not belong to us anymore. 384 00:23:02,900 --> 00:23:04,140 It would look like that. 385 00:23:04,260 --> 00:23:09,720 But, yeah, so the tool actually found that for us as well, right? 386 00:23:09,960 --> 00:23:12,040 Coming lower down, you see that. 387 00:23:12,180 --> 00:23:19,140 So what you see here is it actually ran port scans across all 65535 ports 388 00:23:19,140 --> 00:23:20,760 against all the subdomains. 389 00:23:21,080 --> 00:23:22,100 And these are the results. 390 00:23:22,300 --> 00:23:27,300 So you can see that we report the port, the protocol, the service, the status, right? 391 00:23:27,500 --> 00:23:30,220 And you can see that it's a whole bunch of things there. 392 00:23:31,340 --> 00:23:33,080 So there are some interesting ports open there. 393 00:23:33,100 --> 00:23:36,260 You can see we have, oh, this looks nice, port 8080. 394 00:23:36,460 --> 00:23:36,900 See that? 395 00:23:38,200 --> 00:23:41,840 Normally, you just see port 80 or 443 on these web servers. 396 00:23:42,000 --> 00:23:46,020 But anything interesting should definitely be looked at and further powered. 397 00:23:46,320 --> 00:23:47,760 And this one's interesting, too. 398 00:23:47,980 --> 00:23:49,180 I wonder what that is. 399 00:23:50,540 --> 00:23:51,160 All right. 400 00:23:51,180 --> 00:23:54,460 Moving on, we also find endpoints. 401 00:23:54,760 --> 00:23:59,560 So, you know, oftentimes, there's these web endpoints that are hidden, 402 00:23:59,640 --> 00:24:01,320 that nobody really knows about. 403 00:24:01,320 --> 00:24:05,060 Nobody really knows unless you actually go to that endpoint and try to access it. 404 00:24:05,200 --> 00:24:10,200 It's at that time where you realize, you know, things are accessible 405 00:24:10,200 --> 00:24:13,940 without even needing any sort of authentication or authorization. 406 00:24:14,300 --> 00:24:17,700 So our workflows found all these interesting endpoints. 407 00:24:18,720 --> 00:24:19,360 All right. 408 00:24:19,400 --> 00:24:20,120 Let's see. 409 00:24:20,180 --> 00:24:20,980 What else did it find? 410 00:24:21,440 --> 00:24:22,940 Oh, this looks nice. 411 00:24:23,200 --> 00:24:23,500 Okay. 412 00:24:23,560 --> 00:24:27,000 So what it did was, you remember port 8080? 413 00:24:27,160 --> 00:24:29,800 So it actually ran a CMS finder. 414 00:24:29,800 --> 00:24:32,300 And it found that it is running Jenkins. 415 00:24:33,020 --> 00:24:34,320 And it ran a tool. 416 00:24:34,460 --> 00:24:41,360 I believe it is JexPos or something like that to see if this Jenkins instance is vulnerable or not. 417 00:24:41,580 --> 00:24:42,680 And it is vulnerable. 418 00:24:42,940 --> 00:24:43,720 You see that result. 419 00:24:43,880 --> 00:24:50,020 So the reason you see the output is like this, it's because this output is from the tool that ran. 420 00:24:50,300 --> 00:24:51,280 We're not doing anything. 421 00:24:51,380 --> 00:24:53,760 We're just taking that output and sending it to Slack. 422 00:24:53,960 --> 00:24:58,260 Now, this can work on, this can be improved, but you get the idea, right? 423 00:24:58,320 --> 00:24:59,780 So we ran it. 424 00:24:59,780 --> 00:24:59,980 We ran a tool. 425 00:25:00,360 --> 00:25:01,900 First, we found a subdomain. 426 00:25:01,940 --> 00:25:03,260 Then we port scanned it. 427 00:25:03,440 --> 00:25:06,040 Then we ran a CMS finder against it. 428 00:25:06,180 --> 00:25:07,000 We found it as Jenkins. 429 00:25:07,360 --> 00:25:11,200 Then we ran a tool specific to Jenkins to see if it is vulnerable or not. 430 00:25:11,340 --> 00:25:12,480 So you see the entire workflow. 431 00:25:12,900 --> 00:25:14,300 And you see the result. 432 00:25:14,540 --> 00:25:14,780 All right. 433 00:25:14,900 --> 00:25:15,560 Let's move on. 434 00:25:18,360 --> 00:25:23,780 It found this subdomain, blog.linksincorp.com, and it identified it's a WordPress site. 435 00:25:24,160 --> 00:25:27,360 So now, again, this output is fully formatted. 436 00:25:27,640 --> 00:25:28,640 And the reason... 437 00:25:28,640 --> 00:25:34,320 It's actually funny because there's so much data reported back from a tool that Slack cannot handle it. 438 00:25:34,800 --> 00:25:42,220 So, you know, like, how you will, like, format a piece of code in Slack, you mention those three or whatever those are called. 439 00:25:42,380 --> 00:25:48,860 So we actually try to do that, but there's so much information that Slack just, you know, basically says, I cannot show it in a good way. 440 00:25:49,040 --> 00:25:51,620 So that's why you see this data in a fully formatted way. 441 00:25:51,740 --> 00:25:55,040 But it ran, again, port scanned. 442 00:25:55,200 --> 00:25:56,760 It found that it's running WordPress. 443 00:25:56,760 --> 00:25:58,700 It ran WP scan. 444 00:25:59,680 --> 00:26:02,640 WP scan is a very famous open source tool. 445 00:26:02,740 --> 00:26:03,560 We didn't build it ourselves. 446 00:26:03,740 --> 00:26:04,420 We just used it. 447 00:26:04,540 --> 00:26:07,520 So we ran WP scan against this website. 448 00:26:07,880 --> 00:26:09,520 And look at all the stuff that it found. 449 00:26:09,700 --> 00:26:13,620 It found various CVEs, a whole bunch of information. 450 00:26:14,040 --> 00:26:19,660 So all we do is just look at our Slack on our cell phones and just see what keeps coming, right? 451 00:26:20,940 --> 00:26:23,840 Anything interesting, we can go and look into it further. 452 00:26:23,980 --> 00:26:26,640 So all this stuff is from that WP scan. 453 00:26:26,640 --> 00:26:28,880 All this fully formatted output. 454 00:26:29,140 --> 00:26:30,140 There's a whole bunch of things. 455 00:26:32,400 --> 00:26:37,200 Now, we know that Slack is probably not the ideal place to, you know, see it. 456 00:26:37,320 --> 00:26:38,800 But I am lazy. 457 00:26:39,540 --> 00:26:42,960 I don't know about you, but I am really lazy. 458 00:26:43,080 --> 00:26:45,220 So I don't want to even go on the laptop. 459 00:26:45,440 --> 00:26:48,620 I just want, you know, my cell phone and everything should just be there. 460 00:26:48,840 --> 00:26:50,500 So that's why I chose Slack. 461 00:26:50,560 --> 00:26:51,260 This was my decision. 462 00:26:51,420 --> 00:26:55,080 But I'm pretty sure we are past that point where we need something else. 463 00:26:55,080 --> 00:26:56,680 At least for the output. 464 00:26:56,900 --> 00:26:59,460 I mean, we can start the workflows from Slack from our cell phones. 465 00:26:59,560 --> 00:27:02,040 But to get back the output, we should have something nicer. 466 00:27:03,380 --> 00:27:08,660 So that's, I mean, I still think there are a few workflows still about to run. 467 00:27:09,200 --> 00:27:10,760 But this is what we have so far. 468 00:27:10,840 --> 00:27:11,860 So let's come back to it. 469 00:27:11,960 --> 00:27:13,340 Let's continue with the presentation. 470 00:27:13,460 --> 00:27:15,200 And then we'll see if we have some more stuff. 471 00:27:27,200 --> 00:27:31,460 So, again, we started with just knowing two things about this domain, right? 472 00:27:31,520 --> 00:27:34,760 Just that it has a GitHub repository and its main domain. 473 00:27:35,660 --> 00:27:37,600 And this is what we end up finding. 474 00:27:37,760 --> 00:27:42,940 I know I'm going to go into each section in details, but this is how it looks like. 475 00:27:43,060 --> 00:27:46,120 So these are all the things that it's supposed to find and it will find. 476 00:27:47,040 --> 00:27:52,400 So just showing that, you know, we started with them and then kind of branched out and found a whole bunch of things. 477 00:27:52,960 --> 00:27:55,060 So if we were to go into each one of these things, 478 00:27:55,080 --> 00:27:58,820 these sections and just kind of explain what are some of the different workers that ran, 479 00:27:58,980 --> 00:28:00,500 some of the different workflows that it ran. 480 00:28:00,780 --> 00:28:03,560 The first one was obviously the GitHub repository, right? 481 00:28:04,140 --> 00:28:09,100 It found that it had the organization had two repositories and there are some secrets in there. 482 00:28:09,400 --> 00:28:11,460 Now, what tool did I run, right? 483 00:28:11,700 --> 00:28:15,420 So to finding secrets on GitHub repositories, there's a whole bunch of tools. 484 00:28:15,540 --> 00:28:16,420 There's TruffleHawk. 485 00:28:16,600 --> 00:28:17,640 There's GitSecrets. 486 00:28:18,440 --> 00:28:19,280 There's GitTrop. 487 00:28:19,720 --> 00:28:21,020 There's one tool that I've written. 488 00:28:21,100 --> 00:28:22,320 It's called GetAllSecrets. 489 00:28:22,500 --> 00:28:24,980 So one big advantage. 490 00:28:25,080 --> 00:28:29,000 One big advantage of our framework is that you're not restricted to running just one tool. 491 00:28:29,220 --> 00:28:30,900 You know, we mentioned Argo. 492 00:28:31,160 --> 00:28:35,740 Argo lets you define a YAML file. 493 00:28:35,860 --> 00:28:39,120 In that YAML file, you can have multiple tools running in parallel. 494 00:28:39,680 --> 00:28:45,940 You can orchestrate in such a way that you run a tool, you take the output from that, you feed it into something else. 495 00:28:46,140 --> 00:28:52,040 So what you're seeing right here is not just running one tool, but a bunch of tools finding a bunch of things. 496 00:28:53,180 --> 00:28:54,060 Moving on. 497 00:28:55,080 --> 00:29:02,700 It should find S3 bucket, you know, so we run a bunch of tools for that to find all the S3 buckets belonging to that organization. 498 00:29:04,600 --> 00:29:06,440 It found some subdomains, right? 499 00:29:06,520 --> 00:29:07,520 But this is not really interesting. 500 00:29:07,740 --> 00:29:08,880 It just found some subdomains. 501 00:29:08,920 --> 00:29:11,180 But we'll see how interesting it gets later on. 502 00:29:11,460 --> 00:29:13,560 So it found a subdomain. 503 00:29:13,620 --> 00:29:14,700 It started port scanning. 504 00:29:16,040 --> 00:29:19,420 It found that it's running a web server at port 443. 505 00:29:19,520 --> 00:29:21,100 So it ran a bunch of other tools. 506 00:29:21,240 --> 00:29:24,540 It found there's a cross-origin resource sharing misconfig. 507 00:29:24,540 --> 00:29:26,240 At a particular endpoint. 508 00:29:26,520 --> 00:29:27,320 So it reported that. 509 00:29:27,740 --> 00:29:32,100 It found that we have a .bak file. 510 00:29:32,300 --> 00:29:37,580 These files are interesting because normally we don't look for such files, but there are tools to do that. 511 00:29:37,780 --> 00:29:45,020 It's basically some file that has been forgotten long back, but it might contain interesting information. 512 00:29:45,140 --> 00:29:47,520 So it's important to look for those things. 513 00:29:50,100 --> 00:29:51,300 This I spoke about. 514 00:29:51,420 --> 00:29:53,160 It found that, you know, there's a subdomain. 515 00:29:53,160 --> 00:29:54,660 It has a CNAME pointing to that. 516 00:29:55,480 --> 00:29:56,800 And it can be taken over. 517 00:29:56,920 --> 00:29:57,720 So it reported that. 518 00:29:58,920 --> 00:30:00,740 It also found another subdomain. 519 00:30:00,920 --> 00:30:04,540 The CNAME, it was basically non-existent. 520 00:30:04,580 --> 00:30:06,420 So if you want, you could take over that as well. 521 00:30:06,940 --> 00:30:07,760 I think so. 522 00:30:07,920 --> 00:30:08,220 Yeah. 523 00:30:09,440 --> 00:30:14,340 It found, so this is a part where it found the CMS stuff, right? 524 00:30:14,420 --> 00:30:15,980 So it found it's running WordPress. 525 00:30:18,280 --> 00:30:22,940 It ran a tool to find all the cross-domain.xml files to see, you know, 526 00:30:23,160 --> 00:30:26,040 if that file has interesting stuff inside it. 527 00:30:26,640 --> 00:30:29,960 It ran WP scan to just basically do all the scanning. 528 00:30:30,240 --> 00:30:33,020 It found port 3306 open. 529 00:30:33,240 --> 00:30:36,280 And it ran, I think it's called Brute Spray. 530 00:30:36,320 --> 00:30:41,060 So Brute Spray is a tool that can take in a port and try to, you know, 531 00:30:41,080 --> 00:30:43,200 basically brute force all the default creds. 532 00:30:43,320 --> 00:30:44,640 So that's what it did. 533 00:30:44,740 --> 00:30:47,700 It found port 3306 open, figured out it was MySQL. 534 00:30:47,840 --> 00:30:50,940 And it ran the MySQL attack against that port. 535 00:30:53,160 --> 00:30:53,960 What else? 536 00:30:55,020 --> 00:30:59,260 So you can see that here we found a JavaScript file, right? 537 00:30:59,320 --> 00:31:02,140 So there's a tool that we ran to find all the JavaScript endpoints 538 00:31:02,900 --> 00:31:05,520 that belong to a web server or a web endpoint. 539 00:31:05,780 --> 00:31:10,020 And after it found the JavaScript file, it actually tries to read 540 00:31:10,020 --> 00:31:13,060 that JavaScript file for all the potential endpoints 541 00:31:13,060 --> 00:31:15,260 or anything sensitive or secretive. 542 00:31:15,360 --> 00:31:19,780 So you can see that we actually had variable admin underscore 543 00:31:19,780 --> 00:31:22,720 a panel defined with a secret inside it. 544 00:31:22,720 --> 00:31:24,640 So it must have found that as well. 545 00:31:28,080 --> 00:31:31,320 And then this is a part where it found Jenkins. 546 00:31:31,660 --> 00:31:34,700 You can see that it ran the scan. 547 00:31:34,940 --> 00:31:37,180 It found that it is vulnerable to a particular CVE. 548 00:31:38,020 --> 00:31:39,140 It didn't exploit it. 549 00:31:39,200 --> 00:31:44,460 So we can go a step further and actually exploit and start taking over stuff, 550 00:31:44,600 --> 00:31:47,900 like, you know, taking the shells or just, like, hacking. 551 00:31:48,020 --> 00:31:52,080 But we understand that sort of starts going into the gray area 552 00:31:52,080 --> 00:31:54,560 where we don't necessarily want to do offensive stuff 553 00:31:55,320 --> 00:31:58,080 and automate in such a way that we don't really have any control 554 00:31:58,080 --> 00:31:59,340 of what's going on. 555 00:31:59,560 --> 00:32:04,440 So right now we just try to do a very nonintrusive scan 556 00:32:04,440 --> 00:32:07,860 for us to know what's out there so that we can go and look at it manually. 557 00:32:08,140 --> 00:32:12,440 But if needed, we can definitely go a step further and get that shell back. 558 00:32:13,880 --> 00:32:15,820 And then it found a whole bunch of things. 559 00:32:15,860 --> 00:32:16,920 It found there's an endpoint. 560 00:32:17,900 --> 00:32:21,540 If you hit that, it finds 200 OK message. 561 00:32:21,600 --> 00:32:22,060 If you hit that, it finds 200 OK message. 562 00:32:22,080 --> 00:32:25,220 If not, it returns a 401 unauthorized message. 563 00:32:26,900 --> 00:32:30,840 So that was it in terms of, you know, what all it can find. 564 00:32:30,900 --> 00:32:33,140 Let's go back to Slack and see if it found some more stuff. 565 00:32:33,780 --> 00:32:34,860 Right, looks like it did. 566 00:32:42,800 --> 00:32:44,920 So let's see what else is new. 567 00:32:46,120 --> 00:32:49,400 So it found some cores. 568 00:32:49,520 --> 00:32:51,220 Cores is cross-order resource sharing. 569 00:32:51,220 --> 00:32:54,900 There are tools out there that basically looks for the header. 570 00:32:55,180 --> 00:32:57,900 It's called access control allow origin header, 571 00:32:58,020 --> 00:32:59,500 and there are different attacks that you can do. 572 00:32:59,740 --> 00:33:04,800 So again, it's a very, you know, a very simple tool that, like, anybody can run. 573 00:33:04,900 --> 00:33:06,540 It's open source, so we do that. 574 00:33:06,740 --> 00:33:12,440 And it runs and it lets you know if something is vulnerable or not. 575 00:33:12,560 --> 00:33:14,700 So right now I don't think anything is vulnerable, 576 00:33:14,800 --> 00:33:17,120 but you can see that all the statuses are non-vulnerable. 577 00:33:17,180 --> 00:33:18,480 Well, there is one. 578 00:33:18,480 --> 00:33:22,660 So this status alert basically says that this domain might be interesting. 579 00:33:23,260 --> 00:33:27,920 Moving on, it found some JavaScript endpoints, like I was mentioning. 580 00:33:28,160 --> 00:33:31,340 So you can see that it reports the main domain 581 00:33:31,340 --> 00:33:34,780 and then all the stuff that it found inside that JavaScript. 582 00:33:35,120 --> 00:33:40,560 So any interesting endpoints or any secretive stuff, things like that. 583 00:33:41,680 --> 00:33:45,920 So all these output are from different JavaScript files. 584 00:33:45,980 --> 00:33:47,000 You can see that, you know, 585 00:33:47,000 --> 00:33:51,540 it found a whole bunch of things and different endpoints from there. 586 00:33:53,180 --> 00:33:56,720 Here I was mentioning it ran a port scan. 587 00:33:56,980 --> 00:33:58,680 It found it's running MySQL. 588 00:33:58,980 --> 00:34:00,480 It actually brute-forced it. 589 00:34:00,640 --> 00:34:02,380 It found it's running with default rate. 590 00:34:02,520 --> 00:34:04,680 So you can see that, you know, the password is password. 591 00:34:05,040 --> 00:34:06,040 The user is root. 592 00:34:06,200 --> 00:34:07,700 So we didn't even have to do anything. 593 00:34:07,820 --> 00:34:11,380 It just went out for us, scanned, brute-forced, sent back the output. 594 00:34:11,580 --> 00:34:12,120 There you go. 595 00:34:13,940 --> 00:34:16,000 Cross-domain or XML files. 596 00:34:16,000 --> 00:34:17,540 These files are, again, interesting. 597 00:34:17,800 --> 00:34:20,020 You might have domains that have wildcard search 598 00:34:20,020 --> 00:34:23,400 or that might allow access, you know, from different domains. 599 00:34:23,540 --> 00:34:24,740 So that's interesting to look at. 600 00:34:25,100 --> 00:34:27,280 And I think, finally, just the backup files. 601 00:34:27,640 --> 00:34:30,660 So, yeah, I think we've pretty much covered all the workflows here. 602 00:34:31,340 --> 00:34:34,460 So, yeah, we started with just a domain, and this is all the stuff we get. 603 00:34:35,640 --> 00:34:38,260 And it took almost 15, 20 minutes. 604 00:34:38,360 --> 00:34:40,040 And this is a fairly small organization. 605 00:34:40,120 --> 00:34:43,400 So if you were to run this against, like, let's say, Google.com, 606 00:34:43,680 --> 00:34:44,880 it would probably take an hour. 607 00:34:44,980 --> 00:34:45,980 But you would have so much stuff. 608 00:34:46,000 --> 00:34:48,640 That you don't even need to go anywhere to look for 609 00:34:48,640 --> 00:34:50,580 or figure out what tool do I need to run. 610 00:34:50,760 --> 00:34:52,640 You just take all this stuff and start looking at it 611 00:34:52,640 --> 00:34:55,080 and see if you can find anything interesting. 612 00:34:55,420 --> 00:34:55,820 Right? 613 00:34:58,880 --> 00:35:04,160 So to conclude, let's see what we've learned or just a conclusion. 614 00:35:07,060 --> 00:35:09,580 So a few important things. 615 00:35:10,480 --> 00:35:13,000 Definitely we cannot automate everything. 616 00:35:13,280 --> 00:35:15,000 I know people say, 617 00:35:16,000 --> 00:35:16,480 I myself am guilty. 618 00:35:16,620 --> 00:35:18,080 I say automate all the things. 619 00:35:18,240 --> 00:35:19,120 But it's not possible. 620 00:35:19,360 --> 00:35:20,020 We all know that. 621 00:35:20,240 --> 00:35:24,400 But having said that, there is still a whole bunch of things that you cannot automate. 622 00:35:24,740 --> 00:35:25,920 You saw that right now. 623 00:35:26,120 --> 00:35:27,960 These are things that can be automated. 624 00:35:28,140 --> 00:35:28,840 And we have done that. 625 00:35:29,020 --> 00:35:29,620 So do that. 626 00:35:29,800 --> 00:35:36,800 Make sure you don't spend your, you know, important time looking at stuff that's not interesting. 627 00:35:39,360 --> 00:35:39,880 Go ahead. 628 00:35:44,320 --> 00:35:47,900 Do you mind holding on questions so that we can get, sorry. 629 00:35:50,320 --> 00:35:53,080 So and then exploring new technologies. 630 00:35:53,120 --> 00:35:54,320 Like I mentioned, don't be afraid. 631 00:35:54,420 --> 00:35:55,080 Please go out there. 632 00:35:55,240 --> 00:35:58,520 There's some cool stuff out there that is really helpful for the security industry. 633 00:35:58,820 --> 00:35:59,700 So go and explore. 634 00:35:59,840 --> 00:36:00,700 Play around with it. 635 00:36:00,800 --> 00:36:01,260 Build cool. 636 00:36:01,500 --> 00:36:02,340 Build something cool. 637 00:36:02,520 --> 00:36:03,220 Share it out. 638 00:36:03,300 --> 00:36:05,480 Get more people to help you out as well. 639 00:36:05,580 --> 00:36:06,520 So that's something we learned. 640 00:36:08,120 --> 00:36:09,100 Don't reinvent the wheel. 641 00:36:09,100 --> 00:36:09,980 Please don't do that. 642 00:36:10,120 --> 00:36:13,220 I mean, I've been advocating this forever. 643 00:36:13,540 --> 00:36:17,200 I see new tools solving the same freaking problem every day. 644 00:36:17,520 --> 00:36:18,220 Don't do that. 645 00:36:18,320 --> 00:36:19,800 Go and look at what is out there. 646 00:36:19,960 --> 00:36:21,440 Try to read the code. 647 00:36:21,880 --> 00:36:24,300 If you can't read the code, go learn how to code first. 648 00:36:24,700 --> 00:36:28,760 You know, in security, we say that I can't code or, you know, you can't code. 649 00:36:28,940 --> 00:36:30,040 That shouldn't be the case. 650 00:36:30,140 --> 00:36:31,120 We are security people. 651 00:36:31,260 --> 00:36:37,700 Like if we can hack the code, right, or if you want to hack something, wouldn't it help to understand how it works in the first place? 652 00:36:37,820 --> 00:36:39,080 So that's how I learned. 653 00:36:39,080 --> 00:36:39,460 I like to think. 654 00:36:39,560 --> 00:36:40,460 I like to build. 655 00:36:40,600 --> 00:36:42,660 And then I like to break what I've built. 656 00:36:42,880 --> 00:36:46,960 So it's important to understand the fact that, you know, there's stuff out there. 657 00:36:47,080 --> 00:36:50,780 Go look for it first without going and building your own little, you know, whatever you want. 658 00:36:52,500 --> 00:36:55,860 Again, checking your ego, collaborating, sharing. 659 00:36:56,240 --> 00:36:57,320 Please keep that in mind. 660 00:36:58,860 --> 00:37:00,220 And, yeah, thanks. 661 00:37:00,320 --> 00:37:02,100 Just some closing notes. 662 00:37:02,380 --> 00:37:06,700 Thank you to everybody for all the good open source tools that have been shared out there. 663 00:37:07,480 --> 00:37:12,320 We, I personally try to share, write a bunch of open source tools. 664 00:37:12,420 --> 00:37:15,040 If you go to my GitHub repository, you will see a whole bunch of things. 665 00:37:15,180 --> 00:37:16,820 So I believe in the open source community. 666 00:37:17,340 --> 00:37:18,880 And I believe sharing is caring. 667 00:37:19,020 --> 00:37:19,960 So, yeah. 668 00:37:22,760 --> 00:37:23,540 Any questions? 669 00:37:23,860 --> 00:37:25,160 Anything else you want to add, Glen? 670 00:37:26,100 --> 00:37:26,500 No. 671 00:37:26,660 --> 00:37:27,660 Happy to get questions. 672 00:37:27,760 --> 00:37:28,120 Yeah. 673 00:37:28,120 --> 00:37:32,340 For the recording, I think we need to get you a mic before you ask. 674 00:37:32,760 --> 00:37:36,680 So if you have any questions, please come here and try to answer them. 675 00:37:38,480 --> 00:37:38,920 All right. 676 00:37:40,060 --> 00:37:40,720 We'll keep talking about the main ideas that we want to spread. 677 00:37:40,720 --> 00:37:40,760 Thanks a lot. 678 00:37:41,020 --> 00:37:41,040 Thanks a lot. 679 00:37:41,040 --> 00:37:41,280 I think you came in a little involved with the explanation. 680 00:37:41,280 --> 00:37:41,600 Thank you very much, Glen. 681 00:37:41,600 --> 00:37:41,900 Thank you. 682 00:37:43,840 --> 00:37:44,280 Let's do another one. 683 00:37:44,280 --> 00:37:44,460 What was the last question? 684 00:37:44,520 --> 00:37:44,640 Thank you.