Building zeek analytics for hunting

From meltedinhex/analyst-ai-pack · View interactive version

Building zeek analytics for hunting is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Builds Zeek-based network hunting analytics by writing scripts and analyzing Zeek logs (conn, dns, http, ssl, files) to surface long connections, rare JA3s, suspicious downloads, and beaconing. Activates for requests to build Zeek analytics, write a Zeek hunting script, or analyze Zeek logs for thre

How to use this skill

Skill file

Building Zeek Analytics for Hunting

When to Use

analytics: long-lived connections, rare JA3 fingerprints, suspicious file downloads, and

beaconing.

Do not use Zeek to actively probe hosts — it is passive analysis of captured/sensor traffic.

Prerequisites

Workflow

Step 1: Analyze a Zeek log for anomalies

python scripts/analyst.py analyze conn.log --kind conn

For conn, surfaces long-duration and high-byte connections; for ssl, counts JA3 rarity; for

http, flags executable/script downloads and rare user-agents; for dns, flags long/high-entropy

queries.

Step 2: Express the logic as a Zeek script (optional)

Translate a confirmed pattern into a Zeek script using the appropriate event

(connection_state_remove, ssl_established, http_reply).

Step 3: Confirm

Corroborate anomalies with destination reputation and other logs (pivot by uid).

Step 4: Operationalize

Stage the Zeek script or scheduled log query as a durable detection.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.