WEBVTT

00:00:00.950 --> 00:00:04.170
Okay, let's talk a bit more about passive reconnaissance.

00:00:04.200 --> 00:00:08.380
So what kind of details are we looking for when we talk about passive recon?

00:00:08.420 --> 00:00:12.540
First, we are after as much company information as we can stand.

00:00:12.550 --> 00:00:16.420
Some of it is just because we should understand as much as possible about

00:00:16.420 --> 00:00:19.000
the offering of our clients and how they do business,

00:00:19.000 --> 00:00:24.180
but ultimately, having this information may yield in some attack vectors for us.

00:00:24.200 --> 00:00:27.500
Next, it's helpful for us to know who the employees are.

00:00:27.650 --> 00:00:30.110
Sometimes that's because we're going to target them

00:00:30.120 --> 00:00:31.920
in a social engineering attack,

00:00:31.920 --> 00:00:36.410
but other reasons would include the fact that people tend to reuse passwords,

00:00:36.420 --> 00:00:38.580
and if we get enough email addresses,

00:00:38.590 --> 00:00:42.740
we may be able to find some of those passwords in other breaches.

00:00:42.790 --> 00:00:45.540
We're also after infrastructure details,

00:00:45.540 --> 00:00:49.220
and we want to learn as much about their stack as possible.

00:00:49.230 --> 00:00:53.730
Things like servers and databases and applications that the company uses,

00:00:53.730 --> 00:00:56.823
there may be vulnerabilities in their stack that are

00:00:56.823 --> 00:00:59.050
unpatched and provide us a way in.

00:00:59.303 --> 00:01:02.523
Domain and subdomain details are also important.

00:01:02.713 --> 00:01:06.523
They can provide us with many servers to attack or look at during the

00:01:06.533 --> 00:01:10.093
active recon phase and during the vulnerability assessment.

00:01:10.343 --> 00:01:12.380
Lastly, what does Google know?

00:01:12.453 --> 00:01:14.863
While I was never that lucky myself,

00:01:14.873 --> 00:01:18.863
I've heard a story of how a CEO kept an Excel file of passwords,

00:01:18.873 --> 00:01:19.680
bank accounts,

00:01:19.683 --> 00:01:23.473
and other very sensitive details in an Excel file that he

00:01:23.473 --> 00:01:25.390
stored as part of a WordPress site.

00:01:25.390 --> 00:01:27.410
Thing that no one would find it,

00:01:27.410 --> 00:01:30.810
he used the file much like you would a password manager,

00:01:30.856 --> 00:01:33.796
but relied on the fact that no one would guess the path

00:01:33.796 --> 00:01:35.826
and file name of where it's kept.

00:01:35.836 --> 00:01:37.640
Of course, Google indexed the file,

00:01:37.646 --> 00:01:40.200
and when the appropriate Google dork was used,

00:01:40.216 --> 00:01:42.966
it coughed up enough detail about the organization,

00:01:42.976 --> 00:01:43.620
its people,

00:01:43.626 --> 00:01:47.336
and the CEO that the pen testers had everything they needed to breach

00:01:47.346 --> 00:01:50.160
and assume full control over the infrastructure,

00:01:50.356 --> 00:01:52.896
public website, and even remote servers.

00:01:52.906 --> 00:01:54.566
Google can be quite powerful.

00:01:55.100 --> 00:01:56.720
Okay, so where do we start?

00:01:56.730 --> 00:01:59.050
There are so many tools out there that can help you

00:01:59.050 --> 00:02:00.810
with open‑source intelligence.

00:02:00.820 --> 00:02:05.370
The easiest way to get started is with Google and the exploit database.

00:02:05.380 --> 00:02:08.880
Advanced searches in Google provide a vast amount of information,

00:02:08.889 --> 00:02:13.690
and using the exploit database, we can customize what we search for.

00:02:13.850 --> 00:02:17.260
LinkedIn and Indeed can be a great source of technical

00:02:17.260 --> 00:02:19.840
stack details through company job postings,

00:02:19.840 --> 00:02:20.950
and of course,

00:02:20.960 --> 00:02:23.780
LinkedIn can also be helpful in gathering details

00:02:23.780 --> 00:02:26.280
about the company and employees.

00:02:26.520 --> 00:02:30.370
Hunter.io is great for gathering email information.

00:02:30.770 --> 00:02:35.230
MxToolbox is great at identifying email servers, among other things.

00:02:35.530 --> 00:02:40.830
DNSdumpster and crt.sh can be used to get a list of domain names,

00:02:40.840 --> 00:02:45.050
subdomain names, and certificates issued to the company.

00:02:45.060 --> 00:02:48.880
And shodan.io is great for helping pinpoint some

00:02:48.880 --> 00:02:51.120
details about the infrastructure.

00:02:51.400 --> 00:02:52.080
Next,

00:02:52.090 --> 00:02:57.160
dehashed.com and haveibeenpwned.com are great resources to

00:02:57.160 --> 00:03:01.190
take some of the gathered intelligence on users and look at

00:03:01.190 --> 00:03:02.920
possible breached credentials.

00:03:02.920 --> 00:03:07.820
Even if the breach credentials don't pan out and open a door for us,

00:03:07.820 --> 00:03:10.480
we want to let the client know that certain passwords have

00:03:10.480 --> 00:03:12.910
been compromised and should be changed.

00:03:12.920 --> 00:03:15.020
Then there's the automation applications.

00:03:15.020 --> 00:03:19.593
A lot of what I've been talking about so far require some manual work.

00:03:19.703 --> 00:03:23.440
We are gathering data from various sources and putting it all together.

00:03:23.643 --> 00:03:26.490
Some applications, such as the OSINT framework,

00:03:26.503 --> 00:03:28.360
Maltego, theHarvester,

00:03:28.363 --> 00:03:31.863
and Metagoofil are able to do the work for us and

00:03:31.863 --> 00:03:34.213
return a unified set of results.

00:03:34.233 --> 00:03:39.523
Additional tools in this category include SpiderFoot and OWASP Amass.

00:03:39.643 --> 00:03:43.016
You should not discount simple search engine as a means

00:03:43.016 --> 00:03:44.960
for gathering passive intelligence.

00:03:44.976 --> 00:03:48.380
Google image search and the search engine called PimEyes

00:03:48.380 --> 00:03:51.410
are a great way to help identify people,

00:03:51.426 --> 00:03:53.266
buildings, and locations.

00:03:53.276 --> 00:03:57.940
Yandex, a Russian search engine, can have a different view on the same data,

00:03:57.956 --> 00:03:59.656
so always get their take on it.

00:03:59.666 --> 00:04:03.826
JupyterPen is a free open‑source project that uses Jupyter

00:04:03.826 --> 00:04:06.666
Notebooks to automate penetration testing.

00:04:06.840 --> 00:04:10.380
Then there's Facebook, Instagram, and other social media.

00:04:10.390 --> 00:04:12.240
Look over as much as possible.

00:04:12.250 --> 00:04:15.160
It may not make perfect sense when you get the info,

00:04:15.170 --> 00:04:18.230
but after you organize it and put it all into context,

00:04:18.240 --> 00:04:21.300
it may reveal things that can help you on a pen test.

00:04:21.310 --> 00:04:24.170
Lastly, I wanted to mention attack.mitre.org,

00:04:24.170 --> 00:04:28.105
a massive knowledge base of various attack tactics

00:04:28.115 --> 00:04:30.225
and techniques used by hackers.

00:04:30.255 --> 00:04:34.440
Our goal as pen testers is to do what a real attacker would do,

00:04:34.440 --> 00:04:37.290
so having this type of knowledge is very helpful.

00:04:37.355 --> 00:04:39.770
There you'll find sections on reconnaissance,

00:04:39.785 --> 00:04:43.175
which may give you more ways that you can passively and

00:04:43.175 --> 00:04:46.275
actively gather information on your clients.

00:04:46.540 --> 00:04:49.030
I also would like to mention the fact that Pluralsight

00:04:49.040 --> 00:04:51.380
has an entire Red Team Tools path,

00:04:51.390 --> 00:04:54.970
which includes details on using many of the tools that I just

00:04:54.970 --> 00:04:58.680
briefly covered today and many of the ones that I barely even

00:04:58.680 --> 00:05:00.570
mentioned, so check them out.
