Network forensics answers questions about traffic on the wire: who talked to whom, when, how much, and what did they say. Two data sources dominate practice: full packet captures (PCAP), which preserve every byte of every conversation, and NetFlow / IPFIX records, which summarize conversations into a compact log. Each has a use case; mature programs collect both.
PCAP vs NetFlow
PCAP — the full transcript
Captures every byte. You can re-derive any metadata and read the actual payload (when not encrypted). Tools: tcpdump, tshark, Wireshark, Zeek (formerly Bro).
Strengths:
- Reconstruct files transferred over HTTP, SMB, FTP
- Read DNS queries, headers, unencrypted protocols
- Replay sessions for analysis
- The gold standard for incident reconstruction
Weaknesses: enormous storage cost. A 10 Gbps link at line rate is over a petabyte per day. Encrypted traffic (TLS, QUIC) gives you metadata only.
NetFlow — the conversation log
For each "flow" (a unidirectional stream identified by 5-tuple: src IP, dst IP, src port, dst port, protocol), records start time, duration, byte count, packet count, TCP flags. No payload.
Strengths:
- 1000× smaller than PCAP for the same time window
- Trivial to store at scale — months of history are practical
- Good enough for who talked to whom questions
- Encryption-agnostic (you weren't reading the payload anyway)
Weaknesses: no payload — can't tell you what was said, only that there was a conversation.
The practical pattern: capture NetFlow for everything; capture full PCAP at strategic chokepoints (DMZ, between subnets, in front of critical services). When investigating, start with NetFlow to scope the conversation, then pull PCAP for the specific time window once you've narrowed it down.
tcpdump and Wireshark — first commands
tcpdump captures and displays packets on the command line. Wireshark is its GUI cousin — same packet decoders, with filters and protocol analysis on top. Both speak BPF (Berkeley Packet Filter) for capture filters and Wireshark display filters for analysis.
Filters worth memorizing
== not =)What you can see in encrypted traffic
Most traffic in 2026 is TLS-encrypted; you cannot read the payload. You can still see a lot of metadata:
- SNI (Server Name Indication) in the TLS ClientHello tells you which hostname the client wanted to reach. ESNI/ECH encrypted SNI is rolling out slowly; in most environments, SNI is still visible.
- JA3 / JA4 fingerprints hash the TLS handshake characteristics. They identify the client library (Chrome, Firefox, curl, Python
requests, the malware family Cobalt Strike). Surprisingly powerful for malware identification. - Timing and volume — bytes-per-second, request rate, conversation duration. Anomalies often shout in patterns alone.
- DNS queries — unless DoH/DoT, the queries themselves are unencrypted at the network layer and tell you where clients are going.
- Certificate details (issuer, validity, SAN list) when first presented — identifies the server, sometimes the operator.
The five Ws
When you analyze a network conversation in an investigation, you're answering five questions:
- Who — source IP, destination IP, with hostname resolution where possible.
- What — protocol (HTTP, SSH, SMB), and where possible, application-layer specifics (URL, file name).
- When — first/last packet timestamps, duration.
- Where — geographic / organizational origin via IP geolocation and WHOIS.
- How much — byte counts in each direction, packet counts, average rate.
An exfiltration conversation looks unusual on every dimension: a long-running session, asymmetric bytes (much more out than in), at an odd hour, to an unfamiliar destination, over a non-standard protocol or port. The five Ws make those anomalies visible.
Network forensics has two tiers of evidence. PCAP gives you everything but doesn't scale. NetFlow scales effortlessly but only gives you metadata. Real programs collect both, layered, with the metadata always available and the full packets preserved where the cost is justified.
The actual skill is reading the data. tcpdump, tshark, Wireshark, Zeek — the tools are easy to install and free. The judgment of what to look for in a forensic packet capture is what your DFIR coursework will build, and it builds on the vocabulary on this page.
References
Formatted in APA 7.
- Claise, B., Trammell, B., & Aitken, P. (Eds.). (2013). Specification of the IP Flow Information Export (IPFIX) protocol (Request for Comments No. 7011). Internet Engineering Task Force. https://datatracker.ietf.org/doc/html/rfc7011
- Davidoff, S., & Ham, J. (2012). Network forensics: Tracking hackers through cyberspace. Prentice Hall.
- Wireshark Foundation. (n.d.). Wireshark user's guide. https://www.wireshark.org/docs/wsug_html_chunked/
- Zeek Project. (n.d.). Zeek: An open source network security monitoring tool. https://zeek.org/