Antivirus vs EDR vs NDR vs XDR
Apa bedanya? Kapan pakai yang mana? Evolusi endpoint & network security dari AV tradisional sampai XDR modern.
1. 01 — Kenapa Ini Penting?
Kalau baca job listing SOC analyst atau ikut meeting sama vendor, pasti ketemu istilah ini: AV, EDR, NDR, XDR. Semuanya solusi keamanan, tapi beda scope dan capability. Sebagai SOC analyst, kamu harus paham bedanya karena ini menentukan apa yang bisa kamu lihat dan apa yang bisa kamu lakukan saat investigasi.
2. Analogi Sederhana
Antivirus = kunci pintu rumah — cuma cek siapa yang masuk, pakai daftar orang jahat yang dikenal. EDR = CCTV + alarm + security guard di setiap ruangan — record semua aktivitas, bisa respond. NDR = CCTV di jalanan dan lorong — monitor lalu lintas antar gedung, detect gerak-gerik mencurigakan. XDR = command center yang integrasikan semua CCTV, alarm, dan guard — satu dashboard, satu response.
3. 02 — Perbandingan Lengkap
| Aspek | Antivirus | EDR | NDR | XDR |
|---|---|---|---|---|
| Apa yang dimonitor | File di disk endpoint | Semua aktivitas di endpoint | Network traffic | Endpoint + Network + Cloud + Email + Identity |
| Cara deteksi | Signature-based | Behavioral + signature + ML + IOC | Traffic analysis + anomaly + ML | Korelasi cross-layer |
| Response capability | Quarantine/delete file | Isolate endpoint, kill process, block hash, remote shell | Block IP/port, segment network | Automated playbook across all layers |
| Visibility | Low — cuma file events | High di endpoint | High di network | Full — korelasi semua sumber |
| Contoh produk | Windows Defender, Kaspersky | CrowdStrike, SentinelOne, Wazuh | Darktrace, Vectra, Zeek | Palo Alto Cortex XDR, Microsoft Sentinel |
| Harga | Murah/gratis | $$$ per endpoint | $$$$ per sensor | $$$$$ paling mahal |
4. 03 — Antivirus — Si Veteran
Antivirus adalah solusi keamanan paling tua. Vendor maintain database signature — hash dan pattern dari malware yang dikenal. AV scan file di disk, cocokkan dengan database. Kalau cocok → quarantine atau delete.
5. Kelebihan & Kelemahan AV
- ✅ Simple & murah
Simple, ringan, murah (sering gratis). Efektif untuk known malware.
- ❌ Nggak detect unknown
Nggak bisa detect unknown malware — zero-day, custom malware, fileless attack = lolos semua.
- ❌ Nggak ada visibility
Nggak tau proses apa yang jalan, koneksi kemana, registry apa yang diubah.
- ❌ Nggak ada forensic data
Kalau ada insiden, nggak ada data untuk investigasi.
6. Reality Check
Antivirus saja sudah TIDAK CUKUP untuk environment enterprise sejak ~2015. Attacker modern pakai teknik yang bypass AV dengan mudah: fileless malware, living-off-the-land (LOLBins), process injection, memory-only payloads.
7. 04 — EDR — Game Changer
Endpoint Detection & Response lahir karena AV nggak cukup. EDR bukan pengganti AV — EDR adalah evolusi yang jauh lebih advanced. Agent di setiap endpoint collect SEMUA telemetry: process creation, file operations, registry changes, network connections per-process, DLL loads, memory allocations.
8. Contoh Alert EDR
# Alert: Suspicious PowerShell Execution
Process: powershell.exe (PID 4832)
Parent: cmd.exe (PID 2104) <- launched by excel.exe (PID 1560)
Command: powershell -enc SQBFAFgAIAAoA... (Base64 encoded)
Network: Connected to 185.234.xx.xx:443 (C2 server)
File: Dropped payload.dll to C:\Users\victim\AppData\Local\Temp
MITRE: T1059.001 (PowerShell), T1071.001 (Web C2), T1027 (Obfuscation)
# Full attack chain visible:
# Email attachment (Excel) -> Macro -> cmd -> PowerShell -> C2 -> Payload9. Wazuh sebagai EDR Open Source
Wazuh Agent adalah EDR open source — bisa: process monitoring + command line logging, File Integrity Monitoring (FIM), rootkit detection, vulnerability scanning, Active Response (block IP, disable account), Sysmon integration. Untuk lab & training: Wazuh + Sysmon = EDR yang sangat capable dan gratis.
10. 05 — NDR — Network Perspective
Network Detection & Response fokus ke traffic jaringan. Kalau EDR lihat apa yang terjadi di dalam endpoint, NDR lihat apa yang terjadi di antara endpoint. Sensor/tap di network mirror traffic, Deep Packet Inspection, flow analysis, dan anomaly detection dengan ML.
11. Kenapa NDR Penting
- Lateral Movement
Attacker pindah dari endpoint A ke B lewat network. EDR per-endpoint mungkin miss, NDR lihat pattern-nya.
- C2 Communication
Beacon patterns (reguler interval ke IP tertentu) sangat visible di NDR.
- Data Exfiltration
Unusual data transfer volume ke external IP.
- Agentless
Nggak perlu install apa-apa di endpoint. IoT, OT, legacy systems yang nggak bisa install agent = NDR satu-satunya visibility.
12. Contoh NDR Alert
# Alert: DNS Tunneling Detected
Source: 10.0.5.42 (workstation-42)
DNS Query: aGVsbG8gd29ybGQ.data.evil-c2.com
Pattern: 50+ queries/min to same domain, avg subdomain length 45 chars
Verdict: Data exfiltration via DNS
# Alert: Potential Lateral Movement
Source: 10.0.5.42 -> 10.0.5.100 (DC01)
Protocol: SMB + PsExec pattern detected
Timing: 03:42 AM (outside business hours)
Context: Source IP had malware alert 2 hours ago13. 06 — XDR — The Full Picture
Extended Detection & Response adalah evolusi terbaru. XDR bukan produk tunggal — ini platform yang mengintegrasikan data dari semua sumber keamanan ke satu tempat. XDR = EDR + NDR + SIEM + SOAR + Cloud Security.
14. Contoh Korelasi XDR
# XDR auto-correlates 4 alerts into 1 incident:
1. [Email Gateway] Phishing email delivered to user@company.com
-> Attachment: invoice.xlsm (SHA256: abc123...)
2. [EDR] excel.exe spawned powershell.exe with encoded command
-> Host: WORKSTATION-42, User: john.doe
-> MITRE: T1059.001 (PowerShell Execution)
3. [NDR] WORKSTATION-42 initiated connection to 185.234.xx.xx:443
-> Beacon pattern: every 60 seconds
-> MITRE: T1071.001 (Web C2)
4. [EDR] WORKSTATION-42 accessed \\DC01\ADMIN$ via SMB
-> Credential: domain_admin (stolen)
-> MITRE: T1021.002 (Lateral Movement via SMB)
# XDR Verdict: Active compromise
# Auto-response: isolate host, block C2 IP, disable domain_admin15. Di Kelas Ini
Kita pakai Wazuh (SIEM + EDR) + Wireshark (network analysis) + TheHive (case management) — ini essentially 'manual XDR'. Tools terpisah, tapi workflow-nya sama.
16. 07 — Kapan Pakai Yang Mana?
| Skenario | Solusi | Kenapa |
|---|---|---|
| UMKM, 10 laptop, budget minim | AV (Windows Defender) + Wazuh Agent | Free, basic protection + some visibility |
| Startup 50-200 karyawan | EDR + SIEM (Wazuh) | Endpoint visibility + log aggregation |
| Enterprise 1000+ | EDR + NDR + SIEM | Full visibility endpoint + network |
| Enterprise + cloud-heavy | XDR platform | Korelasi otomatis, reduce alert fatigue |
| OT/IoT environment | NDR (wajib) | Device nggak bisa install agent |
| Compliance-driven (bank, telco) | XDR + SIEM + dedicated SOC | Regulasi require comprehensive monitoring |
17. Career Tip
Kalau mau kerja di SOC, pahami konsep semua — tapi fokus hands-on ke EDR dan SIEM dulu. Ini yang paling sering dipakai L1/L2 analyst sehari-hari. NDR dan XDR biasanya di-manage L3 atau security engineer.
18. 08 — Evolusi Security Stack
- 1
1990s-2000s: Antivirus
Signature-only detection. Efektif untuk era virus sederhana.
- 2
2010s: NGAV + SIEM
Heuristic analysis + log centralization. Mulai ada visibility.
- 3
2015-2020: EDR + NDR
Behavioral analysis + network visibility. Game changer untuk SOC.
- 4
2020+: XDR
Unified platform + AI/ML. Korelasi otomatis cross-domain.
19. Catatan
Setiap generasi menambah yang sebelumnya, bukan mengganti. XDR modern tetap punya signature scanning (AV), behavioral analysis (EDR), dan network inspection (NDR) — tapi semuanya di satu platform dengan korelasi otomatis.
20. Hati-hati Marketing
Banyak vendor yang re-label produk EDR mereka jadi 'XDR' padahal cuma EDR + sedikit integrasi. True XDR harus genuinely cross-domain: endpoint + network + cloud + identity, dengan korelasi otomatis, bukan cuma dashboard yang kumpulin alert dari berbagai sumber.