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 (ทำไมจึงแตกง่าย)
- IV Space เล็ก (24-bit = 16.7M) - ใช้ซ้ำได้เร็ว (IV Collision/Reuse)
- Static Key - ใช้ Key เดียวทุกแพ็กเก็ต ไม่มี Key Rotation
- RC4 Weaknesses - FMS Attack, KoreK Attack, PTW Attack (Aircrack-ng)
- No Key Management - ไม่มี 802.1X/EAP, ทุกคนใช้ Key เดียว (PSK)
- CRC-32 ไม่ใช่ Cryptographic MAC - แก้ไข Payload + Recalculate CRC ได้ (Bit-flipping)
- No Replay Protection - ส่งซ้ำแพ็กเก็ตได้ (Replay Attack)
WEP vs WPA vs WPA2 vs WPA3
| โปรโตคอล | ปี | Encryption | Key Management | สถานะ |
|---|---|---|---|---|
| WEP | 1997 | RC4 (40/104-bit) | Static PSK | ❌ Deprecated/Insecure |
| WPA (TKIP) | 2003 | RC4 + TKIP (Per-packet Key) | PSK / 802.1X | ❌ Deprecated (TKIP แตกได้) |
| WPA2 (AES-CCMP) | 2004 | AES-CCMP (CCM Mode) | PSK / 802.1X | ✅ Standard ปัจจุบัน |
| WPA3 (SAE/AES-GCMP) | 2018 | AES-GCMP / SAE | SAE (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)
- Settings > Network & Internet > Wi-Fi > Manage known networks
- คลิกเครือข่าย > Properties
- ดู Security type: ถ้าเป็น WEP → เปลี่ยนทันที
แนวทางการย้ายจาก WEP
- อัปเดต Firmware Router/AP ให้รองรับ WPA2/WPA3
- ตั้ง Security Mode: WPA2-Personal (AES) หรือ WPA3-Personal
- ตั้ง Passphrase ใหม่ แข็งแกร่ง 12+ ตัวอักษร
- อัปเดต Client ทุกเครื่อง (ลบ Profile เก่า เชื่อมต่อใหม่)
- หากมีอุปกรณ์เก่าที่รองรับแค่ WEP → แยก SSID/VLAN แยกต่างหาก (IoT Legacy Network) + Firewall/Isolation
สรุป
WEP = แตกได้ในไม่กี่นาทีด้วย Aircrack-ng / Besside-ng / Wifite ห้ามใช้ใน Production ไม่ว่าจะบ้านหรือองค์กร ต้องย้ายไป WPA2-AES หรือ WPA3 ทันที