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

ความปลอดภัยเครือข่าย (Network Security) ต่างจาก ความปลอดภัยแอปพลิเคชัน (Application Security) อย่างไร?

🎯 ความแตกต่างหลักในภาพรวม

ด้านNetwork SecurityApplication Security
ขอบเขตโครงสร้างพื้นฐานเครือข่าย (Router, Switch, Firewall, LAN/WAN)ซอฟต์แวร์/แอปพลิเคชัน (Code, API, Database, Business Logic)
สิ่งที่ปกป้องข้อมูลระหว่างทาง (Data in Transit)ข้อมูลในระบบ/แอป (Data at Rest/In Use) + Logic
ภัยคุกคามหลักDDoS, Man-in-the-Middle, Sniffing, Unauthorized Access, Lateral MovementSQL Injection, XSS, CSRF, Broken Auth, RCE, Logic Flaws
เครื่องมือ/เทคนิคFirewall, IDS/IPS, VPN, NAC, Segmentation, Encryption (TLS/IPsec)SAST/DAST/IAST, WAF, Secure Coding, Code Review, Pen Testing
ชั้น (OSI Layer)Layer 2-4 (Data Link, Network, Transport)Layer 7 (Application)

🔍 Network Security คืออะไร?

กิจกรรมใดๆ ที่ปกป้อง เครือข่าย ข้อมูล และอุปกรณ์ ให้ปลอดภัยจากภัยคุกคาม รวมถึงฮาร์ดแวร์และซอฟต์แวร์

  • ควบคุมการเข้าถึง (Access Control, NAC)
  • ป้องกันมัลแวร์ (Antivirus, EDR)
  • Application Security (เป็นส่วนหนึ่งของ Network Security)
  • Behavioral Analytics, DLP, Email Security, Wireless Security
  • Firewall, IDS/IPS, VPN, Network Segmentation

🛡️ Application Security คืออะไร?

กระบวนการ พัฒนา เพิ่ม และทดสอบ คุณสมบัติความปลอดภัยในแอปพลิเคชัน เพื่อป้องกันช่องโหว่จากภัยคุกคาม เช่น เข้าถึงโดยไม่ได้รับอนุญาต การแก้ไขข้อมูล

  • ป้องกัน: Data Leakage, Data Theft, Credit Card Fraud, Identity Theft
  • ครอบคลุม: SDLC ทุกขั้นตอน (DevSecOps)
  • ควบคุม: Authentication, Authorization, Input Validation, Logging, Encryption

🔗 ความสัมพันธ์: Application Security ⊂ Network Security

Application Security เป็น ส่วนหนึ่ง (Subset) ของ Network Security แต่มุ่งเน้นเฉพาะชั้นแอปพลิเคชัน (Layer 7) ในขณะที่ Network Security ครอบคลุมทุกชั้น

📋 ตัวอย่างการโจมตีแต่ละประเภท

Network Security Attacks:

  • DDoS (Distributed Denial of Service)
  • Man-in-the-Middle (MitM)
  • ARP Spoofing, DNS Hijacking
  • Unauthorized Network Access
  • Lateral Movement (Pass-the-Hash, SMB Relay)

Application Security Attacks (OWASP Top 10):

  • Broken Access Control
  • Cryptographic Failures
  • Injection (SQLi, NoSQLi, Command Injection)
  • Insecure Design
  • Security Misconfiguration
  • Vulnerable Components
  • Identification & Authentication Failures
  • Software & Data Integrity Failures
  • Security Logging & Monitoring Failures
  • Server-Side Request Forgery (SSRF)

🛠️ การป้องกันแบบรวม (Defense in Depth)

  1. Perimeter: Firewall, WAF, DDoS Protection
  2. Network: Segmentation, IDS/IPS, NAC, VPN, Zero Trust
  3. Host/Endpoint: EDR, Antivirus, Patch Management
  4. Application: Secure Coding, SAST/DAST, WAF, API Security
  5. Data: Encryption, DLP, Backup, Access Control
  6. People: Training, Phishing Simulation, Policy

💡 สรุป

Network Security = ปกป้อง "ท่อ" และ "ถนน" ของข้อมูล
Application Security = ปกป้อง "บ้าน" และ "ของอยู่ในบ้าน" (แอป/ข้อมูล/ลอจิก)
ทั้งสองต้องทำพร้อมกัน (Defense in Depth) ไม่สามารถเลือกทำเพียงอย่างเดียวได้