WEBVTT

00:00:00.570 --> 00:00:04.980
Hi, I'm Alex Tushinsky. In this module, we're going to review the

00:00:04.980 --> 00:00:10.640
various aspects of passive reconnaissance. During a pen test,

00:00:10.640 --> 00:00:14.580
recon is one of the more important foundational steps that helps

00:00:14.580 --> 00:00:16.550
ensure successful engagement.

00:00:16.570 --> 00:00:20.240
So today, we're going to discuss what reconnaissance is,

00:00:20.250 --> 00:00:25.260
why it's important, and look at the two types of recon available to us.

00:00:25.450 --> 00:00:29.870
We'll then step through some aspects of passive recon to demonstrate some of the

00:00:29.870 --> 00:00:33.750
techniques that can be used during this phase of the test.

00:00:33.800 --> 00:00:36.970
Let's begin with an overview of reconnaissance.

00:00:37.590 --> 00:00:40.070
There are several phases to a penetration test.

00:00:40.080 --> 00:00:42.820
While you may see some variations of this list,

00:00:42.830 --> 00:00:46.490
everything technically boils down to the following six phases.

00:00:47.130 --> 00:00:48.980
First we engage with the customer,

00:00:48.990 --> 00:00:52.260
identify what they need, and initiate the project.

00:00:52.270 --> 00:00:55.590
Next we need to gather as much intel and information about

00:00:55.590 --> 00:00:59.440
the target to ensure we have adequate attack vectors that we

00:00:59.440 --> 00:01:01.770
can explore in a later phase.

00:01:01.930 --> 00:01:06.750
Gathering intelligence typically involves a passive and an active approach.

00:01:07.010 --> 00:01:09.955
The difference here is that we don't directly engage with the

00:01:09.955 --> 00:01:12.505
target during the passive reconnaissance phase.

00:01:12.515 --> 00:01:15.405
In other words, should our client go to their firewall,

00:01:15.415 --> 00:01:19.595
IPS or other locking mechanism, they should not be able to see

00:01:19.605 --> 00:01:24.155
any of our IP addresses or handiwork in any of their logs, so the

00:01:24.155 --> 00:01:28.225
sources used for passive recon are publicly available and not

00:01:28.225 --> 00:01:29.985
proprietary to our client.

00:01:30.140 --> 00:01:33.310
After we've gotten enough intel, we may have several

00:01:33.320 --> 00:01:36.060
avenues of attack that we can test out.

00:01:36.070 --> 00:01:40.180
We use a vulnerability assessment to further refine those vectors and

00:01:40.180 --> 00:01:44.030
identify new ones. Here, we're looking for open ports,

00:01:44.040 --> 00:01:47.750
vulnerable software running, or unpatched or unprotected

00:01:47.770 --> 00:01:51.160
servers that we can work with. Combined with the passive and

00:01:51.160 --> 00:01:53.960
active recon, we may have usernames,

00:01:53.960 --> 00:01:58.300
passwords, and other information that could be useful in the next phase,

00:01:58.300 --> 00:02:02.600
and that next phase is when we attempt to exploit the target based on the

00:02:02.600 --> 00:02:07.190
intel and vulnerability assessment findings. Note that without performing

00:02:07.190 --> 00:02:10.990
those earlier steps we would have a tough time here, as we wouldn't

00:02:10.990 --> 00:02:15.490
necessarily know exactly what attacks may be possible, or we could end up

00:02:15.490 --> 00:02:19.250
trying different things to see what works, instead of having a more

00:02:19.260 --> 00:02:20.600
educated approach.

00:02:20.650 --> 00:02:23.690
What I mean by this is that if we know the user is running a

00:02:23.690 --> 00:02:26.550
particular version of Windows on their server,

00:02:26.590 --> 00:02:31.313
then we can target attacks that compromise that particular OS. We

00:02:31.313 --> 00:02:34.643
wouldn't start with UNIX‑based attacks knowing that the client is

00:02:34.643 --> 00:02:39.093
running Windows. These phases are also iterative. As we break into

00:02:39.093 --> 00:02:42.883
something, we need to go back and perform reconnaissance and figure

00:02:42.883 --> 00:02:44.183
out what we just found.

00:02:44.293 --> 00:02:49.313
We then may want to rerun a scan in order to see what new doors are open to

00:02:49.313 --> 00:02:52.996
us, and then we can proceed further with exploitation.

00:02:53.226 --> 00:02:55.686
We keep repeating this until we exhaust all

00:02:55.686 --> 00:02:58.976
possibilities or as many of them as possible.

00:02:59.026 --> 00:03:02.676
Lastly, we gather and write all of this down as we go and

00:03:02.676 --> 00:03:04.936
eventually produce a report for the client.

00:03:04.956 --> 00:03:08.966
After delivering the report and remediation is performed and everything is

00:03:08.966 --> 00:03:14.900
retested, we close out the project. So just to reiterate, during passive recon,

00:03:14.910 --> 00:03:18.980
we do not directly engage with the target, but instead we rely on public

00:03:18.980 --> 00:03:22.020
information to gather some details about our target.

00:03:22.030 --> 00:03:25.640
This can be details about the stack they run, employees,

00:03:25.650 --> 00:03:30.250
their email information, networking or infrastructure details,

00:03:30.260 --> 00:03:35.570
locations, and any files or documents that can help our cause. Active recon,

00:03:35.570 --> 00:03:36.460
on the other hand,

00:03:36.470 --> 00:03:40.675
is when we start to perform scans against the target and use information

00:03:40.675 --> 00:03:45.095
gathered in the passive recon phase to further explain and provide

00:03:45.105 --> 00:03:49.790
insight into the target's infrastructure, people, and technical stack.

00:03:49.790 --> 00:03:54.115
Passive recon helps us identify attack vectors, because we're able to

00:03:54.115 --> 00:03:58.245
find details such as the type of OS the company is running, the type of

00:03:58.245 --> 00:04:02.225
database servers, or the fact that they may be using a vulnerable piece

00:04:02.225 --> 00:04:03.065
of software.

00:04:03.300 --> 00:04:06.760
These types of findings help shape the types of attacks we will

00:04:06.760 --> 00:04:09.430
attempt, and save us a lot of time later.

00:04:09.630 --> 00:04:14.130
Later we won't have to try UNIX‑based attacks against a Windows server, so

00:04:14.130 --> 00:04:18.810
knowing that the target is Windows based eliminates many things that we would

00:04:18.820 --> 00:04:21.730
otherwise have to try. And don't get me wrong,

00:04:21.730 --> 00:04:25.360
sometimes we end up going in blind and running through the full gamut

00:04:25.370 --> 00:04:29.600
of attacks because the client has cleverly disguised or altered their

00:04:29.600 --> 00:04:32.080
environment to hide these details from us.
