Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

WEP (Wired Equivalent Privacy) ให้ความปลอดภัยอะไรบ้าง? ทำไมจึงล้าสมัย?

WEP (Wired Equivalent Privacy) คืออะไร?

WEP เป็นโปรโตคอลความปลอดภัยไร้สายรุ่นแรก (IEEE 802.11 原版 1997) เป้าหมาย: ให้ความปลอดภัย เทียบเท่าสายลวด (Wired Equivalent) โดยใช้การเข้ารหัส RC4 Stream Cipher กับกุญแจ 40-bit (WEP-64) หรือ 104-bit (WEP-128) + IV 24-bit

WEP ให้ความปลอดภัยอะไรบ้าง? (ในสมัยนั้น)

  • Confidentiality: เข้ารหัส Data Frame ระหว่าง Client ↔ AP
  • Access Control: ต้องมี Key จึงจะ Associate/Communicate ได้
  • Integrity (เบื้องต้น): CRC-32 (ICV) - แต่ ไม่ปลอดภัย (Linear, Malleable)

ช่องโหว่ร้ายแรงของ WEP (ทำไมจึงแตกง่าย)

  1. IV Space เล็ก (24-bit = 16.7M) - ใช้ซ้ำได้เร็ว (IV Collision/Reuse)
  2. Static Key - ใช้ Key เดียวทุกแพ็กเก็ต ไม่มี Key Rotation
  3. RC4 Weaknesses - FMS Attack, KoreK Attack, PTW Attack (Aircrack-ng)
  4. No Key Management - ไม่มี 802.1X/EAP, ทุกคนใช้ Key เดียว (PSK)
  5. CRC-32 ไม่ใช่ Cryptographic MAC - แก้ไข Payload + Recalculate CRC ได้ (Bit-flipping)
  6. No Replay Protection - ส่งซ้ำแพ็กเก็ตได้ (Replay Attack)

WEP vs WPA vs WPA2 vs WPA3

โปรโตคอลปีEncryptionKey Managementสถานะ
WEP1997RC4 (40/104-bit)Static PSK❌ Deprecated/Insecure
WPA (TKIP)2003RC4 + TKIP (Per-packet Key)PSK / 802.1X❌ Deprecated (TKIP แตกได้)
WPA2 (AES-CCMP)2004AES-CCMP (CCM Mode)PSK / 802.1X✅ Standard ปัจจุบัน
WPA3 (SAE/AES-GCMP)2018AES-GCMP / SAESAE (Simultaneous Authentication of Equals)✅ ปลอดภัยที่สุด / ทางอนาคต

ทำไม WPA2/WPA3 ดีกว่า WEP?

  • AES-CCMP/GCMP: Block Cipher + Authenticated Encryption (Confidentiality + Integrity)
  • Per-Packet Keys (PTK): 4-way Handshake สร้าง Session Key ใหม่ทุกครั้ง
  • Key Rotation/Rekeying: Group Key Update, Reauthentication
  • WPA3 SAE: ป้องกัน Offline Dictionary Attack, Forward Secrecy, No PSK Exchange
  • Replay Protection: Sequence Counter / Packet Number

WEP ยังใช้อยู่จริงไหม?

ไม่ควรใช้เลย แม้ Router รุ่นใหม่ (ASUS ROG Rapture AX11000) ยังมีเมนู WEP ให้เลือก แต่เป็น Legacy Support เท่านั้น สำหรับอุปกรณ์เก่ามาก (DS Lite, PSP, IoT Legacy) ที่อัปเกรดไม่ได้

วิธีเช็คว่ากำลังใช้ WEP อยู่หรือไม่ (Windows)

  1. Settings > Network & Internet > Wi-Fi > Manage known networks
  2. คลิกเครือข่าย > Properties
  3. ดู Security type: ถ้าเป็น WEP → เปลี่ยนทันที

แนวทางการย้ายจาก WEP

  1. อัปเดต Firmware Router/AP ให้รองรับ WPA2/WPA3
  2. ตั้ง Security Mode: WPA2-Personal (AES) หรือ WPA3-Personal
  3. ตั้ง Passphrase ใหม่ แข็งแกร่ง 12+ ตัวอักษร
  4. อัปเดต Client ทุกเครื่อง (ลบ Profile เก่า เชื่อมต่อใหม่)
  5. หากมีอุปกรณ์เก่าที่รองรับแค่ WEP → แยก SSID/VLAN แยกต่างหาก (IoT Legacy Network) + Firewall/Isolation

สรุป

WEP = แตกได้ในไม่กี่นาทีด้วย Aircrack-ng / Besside-ng / Wifite ห้ามใช้ใน Production ไม่ว่าจะบ้านหรือองค์กร ต้องย้ายไป WPA2-AES หรือ WPA3 ทันที