본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트35k · #8271

performing-network-traffic-analysis-with-zeek

하는 일

Zeek는 컴퓨터의 네트워크 트래픽을 지켜보며 무슨 일이 일어나는지에 대한 자세한 보고서를 만드는 프로그램입니다. 의심스러운 활동이나 네트워크 문제를 식별하는 데 도움을 줍니다.

사용하는 경우

  • ✓네트워크 보안을 실시간으로 모니터링해야 할 때.
  • ✓보안 사고나 비정상적인 활동을 조사할 때.
  • ✓보안 감사와 통제 테스트를 하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-network-traffic-analysis-with-zeek/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 네트워크 트래픽을 분석해서 의심스러운 것이 있는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Zeek는 네트워크를 오가는 데이터 패킷을 관찰합니다. 웹 브라우징이나 이메일 같은 여러 종류의 통신을 이해하고, 각 연결과 프로토콜에 대한 자세한 정보가 담긴 구조화된 로그를 생성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

…
자주 묻는 질문

‘구조화된 로그’란 무엇인가요?

표처럼 정리된 로그 파일로, 네트워크 트래픽에 대한 특정 정보를 담고 있어 분석을 쉽게 만듭니다.

Zeek는 악의적인 활동을 차단하나요?

Zeek는 모니터링과 경고 생성에 중점을 둡니다. 트래픽을 직접 차단하지는 않지만, 다른 도구나 관리자가 조치할 수 있도록 정보를 제공합니다.

Zeek를 사용하려면 기술 지식이 필요한가요?

초기 설정과 기본 분석에는 필요합니다. 다만 이 도구가 생성하는 데이터는 보안 전문가가 해석할 수 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
35k
순위
#8271
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬