Skip to content
Back to skills

Building Zeek Analytics For Hunting

ASecurity

'Builds Zeek-based network hunting analytics by writing scripts and analyzing Zeek logs

  • 22 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
securitypythonbashexpressgitapisecuritydocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add meltedinhex/analyst-ai-pack --skill building-zeek-analytics-for-hunting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Building Zeek Analytics For Hunting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Building Zeek Analytics For Hunting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/meltedinhex-building-zeek-analytics-for-hunting/badge)](https://www.skillsdirectory.com/skills/meltedinhex-building-zeek-analytics-for-hunting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: building-zeek-analytics-for-hunting
description: '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 threats.'
domain: cybersecurity
subdomain: threat-hunting
tags:
  - threat-hunting
  - zeek
  - network-analytics
  - ja3
  - beaconing
version: 1.0.0
author: analyst-ai-pack
license: Apache-2.0
mitre_attack:
  - T1071
  - T1095
  - T1571
d3fend:
  - D3-NTA
  - D3-NTPM
references:
  - 'Zeek documentation (scripts and logs) — https://docs.zeek.org/'
  - 'Zeek log formats (conn/dns/http/ssl) — https://docs.zeek.org/en/master/logs/index.html'
---

# Building Zeek Analytics for Hunting

## When to Use

- You have Zeek logs (conn.log, dns.log, http.log, ssl.log, files.log) and want to build hunting
  analytics: long-lived connections, rare JA3 fingerprints, suspicious file downloads, and
  beaconing.
- You want repeatable detections expressed as Zeek scripts or log-analysis queries.

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

## Prerequisites

- Zeek logs in TSV or JSON (or a running Zeek sensor). The script analyzes exported logs.

## Workflow

### Step 1: Analyze a Zeek log for anomalies

```bash
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

- The analyzer parses both TSV (`#fields`) and JSON Zeek logs.
- Surfaced anomalies match the chosen log kind's fields.
- JA3 rarity and long-connection logic are computed correctly.

## Pitfalls

- TSV header (`#fields`) parsing — column order varies by deployment.
- Backups/updates producing benign long/large connections.
- JA3 collisions across legitimate clients.

## References

- See [`references/api-reference.md`](references/api-reference.md) for the analyzer.
- Zeek docs and log-format references (linked in frontmatter).

Files in this skill

  • LICENSE340 B
  • SKILL.md2.6 KB
  • references/api-reference.md1.3 KB
  • scripts/analyst.py3.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.