Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính35k · #8271

performing-network-traffic-analysis-with-zeek

Skill này làm gì

Zeek là chương trình theo dõi lưu lượng mạng của máy tính và tạo báo cáo chi tiết về những gì đang xảy ra. Nó giúp nhận diện các hoạt động đáng ngờ hoặc sự cố mạng.

Khi nào nên dùng

  • ✓Khi bạn cần giám sát bảo mật mạng theo thời gian thực.
  • ✓Khi điều tra một sự cố bảo mật hoặc hoạt động bất thường.
  • ✓Khi thực hiện các đợt kiểm toán bảo mật và kiểm tra kiểm soát.

Liên kết skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-network-traffic-analysis-with-zeek/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-network-traffic-analysis-with-zeek/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân tích lưu lượng mạng của tôi và cho biết có điều gì đáng ngờ không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Zeek quan sát các gói dữ liệu di chuyển trên mạng. Nó hiểu các loại giao tiếp khác nhau (như duyệt web hoặc email) và tạo nhật ký có cấu trúc với thông tin chi tiết về từng kết nối và giao thức.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Performing Network Traffic Analysis with Zeek

Overview

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

  • 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

Zeek Architecture

Zeek operates in two main modes:

  1. Live Capture - Monitors traffic in real-time on one or more network interfaces
  2. 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
  • Log Framework - Writes structured logs in TSV, JSON, or custom formats

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

Step 1: Install and Configure Zeek

# Install Zeek on Ubuntu
sudo apt-get install -y zeek

# Or install from Zeek repository
echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/ /' | \
    sudo tee /etc/apt/sources.list.d/zeek.list
sudo apt-get update && sudo apt-get install -y zeek-lts

# Verify installation
zeek --version

Configure the node layout in /opt/zeek/etc/node.cfg:

[manager]
type=manager
host=localhost

[proxy-1]
type=proxy
host=localhost

[worker-1]
type=worker
host=localhost
interface=eth0
lb_method=pf_ring
lb_procs=4

[worker-2]
type=worker
host=localhost
interface=eth1
lb_method=pf_ring
lb_procs=4

Configure network definitions in /opt/zeek/etc/networks.cfg:

# Internal network ranges
10.0.0.0/8         Private RFC1918
172.16.0.0/12      Private RFC1918
192.168.0.0/16     Private RFC1918

Step 2: Configure Logging and Output

Edit /opt/zeek/share/zeek/site/local.zeek:

# Load standard detection scripts
@load base/protocols/conn
@load base/protocols/dns
@load base/protocols/http
@load base/protocols/ssl
@load base/protocols/ssh
@load base/protocols/smtp
@load base/protocols/ftp

# Load file analysis
@load base/files/hash-all-files
@load base/files/extract-all-files

# Load detection frameworks
@load base/frameworks/notice
@load base/frameworks/intel
@load base/frameworks/files
@load base/frameworks/software

# Load additional protocol analyzers
@load policy/protocols/ssl/validate-certs
@load policy/protocols/ssl/log-hostcerts-only
@load policy/protocols/ssh/detect-bruteforcing

…
Câu hỏi thường gặp

Nhật ký có cấu trúc (structured log) là gì?

Đây là các tệp nhật ký được tổ chức như bảng, chứa thông tin cụ thể về lưu lượng mạng, giúp việc phân tích dễ dàng hơn.

Zeek có chặn hoạt động độc hại không?

Zeek tập trung vào giám sát và tạo cảnh báo. Nó không chặn trực tiếp lưu lượng mà cung cấp thông tin để các công cụ khác hoặc quản trị viên xử lý.

Tôi có cần kiến thức kỹ thuật để dùng Zeek không?

Với việc cài đặt ban đầu và phân tích cơ bản thì có. Tuy nhiên, dữ liệu do công cụ tạo ra có thể được chuyên gia bảo mật diễn giải.

Chi tiết

Mô tả gốc của tác giả

Deploy Zeek (formerly Bro) as a passive network security monitor to generate structured logs of protocol metadata (HTTP, DNS, TLS, SSH, SMTP, FTP, and more), write custom detection scripts, and integrate outputs with SIEM platforms. Use when standing up continuous, high-fidelity network traffic monitoring for threat detection, anomaly identification, or forensic investigation beyond what raw PCAP

repo: mukul975/Anthropic-Cybersecurity-Skills

Độ phổ biến

Sao GitHub
35k
Vị trí xếp hạng
#8271
Giấy phép
Apache-2.0
Cập nhật
31/8/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự