Cyber Research Wiki

tcpdump

A command-line packet capture and analyzer that uses libpcap to sniff, filter, display, and save network traffic in pcap/pcapng formats for security investigation and troubleshooting.

Overview

tcpdump is a long-standing, cross-platform packet analyzer for Unix-like systems and environments that provide the pcap API. It captures packets through libpcap (or Npcap on Windows), applies Berkeley Packet Filter (BPF) expressions, decodes numerous protocols, and outputs human-readable summaries or writes capture files for offline analysis. It is widely used in security and network operations for incident response, intrusion analysis, policy validation, and diagnostics. tcpdump is free software under a BSD-style license and is commonly bundled with operating systems and security distributions.

What It Is

tcpdump is a command-line packet capture tool that reads from live network interfaces or existing capture files and can write raw packet data to disk. It is built atop libpcap (or Npcap on Windows), which supplies a portable capture API and BPF-based filtering. Captures are stored in pcap or, when supported by the linked libpcap, pcapng formats, enabling interoperability with analyzers such as Wireshark.

How It Works

Core Concepts

Typical Workflow

Use Cases

Limitations

Related Tools

Evidence Gaps

Sources

Confidence

high