Wiretapping (การเบ็ดเสี้ยน/ขโมยข้อมูลผ่านการสื่อสาร) ในความปลอดภัยเครือข่าย
Wiretapping หมายถึงการ สอดแนมหรือบันทึกการสื่อสาร ระหว่างสองฝ่ายหรือมากกว่า โดยที่ไม่ได้รับอนุญาตจากผู้สื่อสาร ในยุคดิจิทัล ขยายความหมายครอบคลุม: โทรศัพท์, อินเทอร์เน็ต, เครือข่ายคอมพิวเตอร์, อีเมล, ชแชท, VoIP, และข้อมูลทุกประเภทที่ส่งผ่านสายหรืออากาศ
ประเภทของ Wiretapping
| ประเภท | คำอธิบาย | ตัวอย่าง |
| Passive Wiretapping (การเบ็ดเสี้ยนแบบนิ่ง) | เฉพาะฟัง/อ่าน/บันทึกข้อมูล ไม่แก้ไข ไม่ส่งกลับ ไม่รบกวนการสื่อสาร | Packet Sniffing (Wireshark, tcpdump), Fiber Tapping, Inductive Coupling, Wi-Fi Eavesdropping (Monitor Mode) |
| Active Wiretapping (การเบ็ดเสี้ยนแบบกระทำ) | ไม่แค่ฟัง แต่ยัง แก้ไข, บล็อก, ส่งซ้ำ, หรือฉีดข้อมูล ลงในสตรีมการสื่อสาร | Man-in-the-Middle (MitM), Session Hijacking, SSL Stripping, DNS Spoofing, ARP Poisoning, Packet Injection |
| Legal/Authorized Wiretapping (กฎหมาย/ได้รับอนุญาต) | หน่วยงานบังคับกฎหมายทำตามคำสั่งศาล/กฎหมายเฉพาะ | Lawful Interception (LI), CALEA (US), TCN (Thailand), การสอบสวนคดีอาชญากรรม |
| Illegal/Unauthorized Wiretapping (ผิดกฎหมาย) | บุคคล/กลุ่มทำโดยไม่ได้รับอนุญาต เพื่อประโยชน์ส่วนตัว/สปาย/ทำลาย | Corporate Espionage, Cybercrime, Stalking, Blackmail, State-sponsored Surveillance |
เทคนิคและเครื่องมือ Wiretapping ในเครือข่ายสมัยใหม่
🔍 Packet Sniffing / Network Tapping (Passive)
- Port Mirroring (SPAN/RSPAN/ERSPAN): Switch คัดลอกทราฟฟิกไป Port อื่นให้ Analyzer
- Network TAP (Test Access Point): Hardware Device ต่อ Series กับสาย Fiber/Copper คัดลอกสัญญาณ 100% ไม่เสียแพ็กเก็ต
- Wi-Fi Monitor Mode: NIC รองรับ Monitor Mode (Alfa, Intel) + Aircrack-ng, Kismet, Wireshark
- SSL/TLS Decryption: ด้วย Private Key (Server-side) หรือ MITM Proxy (Burp Suite, mitmproxy) - ต้องมี CA Trust
⚔️ Man-in-the-Middle Attacks (Active)
- ARP Spoofing/Poisoning: ส่ง ARP Reply เท็จ ให้ Victim ส่ง Traffic มาที่ Attacker
- DNS Spoofing/Hijacking: ตอบ DNS Query ผิด 導向 Malicious Server
- DHCP Spoofing: Rogue DHCP Server ให้ Gateway/DNS ของ Attacker
- BGP Hijacking: โฆษณา Prefix ผิด → Traffic ผ่าน Attacker (Internet Scale)
- SSL/TLS Stripping: Downgrade HTTPS → HTTP (HSTS ป้องกันได้)
- Evil Twin AP: Fake Wi-Fi AP ชื่อเดียวกัน → Victim Connect → Intercept All Traffic
Wiretapping ในกรอบกฎหมาย (Thailand & International)
| ประเทศ/กฎหมาย | รายละเอียด |
| ไทย: Computer Crime Act (CCA) พ.ศ. 2550/2560 | มาตรา 18: เข้าถึงข้อมูลคอมพิวเตอร์โดยไม่ได้รับอนุญาต ติดคุก 5 ปี ปรับ 100,000 บาท มาตรา 19: สอดแนมการสื่อสาร ติดคุก 10 ปี ปรับ 200,000 บาท |
| ไทย: Telecommunications Act พ.ศ. 2544 | มาตรา 64: ห้ามสอดแนมการสื่อสาร โทรคมนาคม ต้องมีคำสั่งศาล |
| สหรัฐ: Wiretap Act (18 U.S.C. § 2511) | ห้าม Intercept Wire/Oral/Electronic Communication ยกเว้นได้รับอนุญาต (One-party/Two-party Consent ระหว่างรัฐ) |
| สหรัฐ: CALEA (Communications Assistance for LE Act) | บังคับ Telco/ISP ให้มีความสามารถรองรับ Lawful Interception |
| EU: ePrivacy Directive / GDPR | คุ้มครองความลับการสื่อสาร ต้องมี Consent / Legal Basis |
การป้องกันและลดทอน (Mitigation & Detection)
🛡️ การป้องกัน (Prevention)
- Encryption Everywhere: TLS 1.3 (HTTPS, SMTP/IMAP/POP over TLS, SSH, VPN, WireGuard, QUIC) - ทำให้ Passive Sniffing ไม่ได้ข้อมูล
- Certificate Pinning / HPKP / DANE: ป้องกัน MITM ด้วย Fake Cert
- Network Segmentation + NAC: จำกัด Scope ของการ Tapping
- Port Security / DAI / DHCP Snooping: ป้องกัน ARP/DHCP Spoofing บน Switch
- Encrypted DNS (DoH/DoT): ป้องกัน DNS Spoofing
- Physical Security: Fiber Protection, Secure Cabinets, TAP Detection (Optical Power Monitoring)
🔍 การตรวจจับ (Detection)
- ARP Anomaly Detection: MAC-IP Mapping Changes, Gratuitous ARP Flood
- Traffic Analysis: Unexpected Paths, Latency Spikes, Duplicate Packets
- Certificate Transparency Logs Monitoring: Detect Rogue Certs
- Wireless IDS/IPS (WIPS): Detect Evil Twin, Deauth, Monitor Mode Devices
- Network Flow Analysis (NetFlow/sFlow/IPFIX): Anomalous Traffic Patterns
📋 การตอบสนอง (Response)
- Isolate Affected Segment / Quarantine Compromised Hosts
- Rotate Compromised Keys/Certificates/Passwords
- Forensic Capture (PCAP, Memory, Disk) → Chain of Custody
- Legal/Compliance Notification (PDPA, SEC, Industry Regulators)
- Root Cause Analysis → Harden Controls
Wiretapping vs. Related Concepts
| คำศัพท์ | ความแตกต่าง |
| Eavesdropping | คำกว้างกว่า: การฟังลือโดยไม่ได้รับอนุญาต (รวม Wiretapping, Shoulder Surfing, Acoustic Eavesdropping) |
| Sniffing | Technical Term: การ Capture Packets บน Network (Passive) - ส่วนหนึ่งของ Wiretapping |
| Snooping | คำสแลง: การเฝ้าดูข้อมูลลับ (Casual/Opportunistic) |
| Man-in-the-Middle (MitM) | Active Wiretapping แบบที่ Attacker อยู่กลาง แก้ไข/ส่งต่อ Traffic |
| Traffic Interception | คำทางเทคนิค: การข截 Traffic (รวม Passive และ Active) |
สรุป
Wiretapping เป็นภัยคุกคามพื้นฐานของ Communication Security การป้องกันที่มีประสิทธิภาพที่สุดคือ End-to-End Encryption (TLS 1.3, Signal Protocol, WireGuard, PGP) ร่วมกับ Network Segmentation, NAC, Physical Security, และ Monitoring ทางกฎหมายส่วนใหญ่ห้าม Wiretapping ที่ไม่ได้รับอนุญาต แต่ก็มีข้อยกเว้นสำหรับ Lawful Interception ที่ต้องมีกระบวนการกำกับดูแลที่เข้มงวด