Latest / CyberSecurity Summary / A network defender's guide to threat detection: Using Zeek, Elasticsearch, Logstash, Kibana, Tor, and more
Transcript
- 0:00Speaker 1: Is keeping your network secure feeling like, uh, just this
- 0:04Speaker 1: constant battle against a flood of data.
- 0:07Speaker 2: It really can be overwhelming.
- 0:08Speaker 1: Yeah, and are you confident you've plugged every single hole
- 0:10Speaker 1: against attacks? Is your sound system, you know, really seeing
- 0:14Speaker 1: what it needs to see?
- 0:15Speaker 3: Or maybe you're just starting out right and wondering where
- 0:18Speaker 3: do I even begin with intrusion detection exactly?
- 0:21Speaker 1: If any of that sounds familiar, well, you're definitely in
- 0:24Speaker 1: the right place today. Our source material kicks off with
- 0:27Speaker 1: those exact questions.
- 0:29Speaker 3: Finding those critical signals, the important bits amidst all that
- 0:32Speaker 3: network noise.
- 0:34Speaker 2: That's the core challenge.
- 0:35Speaker 1: Really absolutely, and that's what we do here on the
- 0:37Speaker 1: Deep Dive. We take dense information like this fantastic guide
- 0:41Speaker 1: we're looking at and try to pull out the key
- 0:43Speaker 1: insights for you, you know, those aha moments.
- 0:46Speaker 3: So our mission today is pretty focused. We want to
- 0:48Speaker 3: understand how you can build a robust intrusion detection system
- 0:52Speaker 3: and IDs and also a SIME environment, and.
- 0:56Speaker 1: Crucially doing it with open source tools that are freely available.
- 0:59Speaker 1: That's right.
- 1:00Speaker 3: Our guide for this is Richard Medlins A Network Defender's
- 1:03Speaker 3: Guide to Threat Detection using zeke Elastic Search log Stash, Cubana,
- 1:09Speaker 3: tor and more.
- 1:10Speaker 1: Quite a title promises a lot, and we're hoping to
- 1:13Speaker 1: make that journey a bit smoother.
- 1:15Speaker 3: What's interesting is a guide itself points out a big hurdle.
- 1:18Speaker 3: You can find info on installing these tools one by one, sure,
- 1:22Speaker 3: but getting them all configured to work together effectively clear
- 1:26Speaker 3: up to date guides are surprisingly hard to come by.
- 1:28Speaker 1: Okay, so let's unpack the toolkit we've got. Zeke used
- 1:31Speaker 1: to be called BRO. Some might remember that name. The
- 1:34Speaker 1: elastic search, Logstash, and Cubana. That's the ELK.
- 1:38Speaker 3: Stack, the classic ELK stack.
- 1:40Speaker 1: Yeah, finally, tour the Nanimity network. The source says getting
- 1:44Speaker 1: these to play nice is tricky, so let's try and
- 1:46Speaker 1: clear that path.
- 1:47Speaker 3: Okay, let's start with the foundation Zeke. Our guide rightly
- 1:50Speaker 3: calls it a cornerstone for a solid IDs.
- 1:52Speaker 1: So Zeke formerly BRO maybe a nod to Orwell's nineteen
- 1:57Speaker 1: eighty four seems kind of fitting for network monitoring. Maybe
- 2:00Speaker 1: a bit ominous, huh?
- 2:02Speaker 3: Maybe it's open source Network analysis software functions as a
- 2:06Speaker 3: network intrusion detection system, and an IDs basically gives you
- 2:10Speaker 3: a live view of network happenings.
- 2:12Speaker 1: What makes it special though. It's not just basic pattern matching,
- 2:15Speaker 1: is it.
- 2:15Speaker 3: No, that's the key thing. It's smarter. It analyzes live traffic, yes,
- 2:20Speaker 3: but also files moving across the network, even old recorded
- 2:24Speaker 3: traffic and pccapy files, and it generates these neutral events
- 2:29Speaker 3: based not just on known attack signatures, but also on
- 2:32Speaker 3: network behavior that seems unusual.
- 2:34Speaker 1: Right, So it's like noticing someone acting suspiciously near the building,
- 2:37Speaker 1: not just spotting a crowbar.
- 2:38Speaker 2: Exactly like that.
- 2:39Speaker 3: Yeah, and it has built in analyzers for common protocols, HTTP, FTPS,
- 2:45Speaker 3: mtp DNS, the usual suspects.
- 2:47Speaker 1: And you can add more if needed.
- 2:48Speaker 2: You can.
- 2:49Speaker 3: Plus, it integrates with other tools like snort and crucially
- 2:52Speaker 3: for US today, with elastic search.
- 2:54Speaker 1: The guide mentioned some basic dependencies libcap for packet capture,
- 2:58Speaker 1: open SSL for crypto, usual build tools like make c
- 3:01Speaker 1: plus plus RAG.
- 3:02Speaker 3: Yeah, the standard stuff for building from sores. But it
- 3:04Speaker 3: quickly gets practical focusing on prepping Aubuntu for good packet capture.
- 3:09Speaker 1: Right, you need to see the traffic clearly first, So
- 3:11Speaker 1: step one, according to the guide, disable network manager. Why
- 3:16Speaker 1: turn that off?
- 3:17Speaker 3: Well, think of network manager as like the automatic pilot
- 3:20Speaker 3: for your network connection.
- 3:22Speaker 2: It tries to be helpful manage things.
- 3:24Speaker 1: Which is usually good.
- 3:25Speaker 3: Usually yeah, But when we're doing passive sniffing just listening in,
- 3:29Speaker 3: it's active management can actually interfere, maybe drop packets or
- 3:32Speaker 3: change how we see them.
- 3:34Speaker 2: So for a.
- 3:34Speaker 3: Dedicated sensor, you want it off. The guide gives the
- 3:37Speaker 3: system trick to ural commands.
- 3:39Speaker 1: Okay, that makes sense, less interference. Next step disabling NIC
- 3:43Speaker 1: offloading functions sounds technical? What's the risk here?
- 3:47Speaker 3: Modern network cards and icees they do tricks and hardware
- 3:49Speaker 3: to speed things up right, take some load off the
- 3:51Speaker 3: main CPU.
- 3:52Speaker 1: Like handling checksums or segmenting large data packets.
- 3:55Speaker 3: Exactly, things like TCP segmentation offloading TSO, Generic segmentation offloading GSO,
- 4:01Speaker 3: Large receive offloading LRO all designed for performance, but they
- 4:06Speaker 3: can bundle packets together or change packet timing in ways
- 4:09Speaker 3: that distort the picture for our analysis tool. For ZEKE,
- 4:12Speaker 3: you might even see packet sizes reported that are technically impossible.
- 4:16Speaker 1: Ah, so we need the raw, unaltered stream. We need
- 4:20Speaker 1: to turn those hardware shortcuts off on our analysis machine precisely.
- 4:24Speaker 3: The guide shows using the f tool command with a
- 4:26Speaker 3: bunch of flags rx tx, TSO, UPHO, GSO, grow l, row,
- 4:30Speaker 3: et cetera, setting them all.
- 4:32Speaker 1: To off, and the guide stresses you probably need to
- 4:35Speaker 1: run this f tool command every time you start zeke.
- 4:37Speaker 3: Yeah, that's a key point because those settings might not
- 4:41Speaker 3: persist across reboots. You use f toolpinae to check their off.
- 4:45Speaker 3: Some might say they can't be changed, but you verify
- 4:47Speaker 3: the important ones are off.
- 4:48Speaker 1: Okay, Then it mentions ensuring the DNS network service is
- 4:52Speaker 1: running but not really changing its can fig Yeah. Then
- 4:55Speaker 1: the big one, promiscuous mode sounds sneaky.
- 4:59Speaker 3: Hu Well, Normally your network card only listens to traffic
- 5:03Speaker 3: specifically addressed to it, like a polite receptionist only taking
- 5:06Speaker 3: calls for their extension. Right, Promiscuous mode tells the card
- 5:09Speaker 3: listen to everything, all traffic hitting the wire on that
- 5:11Speaker 3: network segment.
- 5:12Speaker 1: Doesn't matter who it's for, which is absolutely essential for
- 5:15Speaker 1: an IDs. Otherwise you'd miss most of the conversations.
- 5:17Speaker 3: Totally essential. If it's not promiscuous, it only sees traffic
- 5:20Speaker 3: to the analysis box itself, useless for monitoring others.
- 5:24Speaker 1: The guide shows if canfig interface promises to turn it
- 5:26Speaker 1: on and ip A show interface rep I promised to
- 5:30Speaker 1: check handy check YEP.
- 5:31Speaker 3: Then it lists dependencies core ones we mentioned, but also
- 5:35Speaker 3: optional stuff like GUOIP support.
- 5:37Speaker 1: Ah geolocation so zeke can tell you where traffic is
- 5:40Speaker 1: coming from or going to geographically based on IP address exactly.
- 5:44Speaker 3: Using the limex mindb library and the free geolite two
- 5:47Speaker 3: database super useful for spotting, say, unexpected international connections. Has
- 5:52Speaker 3: that set up, The guide walks through app to get
- 5:55Speaker 3: installed lib max mindyb dev, then using curl to download
- 5:58Speaker 3: the geolite two city database, putting it in our share
- 6:02Speaker 3: gip and it wisely says check for updated download links.
- 6:06Speaker 1: Things change good tip Okay, next up. Pfriing sounds fast.
- 6:10Speaker 2: It is.
- 6:11Speaker 3: It's all about boosting packet capture speed, getting higher data
- 6:14Speaker 3: rates than standard Linux methods.
- 6:15Speaker 1: How does it work?
- 6:16Speaker 3: Basically, it uses a Linux kernel mechanism called NAPI new Api. Essentially,
- 6:21Speaker 3: it creates a more direct, efficient path for packets from
- 6:25Speaker 3: the NIC into memory buffers that Z can access quickly
- 6:28Speaker 3: reduces CPU overhead. Think of it like an express lane
- 6:31Speaker 3: for packets.
- 6:32Speaker 1: Gotcha, and installation looks like compiling from source again.
- 6:35Speaker 3: Yep, get the code from GitHub, compile it with Make
- 6:38Speaker 3: install the kunnel module the guide puts it in opt
- 6:41Speaker 3: which is common for optional software.
- 6:42Speaker 1: So the steps are installed. Build tools like bison flex right.
- 6:46Speaker 3: Get, clone the pfring rebo cd into the kernel directory,
- 6:51Speaker 3: Make Pseudo, make install, then Pseudo in smithmad to load
- 6:54Speaker 3: the kernel module. It even covers building userspace libraries and
- 6:58Speaker 3: TCP dump with pfr ing support.
- 7:00Speaker 1: Okay, lots of prep work. But finally installing zke itself.
- 7:04Speaker 2: Yes, clone the.
- 7:05Speaker 3: Z cre go from GitHub, use the recursive flag that's important.
- 7:08Speaker 3: Gets all the submodules right. Then the classic dot configure,
- 7:11Speaker 3: make make install. The configure step is key. You tell
- 7:14Speaker 3: it where PFI an G is, where guyp is. The
- 7:17Speaker 3: guys suggests installing.
- 7:18Speaker 1: To opsec compilation can take a while, I bet can do.
- 7:21Speaker 3: Then a reboot is needed. Update your system's path so
- 7:24Speaker 3: you can just type z commands easily.
- 7:26Speaker 2: Almost there.
- 7:27Speaker 1: Okay, installed. How do we tell zeke what to monitor?
- 7:32Speaker 1: Basic config that's next.
- 7:33Speaker 3: Two main files and ops can secut dot no dot
- 7:36Speaker 3: cfg and networks dot cfg.
- 7:38Speaker 1: No. Dot cfg is four.
- 7:40Speaker 3: Defining your zke setup for a simple single sensor. The
- 7:43Speaker 3: main thing is telling it which network interface to listen
- 7:46Speaker 3: on the one we set to permiscuous mode earlier.
- 7:48Speaker 1: And networks dot cfg.
- 7:50Speaker 3: That's where you define your local IP address ranges, you know,
- 7:53Speaker 3: using cid R notation like one ninety two point one
- 7:56Speaker 3: sixty eight point one point zero two four or ten
- 7:59Speaker 3: point zero point zero zero point zero eight. This helps
- 8:01Speaker 3: zeke know what's internal versus external traffic.
- 8:04Speaker 1: Makes sense. It also mentioned local dot Zeke.
- 8:06Speaker 2: Yeah, that's like.
- 8:07Speaker 3: The main control panel for enabling or disabling different Zke
- 8:10Speaker 3: analysis scripts.
- 8:10Speaker 2: You load the scripts you.
- 8:11Speaker 1: Want to run there installed configured basics. Time to fire
- 8:14Speaker 1: it up right.
- 8:15Speaker 3: First, you need to give the zeke binari's permission to
- 8:17Speaker 3: actually capture packets using the set cap command. It's a
- 8:20Speaker 3: security thing, okay. Then you use zke toil the command
- 8:23Speaker 3: line controller first time ever. You run zeke toil install.
- 8:27Speaker 3: After that to start it with your config you use
- 8:29Speaker 3: ziketil deploy and check if it's running zeke til status
- 8:33Speaker 3: and you can watch the logs live like the connection
- 8:35Speaker 3: log with tail opt sk logs, current con dot log.
- 8:39Speaker 3: See the traffic rolling in phew.
- 8:41Speaker 1: Okay, solid foundation with zeke running. Now the guide switches
- 8:45Speaker 1: gears to tour. Why bring an anonymity tool into an
- 8:49Speaker 1: intrusion detection discussion seems backwards.
- 8:52Speaker 3: That's a great question, and the guide tackles it directly,
- 8:55Speaker 3: understanding tour, how it works, what its traffic looks like.
- 8:59Speaker 3: It's actually idle for defense how so, well, partly it's
- 9:02Speaker 3: no your enemy right, understand the tool attackers might use,
- 9:05Speaker 3: but more practically, seeing tour traffic inside a typical corporate network,
- 9:09Speaker 3: that's usually a big red flag.
- 9:11Speaker 1: Because employees generally shouldn't be hiding their activity using TOR
- 9:14Speaker 1: for work stuff exactly.
- 9:15Speaker 3: There's usually no legitimate business need, so detecting it could
- 9:19Speaker 3: indicate policy violations or even malicious activity like data exfiltration
- 9:23Speaker 3: or command and control channel.
- 9:25Speaker 1: Okay, that makes sense, understand it to detect it.
- 9:27Speaker 3: The guide explains onion routing briefly, how tour encrypts traffic
- 9:31Speaker 3: and bounces it through multiple random relays to hide the
- 9:33Speaker 3: source and destination, and.
- 9:35Speaker 1: It warns about running an exit relay.
- 9:37Speaker 3: Definitely, big legal disclaimer there. Exit relays are where the
- 9:41Speaker 3: tour traffic pops out onto the regular internet, so you
- 9:43Speaker 3: could be blamed for what others do through your exit node.
- 9:46Speaker 1: Good warning. It also mentions law enforcement uses TOR too.
- 9:50Speaker 3: Sometimes yeah, for investigations anonymous tip lines things like that,
- 9:53Speaker 3: and critically it advises don't do anything illegal and don't
- 9:58Speaker 3: log into personal accounts if you're using tour for anonymity.
- 10:02Speaker 2: Common sense, but.
- 10:03Speaker 1: Important, absolutely so setting up Tour on our analysis system.
- 10:07Speaker 3: The guide covers installing Tour itself, plus a helper tool
- 10:10Speaker 3: called privoxy sox it's a web proxy here. It's used
- 10:13Speaker 3: as a middleman to easily forward web browser traffic into
- 10:16Speaker 3: the tour network, which listens on a soocks port.
- 10:19Speaker 1: How's install work?
- 10:20Speaker 3: Add the Tour project's repository ear system, import their signing key,
- 10:24Speaker 3: update packages, then APT install tor, guipdb, torsosdeb, dot Tour project,
- 10:30Speaker 3: dot org, desh gearing pretty standard package. Install a provoxy
- 10:34Speaker 3: just APT install privoxy simple enough.
- 10:36Speaker 1: How do they connect? How do you tell provoxy to
- 10:38Speaker 1: use Tor?
- 10:39Speaker 3: You edit provoxies, canfig file, et cetera. Provoxes can fig
- 10:42Speaker 3: add one line at the end, forward socks five local
- 10:45Speaker 3: host point nine zero five zero zero that tells it
- 10:48Speaker 3: to send traffic to tours default soocks port ninety fifty
- 10:53Speaker 3: running on the local machine. The guide also suggests commenting
- 10:57Speaker 3: out the log file line, then restart the provoxy.
- 11:00Speaker 1: Okay, installed, configured, How do you actually use it? The
- 11:03Speaker 1: guide mentioned torsocks.
- 11:05Speaker 2: Yeah, torsocks is neat.
- 11:06Speaker 3: You just run torsocks command and it tries to force
- 11:08Speaker 3: that command's network traffic through tour. The guide shows an
- 11:12Speaker 3: example with.
- 11:12Speaker 1: Curl, but not everything works with torsocks.
- 11:14Speaker 3: Right, especially graphical things like web browsers. For those, you
- 11:18Speaker 3: often need to go into the browser's network settings and
- 11:20Speaker 3: manually configure the SCKS five proxy point it to local
- 11:23Speaker 3: host port ninety fifty.
- 11:25Speaker 1: The guide then shows a script tour switch to toggle
- 11:28Speaker 1: tour on and off easily. That sounds useful, super useful.
- 11:31Speaker 3: It uses x settings to change the system wide proxy
- 11:33Speaker 3: settings for Genome desktops and system cordal to start stop
- 11:37Speaker 3: the tour in provoxy services.
- 11:38Speaker 2: Saves a lot of typing, and.
- 11:39Speaker 1: It provides the script code how to make it executable
- 11:42Speaker 1: with chew mode. Even handles potential ownership issues YEP, and it.
- 11:46Speaker 3: Covers letting a regular user run this script without needing
- 11:49Speaker 3: the pseudo password every time.
- 11:51Speaker 1: How editing the sudoer's file gotta be careful.
- 11:55Speaker 3: They're very careful use with pseudo always. It checks syntax
- 11:58Speaker 3: before saving. The guy gives example lines to add allowing
- 12:01Speaker 3: specific commands system sort, telecorner, stop, status, et cetera for
- 12:06Speaker 3: a user without a password.
- 12:08Speaker 1: Prompt Finally installing the Tour browser itself.
- 12:11Speaker 3: Yeah, that's the prepackaged browser designed for Tour. Simple install
- 12:15Speaker 3: apt get install Tour Browser launcher. Then you run Tour
- 12:18Speaker 3: Browser Launcher as a normal user, not root.
- 12:21Speaker 1: So now we can generate Tour traffic on our.
- 12:23Speaker 3: Network exactly, which means we can test the Zeke signatures
- 12:27Speaker 3: designed to detect it, which we'll get too later.
- 12:29Speaker 2: Helps you understand it and spot it.
- 12:30Speaker 1: Okay, Zeke is capturing We understand Tour now making sense
- 12:34Speaker 1: of all that data. Enter the ELK stack, Elastic Search,
- 12:37Speaker 1: log Stash, Cabana.
- 12:38Speaker 3: Right, the powerhouse trio for log management and analysis, open source,
- 12:42Speaker 3: very flexible, scalable.
- 12:44Speaker 1: Let's break them down. Elastic Search is the search engine
- 12:46Speaker 1: the database sort of.
- 12:47Speaker 3: Yeah, It's a search and analytics engine based on Lucine,
- 12:51Speaker 3: highly scalable, distributed. Its stores and indexes all the data
- 12:55Speaker 3: so you can search it incredibly fast.
- 12:57Speaker 2: It's the heart of.
- 12:58Speaker 3: ELK and Stash the data processor exactly. Think of log
- 13:03Speaker 3: Stash as the data pipeline or like the prep station.
- 13:07Speaker 3: It ingests data from many sources filebeat for instance, then
- 13:10Speaker 3: it can parse it clean.
- 13:11Speaker 2: It up, enrich it.
- 13:12Speaker 3: Enrich it how like adding GOIP info based on an
- 13:15Speaker 3: IP address or translating cryptic log codes into human readable text.
- 13:19Speaker 3: It uses things called grock patterns to understand structured or
- 13:23Speaker 3: even unstructured logs. Then it sends the processed data to
- 13:27Speaker 3: elastic Search.
- 13:27Speaker 1: And Cabana is the shiny front end the dashboard.
- 13:30Speaker 2: That's it.
- 13:31Speaker 3: Cabana talks to elastic Search and lets you build visualizations charts, graphs, maps, tables,
- 13:36Speaker 3: lets you explore the data interactively. It's how you see
- 13:39Speaker 3: the patterns and anomalies.
- 13:40Speaker 1: The guide also brings in Filebeat. What's its role?
- 13:43Speaker 3: Filebeat is a lightweight agent, a shipper. You install it
- 13:46Speaker 3: on servers where logs are generated. Its job is just
- 13:48Speaker 3: to collect those logs and send them efficiently, either straight
- 13:50Speaker 3: to elastic search or to log stash for that extra processing.
- 13:53Speaker 1: Why use filebeat instead of just having logstash collect directly.
- 13:57Speaker 3: Filebeat is much lighter, uses fewer resources on the source machine.
- 14:01Speaker 3: It also has pre built modules for common log types
- 14:04Speaker 3: like zeke logs, which simplifies setup. And it has this
- 14:08Speaker 3: back pressure sensitive thing, meaning it won't flood log Stash
- 14:11Speaker 3: or elastic Search if they get temporarily overloaded.
- 14:14Speaker 1: Okay, so the flow is typically zeke writes logs, Filebeat
- 14:17Speaker 1: reads logs sends to either log stash to elastic Search
- 14:21Speaker 1: or elastic Search directly, then Kibana reads from elastic Search
- 14:25Speaker 1: for visualization.
- 14:26Speaker 3: That's the common pattern. The guide then walks through installing
- 14:29Speaker 3: ELK plus filebeat, big warning, use the exact same version
- 14:33Speaker 3: for all of them, avoids headaches.
- 14:35Speaker 1: Right for elastic Search, add the elastic key in repo
- 14:39Speaker 1: app to install elastic Search, then enable journal qualcogging. Why
- 14:43Speaker 1: is that needed?
- 14:44Speaker 2: By default?
- 14:44Speaker 3: Elastic Search is a bit quiet in the main system logs.
- 14:47Speaker 3: The guide shows modifying its service file elastic Search stop
- 14:50Speaker 3: service to remove the quiet flag. Makes troubleshooting way easier
- 14:54Speaker 3: using journal calls. Then you check it's running with corol
- 14:56Speaker 3: local hosts point nine to two zero zero, and we.
- 14:59Speaker 1: Need Java, open jdk.
- 15:01Speaker 3: YEP, elastic Search and logs Dash run on Java. The
- 15:04Speaker 3: guide recommends open jdk eight for the versions it discusses.
- 15:07Speaker 3: Simple app to install open Jdk eight.
- 15:09Speaker 1: Jdk log Stash install is similar, but it doesn't start automatically.
- 15:13Speaker 3: Correct install the package, but you need to explicitly start
- 15:15Speaker 3: the service. The guide shows the commands and where the
- 15:18Speaker 3: config files live.
- 15:19Speaker 1: Kubana install dot enable and start the service. Configure Kobana
- 15:24Speaker 1: dot AML. What are the key settings there?
- 15:26Speaker 3: Server dot port usually five six oh one, serve it
- 15:29Speaker 3: dof host often local host or zero point zero zero
- 15:33Speaker 3: zero to listen on all interfaces, and crucially elastic search
- 15:37Speaker 3: dot hosts, which tells Kubana where to find elastic Search
- 15:40Speaker 3: usually http dot local host, dot nine two Z or
- 15:42Speaker 3: A zero and.
- 15:43Speaker 1: Filebeat install enable it to start on boot okay stack
- 15:46Speaker 1: installed now making it work with Zeke.
- 15:48Speaker 3: The guide shows two main ways. First the simpler one
- 15:51Speaker 3: filebeat send z clogs directly to elastic search.
- 15:54Speaker 1: How is that configured?
- 15:55Speaker 3: You edit filebeat dot AML, tell it where z clogs are, opseclogs,
- 15:59Speaker 3: current dot log usually enable to built in filebeat z module.
- 16:02Speaker 3: Then configure the output dot elastic search section with your
- 16:05Speaker 3: elastic search address.
- 16:06Speaker 1: And what changes on the zke side. For this direct method.
- 16:09Speaker 3: You need to tell Zeke to output logs in JSON
- 16:11Speaker 3: format and importantly use eph time stamps that's the number
- 16:15Speaker 3: of seconds since nineteen seventy. You modify aii dot z
- 16:20Speaker 3: and local dot z to set this up. The Kabana
- 16:22Speaker 3: zke module expects that format.
- 16:24Speaker 1: Then restart everything, go into gabona, create a filebeat index
- 16:27Speaker 1: pattern and.
- 16:28Speaker 3: Boom, you should see the pre built zke overview dashboard
- 16:31Speaker 3: populated with your data instant visibility.
- 16:34Speaker 1: Cool. But there's a second, more powerful method using logsdash.
- 16:37Speaker 3: Yes, filebeat tas logsdash elastic search. This lets you do
- 16:41Speaker 3: more sophisticated processing in logsdash.
- 16:43Speaker 1: What changes for zke in this case timestams right.
- 16:45Speaker 2: For the logstash route.
- 16:46Speaker 3: You can figure a zeke jets an output again, but
- 16:48Speaker 3: this time use ISOSO eight six to oh one time stamps.
- 16:51Speaker 3: The more standard yy y y m M d d
- 16:53Speaker 3: t h m s SC's format set that in.
- 16:56Speaker 1: Local dot z and logstash needs configuring to receive from
- 16:59Speaker 1: filebeats exactly.
- 17:00Speaker 3: You edit pipelines dot mL to define the pipeline maybe
- 17:02Speaker 3: tweet logstash dot mL.
- 17:04Speaker 2: The core is a new config file, say zke dot com.
- 17:06Speaker 1: Well goes in zeke dot com.
- 17:07Speaker 3: An input section using the beats plugin listening on a
- 17:10Speaker 3: port like five thousand and one. Then filter plugins, remove headers,
- 17:15Speaker 3: parse json, use the date filter for the isotimestamp. Crucially,
- 17:19Speaker 3: add the geop filter for location data. Maybe translate constate codes.
- 17:23Speaker 3: You take field types, rename fields.
- 17:25Speaker 2: Lots of power.
- 17:26Speaker 3: There finally an output section pointing to elastic search.
- 17:29Speaker 1: So filebeat needs to send to logstash port five thousand
- 17:32Speaker 1: and one instead of elastic Search.
- 17:34Speaker 3: Correct change the output section and filebeat dot aml from
- 17:37Speaker 3: elastic search to logstash, specifying hosts Localhost dot five zero
- 17:42Speaker 3: zero one, test the config, restart everything.
- 17:44Speaker 1: Then in cabana, create a logfash index pattern yep.
- 17:48Speaker 3: And now, because logstash added the goip data, you can
- 17:51Speaker 3: build visualizations like coordinate maps showing traffic origins. The guide
- 17:55Speaker 3: also adds a good troubleshooting tip. If data isn't showing upright,
- 17:59Speaker 3: sometimes delete it and recreating the index pattern in kipana
- 18:02Speaker 3: fixes it.
- 18:02Speaker 1: Okay, Zeke is logging, elk is processing and visualizing, but
- 18:06Speaker 1: Zeke isn't really alerting yet. Is it just logging connections
- 18:09Speaker 1: each TTP, et cetera. We need signatures for active.
- 18:11Speaker 3: Detection, exactly signatures. Tell Zeke hey, if you see the
- 18:15Speaker 3: specific pattern, generate a notice. It moves Zeke from passive
- 18:20Speaker 3: observation to active alerting.
- 18:22Speaker 1: The guide points to installing signatures from GitHub.
- 18:25Speaker 3: Yes, there's a repository linked you get clone it, then
- 18:28Speaker 3: run and install dot Sher script provides this copies the
- 18:32Speaker 3: signature files into the right place in your Zeke installation
- 18:36Speaker 3: op zeek share Zeke site.
- 18:37Speaker 1: Usually important warning from the guide here back up your
- 18:40Speaker 1: existing site directory.
- 18:41Speaker 3: First, absolutely crucial, especially local dot Zeke. That install script
- 18:46Speaker 3: might overwrite your local customizations if you're not careful.
- 18:49Speaker 2: Back up first.
- 18:49Speaker 1: The guide then lists like forty eight example signatures from
- 18:53Speaker 1: that repo.
- 18:53Speaker 3: That's a lot it is, and it briefly explains each one.
- 18:56Speaker 3: Some are basic canfig checks, make sure certain scripts are
- 18:59Speaker 3: loaded and Jason logging is on. Others are more detection focused,
- 19:03Speaker 3: like what scan detection, YEP scan dot seek also detect
- 19:06Speaker 3: trace route detecting vulnerable software advertised by servers, noticing when
- 19:11Speaker 3: software versions change unexpectedly, finding Windows, reverse shells, sequel injection attempts.
- 19:16Speaker 1: Wow, okay, it looks really comprehensive. Signatures for specific protocols FTP, SMTP, SSH,
- 19:23Speaker 1: HTTP detecting web apps.
- 19:25Speaker 3: Tracking known good hosts and services, validating SSL SERTs, detecting
- 19:29Speaker 3: SSH brute forcing, flagging interesting host name.
- 19:32Speaker 1: Hashing all transmitted files, detecting non malicious file hashes. MHR
- 19:37Speaker 1: heart bleed detection.
- 19:38Speaker 3: Even yeah, the heart bleed one comes with the performance warning,
- 19:41Speaker 3: though it's intensive. Also asset tracking, VLNMIC logging, spotting, clear text,
- 19:46Speaker 3: HTTP basic.
- 19:47Speaker 1: Off, and the tour detection we talked about.
- 19:49Speaker 3: DDP scans, detecting web directory modifications, more, SSH attack detection,
- 19:54Speaker 3: a whole data exfiltration detection.
- 19:56Speaker 1: Framework, CRYPTO minding detection, DNS tunneling, RP.
- 20:00Speaker 3: Monitoring, SMTT analysis, DNS zone transfer attempts looking for potential
- 20:05Speaker 3: credit card numbers, and plaintext with a redaction option thankfully,
- 20:08Speaker 3: FTP brute force HTTP stalling attacks, general HTTP impacts, finding
- 20:13Speaker 3: passwords sent over clear HTTP.
- 20:15Speaker 2: It's a really solid starting set.
- 20:16Speaker 1: Okay signature is installed. Any zke reconfiguration needed.
- 20:19Speaker 2: The guide mentions two things.
- 20:21Speaker 3: One ad port ninety fifty CCP towards default to the
- 20:26Speaker 3: sl ports set in Zeke's SSL canfig. This helps Zke
- 20:30Speaker 3: analyze encrypted tour traffic.
- 20:31Speaker 1: Makes sense.
- 20:32Speaker 3: The other an option in theh GTP canfig to actually
- 20:34Speaker 3: capture passwords sent via basic authentication. The guide mentions it exists,
- 20:39Speaker 3: but rightly avoids recommending turning it on in production. Logging
- 20:42Speaker 3: plaintext passwords bad.
- 20:44Speaker 1: Idea, very bad idea. Okay, signatures are in Zeke potentially tweaked.
- 20:48Speaker 1: How do we see the alerts?
- 20:50Speaker 2: After any config change.
- 20:51Speaker 3: You go to Zeke's bin directory, run dot ZULC install
- 20:54Speaker 3: them the Z two hell deploy. This loads the new
- 20:57Speaker 3: config and restart zke. Check status with ztail status.
- 21:01Speaker 1: And the alerts themselves appear where an elk.
- 21:03Speaker 2: Primarily in the notice dot log.
- 21:05Speaker 3: That's where Zeke writes these alerts generated by the signatures.
- 21:08Speaker 3: So in Kibana you'd filter for logit dot notice or
- 21:11Speaker 3: look for the notice dot log source file if using
- 21:13Speaker 3: filebeat modules.
- 21:14Speaker 1: The guide gives examples like seeing an nmap scan alert.
- 21:17Speaker 3: Yeah, or alerts about large file transfers happening after hours,
- 21:20Speaker 3: you'd see the show up as documents in qubana source
- 21:23Speaker 3: from notice dot log. And of course you can still
- 21:25Speaker 3: tail dh fndice dot log on the Zke box itself and.
- 21:28Speaker 1: The concrete example analyzing tour traffic we generated earlier.
- 21:32Speaker 3: Right start Zeke, fire up the Tor browser, visit some sites,
- 21:36Speaker 3: then check notice dot log in cabana. You should see
- 21:39Speaker 3: notices pop up. What kind of notices things like ipoddress
- 21:43Speaker 3: identified using Tor based on unique SSL certificate characteristics. Tour
- 21:47Speaker 3: uses often followed by SSL invalid server start notices, possibly
- 21:52Speaker 3: referencing the same certificate fingerprint.
- 21:54Speaker 1: And the guide even shows how to double check if
- 21:55Speaker 1: an IP was a tour relay using the tor Project's
- 21:59Speaker 1: exonerator website.
- 22:00Speaker 3: Yep metrics dot tourproject dot org exonerator dot html. You
- 22:04Speaker 3: put in the ipn date, it tells you if it
- 22:06Speaker 3: was a known relay, then really closes the loop on
- 22:08Speaker 3: verifying the alert.
- 22:09Speaker 1: So this shows the signatures working actively flagging specific potentially
- 22:14Speaker 1: risky traffic exactly.
- 22:15Speaker 3: It turns Zeke into a much more proactive defense tool.
- 22:18Speaker 1: Okay, nearly there. The guide finishes with a quick look
- 22:21Speaker 1: at Kubana dashboards.
- 22:22Speaker 3: Yeah, just emphasizing that Kubana is where you bring it
- 22:24Speaker 3: all together visually. You create custom visualizations geoheat maps showing
- 22:29Speaker 3: where traffic comes from, goes to top talkers on the network,
- 22:33Speaker 3: top applications used, top destinations, maybe track misbites for network health,
- 22:38Speaker 3: total data volume, and crucially summaries and trends of the
- 22:42Speaker 3: notices Zeke generated.
- 22:44Speaker 1: And you combine these onto a dashboard right.
- 22:46Speaker 3: Arrange them all into one screen to create your custom
- 22:48Speaker 3: SIME dashboard gives you that single pane of glass view
- 22:51Speaker 3: of your network security posture built with these open source tools.
- 22:54Speaker 1: Wow. Okay that was a lot, but incredibly useful. We've
- 22:58Speaker 1: gone from installings Zeke, understanding Tour, setting up the whole
- 23:02Speaker 1: ELK stack, processing logs, and now actively detecting threats with
- 23:06Speaker 1: signatures and visualizing it all.
- 23:08Speaker 2: It's a powerful combination.
- 23:09Speaker 3: You really do get a foundational grasp of building this
- 23:12Speaker 3: kind of open source IDM set up from the guide,
- 23:15Speaker 3: Understanding Zeke, integrating with ELK, leveraging signatures like the Tour detection, it's.
- 23:21Speaker 1: All there and for you listening, the learner. We hope
- 23:24Speaker 1: this deep dive hit that sweet spot thorough but also
- 23:27Speaker 1: you know, digestible, giving you those connections, those aha moments
- 23:31Speaker 1: without getting totally lost in the weeds. Yeah.
- 23:33Speaker 3: The goal is to show you can get really well
- 23:34Speaker 3: informed about network monitoring using these free tools. It's not
- 23:38Speaker 3: just for big companies with huge budgets. This guide provides
- 23:41Speaker 3: a fantastic shortcut.
- 23:42Speaker 1: Absolutely. So here's a final thought to chew on something
- 23:45Speaker 1: building on this, How could the kind of visibility you
- 23:48Speaker 1: get from this setup, seeing graffic flows, seeing alerts, how
- 23:52Speaker 1: could that actually shape your organization's security policies, or improve
- 23:57Speaker 1: how you respond when an incident does happen.
- 23:59Speaker 2: That's the you'll pay off.
- 24:00Speaker 3: We'd definitely encourage you to dig deeper into Zeke's features,
- 24:04Speaker 3: explore more of Kebana's visualization power, and maybe just maybe
- 24:09Speaker 3: think about writing your own Zeke signatures, tailored specifically to
- 24:13Speaker 3: your network's unique risks and normal traffic patterns. That's where
- 24:16Speaker 3: it gets really powerful.