Network Flow Analysis
What you'll learn: How to use lightweight flow records—NetFlow, sFlow, and IPFIX—to track connections and analyze behavioral patterns during incident investigations without storing full packet captures.
The Core Concept
When investigating incidents, full packet captures consume massive storage and processing power. Flow-based analysis offers a smarter alternative: instead of capturing every byte, network devices export metadata about connections—who talked to whom, when, how much data, which protocols, and for how long.
Think of it like phone bill records versus recorded conversations. You don't need the full audio to spot suspicious patterns: a hundred calls to an unfamiliar country at 3 AM tells you plenty.
The Three Major Flow Standards
NetFlow (Cisco-originated, now widely supported) exports summaries of unidirectional flows: source/destination IPs, ports, protocol, byte counts, timestamps, and TCP flags. Version 9 added templates for extensibility.
sFlow uses statistical sampling—capturing every Nth packet header—making it efficient for high-speed networks. It's lighter-weight but less precise than NetFlow's deterministic tracking.
IPFIX (IP Flow Information Export) is the IETF-standardized successor to NetFlow v9, offering flexibility and vendor interoperability.
Incident Response Use Cases
During incidents, flow data reveals:
- Command-and-control beaconing: Repeated connections to external IPs at regular intervals
- Data exfiltration patterns: Unusually large outbound transfers to rare destinations
- Lateral movement: Internal hosts suddenly communicating with segments they've never touched
- Reconnaissance scans: Short-lived connections to many ports across multiple hosts
Flow analysis excels at behavioral baselines—you can spot anomalies even without knowing specific attacker IPs, because the connection patterns look wrong.
Key Takeaway:
NetFlow, sFlow, and IPFIX provide lightweight connection metadata that enables rapid behavioral analysis and connection tracking during incidents—revealing attacker patterns without the storage burden of full packet capture.