Glossary termNetwork technique

Packet Sniffing

Also known as: Packet capture, Packet analysis, Network sniffing

Capturing and inspecting data packets as they travel across a network, used by administrators for troubleshooting and by attackers for eavesdropping.

Packet sniffing is the practice of intercepting and recording the individual units of data, called packets, that move across a computer network, and then examining their headers and contents. Software or hardware that does this is known as a packet sniffer or protocol analyzer. On a shared or wireless network, or at a monitoring point such as a switch mirror port, a sniffer can see traffic between other devices. It reveals addresses, protocols, timing and, for unencrypted traffic, the actual data being exchanged.

The technique is a basic tool of network engineering. Administrators use it to diagnose slow connections, misconfigured devices and failing applications, developers use it to debug protocols and security teams use it to investigate incidents and feed an intrusion detection system. The command-line tool tcpdump, created at Lawrence Berkeley National Laboratory in the late 1980s, and Wireshark, started by Gerald Combs in 1998 under the name Ethereal, are among the most widely used analyzers. The same capability can be abused to capture passwords and private data sent without protection.

The spread of encryption through HTTPS, TLS and encrypted messaging has greatly reduced what eavesdroppers can read, though metadata such as which hosts communicate and when often remains visible. Defenses against malicious sniffing include encrypting traffic, segmenting networks, using switched rather than shared media, securing Wi-Fi with strong WPA2 or WPA3 settings and detecting unauthorized devices. Capturing traffic on networks one does not own or administer may violate wiretapping and computer misuse laws, so legitimate use requires authorization.

Key points

  • Packet sniffers capture network traffic so its headers and contents can be examined.
  • Administrators rely on packet capture to troubleshoot networks and investigate security incidents.
  • tcpdump and Wireshark are among the most widely used packet analysis tools.
  • Encryption limits what eavesdroppers can read, though connection metadata often remains visible.

Related entries

Technology

Wireshark

CybersecurityFOSS

Free and open-source network protocol analyzer that captures traffic and decodes thousands of protocols for troubleshooting, security and education.

Person

Gerald Combs

CybersecurityFOSS

American computer scientist who created Ethereal in 1998, the free network protocol analyzer that was renamed Wireshark in 2006.

Glossary term

Security system that monitors network traffic or host activity for signs of malicious behavior or policy violations and raises alerts for investigation.

Glossary term

Man-in-the-Middle Attack

CybersecurityOPSEC

Attack in which an adversary secretly positions themselves between two communicating parties to intercept, read or alter the traffic between them.

Glossary term

Encryption

CybersecurityOPSECDevOps

The process of transforming readable data into ciphertext so that only parties holding the correct key can recover and understand it.

Technology

Zeek

CybersecurityFOSS

Open-source network security monitoring framework, formerly called Bro, that turns network traffic into detailed logs for analysis and detection.

Glossary term

Network Segmentation

CybersecurityDevOps

Practice of dividing a computer network into smaller isolated zones with controlled connections, limiting how far an attacker or fault can spread.

Glossary term

Digital Forensics

CybersecurityOSINT

Branch of forensic science that recovers, preserves and analyzes data from computers, phones and networks to investigate incidents and support legal cases.