Deploy Zeek network security monitor to capture, parse, and analyze network traffic metadata for threat detection, anomaly identification, and forensic investigation. Use when deploying zeek network security monitor to capture, parse, and analyze.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
The command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
Showing SKILL.md
SKILL.md
Source instructions · Read-only preview
name
performing-network-traffic-analysis-with-zeek
description
Deploy Zeek network security monitor to capture, parse, and analyze network traffic metadata for threat detection, anomaly identification, and forensic investigation. Use when deploying zeek network security monitor to capture, parse, and analyze.
Zeek (formerly Bro) is an open-source network analysis framework that operates as a passive network security monitor. Unlike traditional signature-based IDS tools, Zeek generates high-fidelity structured logs from observed network traffic, capturing detailed metadata for protocols including HTTP, DNS, TLS, SSH, SMTP, FTP, and dozens more. Zeek's extensible scripting language enables custom detection logic, behavioral analysis, and automated response. This skill covers deploying Zeek, understanding its log architecture, writing custom detection scripts, and integrating outputs with SIEM platforms.
When to Use
Trigger phrases:
"performing network traffic analysis with zeek"
"Deploy Zeek network security monitor to capture, parse, and analyze network traf"
When conducting security assessments that involve performing network traffic analysis with zeek
When following incident response procedures for related security events
When performing scheduled security testing or auditing activities
When validating security controls through hands-on testing
Prerequisites
Linux server (Ubuntu 22.04+ or CentOS 8+) with 4+ CPU cores and 8GB+ RAM
Network TAP or SPAN port mirroring configured for traffic capture
Zeek 6.0+ installed (via package manager or source compilation)
Root or capture group privileges for packet capture
SIEM platform (Splunk, ELK Stack, or QRadar) for log ingestion
Core Concepts
This section covers core concepts for performing network traffic analysis with zeek.
Ensure all prerequisites are met before proceeding
Follow the documented workflow steps in sequence
Record results and any anomalies encountered during this phase
Zeek Architecture
Zeek operates in two main modes:
Live Capture - Monitors traffic in real-time on one or more network interfaces
Offline Analysis - Processes saved PCAP files for retrospective analysis
The processing pipeline consists of:
Packet Capture Layer - Reads raw packets from interfaces or PCAP files
Event Engine - Reassembles TCP streams and generates protocol events
Script Interpreter - Executes Zeek scripts that process events and generate logs
- Writes structured logs in TSV, JSON, or custom formats
Log Framework
Log Architecture
Zeek generates protocol-specific log files:
Log File
Description
conn.log
TCP/UDP/ICMP connection summaries with duration, bytes, state
dns.log
DNS queries and responses with query type, answers, TTL
http.log
HTTP requests/responses with URIs, user agents, MIME types
ssl.log
TLS handshake details including certificate chain, JA3/JA3S
files.log
File transfers with MIME types, hashes (MD5, SHA1, SHA256)
notice.log
Alerts generated by Zeek detection scripts
weird.log
Protocol anomalies and unexpected behaviors
x509.log
Certificate details from TLS connections
smtp.log
Email metadata including sender, recipient, subject
ssh.log
SSH connection details and authentication results
pe.log
Portable Executable file metadata
dpd.log
Dynamic Protocol Detection failures
Workflow
Scope the task — define objectives, boundaries, and success criteria
Gather information — collect all necessary data and context before proceeding
Execute the core workflow — follow the domain-specific steps methodically
Validate results — verify outputs against expected outcomes or baselines
Document findings — record results, anomalies, and recommendations
Intel file format (/opt/zeek/intel/malicious-ips.intel):
#fields indicator indicator_type meta.source meta.desc meta.do_notice
198.51.100.50 Intel::ADDR abuse.ch Known C2 server T
203.0.113.100 Intel::ADDR threatfeed Ransomware infrastructure T
Step 5: Deploy and Operate
# Deploy Zeek clustersudo /opt/zeek/bin/zeekctl deploy
# Check cluster statussudo /opt/zeek/bin/zeekctl status
# Process offline PCAP
zeek -r capture.pcap local.zeek
# View logscat /opt/zeek/logs/current/conn.log | zeek-cut id.orig_h id.resp_h id.resp_p proto service duration orig_bytes resp_bytes
# Search for specific connectionscat /opt/zeek/logs/current/dns.log | zeek-cut query answers | grep -i "suspicious"# Rotate logssudo /opt/zeek/bin/zeekctl cron