Wireshark
De-facto standard network protocol analyzer and packet inspection toolkit
WHAT IS IT?
Wireshark is an open-source network packet analyzer that captures raw frames from network interfaces and decodes them into human-readable protocol layers. It includes both a graphical analyzer and the headless CLI utility tshark.
WHY USE IT? // PRACTICAL USE CASES
When application logs are missing or tampered with, packet captures remain the ground truth of what crossed the wire. Defenders use Wireshark to isolate lateral movement, inspect unencrypted payloads, verify TLS cipher negotiation, and reconstruct attacker sessions from PCAP files.
- [1] Live packet capture and protocol troubleshooting
- [2] Incident response PCAP forensics and C2 beacon analysis
- [3] TLS handshake inspection and anomalous traffic filtering
- [4] Headless capture automation via tshark CLI
HOW DO I GET IT? // SAFE INSTALLATION GUIDANCE
Install exclusively from official OS package repositories (e.g., `pacman -S wireshark-qt` on Arch/CachyOS, `apt install wireshark` on Debian/Ubuntu) or signed installers from wireshark.org. Grant capture privileges by adding your user to the `wireshark` system group rather than running the GUI as root.
HOW DOES IT WORK? // INTERNAL ARCHITECTURE OVERVIEW
Wireshark binds to libpcap (Linux/macOS) or Npcap (Windows) to copy frames from the kernel network stack via BPF (Berkeley Packet Filter) capture filters. Its protocol dissectors parse headers layer-by-layer (Ethernet -> IP -> TCP/UDP -> Application) and expose display filter expressions (`http.request.method == "POST"` or `tls.handshake.type == 1`).