meltedinhex/analyst-ai-pack / skills/building-zeek-analytics-for-hunting
building-zeek-analytics-for-hunting
VerifiedBuilds 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.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.6 KB |
| references/api-reference.md | markdown | 1.3 KB |
| scripts/analyst.py | script | 3.9 KB |
references/api-reference.md
View on GitHub# API Reference: Building Zeek Analytics for Hunting
## Overview
`scripts/analyst.py` parses Zeek logs (TSV `#fields` header or JSON-lines) and surfaces anomalies per
log kind: long/large connections (conn), JA3 rarity (ssl), executable/script downloads and rare
user-agents (http), and long/high-entropy queries (dns). It parses logs only and executes nothing.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | math, json, Counter, file IO |
## Core functions
### `analyze(path, kind)`
Dispatches to per-kind anomaly logic and returns the findings.
### `_read_zeek(path)`
Parses Zeek TSV (via `#fields`) or JSON-lines into row dicts.
## Per-kind output
- **conn**: top long-duration/high-byte connections (`uid`, `id.resp_h`, `duration`).
- **ssl**: rare JA3 fingerprints.
- **http**: executable/script downloads and rare user-agents.
- **dns**: long or high-entropy queries.
## Usage
```bash
python scripts/analyst.py analyze conn.log --kind conn
python scripts/analyst.py analyze ssl.log --kind ssl
```
## Sources
- Zeek documentation (scripts, events) — https://docs.zeek.org/
- Zeek log formats (conn/dns/http/ssl fields, `uid` pivot) — https://docs.zeek.org/en/master/logs/index.html
- JA3 fingerprinting and long-connection hunting from public network-analytics practice
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |