-
Host OS: Windows
-
VM: Ubuntu Linux (VirtualBox / VMware)
-
Tools:
- Wireshark
- tcpdump (already installed in Ubuntu)
Set your VM network to:
- NAT
- Bridged
sudo apt update && sudo apt upgrade -ysudo apt install wireshark -yWhen asked: 👉 “Allow non-superusers to capture packets?” → YES
sudo usermod -aG wireshark $USERThen logout & login again
tcpdump --versionip aYou’ll see something like:
eth0orens33
Open Terminal 1:
sudo tcpdump -i eth0 icmpOpen Terminal 2:
ping google.com👉 ICMP Echo Request & Reply
sudo tcpdump -i eth0 port 53In another terminal:
nslookup google.comDNS query & response
sudo tcpdump -i eth0 port 22If SSH not installed:
sudo apt install openssh-server -y
sudo systemctl start sshThen:
ssh localhostTCP handshake
sudo tcpdump -i eth0 port 80 -nnThen:
curl http://example.comHTTP traffic
sudo tcpdump -i eth0 port 443 -nnThen:
curl https://google.comencrypted HTTPS packets
wiresharkSelect: 👉 eth0 / ens33
Click Start Capture
| Traffic | Filter |
|---|---|
| ICMP | icmp |
| DNS | dns |
| HTTP | http |
| HTTPS | tcp.port == 443 |
| SSH | tcp.port == 22 |
Install nmap:
sudo apt install nmap -yRun scan:
nmap -p 1-1000 localhostIn Wireshark filter:
tcp.flags.syn == 1 and tcp.flags.ack == 0
multiple SYN packets 👉 This is port scanning behavior
- Repeated SYN packets
- Same source IP hitting multiple ports
- High packet rate in short time
Write observation like:
“Multiple SYN packets detected from 127.0.0.1 targeting different ports, indicating possible port scanning.”
Write:
- Protocol analyzed
- Normal behavior
- Suspicious behavior
- SOC conclusion
Network Traffic Analysis using Wireshark & tcpdump • Captured and analyzed ICMP, DNS, HTTP, HTTPS, and SSH traffic to identify normal and suspicious network behavior • Detected port scanning activity using SYN packet analysis • Documented findings with screenshots and SOC-style incident observations