WEBVTT

00:00.360 --> 00:01.440
Hi everyone.

00:01.440 --> 00:02.320
I'm Chris.

00:02.320 --> 00:07.390
And welcome back to my course on Enterprise Security fundamentals.

00:07.560 --> 00:16.020
In this lesson we are going to discuss another common attack method and that is lateral movement and

00:16.020 --> 00:23.010
we are going to discuss about techniques used to restrict lateral movement.

00:23.010 --> 00:30.030
First of all let's get an overview of what lateral movement is lateral movement occurs when an attacker

00:30.060 --> 00:36.000
who has compromised one system is able to compromise another system on the network by using an existing

00:36.000 --> 00:39.180
compromised system as a jump off point.

00:39.180 --> 00:45.570
For example a standard user's workstation is compromised and the attacker runs a tool to extract locally

00:45.570 --> 00:46.980
cached credentials.

00:47.010 --> 00:53.340
One of these set of credentials let's see allows the attacker to gain access to a file server wants

00:53.400 --> 01:00.270
the attacker gain access to a file server or the cache credentials stored on that server might give

01:00.270 --> 01:07.080
them access to a domain controller let's say and that is how lateral movement works.

01:07.080 --> 01:15.200
There are a variety of methods that you can use to restrict lateral movement.

01:15.240 --> 01:22.050
Some of the techniques that can be used to guard against privilege escalation can also be used to reduce

01:22.110 --> 01:27.000
the chances of an attacker to perform a lateral movement.

01:27.000 --> 01:34.020
Techniques that you can use to restrict lateral movement include the following but are not limited to

01:34.950 --> 01:39.210
the first one would be code integrity policies.

01:39.210 --> 01:47.670
And when we talk about code integrity policies what they do is allow you to restrict which applications

01:47.670 --> 01:50.190
and scripts get a run on a computer.

01:50.190 --> 01:56.590
There are a variety of methods that you can use to enforce code in Windows environments including app

01:56.590 --> 02:04.500
blocker policies on pre Windows 10 on preview Windows Server 2006 systems or Windows Defender application

02:04.500 --> 02:12.000
guard and Windows Defender device guard on Windows 10 and Windows Server 2016 systems configured with

02:12.000 --> 02:14.190
the appropriate hardware of course.

02:14.490 --> 02:22.770
By restricting which code can and scripts can run you can restrict the tools that attackers can make

02:22.770 --> 02:26.220
use of to perform a lateral movement.

02:26.370 --> 02:34.120
So let's dig a little bit deeper into this code integrity policies.

02:36.370 --> 02:44.640
So code integrity policies I I'm going to talk about here about code integrity policies that would say

02:45.910 --> 02:51.790
most appropriate to be implemented on servers.

02:51.790 --> 03:00.640
So the first one is to implement the older version as I said pre Windows 10 on premium notes 2016 server

03:01.540 --> 03:10.950
which are up locker and software restriction policies the next one would be to implement Windows Defender

03:10.950 --> 03:21.060
devised guard which is a new feature found in Windows 10 and Windows Server 2016 which allows you to

03:21.060 --> 03:25.920
implement certain application policies that are white listed to run

03:29.230 --> 03:36.890
the best practices would be to only allow on servers specifically what listed code to run.

03:36.890 --> 03:41.020
And this includes both application and scripts.

03:41.130 --> 03:49.540
Ah you go with deny everything and then you start white listing the applications the code and the scripts

03:49.540 --> 03:58.550
that you need to run on your servers to be able to function properly in the environment.

03:58.680 --> 04:06.240
There are policies you can implement to pre approve scripts for example and if the application or code

04:06.330 --> 04:09.240
isn't pre-approved it isn't allowed to run.

04:09.240 --> 04:17.730
Pure and simple and that basically reduces the chances of an attacker let's say running a credential

04:17.730 --> 04:25.140
harvest tool on one of your servers because that wouldn't be on the pre-approved list of applications

04:25.140 --> 04:34.390
allowed to run on that server and it won't just simply it won't run the next one is by implementing

04:34.540 --> 04:43.750
code integrity policies whatever you have in your environment or whatever you might want to choose whether

04:43.750 --> 04:48.400
it's up block or whether it's software restriction policies Windows Defender application guard or Windows

04:48.400 --> 04:49.910
Defender devised guard.

04:50.170 --> 05:02.180
This significantly improves the security posture of your servers for sure and by implementing this policies

05:02.270 --> 05:08.990
on your servers and I'm talking about the servers here because as I highlighted here in the last bullet

05:09.530 --> 05:17.210
it's simpler to configure this policies on servers because there are fewer scripts and applications

05:17.210 --> 05:23.810
that need to be waitlisted compared to a workstation let's say where you would have a large variety

05:23.810 --> 05:35.810
of applications and code that is required to run on a workstation are going back to our list of techniques

05:35.870 --> 05:39.440
used to restrict the lateral movement.

05:39.440 --> 05:48.260
The next one is network segmentation so you can restrict lateral movement by segmenting critical workloads

05:48.260 --> 05:55.850
onto separate networks and villains and then controlling which traffic can cross those boundaries.

05:55.920 --> 06:02.480
Network segmentation allows you to limit which hosts can communicate with sensitive servers.

06:02.570 --> 06:07.550
For example you might to the blocked traffic from workstation on your organization's internal network

06:07.580 --> 06:12.140
to the servers except on the specific ports required by the workstations.

06:12.170 --> 06:13.070
Right.

06:13.070 --> 06:19.490
So you could also configure segmentation through firewalls so that you allow a file server to communicate

06:19.490 --> 06:25.760
with workstations on the ports are required by the file sharing protocol but not allow communication

06:25.760 --> 06:27.820
between the file servers and workstation.

06:27.830 --> 06:36.620
On any other port including let's say those used for administrative activities such as the ports used

06:36.620 --> 06:43.340
by RTP or partial remote Eng or let's say SS each.

06:43.600 --> 06:50.710
You can also segment the network so that sensitive servers can only communicate can only be allowed

06:50.830 --> 06:58.030
to communicate using administrative protocols from a select set of computers that are logged down and

06:58.030 --> 07:00.700
configured as privileged access workstations

07:04.370 --> 07:08.450
The next technique is the following.

07:08.470 --> 07:08.910
No.

07:08.950 --> 07:11.340
Come on account for password.

07:11.410 --> 07:19.650
Thus from my point of view should be a must in every organization.

07:19.780 --> 07:26.590
So basically organizations should avoid common local accounts being created on systems.

07:26.590 --> 07:33.070
This not only includes disabling the built in administrator which by the way is a best practice on all

07:33.070 --> 07:42.820
workstations and servers but instead is using a unique alternative but also ensuring that a common account

07:42.880 --> 07:47.440
isn't added to multiple systems with the same credentials of course.

07:47.470 --> 07:54.130
For example a standard account created across all systems that have specific application installed that

07:54.250 --> 07:58.390
would not be best practice at all.

07:58.420 --> 08:03.790
Also organizations should avoid using a common password for separate accounts.

08:03.790 --> 08:10.180
For example audits of the security configurations of some organizations have found that even though

08:10.180 --> 08:19.780
they create separate customer accounts to be used on services on separate computers those custom accounts

08:19.780 --> 08:22.230
are configured with a single common password.

08:22.350 --> 08:30.010
A red team or an attacker who can determine that password will have an easier time performing lateral

08:30.010 --> 08:37.110
movement than on an attacker or a red team in an environment where every password is complex and unique.

08:37.150 --> 08:46.330
1 best practice would be to implement laps and that is local administrator password solution and lapse

08:46.330 --> 08:52.150
can be used to ensure that the passwords of the local administrator accounts on all computers and servers

08:53.050 --> 08:57.520
in an Active Directory environment have a unique password.

08:57.520 --> 09:04.540
This allows organizations to avoid common trap of having like standard local administrator account password

09:04.630 --> 09:09.070
across all computers in an organization.

09:09.160 --> 09:16.840
The next one on our list is log on script sanitation and what log on script sanitation means is that

09:17.590 --> 09:23.560
log on scripts can often include sensitive information with some log on scripts even including passwords

09:23.560 --> 09:25.060
and clear text.

09:25.120 --> 09:31.270
An attacker that gains access to a computer may have access to any scripts that run on that computer.

09:31.270 --> 09:37.420
As those scripts may be accessible over the network using non privileged credentials log onto scripts

09:37.420 --> 09:44.200
should not contain sensitive information such as account passwords where possible log on scripts should

09:44.200 --> 09:51.160
be replaced by group policy or configuration management tools such as system Center Configuration Manager

09:51.220 --> 09:55.470
or Microsoft Intuit.

09:55.500 --> 10:00.010
The last technique on our list is apply software updates and patches.

10:00.070 --> 10:06.730
Of course attackers will use any technique available to perform lateral movement within an organization

10:07.210 --> 10:09.090
that is a fact.

10:09.100 --> 10:15.790
This includes exploiting vulnerabilities in operating system and applications that have been patched

10:15.790 --> 10:20.980
by the vendor but haven't yet been touched by the organization.

10:20.980 --> 10:27.610
While exploit code exists for some vulnerabilities before those of all abilities are patched by the

10:27.610 --> 10:35.560
vendors exploit code is more commonly available for vulnerabilities after those vulnerabilities are

10:35.560 --> 10:37.260
patched by the vendor.

10:37.270 --> 10:44.530
So this is partly because security researchers and attackers can reverse engineer a software update

10:44.800 --> 10:46.760
to determine what vulnerability.

10:46.780 --> 10:53.260
The software updates addresses and then of course are able to build a tool to exploit that vulnerability

10:53.890 --> 11:00.400
rather than let's say having to discover the vulnerability through their own research.

11:00.400 --> 11:08.170
So organizations should ensure that operating systems applications device drivers and firmware have

11:08.170 --> 11:13.510
all the appropriate software updates applied in a timely manner as this will restrict the attackers

11:13.510 --> 11:18.520
from using known exploits to perform lateral movement.

11:18.760 --> 11:26.590
I will see you in the next lesson guys where we will talk about in a high level of detail about the

11:26.680 --> 11:28.150
attack detection.

11:28.150 --> 11:30.360
I hope this has been informative for you.

11:30.360 --> 11:31.750
And thank you for watching.
