WEBVTT

00:00:00.500 --> 00:00:03.120
[Autogenerated] in this video we're going to try to bring down a

00:00:03.120 --> 00:00:07.950
necessary server in an environment protected by Angela SSH Let's

00:00:07.950 --> 00:00:09.760
visualize the next attack first.

00:00:10.440 --> 00:00:11.460
As an attacker,

00:00:11.470 --> 00:00:13.610
we try to launch a bite on script with the

00:00:13.610 --> 00:00:16.050
objective to flood unnecessary server.

00:00:17.640 --> 00:00:21.930
The script has been run against my real ssh server and as you can

00:00:21.930 --> 00:00:24.960
see it has successfully disrupted our server.

00:00:25.440 --> 00:00:28.860
This happened before we had our annual SSH instance running.

00:00:29.340 --> 00:00:32.390
We need to take a look at the python script first and

00:00:32.390 --> 00:00:34.170
don't worry if you don't know Peyton,

00:00:34.350 --> 00:00:37.690
I will explain everything in enough detail so that even people

00:00:37.690 --> 00:00:39.900
who do not code every day will understand,

00:00:40.940 --> 00:00:44.380
we noticed that we use the ssh part on library to attempt to

00:00:44.380 --> 00:00:47.360
launch connection requests to our ssh server.

00:00:48.240 --> 00:00:52.360
We take the host name as an argument when calling this program.

00:00:53.140 --> 00:00:54.910
We then create a session object,

00:00:54.990 --> 00:00:59.780
we set the host that we capture from the argument list and we are called the

00:00:59.780 --> 00:01:06.290
ports 22 as this is the standard one for SSH we then call the connect

00:01:06.290 --> 00:01:11.070
function to establish the connection in the entry point of the program

00:01:11.080 --> 00:01:15.990
recall the launch function which holds the code that we've already seen now

00:01:15.990 --> 00:01:17.900
that we have all the information.

00:01:18.100 --> 00:01:21.550
Let's try to execute this from a windows machine.

00:01:21.610 --> 00:01:26.310
I will execute are biting script on the SSH instance that we the vicious

00:01:26.310 --> 00:01:31.850
black hat hacker believed that the real ssh server is deployed on we will

00:01:31.850 --> 00:01:36.530
then analyze the network packages as well as to check if our real service

00:01:36.540 --> 00:01:39.740
is disrupted or not in our simulation.

00:01:39.780 --> 00:01:42.890
Our Attackers don't know that on the standard SSH board,

00:01:42.890 --> 00:01:44.690
there is no real SSH service,

00:01:44.850 --> 00:01:51.200
but just a decoy server powered by endless SSH As soon as we start the script,

00:01:51.200 --> 00:01:54.050
we can see only that there is nothing in the consult

00:01:54.540 --> 00:01:56.830
looking in the endless SSH logs.

00:01:57.020 --> 00:01:59.730
We see that many connections are attempting to flood our

00:01:59.730 --> 00:02:03.190
server different from the previous video.

00:02:03.350 --> 00:02:07.170
Those connections are dropping after some time but it will still

00:02:07.170 --> 00:02:10.830
be costly for the attacker since many resources will be kept

00:02:10.830 --> 00:02:13.320
busy trying to flood a decoy server.

00:02:14.730 --> 00:02:17.950
We can consider this as an active defense technique even

00:02:17.950 --> 00:02:19.860
though we are not trying to hack back,

00:02:20.840 --> 00:02:23.770
we will still inflict costs on our Attackers,

00:02:23.780 --> 00:02:28.660
keeping their resources busy and leaving our real services out of harm's way.

00:02:29.740 --> 00:02:34.100
Let's analyze the network traffic through Wireshark you can see that the

00:02:34.100 --> 00:02:37.260
server doesn't reply with its own identification string.

00:02:37.710 --> 00:02:41.740
Instead it will send a random string to the client every 10 seconds.

00:02:41.910 --> 00:02:45.020
This prevents the handshake from completing trapping the

00:02:45.020 --> 00:02:47.560
attacker and keeping its resources busy.

00:02:48.240 --> 00:02:49.810
Before we finish this video,

00:02:49.810 --> 00:02:52.650
let's do a recap of what we've seen during this module,

00:02:53.940 --> 00:02:56.060
we define what endless his age is,

00:02:56.630 --> 00:03:00.400
We saw how to install and how to properly configure it to offer the

00:03:00.400 --> 00:03:04.650
best protection we then try to simulate some attacks.

00:03:04.950 --> 00:03:10.790
An active discovery type of attack as well as a denial of service and saw how

00:03:10.790 --> 00:03:14.160
Angela SSH is protecting us against this kind of techniques.

00:03:15.240 --> 00:03:19.400
I hope that you had fun watching this module as much as I did creating it,

00:03:19.940 --> 00:03:23.050
and I hope all this information will be useful for you in

00:03:23.050 --> 00:03:25.620
our objective to protect your ssh service.

00:03:26.940 --> 00:03:28.760
Thank you for taking this course with me.

00:03:29.340 --> 00:03:31.470
If you have any questions or feedback,

00:03:31.480 --> 00:03:34.250
feel free to ping me on twitter or reach out to me

00:03:34.250 --> 00:03:36.150
via the email shown on the screen.
