Skip to content

Lesson 9 of 9 · 28m

Building Defensible Evidence

Turn captures into evidence: preserve originals, annotate context, redact responsibly, quantify claims, and write conclusions that separate fact from inference.

A packet capture becomes evidence when someone else can test what you claim. That requires more than a pcap and a confident sentence. You need provenance, preservation, quantification, and language that separates observation from inference. The goal is not to sound certain. The goal is to be correct under review.

Preserve the original before analysis convenience

Immediately hash the capture and store it read-only: sha256sum incident-edge-20261129T211500Z.pcapng > incident-edge.sha256, then chmod 0444 on the original. Record the capture command, host, interface, duration, capture filter, snap length, operator, time source, and relevant ticket identifiers. In pcapng, some interface metadata is embedded, but operational context is not. Write it down while you remember.

A minimal evidence note records the capture host, interface, time range, filter, snap length, known artifacts, and clock state:

edge01/eth0, 2026-11-29 21:15-21:17 UTC, host 203.0.113.25 and tcp port 443,
snaplen 256, client-side artifacts possible, 0 capture drops, chrony offset +0.8 ms

Export focused evidence without destroying context

Use display filters to select packets, then Export Specified Packets into a working copy. Keep enough surrounding packets to explain sequence state and timing. A filtered subset containing only retransmissions is persuasive theater and bad evidence.

Use tshark -r original.pcapng -Y 'tcp.stream eq 42' -w stream-42-working-copy.pcapng for focused extraction. For long captures, editcap can split time ranges and mergecap can combine synchronized endpoint captures. Keep originals untouched.

Quantify instead of adjectivizing

"Lots of retransmissions" is not analysis. Rate, direction, affected streams, and timing are analysis.

tshark -r original.pcapng -q -z io,stat,60,'COUNT(tcp.analysis.retransmission)tcp.analysis.retransmission'

tshark -r original.pcapng -Y tcp.analysis.retransmission   -T fields -e tcp.stream | sort | uniq -c | sort -nr | head

Now you can write that 4.8% of client-to-server data packets retransmitted across 12 of 310 streams between 21:15:31 and 21:16:05 UTC. That sentence can be checked.

Annotate hypotheses and alternatives

Good packet reports distinguish observation, inference, alternative explanations, and the next test. For example: the client retransmitted a segment at +248 ms (observation), so it did not receive a timely ACK (inference), but the ACK may have been delayed, lost, or omitted by capture (alternatives); compare a simultaneous server capture (next test). This prevents treating a plausible mechanism as a proven one.

Redact deliberately

Captures often contain private data: DNS names, usernames, plaintext cookies, internal addressing, or mishandled TLS key logs. Truncating payloads often preserves more behavior than anonymizing everything, but verify the result; careless anonymization destroys exactly the evidence needed. Never redistribute a capture just because it is technically possible.

Write the conclusion to the decision

The end user of your evidence is often deciding whether to escalate to a network team, application team, vendor, or ISP. Give them the narrowest defensible statement:

The application server completed TCP handshakes in 38-45 ms, but responses
began exactly 10 seconds after requests in 94% of failing streams. Retransmission
rate stayed below 0.1%, and no resets appeared before response. Evidence points
to a server-side timeout after request acceptance, not packet loss.

That is actionable because it says what was observed, what was ruled out, and where investigation should go next.

Field notes

  • Screenshots are communication aids, not evidence; include the file hash and reproducible filters.
  • Wireshark color rules are personal configuration, not proof.
  • Do not trim so aggressively that the TCP handshake and connection metadata disappear.
  • If the capture itself dropped packets, state that in the first paragraph — it changes what absence can mean.
  • Time-box analysis. A focused question plus one clean capture beats indefinite wandering through an enormous file.

Was this lesson helpful?

Sign in to rate