CYBER LIBRARY
Explore the bootcamp
Evidence & investigationIntermediate

tcpdump

Capture or inspect packets from a command-line environment.

3 min readUpdated 12 Oct 20264 connections
Markdown

The idea

tcpdump is a command-line packet capture and inspection tool. It supports capture expressions and can write packets for later analysis. Collection requires suitable authorization and privileges, and the chosen interface and filter determine visibility. Set a controlled output location and manage file size, retention, and sensitive data. The printed summary does not replace the underlying capture when detailed analysis is needed.

In practice

A team collects a limited approved troubleshooting capture on the relevant interface and later examines the stored file in Wireshark.

A common misunderstanding

Collecting on the wrong interface or with an overly narrow filter can produce a misleadingly empty result.

Check your understanding

What should be agreed before a capture?

Think it through: Purpose, scope, interface, filter, duration, storage controls, and who may access the resulting data.

Capture selection and later filtering differ

A capture filter determines which packets are retained during collection. Packets excluded then cannot be recovered by changing a display or analysis filter later. Keep the collection question, authorized scope, interface, and expected traffic in mind before choosing a filter. An overly narrow expression can remove context needed to interpret the conversation.

Document capture duration, timestamp settings, packet-length limits, and reported drops. A truncated packet may preserve headers while omitting payload needed for later analysis. Capturing from the wrong interface can produce an apparently quiet file even when the service is active elsewhere. Tool output should be interpreted alongside the collection environment.

A fictional DNS troubleshooting capture

A learner receives approval to examine a training host's name-resolution behavior. They collect a short, bounded sample or use a prepared capture, then compare queries and responses. The analysis records the relevant addresses, names, timing, and errors without assuming every query resulted in a later web connection.

Traffic can contain sensitive information, including material unrelated to the original question. Protect capture files and share only the appropriate scope. A command-line tool being easy to start does not establish permission to monitor a shared network. Use official documentation for the syntax supported by the installed version.

Plan before running

Write a collection plan for a fictional local training service: the question, interface, time window, intended filter, file destination, and stop condition. State one important observation the plan might miss. Then inspect a provided sample and document the packet references that support your conclusion. This is more reproducible than pasting a terminal screenshot with no explanation of how the traffic was selected.

Keep exploring

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

Wireshark User’s GuideThe tcpdump project: maintained manual source
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

4 notes · 6 connections
100%
tcpdump · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (4)
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.