Thuta Learning
ရှာဖွေရန်
IntermediateSecurityintermediate

Intrusion Detection Basics (IDS/IPS)

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • Intrusion Detection Basics (IDS/IPS) ကို ကြောက်စရာမလိုအောင် နားလည်မယ်
  • ကိုယ်တိုင် authorized lab environment ထဲမှာ tool ကို run ကြည့်တတ်မယ်
  • Real assessment/report ထဲမှာ ဒီ concept ကို ချက်ချင်း အသုံးချတတ်မယ်

ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်

IDS (Intrusion Detection System) က network traffic/system log ကို monitor လုပ်ပြီး, suspicious activity ကို detect/alert ပေးတဲ့ system ပါ (block မလုပ်ပါ, alert ပဲ ပေးပါတယ်) — IPS (Intrusion Prevention System) ကတော့ detect ရုံသာမက, suspicious traffic ကို automatic block ပါ ပေးပါတယ်။ Signature-based Detection က known attack pattern (ဥပမာ - specific SQL injection payload) ကို database နဲ့ ကိုက်ညှိပြီး detect တာပါ — Anomaly-based Detection ကတော့ 'ပုံမှန် baseline' ကနေ ကွဲထွက်နေတဲ့ behavior (ဥပမာ - user တစ်ယောက် ညသန်းခေါင် login ဝင်တာ ရုတ်တရက် များလာတယ်) ကို detect တာပါ.

လက်တွေ့ scenario နဲ့ ချိတ်ကြည့်မယ်

Snort (open-source IDS) ကို lab environment မှာ setup လုပ်ပြီး, Basic chapter ကနေ Nmap scan ကို ကိုယ်တိုင် run ကြည့်ရင် — Snort က 'port scan detected' ဆိုတဲ့ alert ကို log ထဲမှာ ချက်ချင်း ပြပေးနိုင်ပါတယ် — 'attacker perspective ကနေ scan လုပ်တာ' နဲ့ 'defender perspective ကနေ detect ဖမ်းတာ' ကို တစ်ပြိုင်နက် observe လို့ရအောင် setup လုပ်ကြည့်ခြင်းက offensive/defensive concept နှစ်ခုလုံးကို ချိတ်ဆက်ပြသနိုင်ပါတယ်.

အတူတူ ကြည့်မယ်

text
IDS alert example (conceptual):

[**] [1:1000001:1] PORT SCAN DETECTED [**]
[Classification: Attempted Information Leak]
Source IP: 192.168.56.1
Destination IP: 192.168.56.101
Ports scanned: 21,22,80,443,3306 (in under 2 seconds)

This pattern — many ports, very short time window —
is a classic signature the IDS is watching for.
You should see
IDS ရဲ့ port-scan alert log ကို ဖတ်ရှင်းနိုင်မည်။

၅ မိနစ် စမ်းကြည့်

Lab environment ရှိရင် Snort (ဒါမှမဟုတ် documentation review ပဲဖြစ်ဖြစ်) ကို ဖတ်ကြည့်ပါ — Basic chapter ရဲ့ Nmap scan ကို run ကြည့်ပြီး, IDS log ထဲမှာ ဘယ်လို alert ပေါ်လာနိုင်လဲ ခန့်မှန်းရေးကြည့်ပါ။

သတိလေးတစ်ချက်

Signature-based IDS က 'known' attack pattern ကိုသာ detect နိုင်ပါတယ် — zero-day (မသိသေးတဲ့) attack technique တွေကို signature-based detection တစ်ခုတည်းနဲ့ ကာကွယ်လို့ မလုံလောက်ပါ, layered defense (multiple security control ပေါင်းသုံးခြင်း) လိုအပ်ပါတယ်.

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • IDS ကို install ထားရုံနဲ့ 'automatic ကာကွယ်ပြီပေါ့' လို့ ထင်ခြင်း — IDS က alert ပဲ ပေးတာဖြစ်လို့ (IPS မဟုတ်ရင်) response action ကို human/automation ကနေ ဆက်လုပ်ရပါတယ်
  • IDS alert ကို monitor/review မလုပ်ဘဲ ချန်ထားခြင်း — alert fatigue (alert အများကြီးကြောင့် important ones ကို လျစ်လျူရှုမိခြင်း) ဟာ real-world security team တွေ ရင်ဆိုင်နေရတဲ့ ပြဿနာတစ်ခုပါ

အခု ကိုယ်တိုင် စမ်းကြည့်

Lab environment ရှိရင် Snort (ဒါမှမဟုတ် documentation review ပဲဖြစ်ဖြစ်) ကို ဖတ်ကြည့်ပါ — Basic chapter ရဲ့ Nmap scan ကို run ကြည့်ပြီး, IDS log ထဲမှာ ဘယ်လို alert ပေါ်လာနိုင်လဲ ခန့်မှန်းရေးကြည့်ပါ။

You'll know it worked when: IDS ရဲ့ port-scan alert log ကို ဖတ်ရှင်းနိုင်မည်။

Intrusion Detection Basics (IDS/IPS) | Thuta Learning