Practice library / Security operations basics
Workbook · Medium · 4 hoursFree account
Network Traffic Analysis
Wireshark, tcpdump, protocol analysis, and detecting anomalies in traffic.
On this page 4 sections
Before you start
Network traffic analysis turns raw packets into a clear story of what happened on a wire. The work splits into three steps: capture cleanly, dissect protocols by layer, and recognise the patterns that mark an attack. This workbook covers all three with the tools defenders reach for in production — tcpdump at the terminal, Wireshark for deep dissection, and the command-line suite that ships beside it. The focus stays on evidence that holds up: filters that keep the right packets, rotating captures that stay openable, and link-layer and application anomalies that a SIEM alone may miss. The same skills serve incident response, threat hunting and detection engineering.
What You'll Learn
- Choose a capture point deliberately, and know what a host NIC, a mirror port and a TAP each fail to see
- Write BPF capture filters that do not discard evidence, and distinguish them from Wireshark display filters
- Run a long capture into a rotating file set you can still open, hash and hand over
- Read tcpdump's one-line summaries for TCP, DNS and TLS without opening a GUI
- Follow a stream, extract the files that crossed it, and decrypt TLS you have the keys for
- Recognise ARP spoofing, rogue DHCP, DNS tunnelling and beaconing — and say why each pattern is suggestive rather than conclusive
About This Workbook
This workbook covers traffic analysis end to end: capturing cleanly, dissecting protocols, and recognising the link-layer and application anomalies that signal an attack.
You need a Linux host you control, tcpdump, and the Wireshark suite — the GUI plus the command-line tools that ship with it: tshark, dumpcap, capinfos, editcap and mergecap. Everything below is done from a terminal first, because that is where you will be during an incident: on a jump host over SSH, with no display.
This workbook has no capture files. Commands that read incident.pcap need a capture that you take on your own lab network, as Chapter 1 shows. The outputs are examples: to see the ARP, DNS and volume patterns of Chapter 3, you must generate that traffic in your own lab or bring your own incident capture.
Capture only what you are authorised to capture. A packet capture on a shared network records other people's traffic, including their credentials. Get authorisation in writing before the first packet, and have it name the interfaces, the subnets and the time window. Stay inside them.
Sign in to continue
3 more sections are for signed-in members. It is free: sign in with Google.
Related
This workbook is extra practice for the course Security operations basics. Do the lessons first.Open the course