ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်
IP Address က device တစ်ခုချင်းစီရဲ့ network address ပါ — Port ကတော့ device တစ်ခုပေါ်က service တစ်ခုချင်းစီကို ခွဲခြားထားတဲ့ number ပါ (ဥပမာ - port 80 = HTTP, port 443 = HTTPS, port 22 = SSH)။ Protocol (TCP, UDP) က data ကို ဘယ်လို ပို့ရမလဲ ဆိုတဲ့ rule set ပါ — TCP က reliable (packet ပျောက်ရင် ပြန်ပို့), UDP က faster ပေမယ့် reliability guarantee မရှိပါ။ 'Attack surface' ဆိုတာ system ရဲ့ ဖွင့်ထားတဲ့ port/service အားလုံး (attacker ဝင်ရောက်နိုင်တဲ့ entry point) ကို ခေါ်ပါတယ်.
လက်တွေ့ scenario နဲ့ ချိတ်ကြည့်မယ်
Web server တစ်ခုမှာ port 80 (HTTP), 443 (HTTPS), 22 (SSH) ဖွင့်ထားတယ်ဆိုရင် — attack surface က port ၃ ခုပါ, port အသစ်တစ်ခု (ဥပမာ - MySQL port 3306) ကို လိုအပ်တာထက် ဖွင့်ထားခဲ့ရင် attack surface ကျယ်လာပြီး, attacker ဝင်နိုင်တဲ့ path တစ်ခု ပိုများသွားတာပါ — 'လိုအပ်သလောက်ပဲ ဖွင့်ထား' (least privilege) principle ကို network level မှာ apply လုပ်တာနဲ့ တူပါတယ်.
အတူတူ ကြည့်မယ်
Common ports to recognize:
21 - FTP (file transfer, often insecure)
22 - SSH (secure remote login)
25 - SMTP (email sending)
53 - DNS
80 - HTTP (unencrypted web)
443 - HTTPS (encrypted web)
3306 - MySQL
3389 - RDP (Windows remote desktop)TCP/UDP, Port, Attack Surface concept ကို ရှင်းပြနိုင်မည်။၅ မိနစ် စမ်းကြည့်
ကိုယ့် laptop/router ရဲ့ open port ကို (ကိုယ့် device ကိုယ်တိုင်ပဲ) `netstat` ဒါမှမဟုတ် router admin panel ကနေ ကြည့်ကြည့်ပါ — port တစ်ခုချင်းစီက ဘယ် service အတွက်လဲ ခန့်မှန်းကြည့်ပါ။
သတိလေးတစ်ချက်
Non-standard port (ဥပမာ - SSH ကို port 22 အစား 2222 မှာ run) ကို 'security by obscurity' လို့ ယူဆကာ လုံခြုံပြီ ထင်ခြင်းသည် misconception ပါ — attacker တွေက port scan (Basic lesson 6) ကနေ ရှာတွေ့နိုင်ပါတယ်, additional layer တစ်ခုသာ ဖြစ်ပြီး primary defense မဟုတ်ပါ.