zeek -hDisplays the command line help summary and available options.
A network security monitor that turns traffic into rich, structured logs of connections, DNS, HTTP, TLS and files.
brew install zeekzeek -i <interface>Starts Zeek in live capture mode listening on the specified network interface.
Example
zeek -i eth0zeek -NLists all loaded scripts, plugins, and protocol analyzers.
zeek -i <interface> localRuns Zeek on an interface loading the 'local' policy script set for standard monitoring.
Example
zeek -i eth0 localzeek -f <bpf_filter> -i <interface>Applies a BPF packet filter to limit analysis to specific traffic only.
Example
zeek -f "tcp port 80" -i eth0zeek -r <pcap> LogAscii::use_json=TForces all log files to be generated in JSON format instead of TSV.
Example
zeek -r test.pcap LogAscii::use_json=Tzeek -r <pcap> frameworks/files/extract-all-filesAutomatically extracts all files seen in the traffic to the disk.
Example
zeek -r malware.pcap frameworks/files/extract-all-fileszeek -r <pcap> frameworks/files/hash-all-filesCalculates MD5 and SHA1 hashes for all transferred files and adds them to files.log.
Example
zeek -r transfer.pcap frameworks/files/hash-all-fileszeek -s <signature_file> -r <pcap>Loads a custom signature file to detect specific payload patterns.
Example
zeek -s malware.sig -r traffic.pcapzeek -B <level> -r <pcap>Enables verbose debugging output for a specific subsystem like scripts.
Example
zeek -B scripts -r loop.pcapzeek -Q -r <pcap>Runs in quiet mode and disables the watchdog timer for processing large files.
Example
zeek -Q -r massive.pcapzeek -r <pcap> PacketFilter::default_capture_filter=<bpf>Sets the default BPF filter via script variable.
Example
zeek -r test.pcap PacketFilter::default_capture_filter="net 10.0.0.0/8"zeek -r <pcap> --report-coverageReports script coverage statistics after execution.
Example
zeek -r test.pcap --report-coveragezeek -r <pcap> misc/dump-eventsPrints every event raised during processing to stdout for script development.
Example
zeek -r sample.pcap misc/dump-eventszeek -r <pcap> protocols/ssl/validate-certsPerforms strict validation of SSL/TLS certificates and logs errors.
Example
zeek -r https.pcap protocols/ssl/validate-certszeek -r <pcap> protocols/ssh/detect-bruteforceEnables logic to detect and log SSH brute force login attempts.
Example
zeek -r ssh_attack.pcap protocols/ssh/detect-bruteforcezeek -r <pcap> protocols/smbLoads detailed SMB analyzers for parsing Windows file sharing traffic.
Example
zeek -r smb_traffic.pcap protocols/smbzeek -r <pcap> misc/capture-lossEstimates and logs packet loss percentage during the capture.
Example
zeek -r live_capture.pcap misc/capture-losszeek -r <pcap> misc/loaded-scriptsLogs the names of all scripts that were loaded during the session.
Example
zeek -r test.pcap misc/loaded-scriptszkg listLists all currently installed Zeek packages.
zkg install <package_source>Downloads and installs a Zeek package from a git repository.
Example
zkg install zeek/salesforce/ja3zkg load <package_name>Configures a package to be loaded automatically by Zeek.
Example
zkg load zeek/salesforce/ja3zeekctl deployRefreshes policy, installs scripts, and restarts the Zeek cluster.
zeekctl statusShows the operational status of all Zeek manager, logger, and worker nodes.
zeekctl stopGracefully stops all running Zeek processes in the cluster.
zeekctl diagCollects debugging information and crash dumps from nodes.
zeek -r <pcap> -e <event_handler>Executes a one-line script handler directly from the command line.
Example
zeek -r test.pcap -e 'event zeek_init() { print "Starting"; }'zeek -r <pcap> Log::default_logdir=<dir>Changes the output directory for all generated log files.
Example
zeek -r test.pcap Log::default_logdir=logs/zeek -r <pcap> LogAscii::log_extension=<ext>Changes the default file extension for generated log files.
Example
zeek -r test.pcap LogAscii::log_extension=.txtzeek -r <pcap> LogAscii::separator=<char>Changes the field separator in TSV logs (e.g., to comma).
Example
zeek -r test.pcap LogAscii::separator=","zeek -r <pcap> protocols/conn/known-servicesDetects and logs services running on non-standard ports.
Example
zeek -r test.pcap protocols/conn/known-serviceszeek -r <pcap> protocols/conn/known-hostsTracks and logs all unique IP addresses observed on the network.
Example
zeek -r test.pcap protocols/conn/known-hostszeek -r <pcap> frameworks/software/vulnerableDetects outdated software versions if a version database is provided.
Example
zeek -r test.pcap frameworks/software/vulnerablezeek -r <pcap> frameworks/intel/seenEnables the Intelligence framework to track seen indicators.
Example
zeek -r test.pcap frameworks/intel/seenzeek -r <pcap> frameworks/intel/do_noticeConfigures the Intel framework to generate notices for matches.
Example
zeek -r test.pcap frameworks/intel/do_noticezeek -r <pcap> protocols/dhcp/softwareExtracts software and OS information from DHCP requests.
Example
zeek -r dhcp.pcap protocols/dhcp/softwarezeek -r <pcap> protocols/dns/detect-external-namesDetects when local clients query external DNS names.
Example
zeek -r dns.pcap protocols/dns/detect-external-nameszeek -r <pcap> Log::default_rotation_interval=1hrSets the interval for rotating log files during long runs.
Example
zeek -r long.pcap Log::default_rotation_interval=1hrzeek -r <pcap> frameworks/packet-filter/utilsLoads utilities for compiling and installing BPF filters dynamically.
Example
zeek -r test.pcap frameworks/packet-filter/utilszeek -r <pcap> base/protocols/conn/pollingEnables polling of the connection analyzer for long-running connections.
Example
zeek -r test.pcap base/protocols/conn/pollingzeek -r <pcap> Log::enable_local_logging=FDisables local disk logging, often used when shipping logs remotely.
Example
zeek -r test.pcap Log::enable_local_logging=Fzeek -r <pcap> Log::enable_remote_logging=TEnables sending logs to a remote logger node.
Example
zeek -r test.pcap Log::enable_remote_logging=Tzeek -r <pcap> -gDumps the internal state of the script engine for debugging.
Example
zeek -r test.pcap -gkill -TERM <pid>Sends a termination signal to Zeek to ensure logs are flushed properly.
Example
kill -TERM 1234A high-performance, multi-threaded IDS/IPS and network security monitoring engine with EVE JSON logging.
A network intrusion detection and prevention system that inspects traffic in real time against a rule language.
Wireshark’s terminal version: capture and decode traffic with full dissectors and display filters, and extract fields to text.
A passive OS fingerprinting tool that identifies operating systems and clients from traffic it observes, without sending any packets.