Lion Cipher Lab

Hunt in a Zeek conn.log: spot beaconing, exfiltration, and odd ports

Why it matters

conn.log is the backbone of network security monitoring: one tidy record per connection, for every flow that crossed the wire — encrypted or not. A SOC analyst lives in this file. The whole job of network threat hunting is reading connection metadata and asking 'is this shape normal?' — because the three most common signs of an intrusion (a beacon calling home to a command-and-control server, a big pull of data leaving to somewhere it shouldn't, and a service on a port that has no business being there) all show up as a recognisable shape in conn.log long before anyone decrypts a payload. This…

What you'll learn

Steps in this lab

  1. What conn.log is, and WHEN it's the right lens
  2. The conn.log schema, field by field
  3. Decode conn_state and the history string
  4. Here is your conn.log — read it before you hunt
  5. Hunt 1 — the beacon (regular interval, similar size)
  6. Hunt 2 — the exfiltration (huge orig_bytes outbound)
  7. Hunt 3 — the odd service/port pair
  8. Rank hosts by connection count and by bytes
  9. Confirm before you raise it — pivot to dns/http/ssl
  10. The judgment: conn.log vs Suricata, and how to do it better

Open the full interactive lab →