WEBVTT

00:00:00.000 --> 00:00:10.020 align:middle line:90%


00:00:10.020 --> 00:00:13.080 align:middle line:84%
Introduction to system
or host-based attacks.

00:00:13.080 --> 00:00:16.350 align:middle line:84%
Before we get started with any
of the exploitation techniques

00:00:16.350 --> 00:00:18.990 align:middle line:84%
that we can perform on
both Windows and Linux,

00:00:18.990 --> 00:00:20.820 align:middle line:84%
let's get an
understanding of what

00:00:20.820 --> 00:00:22.890 align:middle line:84%
system or host-based
attacks are,

00:00:22.890 --> 00:00:25.080 align:middle line:90%
and why they're so important.

00:00:25.080 --> 00:00:28.200 align:middle line:84%
So what is or what our
system or host-based attacks?

00:00:28.200 --> 00:00:29.880 align:middle line:84%
Well, a system or
host-based attack

00:00:29.880 --> 00:00:32.100 align:middle line:84%
is essentially an
attack that is targeted

00:00:32.100 --> 00:00:34.410 align:middle line:84%
towards a specific
system or host running

00:00:34.410 --> 00:00:36.330 align:middle line:90%
a specific operating system.

00:00:36.330 --> 00:00:38.610 align:middle line:90%
For example, Windows or Linux.

00:00:38.610 --> 00:00:42.090 align:middle line:84%
And of course, we actually
need to contextualize this

00:00:42.090 --> 00:00:44.370 align:middle line:84%
in the case of
network-based penetration

00:00:44.370 --> 00:00:46.320 align:middle line:84%
testing or network-based
attacks, right?

00:00:46.320 --> 00:00:48.870 align:middle line:84%
So network services
really are not

00:00:48.870 --> 00:00:50.910 align:middle line:84%
the only attack vector
that can be targeted

00:00:50.910 --> 00:00:52.500 align:middle line:90%
during a penetration test.

00:00:52.500 --> 00:00:55.200 align:middle line:84%
System or host-based attacks
usually come into play

00:00:55.200 --> 00:00:57.630 align:middle line:84%
after you've gained access
to a target network,

00:00:57.630 --> 00:01:00.780 align:middle line:84%
where you'll be required to
exploit servers, workstations,

00:01:00.780 --> 00:01:03.780 align:middle line:84%
or laptops on the
internal network.

00:01:03.780 --> 00:01:06.130 align:middle line:84%
So in the context of
the penetration test,

00:01:06.130 --> 00:01:07.840 align:middle line:90%
why is this so important?

00:01:07.840 --> 00:01:10.650 align:middle line:84%
Why do you need to get an
understanding of system

00:01:10.650 --> 00:01:13.950 align:middle line:84%
or host-based attacks and the
various vulnerabilities that

00:01:13.950 --> 00:01:15.990 align:middle line:90%
affect both Windows and Linux?

00:01:15.990 --> 00:01:18.930 align:middle line:84%
Well, let's take a
simple scenario here.

00:01:18.930 --> 00:01:22.920 align:middle line:84%
Let's say you are contracted
to perform a penetration test.

00:01:22.920 --> 00:01:25.200 align:middle line:84%
And you are provided
with an IP address

00:01:25.200 --> 00:01:27.450 align:middle line:90%
to a public-facing server.

00:01:27.450 --> 00:01:30.120 align:middle line:84%
And the public-facing server
is running various services

00:01:30.120 --> 00:01:31.690 align:middle line:90%
that can be exploited remotely.

00:01:31.690 --> 00:01:36.000 align:middle line:84%
For example, SSH, FTP,
a web server, as well as

00:01:36.000 --> 00:01:37.200 align:middle line:90%
a MySQL Database.

00:01:37.200 --> 00:01:41.160 align:middle line:84%
And through exploiting
one of these services,

00:01:41.160 --> 00:01:43.830 align:middle line:84%
you gain access to that
public-facing server.

00:01:43.830 --> 00:01:46.890 align:middle line:84%
And you realize that
that public facing server

00:01:46.890 --> 00:01:48.990 align:middle line:84%
is also part of an
internal network.

00:01:48.990 --> 00:01:53.800 align:middle line:84%
And that internal network has
various systems or hosts on it.

00:01:53.800 --> 00:01:56.460 align:middle line:84%
And these systems or
hosts will typically

00:01:56.460 --> 00:02:00.160 align:middle line:84%
be servers, workstations or
laptops, employee laptops,

00:02:00.160 --> 00:02:00.660 align:middle line:90%
right?

00:02:00.660 --> 00:02:02.850 align:middle line:84%
And of course these are
internal hosts, right?

00:02:02.850 --> 00:02:05.010 align:middle line:84%
They're not part of
an external network,

00:02:05.010 --> 00:02:09.180 align:middle line:84%
or they can't be accessed
remotely through the internet.

00:02:09.180 --> 00:02:10.830 align:middle line:84%
And the only way
you can access them

00:02:10.830 --> 00:02:12.810 align:middle line:84%
is through your
compromised host.

00:02:12.810 --> 00:02:16.440 align:middle line:84%
So this is where host-based
attacks come into play.

00:02:16.440 --> 00:02:19.710 align:middle line:84%
And they essentially
revolve around identifying

00:02:19.710 --> 00:02:24.480 align:middle line:84%
and exploiting vulnerabilities
within that specific operating

00:02:24.480 --> 00:02:25.650 align:middle line:90%
system that they're running.

00:02:25.650 --> 00:02:27.330 align:middle line:84%
And what two
operating systems are

00:02:27.330 --> 00:02:31.470 align:middle line:84%
the most popular in terms
of internal networks

00:02:31.470 --> 00:02:34.650 align:middle line:84%
or in terms of just,
generally speaking, computing?

00:02:34.650 --> 00:02:36.660 align:middle line:90%
They are Windows and Linux.

00:02:36.660 --> 00:02:39.900 align:middle line:84%
And for that reason, you need
to have a good understanding

00:02:39.900 --> 00:02:43.380 align:middle line:84%
of the vulnerabilities that
affect both of these operating

00:02:43.380 --> 00:02:44.010 align:middle line:90%
systems.

00:02:44.010 --> 00:02:48.360 align:middle line:84%
So system or host-based
attacks are primarily

00:02:48.360 --> 00:02:50.940 align:middle line:84%
focused on exploiting
inherent vulnerabilities

00:02:50.940 --> 00:02:55.500 align:middle line:84%
or misconfigurations on the
target operating system,

00:02:55.500 --> 00:02:58.240 align:middle line:84%
wherever it may be or
whatever it may be,

00:02:58.240 --> 00:03:00.240 align:middle line:84%
whether it may be
Windows or Linux.

00:03:00.240 --> 00:03:02.310 align:middle line:84%
And unlike
network-based attacks,

00:03:02.310 --> 00:03:04.560 align:middle line:84%
host-based attacks are
much more specialized

00:03:04.560 --> 00:03:08.100 align:middle line:84%
and require an understanding
of the target operating system

00:03:08.100 --> 00:03:11.920 align:middle line:84%
and the vulnerabilities that
affect said operating system.

00:03:11.920 --> 00:03:15.280 align:middle line:84%
So again, just continuing
on with our scenario.

00:03:15.280 --> 00:03:18.630 align:middle line:84%
So once we've gained access
to the public-facing server,

00:03:18.630 --> 00:03:21.430 align:middle line:84%
we perform a little bit of
network scanning or port

00:03:21.430 --> 00:03:21.930 align:middle line:90%
scanning.

00:03:21.930 --> 00:03:24.450 align:middle line:84%
And we identify that we
have various hosts running

00:03:24.450 --> 00:03:25.680 align:middle line:90%
on the internal network.

00:03:25.680 --> 00:03:29.940 align:middle line:84%
And they are a mix of Linux
servers and workstations

00:03:29.940 --> 00:03:33.480 align:middle line:84%
and employee laptops
that are running Windows.

00:03:33.480 --> 00:03:35.170 align:middle line:90%
So what do we do next?

00:03:35.170 --> 00:03:37.260 align:middle line:84%
Well, they are not
running any services

00:03:37.260 --> 00:03:42.300 align:middle line:84%
that you'd typically find, like
FTP, MySQL, or a web server

00:03:42.300 --> 00:03:45.420 align:middle line:84%
because they are essentially
standard hosts that have

00:03:45.420 --> 00:03:46.920 align:middle line:90%
been configured for employees.

00:03:46.920 --> 00:03:48.690 align:middle line:84%
And the only thing
you know about them

00:03:48.690 --> 00:03:51.540 align:middle line:84%
is that they're running
Windows or Linux, right?

00:03:51.540 --> 00:03:54.270 align:middle line:84%
And you can start to
understand at this point

00:03:54.270 --> 00:03:56.220 align:middle line:84%
why host-based attacks
is so important

00:03:56.220 --> 00:03:59.610 align:middle line:84%
because host-based attacks
essentially gives you

00:03:59.610 --> 00:04:02.670 align:middle line:84%
an understanding of the
vulnerabilities that affect

00:04:02.670 --> 00:04:05.430 align:middle line:84%
either Windows or Linux
and the multiple versions

00:04:05.430 --> 00:04:08.760 align:middle line:84%
and distributions for
both Windows and Linux,

00:04:08.760 --> 00:04:10.590 align:middle line:90%
and how they can be exploited.

00:04:10.590 --> 00:04:13.260 align:middle line:84%
So I'll give you, again,
just continuing on

00:04:13.260 --> 00:04:15.180 align:middle line:90%
with the scenario.

00:04:15.180 --> 00:04:18.720 align:middle line:84%
After performing internal
reconnaissance or network

00:04:18.720 --> 00:04:20.579 align:middle line:84%
scanning on the
internal network,

00:04:20.579 --> 00:04:23.910 align:middle line:84%
we identify that we can pretty
much target the employee

00:04:23.910 --> 00:04:26.040 align:middle line:84%
laptops as they're
running Windows 10.

00:04:26.040 --> 00:04:29.343 align:middle line:84%
And apart from SMB,
they really aren't

00:04:29.343 --> 00:04:30.510 align:middle line:90%
running any of the services.

00:04:30.510 --> 00:04:32.940 align:middle line:84%
And the only reason
why they're running SMB

00:04:32.940 --> 00:04:35.850 align:middle line:84%
is because they're part of
an internal network that

00:04:35.850 --> 00:04:37.410 align:middle line:90%
has file sharing.

00:04:37.410 --> 00:04:39.490 align:middle line:84%
And they also sharing
a few printers.

00:04:39.490 --> 00:04:41.520 align:middle line:90%
So SMB is enabled by default.

00:04:41.520 --> 00:04:45.270 align:middle line:84%
Well, if you were
an attacker, and you

00:04:45.270 --> 00:04:48.330 align:middle line:84%
didn't have an understanding
of Windows vulnerabilities

00:04:48.330 --> 00:04:50.910 align:middle line:84%
or inherent Windows
vulnerabilities,

00:04:50.910 --> 00:04:53.580 align:middle line:84%
then you really would be
lost because you've only

00:04:53.580 --> 00:04:55.500 align:middle line:84%
learned about
network-based attacks

00:04:55.500 --> 00:04:58.650 align:middle line:84%
and how to exploit remote
services or services that

00:04:58.650 --> 00:04:59.950 align:middle line:90%
can be accessed remotely.

00:04:59.950 --> 00:05:03.960 align:middle line:84%
So again, if you were to get
an understanding of the Windows

00:05:03.960 --> 00:05:06.360 align:middle line:84%
operating system and the
inherent vulnerabilities

00:05:06.360 --> 00:05:08.790 align:middle line:84%
or misconfigurations
that affected,

00:05:08.790 --> 00:05:10.710 align:middle line:84%
you then be able to
stage your attack.

00:05:10.710 --> 00:05:14.010 align:middle line:84%
And you'd be able to find an
exploit or a vulnerability

00:05:14.010 --> 00:05:17.370 align:middle line:84%
within SMB that you could
then exploit to gain access

00:05:17.370 --> 00:05:19.170 align:middle line:90%
to that employee laptop.

00:05:19.170 --> 00:05:22.020 align:middle line:84%
And of course, this works
the same for the Linux server

00:05:22.020 --> 00:05:24.210 align:middle line:84%
that might be running
on the internal network.

00:05:24.210 --> 00:05:27.930 align:middle line:84%
And it could be used for
plethora of functionality,

00:05:27.930 --> 00:05:30.240 align:middle line:90%
from LDAP.

00:05:30.240 --> 00:05:33.120 align:middle line:84%
Or it could be used
just to store data

00:05:33.120 --> 00:05:34.980 align:middle line:90%
or an internal application.

00:05:34.980 --> 00:05:38.610 align:middle line:84%
And the only service it
may be running is SSH.

00:05:38.610 --> 00:05:41.430 align:middle line:84%
And so again, having
an understanding

00:05:41.430 --> 00:05:44.760 align:middle line:84%
of these operating systems and
the vulnerabilities that affect

00:05:44.760 --> 00:05:47.070 align:middle line:90%
them is very, very important.

00:05:47.070 --> 00:05:50.790 align:middle line:84%
So in essence, host-based
attacks essentially

00:05:50.790 --> 00:05:53.820 align:middle line:84%
involve exploiting
misconfigurations and inherent

00:05:53.820 --> 00:05:57.300 align:middle line:84%
vulnerabilities within the
target operating system,

00:05:57.300 --> 00:05:59.790 align:middle line:84%
irregardless of whether
it's Windows or Linux.

00:05:59.790 --> 00:06:02.610 align:middle line:84%
And in this course, we
will be primarily focusing

00:06:02.610 --> 00:06:05.730 align:middle line:84%
on exploiting Windows and
Linux vulnerabilities.

00:06:05.730 --> 00:06:09.960 align:middle line:84%
And we'll be taking
a look at how

00:06:09.960 --> 00:06:11.610 align:middle line:84%
they can be exploited,
irregardless

00:06:11.610 --> 00:06:14.400 align:middle line:84%
of the versions of Windows,
whether it's running Windows

00:06:14.400 --> 00:06:16.530 align:middle line:90%
server, Windows 10, Windows 7.

00:06:16.530 --> 00:06:19.650 align:middle line:84%
Or all the Linux server
or the Linux systems

00:06:19.650 --> 00:06:22.830 align:middle line:84%
are running Ubuntu, CentOS,
Debian, so on, and so forth,

00:06:22.830 --> 00:06:23.340 align:middle line:90%
right?

00:06:23.340 --> 00:06:26.130 align:middle line:84%
And of course, this
is not just limited

00:06:26.130 --> 00:06:29.070 align:middle line:84%
to exploitation or gaining
an initial foothold

00:06:29.070 --> 00:06:31.860 align:middle line:84%
on the host of the
systems that are running

00:06:31.860 --> 00:06:33.280 align:middle line:90%
on the internal network.

00:06:33.280 --> 00:06:36.030 align:middle line:84%
This also goes down to
privilege escalation, right?

00:06:36.030 --> 00:06:38.310 align:middle line:84%
Because once you've gained
access to a Windows system,

00:06:38.310 --> 00:06:41.760 align:middle line:84%
for example, you also
need to be able to elevate

00:06:41.760 --> 00:06:43.530 align:middle line:90%
your privileges locally.

00:06:43.530 --> 00:06:47.250 align:middle line:84%
And having an understanding
of the various techniques

00:06:47.250 --> 00:06:50.140 align:middle line:84%
that can be performed locally
are very, very important.

00:06:50.140 --> 00:06:52.920 align:middle line:84%
So you need to be
able to understand

00:06:52.920 --> 00:06:55.020 align:middle line:84%
how to perform, how
to exploit the kernel,

00:06:55.020 --> 00:06:58.570 align:middle line:84%
how to perform impersonation
attacks, so on, and so forth.

00:06:58.570 --> 00:07:01.050 align:middle line:84%
So this is a very,
very important course

00:07:01.050 --> 00:07:03.690 align:middle line:84%
as it will give you
specialized knowledge

00:07:03.690 --> 00:07:06.330 align:middle line:84%
in regards to inherent
vulnerabilities

00:07:06.330 --> 00:07:10.110 align:middle line:84%
and misconfigurations within
Windows and Linux hosts.

00:07:10.110 --> 00:07:12.480 align:middle line:84%
And as I said, it's
not just limited

00:07:12.480 --> 00:07:14.790 align:middle line:84%
to exploitation or
privilege escalation.

00:07:14.790 --> 00:07:17.610 align:middle line:84%
We'll also be taking a look
at dumping credentials,

00:07:17.610 --> 00:07:19.410 align:middle line:90%
both clear text and hashes.

00:07:19.410 --> 00:07:22.470 align:middle line:84%
And taking a look at how these
credentials can be set up

00:07:22.470 --> 00:07:23.640 align:middle line:90%
for password cracking.

00:07:23.640 --> 00:07:26.520 align:middle line:84%
Or how we can utilize,
in the case of Windows,

00:07:26.520 --> 00:07:29.160 align:middle line:84%
the NTM hashes for
lateral movement

00:07:29.160 --> 00:07:32.880 align:middle line:84%
or pass the hash attacks that
will allow us to laterally move

00:07:32.880 --> 00:07:34.420 align:middle line:90%
through the target network.

00:07:34.420 --> 00:07:38.340 align:middle line:84%
So this is a very,
very important course.

00:07:38.340 --> 00:07:43.500 align:middle line:84%
And it will give you
specialized knowledge in regards

00:07:43.500 --> 00:07:45.510 align:middle line:84%
to both Windows
and Linux and how

00:07:45.510 --> 00:07:49.410 align:middle line:84%
they can be exploited without
having services running

00:07:49.410 --> 00:07:51.090 align:middle line:84%
on them, the typical
services that you'd

00:07:51.090 --> 00:07:53.890 align:middle line:90%
find on a public-facing server.

00:07:53.890 --> 00:07:57.270 align:middle line:84%
So now that you have an
understanding of system

00:07:57.270 --> 00:07:59.200 align:middle line:90%
or host-based attacks.

00:07:59.200 --> 00:08:02.400 align:middle line:84%
We can now begin or move on to
the next section, which will

00:08:02.400 --> 00:08:04.420 align:middle line:90%
focus on Windows vulnerability.

00:08:04.420 --> 00:08:08.340 align:middle line:84%
So we'll get started by taking
a look at an overview of Windows

00:08:08.340 --> 00:08:10.200 align:middle line:84%
vulnerabilities and
misconfigurations,

00:08:10.200 --> 00:08:13.560 align:middle line:84%
as well as the protocols and
services that are natively

00:08:13.560 --> 00:08:14.880 align:middle line:90%
built into Windows.

00:08:14.880 --> 00:08:17.220 align:middle line:84%
And how to exploit
them as we move on.

00:08:17.220 --> 00:08:19.930 align:middle line:84%
And then of course, once we
complete the Windows section,

00:08:19.930 --> 00:08:22.560 align:middle line:84%
we'll then move into
the Linux section

00:08:22.560 --> 00:08:26.070 align:middle line:84%
and how Linux systems
can be exploited ad

00:08:26.070 --> 00:08:27.370 align:middle line:90%
so on and so forth.

00:08:27.370 --> 00:08:29.280 align:middle line:90%
So I hope you're excited.

00:08:29.280 --> 00:08:30.780 align:middle line:84%
You should have a
good understanding

00:08:30.780 --> 00:08:32.230 align:middle line:90%
of what we'll be doing now.

00:08:32.230 --> 00:08:35.750 align:middle line:84%
And I'll be seeing you
in the next section.

00:08:35.750 --> 00:08:37.000 align:middle line:90%