WEBVTT

00:00:01.240 --> 00:00:04.560
All right, let's get ready to hop into the first demo of the course.

00:00:04.560 --> 00:00:05.800
In this one,

00:00:05.800 --> 00:00:09.950
we're going to see the extensions and frameworks and look at the

00:00:09.950 --> 00:00:13.020
packages that we can add to our Zeek installation.

00:00:13.020 --> 00:00:13.820
Then,

00:00:13.820 --> 00:00:17.020
we'll see the package manager and how it interacts

00:00:17.020 --> 00:00:19.150
with Zeek to install the addons.

00:00:19.740 --> 00:00:21.260
Let's get going.

00:00:24.240 --> 00:00:26.850
All right, and here we are in our lab environment.

00:00:26.850 --> 00:00:27.850
And right now,

00:00:27.850 --> 00:00:30.900
I just have a few browser tabs pulled up so we can

00:00:30.900 --> 00:00:34.200
check out some of the frameworks, look at the Zeek GitHub page,

00:00:34.200 --> 00:00:37.560
walk through some of the packages that we can install for Zeek.

00:00:37.570 --> 00:00:40.990
And then we'll hop straight into the CLI and install

00:00:40.990 --> 00:00:43.650
one for detecting TLS activity.

00:00:44.840 --> 00:00:48.680
So here on the Zeek documentation page, the first place that I

00:00:48.680 --> 00:00:51.260
want to go to is just to look at the frameworks that we can use

00:00:51.260 --> 00:00:53.130
with Zeek that we talked about.

00:00:53.140 --> 00:00:56.360
So we'll take this time to look at the input framework real quick.

00:00:56.370 --> 00:00:59.010
We'll look at the configuration framework and then the

00:00:59.010 --> 00:01:00.460
NetControl framework real quick.

00:01:02.340 --> 00:01:04.319
So if I'm hopping over to the input framework,

00:01:04.330 --> 00:01:05.850
like I was mentioning earlier,

00:01:06.440 --> 00:01:11.660
it allows us to read new types of data and read it into either tables or events.

00:01:12.940 --> 00:01:15.800
Now we're not going to be showing this live in the demo,

00:01:15.800 --> 00:01:20.340
but you can look through the documentation and see exactly what you can do,

00:01:20.340 --> 00:01:23.580
how you can configure it to manipulate your data in different ways

00:01:23.590 --> 00:01:28.990
and give you additional events and information for Zeek to process

00:01:28.990 --> 00:01:31.310
and help you detect malicious activity,

00:01:31.310 --> 00:01:34.170
your specific activity that you're looking for.

00:01:34.170 --> 00:01:38.070
The next framework we'll go look at is that configuration

00:01:38.070 --> 00:01:39.760
framework that I was talking about.

00:01:39.770 --> 00:01:45.730
So this one allows us to easily use options when we're running Zeek via commands

00:01:45.730 --> 00:01:49.850
and stuff like that to give us the ability to, like I said,

00:01:49.850 --> 00:01:53.590
turn on and off different features, do things like change the host name,

00:01:53.590 --> 00:01:57.670
or create different variables as you're starting Zeek up.

00:01:57.680 --> 00:02:01.370
So this allows us to modify the configuration at runtime

00:02:01.370 --> 00:02:04.160
essentially without having to hop into the scripts.

00:02:04.640 --> 00:02:08.080
You can see here that we have some redefinitions and stuff like that that

00:02:08.090 --> 00:02:11.060
you can use that Zeek's given us as examples there.

00:02:11.440 --> 00:02:15.150
So that's another thing that you can experiment with to allow yourself

00:02:15.150 --> 00:02:19.260
to change how Zeek is going to function at runtime.

00:02:21.140 --> 00:02:23.510
And then finally, the NetControl Framework.

00:02:23.510 --> 00:02:27.530
This is what I was talking about that's pretty much Zeek's API architecture.

00:02:27.530 --> 00:02:31.900
And what this does is allows us to configure Zeek to interact

00:02:31.900 --> 00:02:35.150
with other network devices or other security technologies like

00:02:35.150 --> 00:02:37.060
the switches and routers and firewalls.

00:02:37.060 --> 00:02:41.090
And so essentially what we can do is we can create rules in

00:02:41.090 --> 00:02:43.760
here for when Zeek detects specific traffic,

00:02:44.340 --> 00:02:47.980
it'll send a message or send some sort of instruction to

00:02:47.980 --> 00:02:51.300
have the network device drop the traffic or block the

00:02:51.300 --> 00:02:54.140
traffic or do whatever it needs to do.

00:02:54.140 --> 00:02:58.940
This is essentially part of Zeek's API documentation.

00:02:58.950 --> 00:03:02.460
So you can look in here and see just how to interact with the API if

00:03:02.460 --> 00:03:04.510
you want to build your own to interact with Zeek,

00:03:04.510 --> 00:03:07.860
and it gives you all of the functions that the NetControl Framework

00:03:07.860 --> 00:03:10.560
uses so you can actually use them in Zeek policy.

00:03:11.540 --> 00:03:15.180
All right, the next place that I wanted to show you is Zeek's GitHub,

00:03:15.180 --> 00:03:19.650
and it has a lot of packages and some projects that we can install.

00:03:19.660 --> 00:03:23.090
Like I said, we have ones that allow us to get NIC stats.

00:03:23.100 --> 00:03:25.100
We have the Zeek agent right here.

00:03:25.100 --> 00:03:28.900
So that's a project that is a really cool addon to

00:03:28.900 --> 00:03:30.530
Zeek functionality that can help us.

00:03:30.530 --> 00:03:32.680
I'll talk about that in a little bit.

00:03:32.680 --> 00:03:36.180
But you can go in here and download the code for that.

00:03:36.180 --> 00:03:39.280
And then we can use other addons.

00:03:39.290 --> 00:03:43.380
There's addons for creating packages to help with scripting.

00:03:43.380 --> 00:03:47.110
There's addons to help with creating new analyzers.

00:03:47.110 --> 00:03:51.100
Or we'll talk about the spicy plugin later on in this module.

00:03:51.100 --> 00:03:54.720
We can have Docker files for building Zeek in here as well.

00:03:54.720 --> 00:03:57.910
So their GitHub page, it's not just the packages and projects.

00:03:57.910 --> 00:04:01.570
It's other helpful scripts and tools to use to help

00:04:01.570 --> 00:04:03.840
you interact with Zeek as well.

00:04:03.840 --> 00:04:08.470
In their repo, it has some of the packages that we can install,

00:04:08.470 --> 00:04:11.020
but it also has some of the larger projects that you can

00:04:11.020 --> 00:04:13.570
install and add on like the Zeek agent and spicy.

00:04:13.570 --> 00:04:16.820
And like I said, we'll talk about those in a little bit.

00:04:16.820 --> 00:04:19.920
Now finally, the Zeek Package Browser.

00:04:19.930 --> 00:04:22.460
This is a great tool to actually go in and explore the

00:04:22.460 --> 00:04:24.660
packages that we can install with Zeek.

00:04:25.240 --> 00:04:27.970
So it gives you instructions if we're using the Zeek

00:04:27.970 --> 00:04:30.840
Package Manager on how to install a package.

00:04:30.840 --> 00:04:32.240
We can explore the packages.

00:04:32.240 --> 00:04:35.040
We can look at GitHub repository from here.

00:04:35.040 --> 00:04:37.810
If you don't already have zkg installed,

00:04:37.820 --> 00:04:41.460
you can look at the quick start guide right here to best see how to install it.

00:04:42.040 --> 00:04:44.050
So let's look at some of the packages here.

00:04:44.540 --> 00:04:46.100
Like I said in the previous clip,

00:04:46.100 --> 00:04:51.050
we can add packages that give us additional logging types for JSON data.

00:04:51.440 --> 00:04:55.280
We can download packages to manage block‑listed IP addresses.

00:04:55.280 --> 00:04:59.390
We can download addons to help analyze HTTP/2

00:04:59.390 --> 00:05:01.570
traffic or set up the bro interfaces.

00:05:01.570 --> 00:05:05.280
So the extensions and packages that you can install on Zeek,

00:05:05.280 --> 00:05:06.940
there's a lot of them in here.

00:05:06.950 --> 00:05:11.360
I'd encourage you to explore the package browser and figure out if

00:05:11.360 --> 00:05:15.710
there's any scripts in here that align with the use cases that you're

00:05:15.710 --> 00:05:17.490
trying to establish in your environment.

00:05:17.490 --> 00:05:19.510
Or if any of them just look cool,

00:05:19.510 --> 00:05:22.490
go ahead and download them and see if they can work in your

00:05:22.490 --> 00:05:24.960
environment or how they work in your environment.

00:05:26.140 --> 00:05:29.810
Now one of the packages that we're going to install today just as part

00:05:29.810 --> 00:05:35.760
of the example is going to be a TLS script or a TLS package that

00:05:35.770 --> 00:05:39.560
allows us to log some additional TLS data.

00:05:40.240 --> 00:05:41.460
It's a really simple script.

00:05:41.460 --> 00:05:44.550
It's not very difficult to install.

00:05:44.550 --> 00:05:48.950
And what it does is it gives us additional information about the key

00:05:48.950 --> 00:05:51.950
exchange and the protocols and ciphers that are used.

00:05:52.840 --> 00:05:55.480
And so what we're going to do is we're going to hop into

00:05:55.480 --> 00:05:58.770
our Zeek environment and go ahead and install this and

00:05:58.770 --> 00:06:00.250
just validate that it's working.
