Wireless Security Protocols คืออะไร?
มาตรฐานการเข้ารหัสและยืนยันตัวตนสำหรับเครือข่ายไร้สาย (IEEE 802.11) ป้องกันการขโมยข้อมูลและการเข้าถึงโดยไม่ได้รับอนุญาต
วิวัฒนาการของ Wi-Fi Security Protocols
| Protocol | ปี | Encryption | Authentication | Key Management | สถานะ |
|---|---|---|---|---|---|
| WEP (Wired Equivalent Privacy) | 1997 | RC4 Stream Cipher (40/104-bit) | Open System / Shared Key | Static Key | ❌ Deprecated, Insecure |
| WPA (Wi-Fi Protected Access) | 2003 | TKIP (RC4-based) + MIC | PSK / 802.1X (EAP) | Dynamic Key (Per-session) | ⚠️ Legacy, Deprecated |
| WPA2 (802.11i) | 2004 | AES-CCMP (128-bit) | PSK / 802.1X (EAP) | PMK → PTK/GTK (4-way Handshake) | ✅ Current Standard |
| WPA3 (802.11ax) | 2018 | AES-GCMP (128/256-bit) | SAE (Personal) / 802.1X (Enterprise) | SAE (Dragonfly) / Suite B | ✅ Latest & Strongest |
รายละเอียดแต่ละโปรโตคอล
WEP - Wired Equivalent Privacy
- มาตรฐานแรก ใช้ RC4 Stream Cipher
- IV (Initialization Vector) แค่ 24-bit → ชนกันได้ง่าย (IV Collision)
- Static Key ไม่เปลี่ยน → แฮกได้ด้วย Aircrack-ng ในไม่กี่นาที
- ห้ามใช้งาน - ถ้าอุปกรณ์รองรับแค่ WEP ให้ทิ้ง/อัปเกรด
WPA - Wi-Fi Protected Access (Interim)
- แก้ WEP ชั่วคราว ก่อน WPA2 พร้อม
- TKIP (Temporal Key Integrity Protocol) - Per-packet Key Mixing
- Michael MIC (Message Integrity Check)
- ยังใช้ RC4 → มีช่องโหว่ (Beck-Tews, Ohigashi-Morii Attacks)
- Deprecated - Wi-Fi Alliance ห้าม Certify ใหม่ตั้งแต่ 2020
WPA2 - มาตรฐานปัจจุบัน (Current Standard)
- IEEE 802.11i - Mandatory AES-CCMP (Counter Mode CBC-MAC Protocol)
- 2 โหมด:
- WPA2-Personal (PSK): Pre-Shared Key, 4-way Handshake
- WPA2-Enterprise (802.1X/EAP): RADIUS, Individual Credentials
- ช่องโหว่หลัก: KRACK (Key Reinstallation Attack) - 2017, Patchable
- ยังคงปลอดภัยหาก: Patch แล้ว, ใช้ AES Only, รหัสผ่านแข็งแกร่ง
WPA3 - มาตรฐานล่าสุด (Latest & Strongest)
- WPA3-Personal: SAE (Simultaneous Authentication of Equals) - Dragonfly Handshake
- กัน Offline Dictionary Attack (ไม่ได้ Handshake มา Crack)
- Forward Secrecy (Session Key ไม่เกี่ยวกับ Password)
- Protected Management Frames (PMF/802.11w) Mandatory
- WPA3-Enterprise: 192-bit Security Suite (CNSA), Optional 256-bit
- Wi-Fi Easy Connect (DPP): QR Code/NFC Onboarding สำหรับ IoT (No Password)
- ต้องการ: Hardware Support (Wi-Fi 6 / 802.11ax+) + Firmware Update
โปรโตคอลเครือข่ายไร้สายพื้นฐาน: IEEE 802.11
- 802.11a/b/g/n/ac/ax/be = Physical/MAC Layer Standards (Speed, Frequency, MIMO)
- Security Layer แยกต่างหาก: WEP/WPA/WPA2/WPA3 ทำงานบน 802.11 ทุกเวอร์ชัน
- 802.11n (Wi-Fi 4) = เริ่มรองรับ WPA2-AES แบบ Mandatory
- 802.11ax (Wi-Fi 6/6E) = รองรับ WPA3
- 802.11be (Wi-Fi 7) = WPA3 Mandatory
คำแนะนำการเลือกใช้ (2024)
- WPA3-Personal (SAE) - หาก Router และ Client รองรับทั้งคู่ (Best)
- WPA2/WPA3 Transition Mode - รองรับทั้งเก่าและใหม่ (Practical)
- WPA2-Personal (AES Only) - หากมีอุปกรณ์เก่าที่ไม่รองรับ WPA3 (Minimum)
- Enterprise: WPA3-Enterprise (192-bit) หรือ WPA2-Enterprise (EAP-TLS)
- IoT แยก Network: Guest Network / VLAN / WPA2-PSK แยกต่างหาก
คำถามที่พบบ่อย
WPA2-PSK vs WPA2-Enterprise ต่างกันยังไง?
PSK = รหัสผ่านร่วมกัน (บ้าน/เล็ก) Enterprise = 802.1X/RADIUS, แต่ละคน User/Pass/Cert ของตัวเอง (องค์กร)
Router ตั้ง WPA2/WPA3 Mixed ดีกว่า WPA2 Only ไหม?
ได้ หากมีอุปกรณ์ใหม่รองรับ WPA3 จะใช้ WPA3 อัตโนมัติ เก่าใช้ WPA2 แต่ต้องแน่ใจว่า WPA2 ใช้ AES Only (ไม่ใช่ TKIP)
WPA3 ป้องกัน KRACK ได้ไหม?
ได้ SAE Handshake ออกแบบมาแก้ KRACK โดยเฉพาะ
อุปกรณ์เก่า (PS3, Printer เก่า, ESP8266) เชื่อม WPA3 ไม่ได้
ใช้ WPA2/WPA3 Transition Mode หรือแยก SSID/VLAN สำหรับ IoT Legacy
สรุป
WPA3 (SAE) = ปลอดภัยที่สุด กัน Dictionary Attack, Forward Secrecy, PMF Mandatory WPA2-AES = ขั้นต่ำที่ยอมรับได้ (Patch KRACK, Strong Password) WEP/WPA = ห้ามใช้ เลือกโปรโตคอลตาม Hardware ที่รองรับ และแยก Network สำหรับ IoT Legacy