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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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:
- 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
- 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
인기도
- GitHub 스타
- 35k
- 순위
- #8271
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 8. 31.
댓글
- …
이 저장소의 다른 스킬
abusing-dpapi-for-credential-access
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.