Lion Cipher Lab

Summarize a packet capture with a local LLM — then verify every claim it makes

Why it matters

A raw packet capture is thousands of packets no human wants to scroll through, and the first question on any incident is the boring one: what actually happened on this wire — who talked to whom, over what, and where did it reach out? A language model can turn a capture into a readable paragraph in seconds, which is genuinely useful for a first-pass triage or a shift handover. The trap is believing it. A model — especially a small one you run for free on your own laptop — will confidently invent a conversation that never happened, misread a port, and hallucinate a DNS name that is nowhere in…

What you'll learn

Steps in this lab

  1. Why extract-then-summarize beats dumping raw packets
  2. Install Wireshark and tshark
  3. Install Ollama and a small local model
  4. Capture your own benign traffic to a pcap
  5. Extract structured features with tshark -z (never raw packets)
  6. Summarize the extract with the local model
  7. Verify every claim against the pcap and catch a hallucination
  8. Measure the hit rate — don't just vibe-check it
  9. The capture is untrusted input — watch for prompt injection
  10. When an LLM summary helps, when it must not — and the pro move

Open the full interactive lab →