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 ไม่ปลอดภัย? (ช่องโหว่หลัก)
- IV Space เล็กเกินไป (24-bit) → IV ซ้ำกันภายในเวลาสั้น → Recover Key ได้ด้วย Statistical Attacks (FMS, KoreK, PTW)
- RC4 Weaknesses - Key Scheduling Algorithm (KSA) อ่อนแอ
- No Key Management - ไม่มี Mechanism สลับ Key / Rotate Key อัตโนมัติ
- No Replay Protection - สามารถ Replay Packets ได้
- CRC-32 ไม่ใช่ Cryptographic Integrity - แก้ไขข้อมูล + คำนวณ CRC ใหม่ได้
ผลลัพธ์: สามารถแฮก WEP ได้ภายใน นาทีถึงชั่วโมง ด้วยเครื่องมืออย่าง Aircrack-ng, Wifite, Fern WiFi Cracker
WEP vs WPA vs WPA2 vs WPA3 - ตารางเปรียบเทียบ
| คุณสมบัติ | WEP | WPA (TKIP) | WPA2 (CCMP/AES) | WPA3 (SAE/AES-GCMP) |
|---|---|---|---|---|
| ปีเปิดตัว | 1997 | 2003 (Interim) | 2004 | 2018 |
| Encryption | RC4 | TKIP (RC4-based) | CCMP (AES) | AES-GCMP / SAE |
| Key Management | Static Key | Per-Packet Key Mixing | 4-Way Handshake + PMK | SAE (Simultaneous Authentication of Equals) |
| Forward Secrecy | ไม่มี | ไม่มี | ไม่มี (Enterprise มี) | มี (SAE) |
| Protected Management Frames | ไม่มี | ไม่มี | Optional (802.11w) | บังคับ (802.11w) |
| Offline Dictionary Attack | ง่ายมาก | เป็นไปได้ | เป็นไปได้ (Weak Passphrase) | ป้องกันได้ (SAE) |
| สถานะ | Deprecated / ห้ามใช้ | Deprecated | มาตรฐานปัจจุบัน | มาตรฐานล่าสุด (แนะนำ) |