Wireshark
Deep packet capture & protocol analysis
Open source. Platform: Cross-platform.
What it is
The de-facto network protocol analyzer for capturing and dissecting traffic packet by packet across hundreds of protocols.
Why it matters
Packet-level ground truth confirms what actually crossed the wire (C2 beacons, exfil, lateral movement) when logs are ambiguous.
In practice
Following a TCP stream exposes the plaintext commands a backdoor exchanged with its server.
Install
apt install tshark (Debian/Ubuntu, CLI) or brew install wireshark (macOS, CLI formula); GUI via the installer at wireshark.org or brew install --cask wireshark-app
Commands
- Filter a capture file to just HTTP traffic (tshark, the CLI companion)
tshark -r capture.pcap -Y "http"
- Extract embedded files (e.g. downloaded executables/documents) reassembled from HTTP streams into a directory
tshark -r capture.pcap --export-objects http,/path/to/output_dir
- Pull specific IOC fields (source/dest IP, HTTP host, requested URI) from every HTTP request into tab-separated output for pivoting
tshark -r capture.pcap -T fields -e ip.src -e ip.dst -e http.host -e http.request.uri -Y "http.request"
- Summarize TCP conversations (talkers) in a capture: byte/frame counts per pair, relative start time, duration
tshark -r capture.pcap -q -z conv,tcp
Similar tools
- Zeek: Network security monitoring & rich connection logs
- Suricata: IDS/IPS & network traffic analysis
- Arkime: Full-packet capture, indexing & search