WEBVTT

00:00.000 --> 00:03.500
Our next talk is going to be starting now.

00:03.520 --> 00:10.980
So the next talk is by Anthony Roussel, who's going to be talking about Bug Bounty Recon, bypassing geographic DNS, and Ensembl.

00:10.980 --> 00:21.980
He's a professional .NET developer, hobbyist, hardware dev, published over 50 Windows phone apps, spoken at a lot of conferences, so let's give him a round of applause and get started.

00:22.400 --> 00:25.180
Over to you.

00:25.180 --> 00:26.480
Thank you so much.

00:26.800 --> 00:29.980
Alright, wow, what a great introduction.

00:30.780 --> 00:41.680
Yeah, so this talk is geo-distributed Bug Bounty Recon, bypassing things like geographic DNS, and more with this new free open-source tool called Ensembl.

00:41.980 --> 00:43.380
This is me.

00:43.560 --> 00:45.280
My name is Anthony Roussel.

00:45.280 --> 00:47.400
I go by the handle .NET Roussel.

00:47.480 --> 00:49.400
I'm a professional software engineer.

00:49.400 --> 00:51.080
I've been an engineer for about 11 years.

00:51.080 --> 01:00.200
I've worked on various systems, lots of boring stuff, but mostly in C-sharp and F-sharp, lots of Python, which I'm sure most of you are familiar with.

01:00.740 --> 01:07.180
If you're interested in more about what I do and what I've done, you can check out my blog, dotnetroussel.com.

01:07.300 --> 01:11.180
If you want to reach out to me personally, you can hit me up on Twitter, at dotnetroussel.

01:11.180 --> 01:16.640
And all of the code that I'm going to be presenting today, I won't actually show you code, so don't worry.

01:16.980 --> 01:19.000
No boring code.

01:19.120 --> 01:25.580
But if you're interested in the tool itself, it can be found on my GitHub, which is forward slash dotnetroussel.

01:25.580 --> 01:28.540
And the tool is called Ensembl.

01:29.360 --> 01:36.320
All right, so before I get into the tool, I want to briefly talk about kind of the hacker journey.

01:36.320 --> 01:40.580
You know, like how I got here, how I wrote this tool, why I wrote this tool.

01:40.620 --> 01:46.140
And I hope that it resonates with some of you, because I think a lot of us take similar paths.

01:47.580 --> 01:58.680
So early on, when I started engineering, you know, there were a lot of people that enjoyed security, but no one really took it serious.

01:58.760 --> 02:00.480
Can I get just a quick show of hands?

02:00.480 --> 02:01.820
How many people here are engineers?

02:02.680 --> 02:03.280
Professionally, yeah.

02:03.280 --> 02:04.560
So we got a lot of engineers in here.

02:04.560 --> 02:06.700
Do your companies take security serious?

02:06.700 --> 02:10.320
I mean, hopefully you guys do, because you're here, or you people do, right?

02:10.460 --> 02:18.080
Okay, so for the people watching later on, nobody raised their hand that their companies took security serious.

02:18.080 --> 02:22.820
So, like a lot of you, you know, I take security very serious.

02:22.820 --> 02:28.740
I take it serious in my day-to-day job, but the companies that I've worked for in the past have not always taken it serious.

02:28.740 --> 02:31.280
Thankfully, I'm at a place now that does take it serious.

02:31.640 --> 02:37.900
But yeah, when I was getting started, I was confused why these companies didn't take it more serious.

02:37.900 --> 02:43.220
And I started doing some reading, things like 24 deadly sins.

02:43.220 --> 02:44.300
I actually didn't read that one.

02:44.300 --> 02:48.560
I think it was 10 deadly web sins, or something like that, when I first started.

02:49.540 --> 02:54.740
And I started poking holes in the applications that I was working on professionally.

02:54.740 --> 03:04.460
And, man, companies get really mad when you start rooting their applications and, like, finding, you know, all types of stuff, like Stack Overflow.

03:05.900 --> 03:17.580
Yeah, so I started branching out and getting away from what I was working on and started doing things like getting into bug bounties and virtual, like, bone hub, things like that, hack the box.

03:18.640 --> 03:27.760
But as far as the books that I used to get into it, I started with the deadly sins and these hacking books like this, like Violent Python.

03:28.880 --> 03:30.840
And I also did a lot of...

03:30.840 --> 03:35.180
I read a lot of the penetration testing book and the open source intelligence techniques.

03:35.180 --> 03:37.320
Have you guys... has anybody read any of these?

03:37.320 --> 03:38.460
A lot of these should look familiar.

03:38.460 --> 03:40.320
These are pretty big in the community.

03:41.020 --> 03:46.240
I also, you know, I wasn't going to add these, but, you know, obviously Kevin Mitnick just passed away.

03:46.500 --> 03:48.800
Unfortunately, a huge loss to the community.

03:49.220 --> 03:54.840
My first DEF CON, DEF CON 22, I didn't know him personally, but I did have an opportunity to meet him.

03:54.840 --> 03:57.080
I got him to sign a copy of one of my books.

03:57.080 --> 03:58.040
I was so fortunate.

03:58.040 --> 03:59.080
I still have it.

03:59.180 --> 04:05.920
And I have one of those cool laser-cut lockpicks, lockpick key cards that he had.

04:05.920 --> 04:10.300
So if you don't know who Kevin Mitnick is, I highly recommend you learn about him.

04:10.300 --> 04:11.560
Learn about his story.

04:11.560 --> 04:13.400
He was a huge loss to the community.

04:13.420 --> 04:15.640
But , yeah, those are two great books by him.

04:15.640 --> 04:16.900
He has a bunch of books out.

04:16.900 --> 04:18.200
Those are my favorites.

04:18.580 --> 04:22.040
And then, does anybody know what Stuxnet is?

04:22.180 --> 04:23.220
Yeah, a lot of us.

04:23.220 --> 04:24.880
We should all know what Stuxnet is.

04:25.020 --> 04:26.520
Countdown to Zero Day.

04:26.860 --> 04:29.680
That one, I'm pretty sure that's about Stuxnet.

04:29.860 --> 04:37.580
And if you're doing any type of bug bounty or red teaming, you should definitely have the Hacker Playbook in your arsenal.

04:37.580 --> 04:41.080
I had number two and number three.

04:41.340 --> 04:44.020
And I tell you, every single time, I'm doing anything.

04:44.020 --> 04:45.600
That's the first book that comes out.

04:45.600 --> 04:49.000
And it doesn't matter how many times I've done it, I'm definitely not an expert.

04:49.000 --> 04:50.640
I don't want to come across as an expert.

04:50.640 --> 04:57.980
But every single time I start to do a vulnerable virtual machine, hack the box, a bug bounty, it doesn't matter.

04:57.980 --> 05:02.180
Hacker Playbook comes out and I start going through the tools and going through the motions.

05:02.180 --> 05:05.680
Because a lot of what we do is a methodology.

05:05.680 --> 05:08.660
A lot of what we do is repetitive.

05:09.860 --> 05:11.600
That's going to make sense here in a second.

05:11.700 --> 05:14.240
So here are the tools that we're using.

05:15.160 --> 05:17.180
These should all look familiar to you.

05:17.180 --> 05:25.140
We have Kali Linux, Parrot, then obviously the platforms, Bugcrown and HackerOne, Hack the Box, Vault and Hub.

05:25.140 --> 05:26.240
These should all be familiar.

05:26.240 --> 05:28.480
If not, dig into these tools.

05:28.480 --> 05:30.060
These are going to be your bread and butter.

05:31.280 --> 05:37.320
So that's the story of how you get into this, how I got into this stuff.

05:37.480 --> 05:42.120
Now I want to talk about you and how you're interacting with bug bounties.

05:42.120 --> 05:44.320
So the bug bounty hunter story.

05:44.500 --> 05:52.180
So the first thing we do when we're looking for a bug bounty is we head over to something like Bugcrown or HackerOne.

05:52.260 --> 05:58.060
And you find your favorite flavor of whatever bug bounty program you want.

05:58.060 --> 06:01.020
And you pick it and you start reading their description.

06:01.020 --> 06:07.700
You start going through what they want you to find, what domains they want you to look at, the scope.

06:07.720 --> 06:12.400
The scope of your program that you're going to work on.

06:13.060 --> 06:16.840
So today we're going to look at the Twitter bug bounty.

06:16.860 --> 06:20.400
Has anybody here taken part in the Twitter bug bounty?

06:20.400 --> 06:21.400
Okay, so we've got a few people.

06:21.400 --> 06:22.060
Great.

06:22.220 --> 06:29.280
I'd definitely be interested in speaking to you after and hearing about your experience and seeing if it aligns with this at all.

06:30.660 --> 06:35.740
So if we look at the Twitter bug bounty, they give us a scope of these domains here.

06:35.740 --> 06:37.060
I think there's seven there.

06:38.860 --> 06:42.400
Now, are we just going to start digging into these seven?

06:42.460 --> 06:45.320
Are you just going to go to Twitter.com and start hammering on it?

06:45.320 --> 06:45.980
Raise your hand.

06:45.980 --> 06:47.040
Who's going to do that?

06:47.600 --> 06:48.120
Okay, good.

06:48.120 --> 06:49.140
I'm happy nobody raised their hand.

06:49.360 --> 06:54.240
That's probably the least effective way to take part in a bug bounty program.

06:55.100 --> 06:56.940
We have a lot of engineers in here.

06:56.940 --> 07:02.080
Everybody knows that engineers, when we're developing something, we're developing a golden path.

07:02.080 --> 07:05.280
Even if we don't know we're developing a golden path, we develop a golden path.

07:05.280 --> 07:09.260
A path that we expect all of our users to take.

07:09.720 --> 07:18.260
And the engineers at Twitter, I don't know any of them, but I guarantee they expect you're going to type in Twitter.com and that's going to take you to their landing page.

07:18.260 --> 07:21.940
And then you're going to go to the login or to the sign-up.

07:21.940 --> 07:24.600
And then you're going to end up on your Twitter profile.

07:24.640 --> 07:27.500
There's a golden path they expect you to go through.

07:27.500 --> 07:33.560
And I promise you that they have spent millions and millions of dollars hardening that attack surface.

07:33.700 --> 07:39.980
If you go to Twitter.com today and you get in with admin-admin or any SQL injection, I will give you my next paycheck.

07:39.980 --> 07:41.740
That is not going to happen, okay?

07:41.820 --> 07:43.660
Those are hardened targets.

07:43.660 --> 07:45.220
We don't want those targets.

07:45.360 --> 07:46.240
What do we want?

07:46.240 --> 07:46.820
Does anybody know?

07:46.820 --> 07:47.600
Shout it out if you know.

07:47.600 --> 07:48.540
What do we want?

07:48.540 --> 07:50.240
All right, that's okay.

07:50.240 --> 07:54.520
We want the side door, the window that's unlocked and open.

07:54.520 --> 07:57.520
We want the thing that they forgot about.

07:57.520 --> 08:01.740
I want the SSH server that has default credentials.

08:01.740 --> 08:05.160
I want the FTP server that has anonymous login.

08:05.160 --> 08:15.720
I want the dev environment that some intern set up six weeks ago and nobody noticed that it's public-facing and that it has some critical flaw in it.

08:15.720 --> 08:17.140
Those are the things I want.

08:17.140 --> 08:19.420
A lot of people think those don't exist.

08:19.420 --> 08:20.020
They do.

08:20.020 --> 08:22.520
I promise you, these things exist.

08:22.840 --> 08:24.660
I recently found...

08:24.660 --> 08:28.520
Obviously, if you take part in Buck Binders, you know you can't name names.

08:28.780 --> 08:39.460
I recently found an SSH server on a non-standard port with default credentials for a major ISP.

08:40.380 --> 08:41.560
It happens.

08:41.560 --> 08:42.480
This is recently.

08:42.480 --> 08:43.720
It just happened.

08:43.720 --> 08:48.420
I encourage you to not take the golden path.

08:48.420 --> 08:51.600
That's really the key to being successful with this stuff.

08:53.020 --> 08:55.540
This is where the struggle begins.

08:55.580 --> 08:58.620
Trying to get off the beaten path.

08:58.960 --> 09:02.920
We want to first figure out what our subdomains are.

09:03.000 --> 09:09.760
Actually, there's a CTF going on next door for the Recon Village for doing subdomain enumeration.

09:09.760 --> 09:12.240
I encourage you to try it out.

09:12.240 --> 09:15.900
You'll be using things... This is not a comprehensive list.

09:15.900 --> 09:21.100
There's probably a lot of tools in here, but there's a few tools that you probably use to do subdomain enumeration.

09:21.140 --> 09:23.760
You've got SubFinder, SubLister, Amass.

09:24.060 --> 09:30.680
We're going to take those seven domains that they gave us for our scope, and we're going to put them in there.

09:30.680 --> 09:33.100
We're going to see how many results we get back.

09:33.660 --> 09:35.160
I have the actual number.

09:35.160 --> 09:36.100
I did this.

09:36.100 --> 09:39.080
I want to know, except for the people that actually did this program.

09:39.080 --> 09:44.540
Does anybody know how many subdomains I found just off those seven?

09:45.020 --> 09:45.720
Throw out a number.

09:45.720 --> 09:46.100
Anybody.

09:46.100 --> 09:46.900
Any guesses?

09:48.140 --> 09:48.860
200?

09:50.060 --> 09:50.980
Anybody else?

09:51.900 --> 09:52.880
5,000?

09:53.840 --> 09:54.940
I don't want to hear that guy.

09:54.940 --> 09:55.720
I know him.

09:57.220 --> 10:00.660
So I actually did this, and I found...

10:01.180 --> 10:03.340
It took a second for it to load, because there are so many.

10:03.340 --> 10:06.720
1,449 subdomains.

10:06.720 --> 10:08.740
It's a ridiculous amount.

10:08.740 --> 10:10.520
Now, what's the problem?

10:10.520 --> 10:12.420
Can anybody tell me what the problem is with this number?

10:12.420 --> 10:14.020
Reminder, I did not do anything.

10:14.020 --> 10:15.860
I just found the subdomains.

10:15.860 --> 10:17.540
So what's the problem with this?

10:18.260 --> 10:19.220
Anybody?

10:21.020 --> 10:22.300
They're not all active.

10:22.300 --> 10:22.920
That's right.

10:22.920 --> 10:23.580
You nailed it.

10:23.580 --> 10:24.420
That's exactly it.

10:24.420 --> 10:25.520
They are not all active.

10:25.520 --> 10:31.660
So we have to enumerate this massive list now and find which hosts are actually up and active.

10:32.260 --> 10:39.640
Because if we don't, we're going to be running scans against things that are totally dead, and it's going to be just wasting time, burning time.

10:39.680 --> 10:43.220
So yeah, we need to figure out what hosts are active.

10:43.540 --> 10:50.060
Then we're going to start, after we have our up list, we've got to do our port scans and figure out what services are running on those hosts.

10:50.340 --> 10:53.360
Then you're really going to start getting nitty-gritty.

10:53.360 --> 10:56.100
You're going to start doing your script scanning with Nmap.

10:56.100 --> 10:59.260
You're going to run your NIC2 against their web servers.

10:59.260 --> 11:02.740
WP scan, everything, right?

11:02.740 --> 11:07.440
And then, obviously, that bullet on there, the Telnet, WebDev, FTP.

11:07.440 --> 11:18.340
I found, once again, it's another bug bounty, so I can't say exactly who, but there was a government site that actually takes part here at DEF CON quite frequently.

11:18.340 --> 11:24.760
They had an insecure WebDev server, and I was able to start manipulating files on their server.

11:24.760 --> 11:27.260
So this stuff definitely exists.

11:27.940 --> 11:29.200
Get off the golden path.

11:29.200 --> 11:30.060
I can't say that enough.

11:30.060 --> 11:31.220
That's really important.

11:32.540 --> 11:45.500
So, yeah, this is going to turn into thousands and thousands of requests that we have to make in order to fully map the attack surface, because that's what we're trying to do with our recon.

11:45.680 --> 11:48.340
We're not actually breaking in anything with recon.

11:48.340 --> 11:53.860
A lot of this is passive until we start getting into actual scanning.

11:53.860 --> 12:04.300
But we're trying to map out the attack surface and figure out where the weakest points are so that we can start poking at those points and try and win a bounty.

12:04.300 --> 12:05.880
That's what we're here for.

12:06.000 --> 12:09.800
The less time you can spend doing this, the more money you're going to make.

12:09.800 --> 12:11.480
That's really what it comes down to.

12:11.480 --> 12:13.840
I think everybody should know that.

12:14.240 --> 12:20.060
So one final thing that you're going to run into as a bug bounty hunter is this thing called GeoDNS.

12:20.060 --> 12:21.660
This is not a trick question.

12:21.660 --> 12:23.380
Does anybody know what GeoDNS is?

12:23.380 --> 12:24.500
It's in the name.

12:25.080 --> 12:26.040
You know what it is.

12:26.040 --> 12:28.780
If you don't know what it is, that's fine.

12:28.780 --> 12:31.840
It's not a security mechanism by any means.

12:33.720 --> 12:37.200
GeoDNS improves the user experience in some cases.

12:37.200 --> 12:45.300
It'll help if you're in Germany or you're in Australia and you're trying to pull up Google.com.

12:45.300 --> 12:47.960
You don't want to have to connect to San Francisco.

12:47.960 --> 12:51.640
You want a server that's close to you to resolve.

12:51.640 --> 12:53.380
That way your experience is fast.

12:53.380 --> 13:01.020
There's also some other reasons for GeoDNS, like laws, where data can be stored and can't be stored, things like that.

13:01.100 --> 13:03.260
There's a lot of reasons for GeoDNS.

13:04.260 --> 13:05.700
It's great for everybody.

13:05.700 --> 13:07.240
There's nothing wrong with GeoDNS.

13:07.240 --> 13:08.340
It's great for everybody.

13:08.460 --> 13:16.120
You as a bug bounty hunter, however, this is horrible because this means you're missing everything else.

13:16.120 --> 13:29.700
If there's a company that has GeoDNS enabled and you're in Alberta or Illinois or whatever, and you're making requests, you're going to get the servers here in North America.

13:29.700 --> 13:31.180
You're not going to get the ones in Germany.

13:31.180 --> 13:32.580
You're not going to get the ones in France.

13:32.580 --> 13:35.680
You're not going to get the ones in Sweden or Australia or Africa.

13:35.840 --> 13:44.180
You're going to get the ones here, and your whole bug bounty is going to be against the American servers, which I promise you are probably pretty hard.

13:44.180 --> 13:47.480
So we want to see those other servers.

13:47.480 --> 13:49.100
We want to get around GeoDNS.

13:49.260 --> 13:53.840
And that's kind of what this diagram right here is what I ripped off from Microsoft.

13:54.500 --> 13:59.140
I'm pretty sure this is like the Azure GeoDNS system, what they have set up.

13:59.140 --> 14:00.140
It's not important.

14:01.300 --> 14:02.600
So how do we do that?

14:02.600 --> 14:05.300
There are lots of ways that we can get around GeoDNS.

14:06.100 --> 14:12.300
I'm going to show you the ways that exist, and then I'm going to show you the way that I created, and I'm hoping that you like it.

14:12.300 --> 14:14.460
So we adapt and overcome.

14:15.320 --> 14:16.260
Very simple.

14:16.340 --> 14:17.440
VPNs and proxies.

14:17.440 --> 14:19.520
That would be our way to get around it.

14:20.260 --> 14:34.440
The problem with VPNs and proxies, though, especially when you're talking about a global company, one that has servers all over the world, is that you're going to have to maintain a VPN in every region, and you're going to have to maintain proxies in every region.

14:34.440 --> 14:41.760
You're going to have to have these set up, and then you're going to have to manually switch between them, unless you're good enough to script switching between them.

14:41.760 --> 14:45.740
And then you're going to have to manually rerun all these commands in every region.

14:46.660 --> 14:53.180
And as a lot of your engineers, we know when you have to do things repetitively by hand, it is error-prone.

14:54.360 --> 14:55.760
Constantly, you're going to have bugs.

14:55.760 --> 14:57.240
You're going to miss things.

14:58.020 --> 14:59.160
It's very repetitive.

14:59.160 --> 15:04.260
You're spending a lot of time at the keyboard instead of getting outside and enjoying the sun.

15:04.840 --> 15:12.960
I know a lot of us don't enjoy the sun, but for those of you that like to get outside and enjoy the sun, you're missing out on that because you're spending it at the keyboard.

15:14.780 --> 15:16.900
And that's where Ensembl comes in.

15:18.080 --> 15:20.620
Ensembl is a new tool.

15:20.620 --> 15:22.240
It's a new platform that I created.

15:22.240 --> 15:23.580
I spent about a year and a half writing it.

15:23.580 --> 15:29.200
If you look at the code and you know Python, it'll be apparent that I crammed it out in a year and a half.

15:30.540 --> 15:31.980
But it's a new tool.

15:31.980 --> 15:32.680
It's open source.

15:32.680 --> 15:33.800
It's totally free.

15:33.800 --> 15:47.900
And what it does is it allows you to set up a globally distributed cluster of machines, of agents, that report back to a web portal, a masternode, that you can distribute commands across.

15:47.900 --> 15:49.280
It's very easy.

15:49.500 --> 15:56.340
This program will let you take... so for example, I'm doing the bug bounty next door for the subdomains.

15:56.340 --> 15:59.000
There was like... is anybody else doing that CTF?

15:59.280 --> 16:01.980
The subdomain CTF for the Recon Village?

16:01.980 --> 16:04.800
Okay, so since you're not doing it, I'll tell you.

16:04.840 --> 16:09.680
There's 15,000 domains in a Word file that they're giving out.

16:09.680 --> 16:12.980
And you have to figure out how many subdomains you can find, right?

16:12.980 --> 16:14.680
And whoever comes up with the most wins.

16:14.700 --> 16:16.000
I'm pretty sure those are the rules, right?

16:16.000 --> 16:16.960
Something like that?

16:16.980 --> 16:25.260
So everyone over there is over there hammering on their keyboards right now, trying to crank out as many subdomains as they can.

16:25.360 --> 16:27.760
I opened up... I actually have a cluster running right now.

16:27.760 --> 16:28.740
I opened it up.

16:28.740 --> 16:31.020
I took those 15,000 subdomains.

16:31.020 --> 16:32.300
I dropped it in here.

16:32.300 --> 16:34.540
It distributed it across my cluster.

16:34.540 --> 16:38.540
And I'm actually competing in the CTF right now while I'm giving this talk.

16:38.840 --> 16:41.220
And it's not doing it one at a time.

16:41.220 --> 16:43.700
It's doing all of them at once.

16:44.240 --> 16:45.040
Simultaneously.

16:45.680 --> 16:50.320
And all I'll have to do, when it's done, when the jobs are done, it'll pop up a notification.

16:50.320 --> 16:52.040
It'll say, hey, your work is done.

16:52.040 --> 16:53.800
I go into the job output.

16:53.940 --> 16:55.500
Grab all the results.

16:55.500 --> 17:00.700
And I'll probably run them through a unique filter, like a sort unique or something like that.

17:00.700 --> 17:04.440
Make sure I don't waste your guys' time having to dig through finding unique ones.

17:04.440 --> 17:06.340
But I'm going to find a lot of them.

17:06.340 --> 17:08.200
I'm probably going to get a place pretty high on the list.

17:08.200 --> 17:08.780
I'm hoping.

17:08.780 --> 17:09.680
We'll see.

17:09.840 --> 17:12.820
But that's essentially the long and short of what Ensembl is.

17:12.820 --> 17:21.300
It allows you to take commands, take huge amounts of targets, and distribute this workload evenly across your cluster.

17:21.300 --> 17:25.160
It also allows you to bypass things like geodns.

17:25.300 --> 17:27.180
That's what this diagram is here.

17:27.340 --> 17:30.480
On the far left here, this is you.

17:30.480 --> 17:31.520
You're the user.

17:31.860 --> 17:35.820
And you have a command you want to run and some targets you want to run it against.

17:36.760 --> 17:40.000
You issue that command to the director, which is your masternode.

17:40.000 --> 17:42.060
You do that through the web portal here.

17:42.460 --> 17:46.140
And the masternode says, OK, how do we want to do this?

17:46.140 --> 17:50.620
Do we want to do it in a load-balanced fashion, which is what I'm doing with the subdomains over there?

17:50.620 --> 17:57.520
I said, do it in a load-balanced fashion, which means it's going to take all the targets and break them up across my cluster.

17:57.980 --> 18:09.820
Or you can do it in a way where it runs the same exact command against the same exact targets in every region, which is how you bypass things like geodns.

18:09.820 --> 18:12.060
And that's what this diagram is showing here.

18:12.060 --> 18:15.080
So in this diagram, we're running a command.

18:15.080 --> 18:18.020
The director issues it across the entire cluster.

18:18.020 --> 18:26.720
And each of these agents in the cluster are going to reach out to the geodns traffic manager, which we don't control.

18:26.720 --> 18:29.580
That's somebody else that's controlling that.

18:29.580 --> 18:37.820
Each of these agents are going to reach out to the geodns traffic manager, and they're going to say, hey, resolve this domain for me.

18:37.900 --> 18:47.480
And the traffic manager is going to say, OK, well, if you're in North America, South America, or Central America, you guys are all going to go to this server over here, right?

18:47.480 --> 18:56.260
However, if you're in Asia or Europe or Africa, you actually each get your own server that you're going to.

18:56.300 --> 18:59.880
And it's going to run these commands against each of these servers.

18:59.880 --> 19:08.460
Now, if you're a bug bounty hunter and you're not doing this, you're only going to get that one server in your region, and you're going to miss the rest of them.

19:08.480 --> 19:12.860
So this is opening up the attack surface for you to find more things.

19:12.860 --> 19:19.560
And I guarantee you that there are servers out there in other regions that are part of bug bounty programs that nobody has seen.

19:19.640 --> 19:21.440
I guarantee you.

19:23.520 --> 19:27.660
So here's an example of the workspaces.

19:27.660 --> 19:31.620
So I have it set up so you can actually run multiple bug bounty programs at once.

19:31.620 --> 19:40.180
I actually have a couple of bug bounty programs in my live cluster right now, and the CTF is not interfering with them because I have it in a different workspace.

19:40.180 --> 19:53.300
So if you're running a Twitter bug bounty and a SpaceX bug bounty and a Google bug bounty, you can do all of those, have all of the results separated, and be able to parse through them easily.

19:53.300 --> 19:55.440
So that's what the workspaces are.

19:55.820 --> 19:59.320
Here's an example of the... and don't worry if you can't read this.

19:59.320 --> 20:01.320
I actually have a video that I'm going to show at the end.

20:01.320 --> 20:03.740
It's a very short three-minute video of it actually working.

20:04.240 --> 20:06.040
This is the agents page.

20:06.040 --> 20:11.220
It shows you your active agents and their health status, the last time they checked in, how many jobs they're running.

20:11.220 --> 20:12.720
You can drill into the agents.

20:12.720 --> 20:15.480
That map in the front was actually where the agents are positioned.

20:15.620 --> 20:17.620
So this is actually my cluster right here.

20:17.620 --> 20:26.280
I have one in southern Australia, one in southern India, I think that's Germany, or yeah, I don't know, one of those European countries, and then one in Toronto.

20:26.640 --> 20:30.020
But you can have as many nodes on the cluster as you want.

20:30.020 --> 20:31.280
It's up to you.

20:31.860 --> 20:36.520
Ideally, you would have one in every region of the world, on every continent, maybe a couple countries.

20:37.960 --> 20:39.240
But yeah, so that's what this is.

20:39.240 --> 20:40.860
This is the agents that are alive.

20:41.180 --> 20:45.900
And then you can drill into it and see their health status, their CPU usage, their memory consumption.

20:46.280 --> 20:49.100
You can restart the agent, all types of stuff.

20:50.960 --> 20:52.080
So it gets better.

20:52.080 --> 20:54.540
I feel like I'm selling this to you, but it gets better.

20:54.540 --> 21:02.180
Not only do you have all the capabilities that I've talked about, but you also have the ability to schedule these jobs.

21:02.220 --> 21:12.700
So another big problem that bug bounty hunters run into is they do all their recon at the beginning, and then they spend the rest of the bug bounty doing what?

21:12.700 --> 21:14.040
Trying to poke at it, right?

21:14.040 --> 21:15.560
They never run their recon again.

21:15.560 --> 21:16.720
They run it once.

21:16.720 --> 21:19.660
However, companies don't exist in a vacuum.

21:19.660 --> 21:31.300
There's always going to be intern schmuckatelli out there who's setting up some stupid service that's public facing that gives you access behind their application firewall.

21:31.300 --> 21:32.300
There's always going to be that way.

21:32.300 --> 21:37.220
So if you only run your recon one time, you're going to miss when he does that or she does that.

21:37.600 --> 21:43.480
What you can do with Ensemble is you can schedule these jobs to run daily, weekly, monthly.

21:43.480 --> 21:46.980
You can also schedule them to run at a specific date and time.

21:46.980 --> 21:55.640
So if you are working hand in hand with a company and you don't want to blast their environment during peak hours, you can set your scans up to run at 2 a.m.

21:55.640 --> 22:02.460
And then you can go to bed, your scans will run, and the results will be there in the morning when you wake up and you can do your analysis.

22:03.340 --> 22:05.560
So that's one feature I really love.

22:05.560 --> 22:07.240
I use this quite a bit.

22:07.320 --> 22:08.540
It's really nice.

22:08.940 --> 22:11.720
This is an example of how we create a job.

22:11.980 --> 22:13.340
And you'll see this in the video once again.

22:13.340 --> 22:14.660
Don't worry if you can't read it.

22:15.500 --> 22:17.340
I have some command templates built in.

22:17.340 --> 22:21.280
You're able to add your own command templates if there's commands that you like to run frequently.

22:21.920 --> 22:24.060
But you have the ability to put your own commands in here.

22:24.060 --> 22:25.060
You don't even need a template.

22:25.060 --> 22:27.760
You can just fill in the command however you want.

22:28.080 --> 22:32.240
And then you can schedule it to run however you want, daily, weekly, monthly.

22:32.680 --> 22:36.240
You can decide if you want it to be load balanced or however.

22:36.680 --> 22:41.080
And then down here you put in your... down at the bottom you put in whatever targets you want.

22:41.080 --> 22:44.700
So what I did was I ran SubFinder.

22:45.360 --> 22:46.880
I'm sure you guys have heard of SubFinder.

22:46.880 --> 22:48.960
That's a subdomain enumeration tool.

22:49.140 --> 22:51.380
I put SubFinder in there as my command.

22:51.460 --> 22:53.780
I said run it as a load balanced command.

22:53.780 --> 22:59.480
And then I took those 15,000 domains that they have in their CTF and I dropped it in the target list and I hit go.

22:59.560 --> 23:01.260
And then I came in here to give this talk.

23:01.400 --> 23:05.280
And now that is running and I don't have to do anything.

23:05.960 --> 23:07.500
I can get away from the keyboard.

23:07.680 --> 23:08.660
Well, this is supposed to be a video.

23:08.660 --> 23:10.060
I have a video I'll show you here in a second.

23:10.620 --> 23:14.060
I can get away from the keyboard and not have to worry.

23:15.100 --> 23:17.540
Alright, so let's take a look at the video here.

23:17.540 --> 23:18.900
I have it already queued up.

23:20.140 --> 23:22.740
So, everything is secure.

23:22.940 --> 23:24.200
Oh, hang on.

23:24.200 --> 23:26.000
At DEF CON, don't want to say that.

23:26.320 --> 23:29.120
I, to the best of my ability, everything is secure.

23:29.320 --> 23:29.720
So...

23:31.900 --> 23:33.400
We'll just start with that.

23:33.400 --> 23:41.640
So, when you start your Ensemble Director, a new certificate and key, PEM, are all generated specifically to your environment.

23:41.640 --> 23:44.700
So, there's no shared certificates or anything.

23:44.700 --> 23:46.920
As well as a symmetric key.

23:46.920 --> 23:49.220
So, even the symmetric key is generated.

23:49.220 --> 23:51.760
So, the cluster is encrypted.

23:51.760 --> 23:56.760
The traffic between the Director and all of your nodes is encrypted with a shared key.

23:56.820 --> 23:58.540
And you'll see that here in a second.

23:58.540 --> 24:01.200
So, let's go ahead and log into the site.

24:03.280 --> 24:05.420
Super secret credentials there.

24:05.900 --> 24:07.400
And then, here's the dashboard.

24:07.400 --> 24:11.000
And the dashboard shows where your agents are in the world, where they're distributed.

24:11.220 --> 24:13.720
And when they go offline, the dots will disappear.

24:13.720 --> 24:15.260
And when they come online, they'll appear.

24:15.780 --> 24:18.240
Here's where you can set up your workspace.

24:18.240 --> 24:21.640
It's very easy to switch between workspaces.

24:22.020 --> 24:25.200
Here's your active agents and drilling into it.

24:25.980 --> 24:27.920
You can also see what processes are running.

24:27.920 --> 24:30.980
So, if something's hanging, you can go in and issue a command to kill it.

24:31.840 --> 24:33.940
So, this is the jobs page.

24:34.040 --> 24:35.500
This is the scheduled jobs.

24:35.500 --> 24:36.820
I'm going to slow down a little bit.

24:37.280 --> 24:38.980
Okay, so here's the scheduled job.

24:38.980 --> 24:40.700
This is the scheduled job that ran.

24:40.700 --> 24:42.000
Oh, I buried the lead.

24:42.000 --> 24:43.160
I didn't even tell you the best part.

24:43.160 --> 24:44.660
So, the scheduled jobs.

24:45.540 --> 24:49.500
It's great that we can schedule these jobs to run daily, weekly, monthly.

24:49.600 --> 24:54.540
But, what good is it if I have an output of like 10,000 lines?

24:54.540 --> 24:58.980
This will actually tell you if lines change between scans.

24:58.980 --> 25:05.760
So, if you run a scan daily and a new service, a new port opens up or whatever, it's going to show up in your output.

25:07.060 --> 25:10.780
And I think I have an example of that coming up here in a second.

25:12.860 --> 25:16.300
So, yeah, you can see it's actually saying, hey, look, right here.

25:16.320 --> 25:21.120
It's probably hard for you to see, but it'll put where the lines have changed.

25:21.120 --> 25:25.200
Where there's IPs that have changed or new ports that have opened up.

25:26.460 --> 25:27.640
It's really great.

25:27.640 --> 25:29.100
I love working with this tool.

25:29.880 --> 25:32.920
So, this is an example of creating a new command.

25:32.980 --> 25:34.260
It's just a simple ping.

25:34.260 --> 25:35.960
We're going to ping twitter.com.

25:35.960 --> 25:41.160
I have four agents in this cluster, so you'll see four notifications pop up that the jobs have started.

25:41.320 --> 25:44.500
And then you'll see the trickle in that the jobs have completed.

25:45.180 --> 25:46.660
It's all asynchronous.

25:48.140 --> 25:54.100
One thing I want to get working, a feature that I plan on implementing later this year, is I want push notifications.

25:54.100 --> 25:56.440
So, if you have it on your phone, it'll just buzz.

25:57.580 --> 25:59.020
There's the jobs.

26:00.980 --> 26:02.020
Good question.

26:02.020 --> 26:08.700
So, what you would do is you would find your favorite flavor of VPS provider, Azure AWS.

26:08.700 --> 26:10.880
I'm using DigitalOcean in this case.

26:11.020 --> 26:14.540
And you would create your server with them.

26:14.540 --> 26:17.880
And then you just pull down my repo, and there's one command you run.

26:17.880 --> 26:19.560
And it just sets it up for you.

26:19.560 --> 26:21.960
All the installation instructions...

26:21.960 --> 26:28.000
So, if you don't have Python installed, I have all the instructions to get Python configured.

26:28.000 --> 26:34.720
And all that stuff is in there, going from nothing, plain vanilla Linux environment to having it running.

26:34.840 --> 26:38.140
But I think it's like six commands total to get it up and running.

26:40.120 --> 26:41.140
Good question.

26:41.140 --> 26:43.020
I do have a Dockerfile in there.

26:43.020 --> 26:43.720
Do not use it.

26:43.720 --> 26:44.460
It's not ready yet.

26:44.460 --> 26:45.700
I accidentally checked it in.

26:45.700 --> 26:47.280
It's not done yet.

26:47.280 --> 26:49.160
But ideally, that's what I want.

26:49.160 --> 26:54.880
I want to have a Dockerfile for the director and a Dockerfile for the agents.

26:54.880 --> 27:00.460
So, all you have to do is literally just give the Dockerfile to your VPS and be like, Go set this machine up for me.

27:00.460 --> 27:01.200
And it does it.

27:01.200 --> 27:02.860
I just ran out of time, honestly.

27:02.860 --> 27:05.800
So, I'll have the Dockerfile up here shortly.

27:06.080 --> 27:07.940
Or, it is open source.

27:07.940 --> 27:11.220
I'm encouraging people to give me a hand with it.

27:11.220 --> 27:16.480
If you want to take part in this project, feel free to create your own Dockerfile and create a pull request.

27:16.480 --> 27:17.300
I'll add it in.

27:17.300 --> 27:18.120
No problem.

27:19.160 --> 27:20.240
Almost done.

27:20.300 --> 27:22.320
This is the event stream here.

27:22.920 --> 27:24.960
I know it kind of looks like ish.

27:25.360 --> 27:27.380
A lot of this I crammed in at the last minute.

27:27.380 --> 27:30.880
But this is the stream of events that have happened on the server.

27:30.880 --> 27:37.340
So, if you're kind of confused of if an agent goes offline or if a command is run or not, you can come in here and view it.

27:39.440 --> 27:41.660
And then, what do we have left here?

27:47.710 --> 27:49.190
That's going to show how to schedule a job.

27:49.190 --> 27:49.990
We'll skip past that.

27:50.270 --> 27:52.110
It's pretty simple to schedule a job.

27:52.110 --> 27:55.510
You just come in here and select when you want it to run.

27:55.510 --> 27:59.510
This one is actually supposed to run now, seven minutes ago.

27:59.510 --> 28:01.430
So, my cluster probably just ran this.

28:01.490 --> 28:06.990
I set it up to run on the 11th of August at 5.40 p.m.

28:08.170 --> 28:09.190
against Twitter.

28:09.190 --> 28:11.410
So , that one actually should have just executed.

28:13.010 --> 28:14.570
And then, what do we have?

28:14.570 --> 28:15.430
There it is right there.

28:15.430 --> 28:17.110
It shows that it's scheduled.

28:18.710 --> 28:20.870
And then, finally, these are the settings.

28:20.870 --> 28:25.690
So, up here, I'll show you up here at the top of the settings when it gets there.

28:28.820 --> 28:39.180
So, up here at the top of the settings, when you start your Ensemble Director, it will generate your private shared key for you here.

28:39.180 --> 28:43.660
And this is actually the command you're going to run on your agent machine.

28:43.660 --> 28:45.980
So, you pull down the code on your agent machine.

28:45.980 --> 28:48.000
You run this command in the directory.

28:48.840 --> 28:51.200
Everything gets hooked up automatically for you.

28:51.200 --> 28:52.500
You don't have to do anything else.

28:53.400 --> 28:54.740
It's pretty straightforward.

28:56.380 --> 28:57.720
Not a ton of settings in here.

28:57.720 --> 28:59.160
You have the ability to change your password and stuff.

28:59.160 --> 29:02.200
But down here, this is where you would edit your command templates.

29:02.540 --> 29:08.820
So, if you have your own favorite tools and your own favorite commands that you want to run, you can easily add them in here.

29:08.820 --> 29:10.600
And then, they'll be available in your create job.

29:10.600 --> 29:13.520
And you can just blast them off whenever you want.

29:13.520 --> 29:15.580
Or if you don't like the ones I put in here, you can delete them.

29:17.760 --> 29:20.360
That's pretty much it for the demo.

29:21.400 --> 29:28.760
Everything, like I said, is available on my github, dotnetrussell.com.

29:28.760 --> 29:30.500
The tool is called Ensembl.

29:30.500 --> 29:32.600
It's free and open source and available now.

29:32.600 --> 29:38.440
And I encourage, like I said, anybody that wants to take part in helping me develop this, please do.

29:38.440 --> 29:40.460
I'm happy to have you as a contributor.

29:40.760 --> 29:41.800
And that's all I got.

29:41.800 --> 29:42.580
Thank you.

29:42.580 --> 29:43.520
Thank you.

