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

WEP ในความปลอดภัยเครือข่าย คืออะไร? ความแตกต่าง WEP vs WPA/WPA2/WPA3

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

WEP เป็นโปรโตคอลความปลอดภัยไร้สายรุ่นแรก มาตรฐาน IEEE 802.11 ตั้งแต่ปี 1997 วัตถุประสงค์คือให้ความปลอดภัยเทียบเท่าสายลวด (Wired) ใช้การเข้ารหัส RC4 Stream Cipher

รายละเอียดทางเทคนิค

  • Encryption: RC4 (Stream Cipher) - มีช่องโหว่ทางทฤษฎี
  • Key Size: 40-bit (WEP-40) หรือ 104-bit (WEP-104) มักเรียก 64-bit และ 128-bit (รวม IV 24-bit)
  • IV (Initialization Vector): 24-bit ส่งในรูป Cleartext → IV Collision เกิดง่าย
  • Authentication: Open System หรือ Shared Key (ทั้งคู่อ่อนแอ)
  • Integrity Check: CRC-32 (Linear - สามารถแก้ไขแพ็กเก็ตได้โดยไม่ถูกตรวจจับ)

ทำไม WEP ไม่ปลอดภัย? (ช่องโหว่หลัก)

  1. IV Space เล็กเกินไป (24-bit) → IV ซ้ำกันภายในเวลาสั้น → Recover Key ได้ด้วย Statistical Attacks (FMS, KoreK, PTW)
  2. RC4 Weaknesses - Key Scheduling Algorithm (KSA) อ่อนแอ
  3. No Key Management - ไม่มี Mechanism สลับ Key / Rotate Key อัตโนมัติ
  4. No Replay Protection - สามารถ Replay Packets ได้
  5. CRC-32 ไม่ใช่ Cryptographic Integrity - แก้ไขข้อมูล + คำนวณ CRC ใหม่ได้

ผลลัพธ์: สามารถแฮก WEP ได้ภายใน นาทีถึงชั่วโมง ด้วยเครื่องมืออย่าง Aircrack-ng, Wifite, Fern WiFi Cracker

WEP vs WPA vs WPA2 vs WPA3 - ตารางเปรียบเทียบ

วิธีตรวจสอบว่าใช้ WEP อยู่หรือไม่

Windows 10/11:

  1. Settings → Network & Internet → Wi-Fi → Hardware properties
  2. ดู "Security type" - ถ้าเขียน WEP → ต้องเปลี่ยนทันที

Router Web Interface:

  1. Login Router → Wireless Settings → Security Mode
  2. ดูว่าตั้งค่าอยู่ที่ WEP, WPA, WPA2, หรือ WPA3

Mobile (Android/iOS):

Settings → Wi-Fi → แตะ (i) หรือ กดค้างที่เครือข่าย → ดู Security/Encryption Type

WEP Key vs Wi-Fi Password

  • WEP Key = รหัสผ่าน Wi-Fi ในโหมด WEP (10/26 Hex chars หรือ 5/13 ASCII chars)
  • WPA/WPA2 Passphrase = รหัสผ่าน 8-63 ตัวอักษร (ASCII)
  • WEP Key ≠ Router Admin Password (เป็นคนละอย่าง)

คำแนะนำ: ต้องทำอย่างไร?

  1. ห้ามใช้ WEP เด็ดขาด - ถ้ายังใช้อยู่ ให้เปลี่ยนทันที
  2. อัปเกรดเป็น WPA2-AES (CCMP) ขั้นต่ำ - รองรับอุปกรณ์เกือบทุกตัว
  3. หากรองรับ WPA3 ให้ใช้ WPA3-Personal (SAE) - ปลอดภัยที่สุด
  4. ใช้ Passphrase ยาว 12+ ตัวอักษร ผสมตัวพิมพ์ใหญ่/เล็ก ตัวเลข สัญลักษณ์
  5. ปิด WPS (มีช่องโหว่ PIN Brute-force)
  6. อัปเดต Firmware Router ให้ล่าสุด

กรณีอุปกรณ์เก่ารองรับแค่ WEP

  • แยกเครือข่าย (VLAN/Guest Network) สำหรับอุปกรณ์เก่า
  • ใช้ WPA2 บนเครือข่ายหลัก
  • วางแผนทดแทนอุปกรณ์เก่า
  • หากเป็น Industrial/IoT Legacy → ใช้ Compensating Controls (Network Segmentation, Monitoring, VPN)
คุณสมบัติWEPWPA (TKIP)WPA2 (CCMP/AES)WPA3 (SAE/AES-GCMP)
ปีเปิดตัว19972003 (Interim)20042018
EncryptionRC4TKIP (RC4-based)CCMP (AES)AES-GCMP / SAE
Key ManagementStatic KeyPer-Packet Key Mixing4-Way Handshake + PMKSAE (Simultaneous Authentication of Equals)
Forward Secrecyไม่มีไม่มีไม่มี (Enterprise มี)มี (SAE)
Protected Management Framesไม่มีไม่มีOptional (802.11w)บังคับ (802.11w)
Offline Dictionary Attackง่ายมากเป็นไปได้เป็นไปได้ (Weak Passphrase)ป้องกันได้ (SAE)
สถานะDeprecated / ห้ามใช้Deprecatedมาตรฐานปัจจุบันมาตรฐานล่าสุด (แนะนำ)