Basic Authentication หมายถึงอะไร?
โครงร่างการรับรองความถูกต้องแบบง่าย (Simple authentication scheme) ที่สร้างในโปรโตคอล HTTP Client ส่ง HTTP Request พร้อม Header Authorization ที่มีคำว่า "Basic" ตามด้วย space และ string username:password ที่เข้ารหัส base64
ตัวอย่าง Basic Authentication
Client ส่ง HTTP Request พร้อม Header: Authorization: Basic
Authentication ในความปลอดภัยเครือข่ายคืออะไร?
กระบวนการยืนยันตัวตนผู้ใช้ (เช่น ด้วยลายนิ้วมือ) เชื่อมโยง Credentials กับ Incoming Requests เพื่อให้ตัวระบุที่ไม่ซ้ำกัน ระบบความปลอดภัยระบุผู้ใช้จากข้อมูลขั้นตอน Identification ให้ User ID เพื่อระบุตัวตน
3 ประเภท Authentication ในความปลอดภัยเครือข่าย
1. Password-based Authentication (ยอดนิยม) - รหัสผ่านเฉพาะแต่ละคน
2. Multi-factor Authentication (MFA) - ยืนยันตัวตน 2 ปัจจัยขึ้นไป
3. Certificate-based Authentication - ใช้ Certificate
4. Biometric Authentication - ลายนิ้วมือ, ใบหน้า, ตา
5. Token-based Authentication - ใช้ Token
HTTP Basic Secure ไหม?
HTTP Basic Authentication ปลอดภัยก็ต่อเมื่อ Web Client และ Server มีการเชื่อมต่อที่ปลอดภัย (HTTPS) หากเชื่อมต่อไม่ปลอดภัย โครงร่างนี้ไม่ป้องกันการค้นพบข้อมูล Authentication ได้
Windows Basic Authentication คืออะไร?
มี 2 ประเภท: Basic และ Windows Authentication
Windows Authentication: ตรวจสอบ Credentials กับ Windows Domain Account
Basic Authentication: เปรียบเทียบ Credentials จากฟอร์มกับบัญชีใน Database
Basic Authentication ใน Web คืออะไร?
HTTP Basic Authentication: Server ขอข้อมูล Authentication (Username/Password) ผ่าน Challenge-Response แบบง่าย ผู้ใช้มักต้อง Login ใส่รหัสผ่านเพื่อเข้าถึง
วิธีเปิดใช้งาน Basic Authentication
Control Panel > Programs & Features > Turn Windows features on/off > Internet Information Services > World Wide Web Services > Security > Basic Authentication > OK > Close
Basic Authentication ทำงานอย่างไร?
Username และ Password เข้ารหัส Base64 เพิ่มใน Header "Authorization" ของ Request
วิธีเพิ่ม Basic Authentication
Server Manager > Manage > Add Roles and Features > Next > Web Server (IIS) > Web Server > Security > Basic Authentication
Basic Auth เข้ารหัสอย่างไร?
RFC 7617 กำหนด "Basic" HTTP Authentication ส่ง Credentials เข้ารหัส base64 ในรูปแบบ user-id/password pairs
วิธีได้ Username/Password สำหรับ Basic Authentication
Tool นี้สร้าง Basic Auth Header สำหรับเว็บที่ต้องการ HTTP Basic Auth Browser จะแสดง Dialog ขอ Username/Password สร้าง Authorization Header ส่งไปกับทุก Network Request
Authentication และประเภทในความปลอดภัยเครือข่าย
Authentication เป็นระดับป้องกันแรก ไม่ว่าจะเล็กน้อยเพียงใดใน Cybersecurity ไม่สับสนกับ Authorization (ขั้นตอนก่อนหน้า) เพียงยืนยันว่าผู้ใช้มีสิทธิ์เข้าถึง/ดำเนินการ
ความจำเป็นของ Authentication ในความปลอดภัยเครือข่าย
Authentication ช่วยองค์กรรักษาความปลอดภัยเครือข่าย โดยอนุญาตเฉพาะผู้ใช้/กระบวนการที่ผ่านการรับรอง เข้าถึงทรัพยากรที่ได้รับการปกป้อง (คอมพิวเตอร์, เครือข่าย, ฐานข้อมูล, เว็บไซต์, บริการบนเครือข่าย)
3 ประเภทของ Authentication (สรุป)
1. Something you know (รหัสผ่าน, PIN, ข้อมูลส่วนตัว)
2. Something you have (Badge, Smartphone, Token)
3. Something you are (Biometrics: ลายนิ้วมือ, เสียง, ใบหน้า)
ประเภทของ Authentication (เพิ่มเติม)
PAP (Password Authentication Protocol), Authentication Tokens, Symmetric-Key Authentication, Biometric Authentication และอีกหลายวิธี ระดับชาติและระหว่างชาติ
ตัวอย่าง 3-Factor Authentication
Two factors เพิ่ม因素ที่ 3: Biometrics เช่น บันทึกเสียง, อ่านลายมือ, สแกนนิ้วมือ, สแกนตา
3 หมวดหมู่ปัจจัยใน Multi-Factor Authentication
1. Knowledge: รหัสผ่าน, PIN (สิ่งที่คุณรู้)
2. Possession: Badge, Smartphone (สิ่งที่คุณมี)
3. Inherence: Fingerprint, Voice Recognition (สิ่งที่คุณเป็น)