SVSudhareshan V
sudhareshan@portfolio — zsh

sudhareshan@portfolio:~$ whoami

Cybersecurity Engineer

Software Developer

Researcher

sudhareshan@portfolio:~$ ls projects/

odin/ phishguard/ endpoint-firewall/ ebpf-security/ phishing-detector/

← All writing

Detection engineering

The Log Join That Silently Disabled TLS Detection

A detector that never fires isn't always a broken model — sometimes the data never reaches it. Notes on a Zeek log join bug in ODIN.

· 4 min read

  • Zeek
  • TLS
  • Debugging

In ODIN, TLS-wrapped malware detection works by looking at JA3/JA4 fingerprints from Zeek's ssl.log — no decryption involved, just the shape of the handshake. It was trained, tested, and wired into the pipeline. And on real traffic, it never fired. Not "rarely." Never.

The instinct when a detector goes quiet is to blame the model: bad threshold, distribution shift between training and live data, something statistical. I spent longer than I'd like to admit down that path before stepping back and checking the thing that's easy to assume is fine: whether the detector was actually receiving the rows I thought it was.

It wasn't. The pipeline joins Zeek's conn.log and ssl.log on a shared connection UID to attach TLS metadata to each flow. That join was silently dropping rows — not erroring, not logging a warning, just quietly returning fewer joined records than input records. Downstream, the detector was doing exactly what it was trained to do, on a dataset that had already been filtered down to near-nothing before it ever saw it.

Two things made this bug expensive rather than just annoying:

  1. It failed silently. A crash is a bug report. A join that returns 40% as many rows as it should, with no error, just looks like "traffic was quiet today."
  2. A synthetic-only test set would never have caught it. The join bug was a property of real Zeek log formatting — timing, field ordering, occasional malformed rows — that hand-built synthetic data doesn't reproduce because you already know what shape you expect the output to be.

The fix itself was small: validate the join key's presence and type before the join, and log a count of dropped rows instead of silently discarding them. The lesson I took from it was bigger — for any pipeline stage that merges or filters data, log what you removed, not just what you kept. A detector's accuracy is meaningless if you can't verify what data actually reached it.

It's also why ODIN's own docs are explicit about which detectors are validated against real captured traffic versus synthetic data only. After this bug, I didn't trust a detector's reported accuracy until I'd confirmed the data feeding it matched what I assumed it did.