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

Authentication ในความปลอดภัยเครือข่าย: ประเภท โปรโตคอล และ Best Practices

Authentication (การยืนยันตัวตน) ใน Network Security คืออะไร?

กระบวนการ ตรวจสอบความถูกต้องของข้อมูลประจำตัว (Credentials) เพื่อยืนยันว่า "คุณคือใคร" ก่อนอนุญาตให้เข้าถึงทรัพยากรเครือข่าย แตกต่างจาก Authorization (การอนุญาต) ที่ตัดสินว่า "คุณทำอะไรได้บ้าง"

3 ปัจจัยการยืนยันตัวตน (Authentication Factors)

Factorชื่อเรียกตัวอย่างความปลอดภัย
Something You KnowKnowledge FactorPassword, PIN, Passphrase, Security Questionsต่ำ (เดาได้, โดนขโมย, Phishing)
Something You HavePossession FactorPhone (OTP), Hardware Token (YubiKey), Smart Card, Badgeปานกลาง-สูง (ต้องมีอุปกรณ์จริง)
Something You AreInherence Factor (Biometrics)Fingerprint, Face ID, Iris/Retina, Voice, Typing Patternสูง (ยากที่จะปลอม) แต่ไม่สามารถเปลี่ยนได้หากรั่วไหล

ประเภทการยืนยันตัวตน (Authentication Types)

  • Single-Factor (SFA): 1 Factor (มักแค่ Password) - ไม่ปลอดภัย
  • Two-Factor (2FA): 2 Factors จากหมวดต่างกัน (Password + OTP) - มาตรฐานขั้นต่ำ
  • Multi-Factor (MFA): 2+ Factors - แนะนำสำหรับระบบสำคัญ
  • Three-Factor (3FA): Password + Token + Biometric - ความปลอดภัยสูงสุด
  • Single Sign-On (SSO): Login 1 ครั้ง เข้าระบบหลายระบบ (Kerberos, SAML, OIDC)
  • Passwordless: ไม่ใช้ Password ใช้ FIDO2/WebAuthn, Magic Link, Biometrics

โปรโตคอลการยืนยันตัวตนเครือข่าย (Network Authentication Protocols)

ProtocolLayerคุณสมบัติใช้งาน
PAPPPP/L2Clear-text, 2-wayLegacy, ไม่แนะนำ
CHAPPPP/L2Challenge-Response, 3-way, Periodic re-authPPP, VPN Legacy
MS-CHAPv2PPP/L2Microsoft CHAP, Mutual Auth, Weak CryptoPPTP, Old VPN
EAP-MD5EAP/L2CHAP ใน EAP, No Mutual AuthRare
EAP-TLSEAP/L2Certificate-based, Mutual Auth, StrongestEnterprise Wi-Fi (802.1X), VPN
PEAP (EAP-MSCHAPv2)EAP/L2TLS Tunnel + MS-CHAPv2, Server Cert OnlyEnterprise Wi-Fi, VPN (Common)
EAP-TTLSEAP/L2TLS Tunnel + Any Inner AuthEnterprise Wi-Fi
EAP-FASTEAP/L2PAC-based, No Cert RequiredCisco Wireless
KerberosL7/ApplicationTicket-based, SSO, Mutual Auth, Windows DomainActive Directory, Enterprise SSO
SAML 2.0L7/ApplicationXML-based, IdP/SP, Web SSO, FederationCloud Apps, Enterprise SSO
OIDC / OAuth 2.0L7/ApplicationJSON/REST, IdP/IdP, Modern Web/Mobile SSOGoogle, Microsoft, GitHub, Modern Apps
RADIUSL7/ApplicationAAA Protocol (Auth, Authz, Accounting)802.1X, VPN, ISP, Network Devices
TACACS+L7/ApplicationCisco AAA, Separate Auth/Authz/Acc, TCPNetwork Device Admin (CLI)
FIDO2 / WebAuthnL7/ApplicationPasswordless, Public Key Crypto, Hardware KeyModern Web Auth, YubiKey, Passkeys

802.1X / EAP Framework (Enterprise Wi-Fi/VPN)

  • Supplicant: Client (Laptop, Phone)
  • Authenticator: Switch/AP/Controller (Pass-through)
  • Authentication Server: RADIUS (FreeRADIUS, ISE, NPS, Aruba ClearPass)
  • Flow: Supplicant → EAPOL → Authenticator → RADIUS (EAP) → Accept/Reject

Best Practices สำหรับ Authentication Security

  1. Enforce MFA ทุกที่ที่เป็นไปได้ (Admin, VPN, Cloud, Email, Critical Systems)
  2. ใช้ Passwordless / FIDO2 / Passkeys ลดความเสี่ยง Phishing/Credential Theft
  3. Password Policy: Min 12 chars, No Complexity Requirement (NIST 800-63B), Check Breached Passwords (HaveIBeenPwned)
  4. Account Lockout / Rate Limiting ป้องกัน Brute Force
  5. Session Management: Short TTL, Secure Cookies (HttpOnly, Secure, SameSite), Invalidate on Password Change
  6. Privileged Access Management (PAM): Just-in-Time Access, Session Recording, Approval Workflow
  7. Certificate-based Auth (EAP-TLS, mTLS) สำหรับ Machine-to-Machine, IoT, VPN
  8. Monitor & Alert: Failed Logins, Impossible Travel, New Device, MFA Fatigue (Push Spam)
  9. Zero Trust: Never Trust, Always Verify - Continuous Authentication

คำถามที่พบบ่อย

Authentication vs Authorization ต่างกันยังไง?

Authentication (AuthN): คุณคือใคร? (Who are you?) → Identity
Authorization (AuthZ): คุณทำอะไรได้บ้าง? (What can you do?) → Permissions

Biometrics ปลอดภัยที่สุดไหม?

Biometrics เป็น Factor ที่แข็งแกร่ง (Something You Are) แต่ ไม่สามารถเปลี่ยนได้ หากรั่วไหล ควรใช้ร่วมกับ Factor อื่น (MFA) ไม่ใช่ Single Factor

Kerberos vs SAML vs OIDC

  • Kerberos: Enterprise Internal, Windows Domain, Ticket-based
  • SAML: Enterprise Web SSO, Federation, XML, Older
  • OIDC/OAuth2: Modern Web/Mobile, JSON/REST, API-Friendly, Standard Now

สรุป

Authentication เป็นบ่อนกลางความปลอดภัย ต้องใช้ MFA ขั้นต่ำ แนะนำ Passwordless/FIDO2 สำหรับระบบสำคัญ เลือก Protocol ให้เหมาะสม: EAP-TLS/PEAP (802.1X), Kerberos (AD), OIDC (Cloud/App), RADIUS/TACACS+ (Network Device), FIDO2 (User Login) และติดตาม Log/Alert อย่างต่อเนื่อง