Network traffic: tools
Tools for network traffic: Wireshark, tshark, tcpdump, Zeek, Suricata, NetworkMiner, capinfos and sha256sum, with an example run on a test capture.
- Wireshark
- Graphical packet analysis, with hundreds of recognised protocols.
- tshark
- The command-line version, suited to repeatable filters and large files.
- tcpdump
- Lightweight capture on servers and appliances, with BPF filters.
- Zeek
- Turns traffic into orderly logs of connections, DNS, HTTP, TLS and files.
- Suricata
- Detection system that flags traffic known to be malicious.
- NetworkMiner
- Extracts files, images and credentials visible in clear-text protocols.
- capinfos and sha256sum
- Capture summary and hash for the chain of custody.
Example run with tshark 4.2 and capinfos on 27 November 2026 on a six-packet test capture, using addresses and domains reserved for documentation.
$ sha256sum capture.pcap
d9a9c21c9574c240a7fcd6ae34024029bedec7be7085fa2d625c48cc9232fed3 capture.pcap
$ capinfos -c -a -e capture.pcap
File name: capture.pcap
Number of packets: 6
First packet time: 2026-11-26 09:30:00.000000
Last packet time: 2026-11-26 09:30:04.602000
$ tshark -r capture.pcap -Y "dns.flags.response == 0" -T fields -e frame.time_utc -e ip.src -e dns.qry.name
Nov 26, 2026 08:30:00.000000000 UTC 192.168.1.23 mail.example.com
Nov 26, 2026 08:30:04.512000000 UTC 192.168.1.23 holiday-photos.example.net
$ tshark -r capture.pcap -Y "tls.handshake.type == 1" -T fields -e ip.dst -e tls.handshake.extensions_server_name
203.0.113.80 mail.example.com
$ tshark -r capture.pcap -Y http.request -T fields -e ip.dst -e http.host -e urlencoded-form.value
198.51.100.20 holiday-photos.example.net mario,Summer2026Network traffic: mistakes to avoid
The most common mistakes in traffic analysis: capturing without legal grounds, capturing everything, forgetting the clock, losing packets, analysing the original, treating encrypted traffic as empty, trusting names, confusing address and person.
The pages of this topic
Back to the overviewNetwork traffic: how it works
How traffic analysis works: full captures, flow records, firewalls, DNS, proxies, sensors such as Zeek, Wi-Fi and phones; what remains visible with HTTPS and why the network’s memory is short.
Network traffic: step-by-step procedure
How traffic is acquired and analysed: check the legal grounds, choose the capture point, limit the scope, synchronise the clock, capture, compute the hash, preserve the originals, analyse, report.
Network traffic: value in court
The value of traffic captures in court under Italian law: lawfulness and interception, monitoring on company networks, integrity, completeness, times, keeping data apart from inferences, repeatability of the analysis, installing interception equipment.
Network traffic: a worked case
A worked case: at a professional firm an employee’s mailbox is used by a stranger; DNS, TLS and volumes from the network sensor, the phishing message and the mail service logs reconstruct the sequence without reading the encrypted content.
Network traffic: checklist
The checklist for network traffic analysis: before, during and after capture.
Network traffic: frequently asked questions
Short answers to the most common questions about network traffic analysis as evidence.