Lewati ke isi

Referensi VPC Flow Logs

Senrigan memuat Amazon VPC Flow Logs dari salinan S3 yang sama dengan CloudTrail dan memungkinkan perburuan di halaman agen 🌊 VPC Flow serta dasbor VPC Flow Logs Threat Hunting.

Penyiapan

Salin seluruh prefix AWSLogs/. Setiap file diarahkan berdasarkan nama objek AWS-nya; digest, AWS Config, log ELB, dan file lain dilewati serta dihitung dalam ringkasan ingest.

aws s3 sync s3://<your-bucket>/AWSLogs/ docker/logs/AWSLogs/
make ingest
make up

Apa yang di-ingest

  • Flow log teks biasa (.log.gz), format default atau kustom, dalam tata letak S3 default, per jam, atau kompatibel Hive. Semua field yang didokumentasikan AWS disimpan, termasuk yang ditambahkan kemudian.
  • Flow log Parquet tidak didukung: dilewati dan dihitung.
  • Dengan GeoLite2 di docker/data/geoip/, setiap alamat mendapat negara, kota, dan ASN; ingester enrich juga dapat mengisinya belakangan.

Membaca bukti flow

  • Satu baris adalah satu flow yang diamati pada satu antarmuka dalam satu jendela agregasi — bukan koneksi. Lalu lintas internal VPC teramati dua kali.
  • ACCEPT berarti security group atau NACL mengizinkan paket, bukan berarti sesi terbentuk.
  • Endpoint lokal dan remote hanya pasti bila record memuat flow-direction (direction_source = 'record').
  • Record yang ditolak Block Public Access tidak memiliki byte, dan traffic_path = 2 berarti internet gateway atau gateway endpoint.
  • Lalu lintas ke resolver DNS Amazon, metadata instans, Time Sync, dan DHCP tidak pernah dicatat.

🎯 18 hunt bawaan — halaman 🌊 VPC Flow

Setiap hunt berjalan tanpa API key dan menyatakan field yang dibutuhkannya: jika data yang dipilih tidak mencatat salah satunya, halaman melaporkan cakupan tidak memadai, bukan hasil kosong.

# Hunt Kategori Tingkat
1 🧭 Flow Log Sources and Field Coverage 🧭 Coverage P4
2 🧭 SKIPDATA Gaps by Interface 🧭 Coverage P3
3 🔍 Vertical Port Scans 🔍 Recon P3
4 🔍 Horizontal Sweeps 🔍 Recon P3
5 🚪 Internet Access to Admin / DB Ports 🚪 Exposure P1
6 🚪 Rejected, Then Accepted 🚪 Exposure P2
7 📤 Egress Spike vs Host Baseline 📤 Egress P1
8 📤 Unusual Destination Ports 📤 Egress P2
9 📤 DNS to Non-Amazon Resolvers 📤 Egress P3
10 📤 Outbound SMTP 📤 Egress P3
11 ⏱️ Periodic Observations to External Peers ⏱️ Periodicity P2
12 ↔️ New Internal Admin-Port Pairs ↔️ Lateral Movement P1
13 ↔️ Internal Inbound, Then External Egress ↔️ Lateral Movement P2
14 🧪 Unusual IP Protocols 🧪 Protocols P3
15 🧪 UDP Fan-Out to External Hosts 🧪 Protocols P3
16 🧪 ICMP and ICMPv6 Peers 🧪 Protocols P4
17 🌍 Accepted Inbound by Country 🌍 GeoIP P4
18 🛡️ BPA and Encryption-Control Rejections 🛡️ Posture P3

📊 Dasbor 50 grafik — VPC Flow Logs Threat Hunting

Mulailah dari tab Coverage: tab ini menunjukkan langganan, field, dan rentang waktu mana yang dapat dilihat tab lainnya.

# Grafik Tab
1 Flow Log Sources 🧭 Coverage
2 Capture Scope from CloudTrail 🧭 Coverage
3 NODATA / SKIPDATA Windows 🧭 Coverage
4 Records by Direction Source 🧭 Coverage
5 Field Availability by Source 🧭 Coverage
6 Flow Records 🚦 Overview
7 Bytes Observed 🚦 Overview
8 REJECT Ratio 🚦 Overview
9 Distinct External Peers 🚦 Overview
10 Interfaces Observed 🚦 Overview
11 SKIPDATA Windows 🚦 Overview
12 Flow Records by Action 🚦 Overview
13 Bytes by Direction 🚦 Overview
14 Top Rejected External Sources 🔍 Inbound / Recon
15 Vertical Scan Candidates 🔍 Inbound / Recon
16 Horizontal Scan Candidates 🔍 Inbound / Recon
17 Internet to Admin / DB Ports — Accepted 🔍 Inbound / Recon
18 SYN-Only Records from External Sources 🔍 Inbound / Recon
19 REJECT then ACCEPT — Same Peer, Target and Port 🔍 Inbound / Recon
20 Top External Destinations by Bytes 📤 Egress
21 Egress Volume vs Host Baseline 📤 Egress
22 Egress Bytes by Traffic Path 📤 Egress
23 Unusual Destination Ports 📤 Egress
24 DNS to Non-Amazon Resolvers 📤 Egress
25 Outbound SMTP 📤 Egress
26 Long-Running and Low-and-Slow Flows 📤 Egress
27 Periodic Flow-Log Observations ⏱️ Periodicity
28 Internal Admin-Port Traffic ↔️ Lateral Movement
29 First-Seen Internal Pairs ↔️ Lateral Movement
30 Internal Fan-Out by Source ↔️ Lateral Movement
31 Internal Inbound Followed by External Egress ↔️ Lateral Movement
32 ICMP / ICMPv6 Peers 🧪 Protocols & IPv6
33 UDP Fan-Out to External Hosts 🧪 Protocols & IPv6
34 Unusual IP Protocols 🧪 Protocols & IPv6
35 IPv6 Flows 🧪 Protocols & IPv6
36 Inbound Countries 🌍 GeoIP
37 Outbound Countries 🌍 GeoIP
38 External ASNs 🌍 GeoIP
39 Inbound Accepted — Origin Map 🌍 GeoIP
40 Inbound Rejected — Origin Map 🌍 GeoIP
41 Outbound Bytes — Destination Map 🌍 GeoIP
42 Inbound Records by Country and Action 🌍 GeoIP
43 Inbound Accepted Ports by Country 🌍 GeoIP
44 Top Outbound ASNs by Bytes 🌍 GeoIP
45 Rare Outbound Countries 🌍 GeoIP
46 REJECT Reasons (BPA / Encryption Controls) 🛡️ Posture
47 Encryption Status 🛡️ Posture
48 Egress to AWS Services by Path 🛡️ Posture
49 Middlebox Interfaces 🛡️ Posture
50 Egress Heatmap (UTC Hour × Weekday) 🛡️ Posture