WEBVTT

00:00:01.640 --> 00:00:05.660
Even though we spend only a half hour together, we've done a lot of things.

00:00:06.440 --> 00:00:09.630
We started by defining what is Apache Kafka and what

00:00:09.630 --> 00:00:12.650
capabilities a distributed streaming platform has.

00:00:13.540 --> 00:00:14.240
However,

00:00:14.250 --> 00:00:18.130
only talking about Kafka doesn't give us many benefits so we

00:00:18.140 --> 00:00:20.460
also need to know where we can get it from,

00:00:20.520 --> 00:00:21.990
and most importantly,

00:00:22.000 --> 00:00:25.540
what extra features we can add to our system on top of

00:00:25.540 --> 00:00:27.550
the core Apache Kafka components.

00:00:28.440 --> 00:00:33.150
Then we've seen what makes it so special by analyzing its core features.

00:00:33.940 --> 00:00:34.570
Finally,

00:00:34.580 --> 00:00:37.620
we briefly covered NIST cybersecurity framework and

00:00:37.620 --> 00:00:39.460
its protective technology function.

00:00:40.640 --> 00:00:43.290
Theory is cool, but practice is even better.

00:00:43.420 --> 00:00:47.860
So we started building interesting protective solutions using Apache Kafka.

00:00:48.840 --> 00:00:52.860
First, we deployed a tree broker Kafka cluster using Docker.

00:00:53.540 --> 00:00:56.040
Since Kafka brokers cannot run on their own,

00:00:56.140 --> 00:01:00.650
we've also added a three‑node zookeeper cluster to the list of components.

00:01:01.640 --> 00:01:04.739
Then using a web service called Audit Logger,

00:01:04.840 --> 00:01:09.020
we've audited all the HTTP calls that are creating a resource and

00:01:09.020 --> 00:01:11.860
stored all the entries in an audit log file.

00:01:12.840 --> 00:01:13.400
Next,

00:01:13.410 --> 00:01:16.490
we've used Kafka Connect to transfer those audit entries

00:01:16.500 --> 00:01:18.960
from the log file to Apache Kafka.

00:01:19.740 --> 00:01:22.530
Kafka Connect is a very powerful tool when it comes to

00:01:22.530 --> 00:01:25.950
transferring data in and out of a Kafka cluster.

00:01:26.840 --> 00:01:29.860
With the audit entry stored in the Kafka cluster,

00:01:29.920 --> 00:01:35.590
we needed a way to analyze them and trigger alert when a user spams the

00:01:35.590 --> 00:01:38.860
web service by creating too many resources at once.

00:01:39.440 --> 00:01:40.110
For that,

00:01:40.120 --> 00:01:45.760
we've used ksqlDB and it's SQL‑like language capable of creating data streams.

00:01:46.840 --> 00:01:47.510
Finally,

00:01:47.520 --> 00:01:52.730
we had some extra fun by launching a port scan attack using nmap and

00:01:52.730 --> 00:01:56.350
dumping all the network logs in a file using tcpdump.

00:01:57.040 --> 00:01:57.440
Then,

00:01:57.450 --> 00:02:00.670
we've used Kafka Connect to transfer those logs to the Kafka

00:02:00.670 --> 00:02:03.930
cluster so that we can analyze them with another Kafka

00:02:03.930 --> 00:02:06.850
ecosystem component called Kafka Streams.

00:02:07.840 --> 00:02:12.040
The goal of this component is to analyze the network logs and

00:02:12.040 --> 00:02:15.250
trigger alerts when it detects a port scan attack.
