Honeypot (ฮันนีย์พอต) คืออะไร?
Honeypot คือ ระบบหรือทรัพยากรปลอม (Decoy System) ที่ตั้งใจวางไว้ในเครือข่าย เพื่อ 誘引 (Lure), ตรวจจับ (Detect), ศึกษา (Study), และเบี่ยงเบน (Divert) ผู้โจมตี (Attackers) ให้โจมตีระบบปลอมนั้น แทนที่จะเป็นระบบจริง (Production Systems)
คำว่า "Honeypot" มาจากแนวคิด "น้ำผึ้งดึงดูดแมลง" - ทำให้โจมตี "ติด" และอยู่ในระบบที่เราควบคุม/เฝ้าระวังได้
หลักการทำงาน (How Honeypots Work)
- Deployment: วาง Honeypot ในเครือข่าย (Internal, DMZ, Cloud, Internet-facing)
- Attraction: ทำให้ดูเหมือนระบบจริง (Open Ports, Services, Banners, Fake Data, Vulnerabilities)
- Interaction: โจมตีโจมตี/สแกน/พยายาม Exploit Honeypot
- Logging & Alerting: บันทึกทุกการกระทำ (Keystrokes, Commands, Files, Network Traffic, Malware Samples)
- Analysis: วิเคราะห์ TTPs (Tactics, Techniques, Procedures), IOCs, Malware, Tools, Intent
- Response: Block Attacker, Update Signatures, Improve Defenses, Threat Intelligence Sharing
ประเภทของ Honeypot (Types by Interaction Level)
| ประเภท | Interaction Level | คำอธิบาย | ตัวอย่าง | Risk |
| Low-Interaction | Low | Emulate Services/Protocols แบบจำลอง ไม่มี OS จริง รันได้บน Single Host หลายตัว | Honeyd, Dionaea, Conpot, Cowrie (SSH/Telnet), Glastopf (Web), Elasticpot (ELK) | Low (ไม่ถูก Compromise จริง) |
| Medium-Interaction | Medium | ให้ Shell/Service จำลองมากขึ้น มี File System จำลอง สามารถรัน Command ได้บางส่วน | Kippo (SSH), HoneyPy, HonSSH | Medium |
| High-Interaction | High | OS จริง, Services จริง, Vulnerabilities จริง (ใน Controlled Environment) ให้ข้อมูลรายละเอียดสุด | Real VM/Container with Vulnerable Apps, Sebek (Kernel Module Logging) | High (อาจถูก Escape/Compromise) |
| Pure Honeypot | Full | Production System จริงที่ Monitor ทุกอย่าง (ไม่ใช่ Decoy) ใช้สำหรับ Research | Production Server ที่ Instrumented เข้มข้น | Very High |
ประเภทตามวัตถุประสงค์ (By Purpose)
- Production Honeypots: ติดตั้งใน Production Network เพื่อ Early Warning, Detection, Deception
- Research Honeypots: เพื่อศึกษา Malware, Attack Trends, Botnets, Zero-days (Academic, Vendor Labs)
- Client Honeypots (Honeyclients): จำลอง Client (Browser, Email Client) ไปเยี่ยม Malicious Sites/Links
- Database Honeypots: จำลอง Database (SQL Injection, Data Exfiltration)
- SCADA/ICS Honeypots: Conpot, GasPot - จำลอง Industrial Protocols (Modbus, DNP3, S7comm)
- IoT Honeypots: IoTCandyJar, HoneyThing - จำลอง IoT Devices (Cameras, Routers, DVRs)
- Spider/Harvester Honeypots: สำหรับจับ Email Spammers, Web Crawlers
Honeynet (เครือข่าย Honeypots)
กลุ่มของ Honeypots หลายตัวเชื่อมต่อกัน จำลอง Network Topology จริง มี Honeywall (Gateway) ควบคุม/Monitor ทั้ง Inbound/Outbound Traffic
- Tools: Honeynet Project Tools (Sebek, Roo, Walleye, Honeywall CDROM/ISO)
- ให้มุมมอง Macro: Lateral Movement, C2 Communication, Attacker Collaboration
การติดตั้ง (Deployment Strategies)
| ตำแหน่ง | ประโยชน์ | ความเสี่ยง |
| External / Internet-facing | จับ Internet Background Noise, Botnets, Automated Scanners, Exploit Attempts | High Volume, Legal Issues (Attracting Attacks), Resource Consumption |
| DMZ / Perimeter | Detect Targeted Attacks, Recon, Exploitation Attempts บน Public Services | Medium, ต้อง Isolate ดี |
| Internal Network (Internal Honeypot) | Detect Insider Threat, Lateral Movement, Credential Theft, Compromised Hosts | High Value - Detect "Already Inside" Attacks |
| Cloud (AWS/Azure/GCP) | Detect Cloud-specific Attacks (Metadata Service, Container Escape, IAM Abuse) | Cost, Shared Responsibility |
| Wireless | Detect Rogue AP, Evil Twin, WPA Handshake Capture | Physical Proximity Required |
เครื่องมือและแพลตฟอร์ม Honeypot ยอดนิยม
- Cowrie: SSH/Telnet Honeypot (Medium-High Interaction) - Python, จดบันทึก Keystrokes, File Transfers
- Dionaea: Multi-protocol (SMB, HTTP, FTP, TFTP, SIP, MQTT) - Malware Collection
- Conpot: ICS/SCADA Honeypot (Modbus, S7comm, DNP3, IEC 60870-5-104)
- Honeyd: Low-Interaction, Virtual Hosts หลายพันตัวบน Single Machine
- OpenCanary: Modular, Multi-protocol, Easy Config (Python) - Alert to Slack/Email/Syslog
- T-Pot: Docker-based Multi-honeypot Platform (Cowrie, Dionaea, Conpot, Elasticpot, Honeytrap, etc.) + ELK Stack + Grafana - แนะนำสำหรับเริ่มต้น
- CHIP (Cisco Honeypot): Cisco Network Device Emulation
- Canary Tokens / Canarytokens.org: Simple Tripwires (Files, URLs, DNS, Email, AWS Keys, GitHub Tokens)
ประโยชน์ของ Honeypot (Benefits)
- Early Warning: Detect Attacks ที่ SIEM/IDS ไม่จับ (Zero-day, Insider, Low-and-Slow)
- Threat Intelligence: IOCs, TTPs, Malware Samples, Tools, Attribution Clues
- Deception: Waste Attacker Time/Resources, Divert จาก Production Systems
- Training: Safe Environment สำหรับฝึก Incident Response, Forensics, Malware Analysis
- Research: Contribute to Community (MalwareBazaar, VirusTotal, MISP, Abuse.ch)
- Compliance: Demonstrate Proactive Detection Capability
ความเสี่ยงและข้อจำกัด (Risks & Limitations)
- Legal/Entrapment: ไม่ใช่ Entrapment (Entrapment ='Induce ไม่ได้ทำ') แต่ต้องระวัง Jurisdiction, Data Privacy (GDPR, PDPA)
- Attacker Detection: Attacker สามารถ Fingerprint Honeypot ได้ (VM Artifacts, Timing, Missing Files, No User Activity) → ปรับโจมตีหรือหลบหลีก
- Compromise Risk: High-Interaction อาจถูก Escape → Pivot ไป Production (ต้อง Isolation เข้มข้น: Separate VLAN, No Trust, Strict Egress Filtering)
- Resource Intensive: High-Interaction ต้องการ VM, Monitoring, Maintenance, Analysis Time
- False Sense of Security: Honeypot ไม่ใช่ Silver Bullet ต้องมี Defense in Depth อื่นๆ
- Limited Visibility: เห็นเฉพาะ Attack ที่มุ่งเป้า Honeypot (Blind Spot อื่นๆ)
Best Practices การ Deploy Honeypot
- Define Objectives: Detection, Research, Deception, Training?
- Start Low-Interaction (Cowrie, OpenCanary, T-Pot) → Scale Up
- Strict Network Isolation: Separate VLAN, Firewall Rules (Deny All Egress Except Logging), No Trust Relationships
- Comprehensive Logging: Packet Capture (PCAP), Keystrokes, File Integrity, Process Monitoring, Memory Dumps
- Automated Alerting: SIEM Integration, Slack/Email/Telegram/Webhook
- Regular Maintenance: Update Emulators, Rotate Credentials, Clean Logs, Patch Host OS
- Legal Review: Consult Legal/Compliance ก่อน Deploy (Data Collection, Jurisdiction)
- Document Everything: Architecture, Rules, Playbooks, Contacts
สรุป: Honeypot = Decoy System สำหรับ Lure, Detect, Study, Divert Attackers ประเภท: Low/Medium/High Interaction, Production/Research ต้อง Deploy ด้วย Isolation เข้มข้น, Logging ครบถ้วน, Legal Review ใช้ T-Pot (Docker) เริ่มต้นง่ายที่สุด ให้ Threat Intelligence คุณค่า และ Early Warning สำหรับ Blue Team