Footprinting (Reconnaissance) ใน Network Security คืออะไร?
Footprinting (หรือ Reconnaissance / Information Gathering) คือ ขั้นตอนแรกของการโจมตี (Pre-attack Phase) ที่ เก็บรวบรวมข้อมูลเป้าหมาย (Target) ให้มากที่สุด เพื่อวางแผนการโจมตีหรือทดสอบการเจาะระบบ (Penetration Testing)
เป้าหมาย: เข้าใจ Attack Surface ระบุจุดอ่อน วางแผนการเข้าถึง
🎯 วัตถุประสงค์ของ Footprinting (Objectives)
- เรียนรู้ Security Posture ของเป้าหมาย
- ระบุ Vulnerabilities และ Entry Points
- สร้าง Network Map / Architecture Diagram
- ระบุ Technology Stack (OS, Services, Versions, Cloud Providers)
- รวบรวม Human Intelligence (OSINT): Employees, Emails, Social Media, Documents
- สร้าง Attack Plan ที่มีเป้าหมายชัดเจน (Targeted Attack)
🔍 ประเภท Footprinting (Types of Footprinting)
| ประเภท | คำอธิบาย | ตัวอย่างเทคนิค/เครื่องมือ |
|---|---|---|
| Passive Footprinting | เก็บข้อมูล โดยไม่สัมผัสเป้าหมายโดยตรง (No Packets Sent to Target) | WHOIS, DNS Records, Search Engines, Social Media, Shodan, Censys, Certificate Transparency, Wayback Machine, Job Postings, LinkedIn |
| Active Footprinting | โต้ตอบกับเป้าหมายโดยตรง ส่งแพ็กเก็ต/Request (อาจถูกตรวจจับ) | Ping Sweep, Traceroute, Port Scanning (Nmap), Banner Grabbing, Netcat, SNMP Walk, DNS Zone Transfer (AXFR), Web Crawling |
📋 ข้อมูลที่เก็บรวบรวม (Information Categories)
- Network Info: IP Ranges, ASN, Subnets, Routing (BGP), DNS Zones, MX/NS/TXT Records
- System Info: OS Versions, Open Ports, Services, Banners, Vulnerabilities (CVE)
- Application Info: Web Apps, Frameworks, CMS, APIs, Headers, Cookies, JS Libraries
- Human/Org Info: Employee Names, Emails, Phone Numbers, Org Chart, Technologies Used (Job Postings), Breach History
- Physical/Location: Data Centers, Offices, Wireless Networks (Wardriving), Badge Systems
🛠️ เครื่องมือ Footprinting ยอดนิยม (Tools)
| Category | Tools |
|---|---|
| OSINT / Passive | Maltego, theHarvester, Recon-ng, SpiderFoot, Shodan, Censys, FOFA, ZoomEye, GreyNoise, SecurityTrails, DNSDumpster, crt.sh, Wayback Machine, Google Dorks (site:, filetype:, inurl:) |
| DNS | dig, nslookup, host, dnsenum, dnsrecon, fierce, sublist3r, amass, massdns |
| Network Scanning | Nmap (Gold Standard), Masscan, Zmap, RustScan, Angry IP Scanner |
| Web App Recon | Burp Suite, OWASP ZAP, Nikto, WhatWeb, Wappalyzer, Dirb/Gobuster/FFUF, Katana, Hakrawler |
| Email/People | Hunter.io, VoilaNorbert, Clearbit, LinkedIn Sales Navigator, RocketReach, Phonebook.cz |
| Framework/Automation | Recon-ng, SpiderFoot, Automated Recon (ReconFTW, BBRF, Subfinder + Httpx + Nuclei) |
🧬 DNS Footprinting (เฉพาะเจาะจง)
- Zone Transfer (AXFR): `dig axfr @ns1.target.com target.com` (Misconfigured DNS Servers)
- Subdomain Enumeration: Sublist3r, Amass, Assetfinder, Subfinder, CRT.sh (Certificate Transparency)
- Record Types: A, AAAA, MX, NS, TXT (SPF/DMARC/DKIM), CNAME, SRV, CAA
- DNSSEC: ตรวจสอบ Validation Chain, Key Signing
🛡️ การป้องกันและลดทอน Footprinting (Defense & Mitigation)
| มาตรการ | รายละเอียด |
|---|---|
| Limit Public Information | ลบข้อมูลไม่จำเป็นจาก Website, DNS, Social Media, Job Postings (Tech Stack Details) |
| DNS Hardening | ปิด Zone Transfer (AXFR), ใช้ Split-Horizon DNS (Internal/External), DNSSEC, Rate Limiting |
| Network Segmentation | แยก Public/Private Zones, DMZ, Zero Trust Network Access |
| Service Hardening | ปิด Port/Services ไม่ใช้, Banner Grabbing Protection, Secure Headers (HSTS, CSP, X-Frame-Options) |
| Monitor & Detect Recon | IDS/IPS Rules สำหรับ Scanning, Honeypots/Canaries, Zeek/Suricata Detect Recon Patterns |
| Employee Training | Social Engineering Awareness, OPSEC (Operational Security), Data Classification |
| Threat Intelligence | Monitor Credential Leaks, Typosquatting, Brand Impersonation, Dark Web Mentions |
📜 Footprinting ใน CEH (Certified Ethical Hacker)
- Module 02: Footprinting and Reconnaissance
- ครอบคลุม: Methodology, Tools, Countermeasures, Reporting
- Exam: 125 Questions, 4 Hours, Passing Score ~70%
- Salary (India): Fresher ~3.5 LPA, Experienced ~29-41K INR/month
❓ คำถามที่พบบ่อย
❓ Footprinting กับ Reconnaissance ต่างกันไหม?
ใช้สลับกันได้ (Synonyms) บางแหล่งแยก: Footprinting = Passive/Initial, Reconnaissance = Active/Deeper แต่ใน CEH/PTES ใช้ร่วมกัน
❓ Footprinting ผิดกฎหมายไหม?
⚠️ Active Footprinting (Scanning, Probing) อาจผิดกฎหมาย หากไม่ได้รับอนุญาต (Computer Fraud and Abuse Act - US, CCA - Thailand) Passive OSINT มักกฎหมาย แต่ขึ้นกับ Jurisdiction และ Terms of Service
❓ Footprinting ใช้เวลานานแค่ไหน?
ขึ้นอยู่กับ Scope: Bug Bounty (Hours-Days), Red Team (Weeks-Months), APT (Months-Years) การ Automate (Recon-ng, Amass, Nuclei) ลดเวลาลงมาก
สรุป: Footprinting = ขั้นตอนแรกและสำคัญที่สุด ของ Hacking/Pentesting "Know Your Enemy" ใช้ Passive OSINT (Safe, Legal) ให้มากที่สุด ก่อน Active Scanning ป้องกันด้วย: Limit Exposure, DNS Hardening, Monitoring, Employee Training