DET-053 · human · confidence Medium
Flow Record Hunting
Use network flow metadata to find who is sending unusual amounts of data to unexpected places, even without payload visibility.
Flow records (NetFlow, IPFIX, VPC flow logs) store who talked to whom, on which port, and how many bytes moved. They do not contain content, so they are cheap to keep for months. That helps when an insider's slow data drain only becomes obvious weeks later.
Hunt for long-lived connections, regular beaconing intervals, a host sending far more than it receives, and first-time destinations. Collectors can sit on routers, switches, firewalls and cloud networks.
- Data sources
- NetFlow or IPFIXVPC Flow LogsFirewall traffic logs
- Platforms
- NetworkAWSAzureGCP
Logic
flows | stats sum(bytes_out) as out sum(bytes_in) as in by src_host, dest_ip, day | where out > 500MB AND out/in > 20 AND dest_ip NOT IN (known_saas_ranges) | sort -out
False positives
Backups, software distribution, video calls and cloud sync produce big outbound flows. Baseline per host role.
Catches 13 techniques
- TAM-H-ACT-009Editing Records to Lie
- TAM-H-ACT-015Installing Malware From Inside
- TAM-H-ACT-022Moving Data Over Other Links
- TAM-H-ACT-029Putting Off-Limits Apps on Work Machines
- TAM-H-CVR-020Masking Network Activity
- TAM-H-CVR-030Setting Traps for Investigators
- TAM-H-DRV-022Working for a Foreign State
- TAM-H-RCH-033Windows File Share Rights
- TAM-H-STG-020Hopping to New Systems
- TAM-H-STG-021Installing Unapproved Software
- TAM-H-STG-026Mapping the Camera Blind Spots
- TAM-H-STG-035Planting a Remote Hands Box
- TAM-H-STG-040Probing the Defenses