WEBVTT

00:00:00.240 --> 00:00:01.500
[Autogenerated] let's wake up a bit.

00:00:01.510 --> 00:00:03.810
What are the types of attacks we are going to protect

00:00:03.810 --> 00:00:05.960
against using Mandala as a sage.

00:00:07.140 --> 00:00:10.260
These attacks are detailed in a miter attack framework.

00:00:11.340 --> 00:00:15.130
Both of the attacks are going to be mitigated using the following miter

00:00:15.130 --> 00:00:19.460
shield technique called decoy artifacts and systems.

00:00:20.240 --> 00:00:23.030
This technique will leverage a decoy artifact in the form

00:00:23.030 --> 00:00:26.210
of a server establishing a honey pot that will increase

00:00:26.210 --> 00:00:28.460
the ambiguity for an attacker.

00:00:28.940 --> 00:00:32.060
The first attack is going to be an active discovery attack.

00:00:32.840 --> 00:00:35.410
Let me give you a summary of what we are going to do here.

00:00:35.410 --> 00:00:37.660
Before we start to see this in action,

00:00:38.540 --> 00:00:41.870
we are going to use and map in order to perform some discovery

00:00:41.870 --> 00:00:48.080
techniques on our ssh server protected by And let SSH let's assume

00:00:48.080 --> 00:00:51.060
that were in the shoes of an attacker that wants to retrieve

00:00:51.060 --> 00:00:53.430
information about the necessary server.

00:00:53.470 --> 00:00:57.950
In order to sketch a more detailed plan on how to get control of it.

00:00:58.940 --> 00:01:02.520
We will first try to enumerate all the encryption and compression

00:01:02.520 --> 00:01:07.060
algorithms used by the server as an attacker.

00:01:07.200 --> 00:01:11.070
We use this in order to find a potentially exploitable algorithm,

00:01:12.140 --> 00:01:16.680
we won't know the actual ports where our target ssh server is running on.

00:01:16.730 --> 00:01:19.570
So we are going to assume that it is running on the

00:01:19.570 --> 00:01:22.850
standard ssh port which is 22.

00:01:23.740 --> 00:01:24.360
However,

00:01:24.360 --> 00:01:28.120
our server runs on a totally different ports and on 22 we

00:01:28.120 --> 00:01:31.710
got our endless Ssh instance which will trap the attacker

00:01:31.710 --> 00:01:33.160
and will drop the attack.

00:01:34.140 --> 00:01:36.220
All right now, let's hear them off this.

00:01:38.330 --> 00:01:40.650
I am now on a virtual machine that I have started,

00:01:40.660 --> 00:01:42.560
which hosts a necessary server.

00:01:43.440 --> 00:01:47.180
I'm going to run unless this age here on Port 22 and will

00:01:47.180 --> 00:01:49.760
print all of its logs in a separate file.

00:01:50.740 --> 00:01:54.140
This is useful because the logs will display if anyone has

00:01:54.140 --> 00:01:56.050
attempted to interact with our server,

00:01:57.640 --> 00:02:01.490
I will also take the address of the system in order to use it in

00:02:01.490 --> 00:02:09.919
the attacks from a different VM and going to perform the

00:02:09.919 --> 00:02:12.660
following command to see if I can retrieve the list of

00:02:12.660 --> 00:02:14.560
encryption and compression algorithms.

00:02:15.340 --> 00:02:16.400
When we press enter,

00:02:16.400 --> 00:02:20.000
we notice that we don't get any output back and this will

00:02:20.000 --> 00:02:22.810
stay the same for hours and hours until the attacker will

00:02:22.810 --> 00:02:24.250
stop the command manually.

00:02:24.710 --> 00:02:27.970
This means that the script has been caught into the tar pit of endless

00:02:27.970 --> 00:02:33.760
sage know that the command is not specifying any support because any map

00:02:33.760 --> 00:02:36.460
will scan all the open ports of the target host.

00:02:37.440 --> 00:02:40.100
When it gets to interact with endless message,

00:02:40.200 --> 00:02:44.060
it will get trapped in the tar pit and the attack would be successful.

00:02:44.740 --> 00:02:49.760
Let's go back to our VM where our S S A server is running by

00:02:49.760 --> 00:02:53.330
looking at the logs we can see the iP address of the attacker

00:02:53.340 --> 00:02:55.750
that tried to commemorate our algorithms.

00:02:57.040 --> 00:02:59.380
This is useful because you can see the actual

00:02:59.380 --> 00:03:01.260
IP address of a potential attacker.

00:03:02.640 --> 00:03:07.490
We're also going to analyze the network information sent from under SSH in a

00:03:07.490 --> 00:03:11.160
later video to see exactly how it traps those clients.

00:03:12.040 --> 00:03:15.190
We can also try to execute some other end map commands,

00:03:15.370 --> 00:03:16.010
for example,

00:03:16.010 --> 00:03:19.790
to lose the authentication methods used by the server running this

00:03:19.790 --> 00:03:24.060
command will display the exact same behavior as before.

00:03:26.330 --> 00:03:29.650
We can see that there is no output and we can wait for hours

00:03:29.650 --> 00:03:31.850
for something to be rendered in the console.

00:03:32.740 --> 00:03:37.050
This one happened as the client is actually trapped in SSH tar pit Right now,

00:03:38.860 --> 00:03:43.060
even if we try to brute force our way into the server by using

00:03:43.060 --> 00:03:45.320
a file with common user name and passwords,

00:03:45.810 --> 00:03:49.250
we will stumble upon the same behavior as you can see on the screen.

00:03:49.740 --> 00:03:50.630
In the next video,

00:03:50.630 --> 00:03:53.790
we are going to do something more aggressive by attempting to do

00:03:53.790 --> 00:03:56.490
a denial of service attack on our Ssh server.
