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

Wiretapping (การสnoopโทร/ขโมยข้อมูลผ่านสาย) ในความปลอดภัยเครือข่ายคืออะไร?

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)

  1. Isolate Affected Segment / Quarantine Compromised Hosts
  2. Rotate Compromised Keys/Certificates/Passwords
  3. Forensic Capture (PCAP, Memory, Disk) → Chain of Custody
  4. Legal/Compliance Notification (PDPA, SEC, Industry Regulators)
  5. Root Cause Analysis → Harden Controls

Wiretapping vs. Related Concepts

คำศัพท์ความแตกต่าง
Eavesdroppingคำกว้างกว่า: การฟังลือโดยไม่ได้รับอนุญาต (รวม Wiretapping, Shoulder Surfing, Acoustic Eavesdropping)
SniffingTechnical 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 ที่ต้องมีกระบวนการกำกับดูแลที่เข้มงวด