——
LabLABS

Read your first packet capture with Wireshark

Capture a small, authorised traffic sample and turn DNS, TCP, TLS, and timing into a defensible explanation.

For beginners using their own workstation or an isolated lab network.

WiresharkPCAPNetwork

Start with the situation, not the slogan

This lab is designed to produce evidence and judgement, not a ceremonial screenshot of a tool running. Read your first packet capture with Wireshark is successful when you can explain the question, predict the expected observation, collect it safely and distinguish a useful result from noise. The commands are the least interesting part, although they are traditionally the part everyone photographs.

Use systems you own or have explicit permission to test. Keep the exercise isolated from household, client and production networks, take a snapshot before deliberate breakage, and write the rollback step before the first change. A lab without a reset path is simply a future troubleshooting appointment.

Packet data shows network conversations, not user intent. The exercise teaches how to move from broad capture to a small set of relevant flows without overclaiming.

How this usually reaches the desk

Set one modest objective for the session. Begin with the expected clue: A known DNS lookup, TCP connection, and TLS session appear in the capture. Then create or collect only enough benign activity to make that clue visible. If the observation does not appear, investigate the data path before adding more tools. Instrumentation that cannot see a known test event will not become more perceptive during a real incident.

This scenario combines common operational patterns; it is not presented as a report of one named incident.

What to look for

Begin with preserved, comparable evidence. One signal is rarely proof; use independent observations and a reliable timeline before declaring scope or intent.

01

A known DNS lookup, TCP connection, and TLS session appear in the capture.

Write the expected observation before the exercise. Include the source, destination, time and field that should carry it; this turns an interesting screen into a falsifiable test.

02

Display filters reduce the view without changing the underlying capture file.

Confirm that clocks, names and identifiers line up across the lab. Time drift and ambiguous hostnames can turn three tidy events into an accidental detective novel.

03

Timestamps, endpoints, ports, protocol fields, and packet relationships support the narrative.

Keep a known-good comparison. The aim is not merely to produce an alert or packet, but to explain how the test differs from ordinary activity and where false positives would arise.

Run it, read it, decide what changes

These examples use documentation addresses, test identities and bounded targets. Replace placeholders only inside systems you own or are explicitly authorised to operate. Read the expected result and next action before running the command; a successful command is evidence, not yet a conclusion.

Example 01

Capture a small DNS sample

tsharkLinux, macOS or Windows
Prerequisites
Permission to capture on the selected interface and a deliberate test lookup.
shell
tshark -D
sudo tshark -i 1 -f "udp port 53" -a duration:30 -w dns-test.pcapng
Expected result

The first command lists interfaces; the second writes a 30-second DNS-only capture.

How to interpret it

No packets can mean the wrong interface, encrypted DNS, no test traffic or insufficient permission—not a clean network.

Next action

Run one known lookup during the window, hash the capture, and open a copy with the display filter `dns`.

Example 02

Summarise conversations without opening payloads

tsharkAny supported platform
Prerequisites
A preserved PCAP copy.
shell
tshark -r dns-test.pcapng -q -z conv,ip
tshark -r dns-test.pcapng -Y "dns.flags.response == 1"   -T fields -e frame.time -e ip.src -e dns.qry.name -e dns.a
Expected result

The first view summarises IP conversations; the second prints DNS responses and selected fields.

How to interpret it

Missing fields depend on protocol, IPv6 and packet structure. A name resolution is not proof that an application connected to the returned address.

Next action

Correlate with endpoint process telemetry and preserve the original capture unchanged.

Example 03

Verify a display filter before using it in a case

Wireshark or tsharkAny supported platform
Prerequisites
A known-good PCAP containing the test traffic.
shell
tshark -r dns-test.pcapng -Y "dns && ip.addr == 192.0.2.10" -c 5
Expected result

Up to five matching packets are printed; no output means the filter matched nothing.

How to interpret it

A syntactically valid filter can still select the wrong host or omit IPv6 traffic.

Next action

Add a known test packet, document the filter and expected count, then apply it to the working copy of case evidence.

Lab procedure

Read the whole sequence before starting. Several workstreams may run in parallel, but their evidence, authority and expected outcomes still need to be explicit. Every step below points back to a concrete example; use the example as implementation evidence, not as permission to operate outside the stated scope.

  1. 01

    Select only the authorised interface and close applications that would add unrelated personal traffic.

    Record the topology, versions, addresses, accounts and snapshots used for this run. Reproducibility starts with knowing which machine was actually on the screen.

    Working example 01: Capture a small DNS sample — tshark on Linux, macOS or Windows.

  2. 02

    Start a short capture, perform one documented web request to a test destination, then stop immediately.

    Make one controlled change or generate one benign event, then observe the result before continuing. Small steps preserve causality and make rollback considerably less theatrical.

    Working example 02: Summarise conversations without opening payloads — tshark on Any supported platform.

  3. 03

    Filter DNS first, identify the returned address, then follow the related TCP and TLS conversation.

    Capture raw evidence before filtering or transforming it. Save the query, filter or rule beside the result so a second run can challenge the first.

    Working example 03: Verify a display filter before using it in a case — Wireshark or tshark on Any supported platform.

  4. 04

    Record what the capture proves and what encryption prevents you from seeing.

    Introduce one negative or boundary case. A detection that fires on everything is technically energetic but operationally similar to a smoke alarm mounted above a toaster.

    Working example 01: Capture a small DNS sample — tshark on Linux, macOS or Windows.

  5. 05

    Save the original capture read-only and export a filtered copy for notes or sharing.

    Return the environment to its baseline, compare outcomes with the written expectation and note what would need to change before using the technique on managed systems.

    Working example 02: Summarise conversations without opening payloads — tshark on Any supported platform.

Operational judgement

Keep a lab notebook with four columns: time, action, expected evidence and observed evidence. Add screenshots only when they preserve information that text cannot. The notebook should allow another person to repeat the exercise without inheriting your browser history, shell history and particular relationship with luck.

The transfer-to-production question matters more than the demo. For Wireshark, PCAP and Network, consider data volume, retention, credentials, privacy, performance, ownership and failure behaviour. A successful lab proves that a mechanism can work under stated conditions; it does not prove that it can be deployed everywhere before lunch.

Make the result useful to the next person

Turn the exercise into a reusable lab card. Record the learning objective, isolation boundary, diagram, versions, seed data, expected observations, exact queries, screenshots that add real information, and the reset procedure. Mark which evidence was generated and which was supplied. If the lab uses a deliberately vulnerable image or sample, store its provenance and checksum. Future-you is a different operator and deserves better documentation than “it worked after I restarted something”.

End with a short teach-back. Explain why “Select only the authorised interface and close applications that would add unrelated personal traffic.” matters, demonstrate the observation that supports the conclusion, and show how the environment returns to baseline after “Save the original capture read-only and export a filtered copy for notes or sharing.” Then name one production assumption the lab did not test. That last sentence keeps a useful experiment from turning into unjustified confidence and gives the next exercise a sensible place to begin.

Validate before you close

Repeat the request and confirm the expected protocol sequence. Another analyst should be able to apply your filters and reach the same limited conclusion.

Capture the test, the expected result and the observed result. Where a person or business owner must accept restored service, name them in the record. A green dashboard can confirm that a component is answering; it cannot confirm that invoices, identities or restored data are trustworthy.

Finish with a compact closure note: the original trigger, confirmed scope, evidence retained, controls changed, tests passed, known gaps, residual risk, and the people responsible for the remaining work. Schedule a review while the timeline is still fresh enough to challenge. The purpose is not to find a person to blame; computers already perform blame with admirable efficiency. The purpose is to make the next response faster, safer and less dependent on one person remembering where the useful log was hidden.

Common mistakes

  • Connecting an intentionally weak lab directly to a home or production network.
  • Copying commands without recording the expected evidence and rollback step.
  • Calling a test successful without comparing the result to a known-good baseline.

These errors usually come from haste, unclear ownership or misplaced confidence. Build the safeguard into the runbook: a required evidence field, a second-person review, a rollback test or a specific exit criterion.

Questions people ask when the clock is running

Can I run this against a public target for practice?

No. Keep the work to systems you own or are explicitly authorised to assess. An educational intention is not an access-control mechanism and will not improve the conversation with a provider or solicitor.

What should I save from the exercise?

Keep the topology, versions, raw evidence, exact filters or rules, expected result, observed result and rollback notes. Remove real secrets and personal data before sharing the notebook.

How do I know the lab worked?

Repeat the request and confirm the expected protocol sequence. Another analyst should be able to apply your filters and reach the same limited conclusion. Repeat the key observation from a clean snapshot; repeatability is a stronger result than a single attractive screenshot.

Safety boundary

Use these steps only on systems you own or are explicitly authorised to assess. Preserve evidence, follow your organisation’s legal and regulatory obligations, and prefer reversible actions when the situation is not yet understood.

Primary references

  1. Wireshark User’s GuideWireshark Foundation
  2. Display Filter ReferenceWireshark Foundation

Editorial status: first edition. Review the linked vendor documentation for product- and version-specific changes before acting.