Course contentsShow
← Security
Lesson 382 of 3,0529. Network Security - Traffic AnalysisFree lesson

Identifying Malicious Traffic Patterns

Recognize indicators of compromise: port scans, command-and-control traffic, data exfiltration, and attack signatures.

Identifying Malicious Traffic Patterns

What you'll learn: How to spot suspicious network activity that indicates an attack or compromise.

Now that you can capture and analyze network traffic with Wireshark, it's time to recognize when something looks wrong. Just as a doctor learns to spot symptoms of illness, you need to identify indicators of compromise (IoCs)—patterns that suggest malicious activity on your network.

Common Malicious Patterns

Port Scans
Remember when you learned about port scanning? When an attacker scans your network, you'll see many connection attempts to multiple ports in rapid succession from a single source IP. In Wireshark, this appears as bursts of SYN packets or connection resets across sequential port numbers.

Command-and-Control (C2) Traffic
Compromised machines often "phone home" to attacker servers. Look for regular, periodic connections to unusual external IPs—like a computer contacting the same obscure domain every 60 seconds. These beaconing patterns are unnatural for normal user behavior.

Data Exfiltration
Large, sustained outbound traffic flows—especially to unfamiliar destinations or at odd hours—may indicate stolen data leaving your network. Think of it like noticing someone carrying boxes out of an office at 3 AM.

Attack Signatures
Certain packet patterns match known exploits: unusually long HTTP requests (possible buffer overflow attempts), SQL injection strings in web traffic (' OR 1=1--), or malformed protocol packets designed to crash systems.

What to Look For

  • Volume anomalies: Sudden spikes or unusual data sizes
  • Timing patterns: Connections at regular intervals or odd hours
  • Destination oddities: Traffic to suspicious IPs or domains
  • Protocol violations: Malformed packets or unusual port usage

Key Takeaway: Malicious traffic reveals itself through abnormal patterns—rapid port scans, rhythmic C2 beacons, large exfiltration flows, and recognizable attack signatures that stand out from normal network behavior.