☼
⌃
☰

Network Traffic Analysis

Table of Contents

Network Traffic Analysis (NTA) involves monitoring and examining network communication patterns to identify anomalies, security threats, and performance issues. It provides valuable insights into network behavior, enabling organizations to protect their systems and data.

Related: Network Packet Network Protocols Data Exfiltration DFIR PCAP Wireshark Tshark

Key Features

  • Packet capture: Collecting network Network Packets for analysis.
  • Protocol analysis: Examining Network Protocols for deviations and vulnerabilities.
  • Traffic pattern analysis: Identifying normal traffic patterns and detecting anomalies.
  • Threat detection: Identifying malicious activities, such as malware, Data Exfiltration, or insider threats.
  • Performance optimization: Identifying network bottlenecks and optimizing traffic flow.

Practical Analysis Workflow

NTA in practice usually means working through a captured or live PCAP with a specific question in mind — see PCAP for capture mechanics and capture-vs-display filter distinction. The actual analysis workflow:

  1. Establish a baseline: What does normal traffic on this network look like — protocols in use, typical volume, usual destinations
  2. Filter to the anomaly: Narrow to the time window and hosts/protocols actually relevant to the investigation, rather than reviewing everything
  3. Follow the conversation: Reconstruct the full exchange (see TCP stream following in the PCAP note) rather than reading individual packets in isolation
  4. Correlate across sources: Cross-reference findings against other log sources (DNS logs, firewall logs, endpoint telemetry) for the full picture — traffic analysis alone rarely tells the complete story

Common Anomaly Patterns Worth Recognizing

  • Beaconing: Regular, periodic connections to the same external destination at consistent intervals — classic C2 indicator, distinct from normal human-driven browsing traffic which is irregular
  • Unusual data volume: A host suddenly sending far more outbound data than its baseline suggests possible exfiltration
  • Protocol on the wrong port: Non-HTTP traffic on port 80/443, or any protocol running on a port that doesn't match its standard — often an evasion attempt against port-based firewall rules
  • DNS anomalies: High volume of NXDOMAIN responses (possible DGA malware), unusually long or high-entropy subdomain queries (possible DNS tunneling/exfiltration)
  • Off-hours activity: Traffic patterns that don't match the organization's normal working hours, particularly for internal-to-external connections

Use Cases

  • Threat detection: Identifying and responding to cyber attacks in real-time.
  • Incident scoping: Determining which hosts communicated with a known-malicious indicator, and when.
  • Digital Forensics: Analyzing network traffic for legal or investigative purposes.
  • Network performance optimization: Improving network efficiency and user experience.

Tips

  • Don't start analysis by scrolling through raw packets — start with a specific question (what talked to this IP, when did this begin, what protocol is this) and filter toward the answer
  • Beaconing is one of the most reliable indicators to look for first in a suspected-compromise scenario — consistent interval timing stands out clearly even in high-volume traffic once sorted by destination and time
  • If a capture is too large to review manually, statistics views (Wireshark's Statistics menu, or tshark -z conv,tcp for conversation summaries) give a fast overview of top talkers and volume before diving into individual packets