Introduction to Network Traffic Analysis in a SOC
Network traffic analysis is a cornerstone skill for any SOC analyst. By examining packets and flows, you can identify command-and-control (C2) communications, data exfiltration attempts, and lateral movement β all common tactics in MITRE ATT&CK (TA0011, T1041). In the Pakistan context, scams originating from WhatsApp forwards often involve malicious domains that can be detected through traffic inspection.
Core Tools: Wireshark and Nmap
Wireshark allows you to capture and dissect packets in real time. Focus on filtering by protocol (dns, http, tls), source/destination IP, and unusual ports. Look for DNS queries to suspicious TLDs like .xyz or .top that are commonly used in phishing campaigns targeting Pakistani users.
Nmap is essential for network enumeration. Use nmap -sV -sC to detect services and run default scripts. In your SOC environment, periodic Nmap scans help baseline normal services, making anomalies easier to spot.
Practical Packet Analysis Steps
- Capture Traffic: Use
tcpdump -i eth0 -w capture.pcapor Wireshark's interface selector. - Apply Filters:
http.request.method == "POST"identifies data submissions;tls.handshake.type == 1shows new TLS connections. - Inspect DNS: Look for high-frequency queries to unknown resolvers β potential C2 beaconing.
- Check Payload Sizes: Large outbound transfers during off-hours may indicate data exfiltration.
- Correlate with SIEM: Feed PCAP data into your ELK stack for long-term pattern analysis.
Pakistan-Specific Threat Scenarios
Pakistan's financial ecosystem, including easypaisa and JazzCash, has seen SIM swap fraud and unauthorized transaction alerts. Analysts should watch for unusual HTTPS traffic to IP ranges associated with known fraud infrastructure. Additionally, OLX/Daraz resale scams often involve social engineering links β network traffic may reveal redirection to credential-harvesting pages.
Do / Don't
- Do: Baseline your network before incidents occur β know what normal looks like.
- Do: Document unusual traffic patterns in TheHive cases for future reference.
- Don't: Ignore encrypted traffic entirely β certificate analysis (Subject, Issuer) still provides intelligence.
- Don't: Skip DNS analysis β many malware families rely on DNS for C2.
Key Takeaway
Today, capture 5 minutes of your network's traffic using Wireshark and apply one filter β even http.request β to get comfortable with the interface. Understanding baseline traffic is your first step toward detecting sophisticated attacks.
