Skip to content

Packet Capture Tools and Evidence Collection

Packet capture records packets visible to a documented collection point.

By Reviewed by Subhrant Jha

Last updated:

Packet capture records packets visible to a collection point during a defined interval. A capture tool can preserve headers and, when visible and recorded, payload bytes. The resulting file can help answer questions about network activity, protocol behavior, and timing when the collector's observation point, settings, and limitations are known.

In network forensics, the job starts with deciding what the capture needs to establish. Collecting an exchange at an approved observation point and analyzing a saved trace are separate jobs. This lesson covers the collection decision, tool roles, file coverage, and evidence handoff. The course's saved-capture lesson takes over when the file is ready for examination.

Key terms

Observation point
Where the capture source can see traffic.
Snapshot length
The configured maximum number of bytes saved per packet, where applicable.
Capture filter
A selection that limits which packets are recorded.
Packet loss
Packets missing from the file because they did not reach or were not retained by the recorder.
Capture file
A saved record set containing observed packet data and available collection metadata.
Truncation
A stored record with fewer bytes than the original packet.

Establish the Question and Collection Scope

Write the evidence question before choosing a tool. Consider whether you need to establish that a client attempted a connection, that a service received traffic, or that the service accepted a request. Those questions have different evidence requirements. A recorder close to the client can show a connection attempt from that client. A record near the service can show what reached that point. A service log or another system record may be needed to show what the application accepted.

Identify the systems and paths in scope, the approved collection interval, and who can access the result. Ask what observation is required in each direction and whether an existing capture or service record already covers the question. Acquiring additional data on a shared network can collect unrelated traffic. Select the smallest approved collection that still answers the question and document why an existing source falls short when you need a new one.

This sketch marks one recorder’s observation scope. The location of the recording point determines which traffic it can describe.

A collection plan should name the observation point in terms another examiner can recognize. Record the device or service, interface or feed, and the part of the path it represents. Include the expected source and destination, the traffic direction, and the window when the activity matters. Distinguish a documented network diagram from what the recorder actually saw. Changes to routing, service placement, or forwarding can change the traffic that reaches a sensor without any change to the application.

Write down when collection should stop and which collateral records require restricted handling. A capture can include service requests, identifiers, or unrelated communications. The evidence record should state the approved scope and the resulting file's access restrictions. A documented decision is especially important if the available observation point is broader than the approved investigation. In that situation, resolve the scope with the case owner before collecting.

If the question concerns a past event, a new capture can document present conditions or a controlled reproduction. It cannot create a record of the original exchange. Use retained network records for the historical event and describe any later verification as a separate observation.

Network Observation Points and Evidence Scope

Compare Capture Tools and Sources

Wireshark provides a graphical interface for selecting capture settings and analyzing a saved trace. TShark offers a text-oriented way to collect or analyze packets. Dumpcap is a capture component in the Wireshark tool family. Tcpdump is another capture and inspection tool on supported systems. The tools overlap, but an examiner still has to identify the input, settings, software version, and file format that produced the exhibit. A product name gives little information about those choices.

Separate the tool that supplies an observation feed from the tool that records or reads it. An approved switch mirror can provide a copy of traffic from a configured part of the network. A network tap provides an observation feed from a particular link. A capture application records what its selected interface sees. These sources are not interchangeable. The investigator needs to know how the feed was provisioned, which directions it included, and whether it represented the entire path named in the question.

Collection records traffic from the available feed. Review uses the file that collection produced.

Endpoint capture and capture on a network feed also expose different views. An endpoint can give a close view of traffic handled by that system. A capture from network infrastructure gives the view available at that infrastructure point. Either view can be suitable when it corresponds to the event being investigated. For example, a gateway view can inform a boundary question, while an application log may answer whether a particular transaction completed. Keep those sources separate in the evidence inventory.

Choose a collection method the organization can support reliably. Consider access to the approved feed, traffic volume, the recorder's time source, file retention, and the ability to transfer evidence securely. A recurring incident may need a documented collection window and rotating files. An existing trace may already be enough to examine a known exchange. The choice follows the evidence question and the collection environment.

Record the roles explicitly. The feed determines what can be observed, the capture process determines what is saved, and the analyzer interprets the saved records. A later decoder preference can alter a displayed interpretation without changing the original file. Documenting the roles now prevents a reviewer from treating a tool's interpretation as a field recorded directly by the collection source.

Reading a Saved Capture in Wireshark

Record What Full Packet Capture Means

Full packet capture generally refers to recording packet data within a stated collection boundary. It does not mean that every packet on a network reached the recorder or that every byte was saved. Describe the observation point, interval, filtering, and snapshot length before using the term. If any of those details is unknown, say which one and explain the consequence for interpretation.

A capture filter determines which packets are eligible to enter the file during recording. A display filter selects which already saved records a viewer shows. A narrow display does not change the underlying capture. A narrow capture filter can leave the original file without traffic required for a later question. The evidence notes should make clear whether the supplied file is the original capture or a later subset made for analysis or disclosure.

A snapshot length can preserve the start of a packet while leaving later bytes unavailable for analysis. The blocks illustrate the concept rather than a capture setting.

Snapshot length is the amount of each packet that a recorder is configured to save, subject to the tool and interface. A shorter snapshot can leave a useful header while omitting later bytes. Compare the captured and original lengths recorded for an example packet when the format provides both. Keep truncation separate from packet loss. Truncation leaves an incomplete stored packet record. Packet loss can leave no corresponding record in the saved file.

The capture file format affects what collection context survives. PCAP and PCAPNG can both contain packet records. PCAPNG can store richer context, including descriptions for multiple interfaces when the writer supplies them. File extensions and formats cannot by themselves establish that timestamps are comparable or that every interface description is complete. Record tool and format, and keep interface identity attached to a finding when a file contains several observation feeds.

Avoid interpreting readable payload as a requirement for every capture question. An encrypted exchange may still expose relevant direction, timing, and connection information. A header-only file may also be suitable for a defined question about connection state. State what the saved data can support and whether the collection was configured to preserve more than that. A suitable capture answers the stated question without implying access to records or content outside the collection.

PCAP and PCAPNG Evidence

Check the Time Window and Collection Health

Compare the requested collection window with the intervals actually represented in the files. Check the first and last relevant packet records, available recorder status, and any handoff note about start, stop, interruption, or rotation. A capture file's modification time may reflect copying or storage rather than the moment of a network event. Use the recorded packet timestamp or other documented source time for event interpretation.

A recorder's clock can differ from another sensor or from an application clock. Save the original time basis and record any offset estimate separately. A difference can reflect a clock problem, network transit, buffering, or the difference between an event and when a system logged it. How closely you can order events depends on the evidence about those clocks. When two records cannot be reliably ordered, present their overlapping possible times.

A gap in the retained recording limits what can be said about that interval. It does not establish that the network was idle.

When there are multiple capture files, establish whether they are consecutive segments of one recording or independent exports. A gap may follow a process stop, retained files being overwritten, an unavailable observation feed, or a loss condition. Verify what the collector actually reported before attributing the gap to any one cause. Save the sequence and relevant configuration details so another examiner can see which portions of the requested interval were retained.

A drop count is only useful when you know what it measures. A recorder may report loss at its own capture stage while the upstream feed can have a separate coverage limit. If no drop information was recorded or handed over, report that as unknown rather than treating an absent counter as a zero. It may still be possible to document observations in the capture while declining to make a negative assertion about uncaptured traffic.

Collecting from more than one approved point can help when direction or coverage is uncertain. Before comparing counts, establish that the two files cover the same interval, record category, and measurement basis. A difference might reflect a legitimate boundary or a configuration difference. The goal of the comparison is to explain what each source can see and what remains unknown.

Capture Loss, Truncation and Visibility

Compare What Two Observation Points Can Establish

When you have two captures for one investigation, record the observation point and collection settings for each. Make a comparison table in the case notes with columns for source, time window, direction, filter, saved record length, and known gaps. Fill gaps with the word unknown and the reason. This gives a reviewer enough context to assess whether the two files should contain similar evidence.

When comparing an observed exchange across a gateway, account for the fact that each point has its own view of addressing and direction. Add an independent infrastructure record if the relationship depends on a translation, proxy handoff, or different endpoint identity. Use the timing and identifiers appropriate to that stage. Similar packet sequences at nearly the same time may suggest a match, but the evidence record should show what supports the relationship.

The two recorders have different observation points. Compare coverage before deciding whether a record missing from one file was absent from the corresponding network path.

A useful conclusion points to a concrete record and a bounded claim. If one capture contains a documented outbound request and a downstream capture covers only a brief subset of the window, report the outbound observation and the downstream limit. If a downstream capture includes the exchange at the next point, it can support a new claim about observation there. An application response or a service record can further refine what happened after the network exchange.

For a negative finding, start by asking whether the source could have seen the event. A blank result in an incomplete capture gives information about that file and search, not necessarily about the network. A defensible note names the relevant observation point, the parts of the window actually reviewed, and any filtering or missing direction that matters. It also identifies what independent evidence would answer the remaining question.

Preserve the distinction between inconsistent results and observations from different locations. A report that explains why a source-side capture and a service-side log contain different kinds of events is more reproducible than one that tries to force both into a single traffic count.

Building a Network Evidence Timeline

Preserve and Hand Off the Capture

At intake, assign a stable evidence identifier to the original capture and record who supplied it, when it was transferred, and what supplied files belong together. Record an integrity hash of the retained file. A later match verifies that two byte sequences match the recorded digest. It does not verify the collector's coverage, the capture clock, or the legal authority under which collection occurred. Preserve the accompanying collection notes alongside the original file.

Record file format, tool version if known, observation point, interface or feed, relevant date and time basis, and any restrictions described by the collector. Include the filter, snapshot length, known recording interruptions, and loss indicators when those details are available. Keep any access limits with the evidence identifier so a recipient does not infer permission from possession of a copy.

Preserve the original capture, work from an identified copy, and document how each derived exhibit was made.

Work from a controlled copy. Assign separate identifiers to derived exports and exhibits, and record how each was produced. An exhibit showing selected packets should refer to the original capture and the record references or selection criteria. If an export changes columns, timestamp presentation, or the population of included records, say so clearly. A reviewer can then check both the original record and the transformation used in the report.

Before handoff, compare the files and notes against the evidence question. Confirm that the next examiner can locate the record, identify the reported direction, understand how timestamps were read, and repeat the selection that created an exhibit. Where a setting is unknown, document which interpretation is affected. For example, missing snapshot length information may limit a statement about absent payload while leaving a finding based on a visible header unchanged.

Keep the collection and analysis notes connected. The capture answers what was present in the saved record, with the observation limits described above. Subsequent examination explains how a particular packet, sequence, or derived view supports the finding. The handoff is complete when both the source and the reasoning can be checked.

Network Evidence Intake and Provenance

What does full packet capture mean?
It describes packet recording within a specified observation point and interval. Document filtering, truncation and loss separately.
How is a capture filter different from a display filter?
A capture filter influences what is saved. A display filter selects which already saved records are shown.
Can I tell from a PCAP file that nothing happened during a time window?
Only if the required traffic could reach the recorder, the window is represented, and the file and collection settings support that claim. Document any uncertainty about filtering, loss, or coverage.

Check Your Understanding

Question 1 of 5· 0 answered
What defines which traffic could reach the recorder?

Source

  1. 1.Wireshark User’s Guide, Capture OptionsInterface, snapshot length, filter, and capture stop controls in the worked example.

Test yourself on Network Forensics with free, timed mocks.

Practice Network Forensics questions

Found this useful? Pass it along.