IDS, IPS & NDR โ Overview
Pahami perbedaan IDS, IPS, dan NDR โ dari passive monitoring sampai intelligent network defense.
1. 01 โ Apa itu IDS?
Intrusion Detection System (IDS) adalah sistem monitoring pasif yang menganalisis lalu lintas jaringan atau aktivitas host untuk mendeteksi tanda-tanda serangan. Bayangkan IDS seperti CCTV di gedung โ ia merekam dan memberi alert, tapi tidak bisa menghentikan pencuri secara langsung. IDS bekerja dengan menyalin traffic (via SPAN port atau TAP) dan menganalisisnya menggunakan signatures atau anomaly detection. Ketika ditemukan aktivitas mencurigakan, IDS menghasilkan alert yang dikirim ke SIEM atau SOC analyst untuk ditindaklanjuti.
2. Dua Jenis IDS
| Jenis | Deskripsi | Contoh |
|---|---|---|
| NIDS | Network-based IDS โ memantau lalu lintas jaringan di titik strategis (SPAN port, TAP) | Suricata, Snort, Zeek |
| HIDS | Host-based IDS โ memantau aktivitas di level host (file integrity, log, syscall) | OSSEC, Wazuh, Samhain |
3. IDS Deployment via SPAN Port
โโโโโโโโโโโโโโโ
Internet โโโโโโโบโ Firewall โ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ Switch โโโโโ SPAN Port (mirror)
โโโโโโโโฌโโโโโโโ โ
โ โโโโโโโผโโโโโโ
โโโโโโโโผโโโโโโโ โ IDS Box โ
โ Servers โ โ (Suricata)โ
โโโโโโโโโโโโโโโ โโโโโโโฌโโโโโโ
โ
โโโโโโโผโโโโโโ
โ SIEM โ
โโโโโโโโโโโโโIDS ditempatkan di luar jalur traffic (out-of-band). Switch mengirim salinan traffic ke IDS via SPAN port. IDS menganalisis dan mengirim alert ke SIEM.
4. Key Takeaway
IDS = detection only. Ia hanya mengamati dan memberi tahu โ tidak bisa memblokir traffic. Jika kamu butuh blocking, kamu butuh IPS.
5. 02 โ Apa itu IPS?
Intrusion Prevention System (IPS) adalah IDS yang punya 'tangan'. IPS ditempatkan secara inline โ artinya semua traffic harus melewati IPS sebelum mencapai tujuan. Ketika IPS mendeteksi traffic berbahaya, ia bisa langsung DROP atau REJECT paket tersebut. Ini seperti security guard yang bukan hanya mengawasi, tapi juga bisa menahan orang mencurigakan di pintu masuk.
6. IPS Inline Deployment
โโโโโโโโโโโโโโโ
Internet โโโโโโโบโ Firewall โ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ IPS Box โโโโ Inline (semua traffic lewat sini)
โ (Suricata) โ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ Switch โ
โโโโโโโโฌโโโโโโโ
โ
โโโโโโโโผโโโโโโโ
โ Servers โ
โโโโโโโโโโโโโโโ
Traffic flow: Internet โ Firewall โ IPS โ Switch โ Servers
IPS can DROP malicious packets before they reach the network.IPS ditempatkan inline โ semua traffic melewatinya. Jika terdeteksi ancaman, traffic langsung di-drop sebelum sampai ke server.
7. IPS Actions
- DROP
Paket dibuang secara diam-diam โ pengirim tidak tahu paketnya di-drop
- REJECT
Paket dibuang dan pengirim diberi notifikasi (TCP RST atau ICMP unreachable)
- ALERT
Paket diizinkan lewat tapi alert tetap dikirim ke SIEM โ berguna untuk monitoring tanpa blocking
8. Trade-off: False Positive = Outage
Karena IPS bekerja inline, false positive bisa menyebabkan legitimate traffic di-drop. Ini berarti false positive di IPS = potential outage. Selalu mulai dengan IDS mode dulu, tuning rules sampai false positive minimal, baru switch ke IPS mode.
9. 03 โ Apa itu NDR?
Network Detection and Response (NDR) adalah evolusi dari IDS/IPS. Jika IDS/IPS mengandalkan signatures (pola yang sudah diketahui), NDR menambahkan behavioral analysis dan machine learning untuk mendeteksi ancaman yang belum pernah dilihat sebelumnya (zero-day, APT). NDR membangun baseline perilaku normal jaringan, lalu mendeteksi deviasi dari baseline tersebut. NDR juga bisa menganalisis encrypted traffic tanpa perlu dekripsi, menggunakan metadata dan traffic patterns.
10. NDR Detects What IDS Can't
- Beaconing
Komunikasi periodik malware ke C2 server โ NDR mendeteksi pola timing yang mencurigakan
- Lateral Movement
Pergerakan attacker antar host di internal network โ NDR melihat koneksi yang tidak biasa
- Data Exfiltration
Transfer data besar ke luar jaringan โ NDR mendeteksi anomali volume dan tujuan
- Encrypted Threats
Ancaman dalam traffic terenkripsi โ NDR menganalisis metadata, JA3 fingerprint, dan pola tanpa dekripsi
11. Contoh Produk NDR
| Produk | Tipe | Keunggulan | Catatan |
|---|---|---|---|
| Darktrace | Commercial | AI self-learning, deteksi anomali tanpa signature | Mahal, cocok untuk enterprise besar |
| Vectra AI | Commercial | Fokus pada attacker behavior, integrasi kuat dengan SIEM | Bagus untuk deteksi lateral movement |
| ExtraHop Reveal(x) | Commercial | Real-time wire data analysis, cloud-native | Kuat di cloud dan hybrid environment |
| Corelight | Commercial | Built on Zeek, enterprise-grade network evidence | Ideal untuk threat hunting dan forensik |
| Suricata + Zeek | Open Source | Kombinasi IDS signatures + network metadata logging | Budget-friendly, butuh expertise untuk setup |
12. Budget Terbatas?
Suricata + Zeek + Wazuh = poor man's NDR. Suricata untuk signature-based detection, Zeek untuk network metadata dan protocol logging, Wazuh sebagai SIEM untuk korelasi. Kombinasi ini gratis dan sangat powerful untuk organisasi dengan budget terbatas.
13. 04 โ Perbandingan IDS vs IPS vs NDR
| Aspek | IDS | IPS | NDR |
|---|---|---|---|
| Posisi di Jaringan | Out-of-band (passive) | Inline (active) | Out-of-band + agent |
| Metode Deteksi | Signature + basic anomaly | Signature + basic anomaly | Behavioral analysis + ML + signature |
| Respons | Alert only | Block + alert | Alert + automated response + investigation |
| Dampak False Positive | Alert noise saja | Bisa menyebabkan outage | Alert noise, tapi ML mengurangi FP |
| Dampak ke Performa | Minimal (passive) | Bisa menambah latency | Minimal (passive collection) |
| Unknown Threats | Lemah โ butuh signature | Lemah โ butuh signature | Kuat โ behavioral baseline |
| Encrypted Traffic | Tidak bisa inspect | Butuh SSL/TLS termination | Analisis metadata + JA3 |
| Use Case Utama | Monitoring & alerting | Inline prevention | Advanced threat detection & hunting |
| Contoh Produk | Suricata, Snort, Zeek | Suricata (IPS mode), Snort, Palo Alto | Darktrace, Vectra, ExtraHop, Corelight |
| Harga | Gratis (open source) | Gratis โ enterprise berbayar | Mahal (commercial) atau DIY (open source) |
14. Realita di Lapangan
Banyak organisasi deploy ketiga teknologi ini di layer yang berbeda. IDS/IPS di perimeter untuk signature-based blocking, NDR di internal network untuk behavioral detection, dan SIEM sebagai pusat korelasi. Defense in depth โ tidak ada satu solusi yang cukup.
15. 05 โ Deployment Architecture
Penempatan IDS/IPS sangat penting. Lokasi yang salah berarti blind spot. Umumnya IDS/IPS ditempatkan di: (1) Perimeter โ antara firewall dan internal network, (2) DMZ โ memantau traffic ke/dari server publik, (3) Internal segments โ mendeteksi lateral movement, (4) Cloud โ virtual TAP atau flow logs. Gunakan SPAN port untuk IDS (passive) dan inline deployment untuk IPS (active).
16. IDS/IPS Deployment Points
Internet
โ
โโโโโโผโโโโโ
โFirewall โ
โโโโโโฌโโโโโ
โ
โโโโโโผโโโโโ โโโโโโโโโโโโ
โ IPS โโโโโโบโ IDS/NIDS โ โโโ SPAN from core switch
โ(inline) โ โ(passive) โ
โโโโโโฌโโโโโ โโโโโโโโโโโโ
โ
โโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Core Switch โ
โโโโโโโโโฌโโโโโโโโฌโโโโโโโโฌโโโโโโโโค
โ DMZ โ Serversโ Users โ Cloud โ
โ โ โ โ GW โ
โโโโโโโโโดโโโโโโโโดโโโโโโโโดโโโโโโโโ
Recommended: IPS at perimeter, IDS at internal segmentsIPS ditempatkan inline di perimeter untuk blocking. IDS ditempatkan di internal via SPAN port untuk visibility tanpa mengganggu traffic flow.
17. SPAN Port vs TAP vs Inline
| Metode | Cara Kerja | Kelebihan | Kekurangan |
|---|---|---|---|
| SPAN Port | Switch menyalin traffic ke port tertentu | Mudah dikonfigurasi, tidak perlu hardware tambahan | Bisa drop packet saat high load, tidak 100% reliable |
| Network TAP | Hardware device yang menyalin traffic secara fisik | 100% traffic capture, tidak ada packet loss | Butuh hardware tambahan, biaya lebih tinggi |
| Inline | Traffic harus melewati device (IPS mode) | Bisa blocking, real-time prevention | Single point of failure, menambah latency |
18. 06 โ Konsep Rules/Signatures
IDS/IPS bekerja berdasarkan rules (signatures). Setiap rule mendefinisikan pola traffic yang dianggap mencurigakan. Rule terdiri dari: action (alert/drop/reject), protocol (tcp/udp/icmp/dns), source/destination (IP dan port), dan detection options (content match, threshold, flow direction). Rules bisa berasal dari komunitas (ET Open, Snort Community) atau dibuat custom sesuai kebutuhan organisasi.
19. Anatomy of IDS Rule
โโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโฌโโโโโฌโโโโโโโโโโโโฌโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโ
โ Action โ Protocol โ Src IP โ Port โ -> โ Dest IP โ Port โ Detection Options โ
โโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโผโโโโโผโโโโโโโโโโโโผโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโค
โ alert โ tcp โ any โ any โ -> โ $HOME_NET โ 443 โ (msg:"..."; ...) โ
โ drop โ udp โ $EXT โ any โ -> โ $HOME_NET โ 53 โ (content:"..."; ...) โ
โ reject โ icmp โ any โ any โ -> โ any โ any โ (threshold:...; ...) โ
โโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโดโโโโโดโโโโโโโโโโโโดโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโ
Action: alert = log only | drop = block silently | reject = block + notify
Protocol: tcp, udp, icmp, dns, http, tls, ssh, etc.
Direction: -> (one way) | <> (bidirectional)Setiap rule IDS/IPS memiliki struktur yang sama: action, protocol, source, direction, destination, dan detection options.
20. Contoh Rule
# Alert on any ICMP traffic (ping)
alert icmp any any -> $HOME_NET any (
msg:"ICMP Ping Detected";
itype:8;
sid:1000001;
rev:1;
classtype:icmp-event;
)
# Breakdown:
# alert โ Action: generate alert (don't block)
# icmp โ Protocol: ICMP
# any any โ Source: any IP, any port
# -> โ Direction: one-way
# $HOME_NET any โ Destination: our network, any port
# msg โ Alert message
# itype:8 โ ICMP type 8 = Echo Request (ping)
# sid โ Signature ID (unique identifier)
# rev โ Rule revision numberRule sederhana ini mendeteksi semua ICMP ping yang masuk ke jaringan kita. Berguna sebagai rule pertama untuk testing.
21. Rule Sources
| Sumber | Deskripsi | Biaya | Update |
|---|---|---|---|
| ET Open | Emerging Threats Open โ ruleset gratis dari Proofpoint, sangat populer | Gratis | Harian |
| ET Pro | Versi premium ET dengan rules tambahan dan update lebih cepat | Berbayar | Real-time |
| Snort Community | Rules gratis dari komunitas Snort, kompatibel dengan Suricata | Gratis | Periodik |
| Snort VRT (Talos) | Rules premium dari Cisco Talos, paling komprehensif untuk Snort | Berbayar (gratis 30 hari delay) | Real-time (paid) / 30 hari (free) |
| Custom Rules | Rules yang ditulis sendiri sesuai kebutuhan organisasi | Gratis (effort) | Sesuai kebutuhan |
22. Rules Harus Selalu Di-update!
Rules yang tidak di-update = ancaman yang tidak terdeteksi. Threat landscape berubah setiap hari โ malware baru, exploit baru, C2 infrastructure baru. Jadwalkan suricata-update atau pulledpork minimal sekali sehari. Rules yang stale sama saja dengan tidak punya IDS.