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.
- 01
Check the legal grounds
One’s own or a company network with rules known to staff, or an order from the judicial authorities.
- 02
Choose the point
A switch mirror port, an inline device or capture on the computer itself.
- 03
Limit the scope
Filters on the relevant devices, addresses and ports, so as not to collect more than necessary.
- 04
Synchronise the clock
Capture system time checked against a reference source and recorded.
- 05
Capture
Rotating PCAP or PCAPNG files, on storage with enough space.
- 06
Compute the hash
SHA-256 of each file when it is closed, with date and time in the report.
- 07
Preserve the originals
Working copies for analysis, originals sealed.
- 08
Analyse
Sessions, DNS, TLS, volumes and clear-text protocols, with the filters recorded.
- 09
Report
Method, filters, commands and extracts, so that the analysis can be repeated.
Network traffic: tools
Tools for network traffic: Wireshark, tshark, tcpdump, Zeek, Suricata, NetworkMiner, capinfos and sha256sum, with an example run on a test capture.
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: 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.
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.