Knowledge Base · general

PCAP Analysis

generaltechnique notetechniquepcap-analysis

Reading packet captures to recover traffic, custom protocols and exfiltrated data.

How it works

  • Start with protocol hierarchy and TCP/UDP conversations to find the interesting flow.
  • Follow streams / extract objects with tshark; carve custom framing when a protocol is non-standard.
  • Check magic values, length fields and sequence numbers when the traffic is bespoke.

Detection & defence

  • Capture at the edge and retain flows for retro-hunting.
  • Baseline normal protocol mix so unusual custom protocols stand out.