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

วิธีการเข้ารหัส (Encryption) ส่งผลต่อ CIA Triad ใน Network Security อย่างไร?

Encryption และ CIA Triad: ความสัมพันธ์แบบลึก

CIA Triad (Confidentiality, Integrity, Availability) เป็นกรอบประเมินมาตรการความปลอดภัย Encryption เป็น Control หลักที่ส่งผลต่อทั้ง 3 ด้าน แต่มี Trade-offs

🔐 Encryption → Confidentiality (ความลับ) - Primary Goal

  • Data at Rest: AES-256 (BitLocker, LUKS, FileVault, VeraCrypt, Database TDE, S3 Encryption)
  • Data in Transit: TLS 1.3 (HTTPS, SMTP/IMAP/POP3 over TLS, LDAPS), IPsec VPN, MACsec (802.1AE), WireGuard, SSH
  • Data in Use: Confidential Computing (Intel SGX, AMD SEV, ARM CCA), Homomorphic Encryption (Research/Limited)
  • Key Management: HSM (Hardware Security Module), Cloud KMS (AWS KMS, Azure Key Vault, GCP KMS), Key Rotation, Split Knowledge, Dual Control

✅ Encryption → Integrity (ความสมบูรณ์) - Authenticated Encryption

Encryption แบบเดิม (AES-CBC, AES-ECB) ไม่รับประกัน Integrity (Malleable: แก้ไข Ciphertext ได้โดยไม่รู้ Key)

  • Authenticated Encryption (AEAD): AES-GCM, ChaCha20-Poly1305, AES-CCM ให้ Confidentiality + Integrity + Authenticity พร้อมกัน
  • Digital Signatures: RSA-PSS, ECDSA, EdDSA (Ed25519) - Non-repudiation + Integrity
  • Hash Functions: SHA-256/384/512, SHA-3 (Keccak), BLAKE2/3 - Integrity Verification (File Checksums, Certificates, Blockchain)
  • Message Authentication Codes (MAC): HMAC-SHA256, KMAC, CMAC - Symmetric Integrity

⚠️ Encryption → Availability (ความพร้อมใช้งาน) - Trade-offs & Risks

ด้านผลกระทบการลดทอน (Mitigation)
Performance OverheadCPU Cycles, Latency, Throughput Drop (TLS Handshake, AES-NI Helps)Hardware Acceleration (AES-NI, SHA Extensions), Session Resumption (TLS 1.3 0-RTT), Offload (NIC, SmartNIC)
Key Loss = Data LossEncryption Key หาย/เสีย = Data Unrecoverable (Permanent Availability Loss)Key Backup (HSM, Shamir Secret Sharing), Key Escrow, Automated Rotation, Disaster Recovery Testing
RansomwareAttacker Encrypts Data → Availability Lost (Denial of Service via Encryption)Immutable Backups, Offline/Offsite Copies, EDR, Network Segmentation, Least Privilege
Inspection BlindnessEncrypted Traffic (TLS 1.3, DoH/DoT) หลบ Firewall/IDS/IPS/DLPTLS Inspection (MITM Proxy - Managed), eBPF/kTLS (Kernel TLS Visibility), JA3 Fingerprinting, Encrypted Traffic Analysis (ETA)
Compliance/LegalKey Disclosure Laws, Data Sovereignty, Export Controls (Wassenaar)Legal Review, Geo-fencing Keys, Bring Your Own Key (BYOK), Hold Your Own Key (HYOK)

📊 การประเมิน Encryption Methods ตาม CIA (Evaluation Framework)

MethodConfidentialityIntegrityAvailability ImpactUse Case
AES-256-GCM⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ (AEAD)Low (HW Accel)TLS 1.3, IPsec, Disk Encryption, Database
ChaCha20-Poly1305⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ (AEAD)Low (Software Fast)Mobile, IoT, No AES-NI, TLS 1.3, WireGuard
AES-256-CBC + HMAC⭐⭐⭐⭐⭐⭐⭐⭐⭐ (Encrypt-then-MAC)MediumLegacy Systems, TLS 1.2, SSH
RSA-OAEP / ECIES⭐⭐⭐⭐⭐⭐⭐⭐⭐ (Implicit)High (Slow)Key Exchange, Small Data, Hybrid Encryption
Tokenization / Format-Preserving Encryption⭐⭐⭐⭐⭐⭐⭐⭐LowPCI-DSS, Legacy Apps, Database Columns
Homomorphic Encryption⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐ (Very High Overhead)Privacy-Preserving ML, Secure Computation (Research)

🔑 Database Encryption Types (Database Security Encryption Methods)

  1. Business Application Encryption (BAE): App Layer Encrypts ก่อน Insert (App Controls Keys) - Flexible แต่ Complex
  2. DBMS Application Encryption (DAE): DBMS Functions/Procedures Encrypt (TDE Tablespace/Column) - Transparent to App
  3. DBMS Package Encryption (DPE): Vendor Packages (Oracle DBMS_CRYPTO, SQL Server Always Encrypted, pgcrypto)
  4. DBMS Engine Encryption (DEE/TDE): Storage Engine Level (Tablespace/File/Log Encryption) - Transparent, Performance Best

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

❓ Encryption ทำให้ Network ช้าจริงไหม?

มี Overhead แต่ Hardware Acceleration (AES-NI, ARM Crypto Extensions) ทำให้ TLS 1.3 / IPsec / WireGuard เร็วมาก (<1-2% Overhead) บน CPU สมัยใหม่

❓ ทำไมต้องใช้ Authenticated Encryption (AEAD)?

Encryption Only (CBC, CTR) ไม่ป้องกัน Tampering (Padding Oracle, Bit-flipping) AEAD = Confidentiality + Integrity ใน Primitive เดียว ป้องกัน Implementation Errors

❓ Key Management สำคัญกว่า Algorithm ไหม?

✅ ใช่ Algorithm แข็งแรงแต่ Key Management อ่อน (Hardcoded Keys, No Rotation, No Backup, Weak RNG) = ระบบแตก Key Management = HSM, KMS, Rotation, Access Control, Audit Logging

❓ Quantum Computing ทำลาย Encryption ได้ไหม?

Shor's Algorithm แตก RSA/ECC (Asymmetric) ได้ Grover's Algorithm อ่อนแอ Symmetric (AES-256 → 128-bit Security) → Post-Quantum Cryptography (PQC): NIST Standardized: CRYSTALS-Kyber (KEM), CRYSTALS-Dilithium (Sig), SPHINCS+ (Sig) - เริ่ม Migrate ตอนนี้

สรุป: Encryption เป็น Core Control สำหรับ Confidentiality และ Integrity (ผ่าน AEAD/Signatures) แต่มี Availability Risks (Key Loss, Performance, Inspection Blindness, Ransomware) ต้องออกแบบ Key Management, Hardware Acceleration, TLS Inspection, Backup Strategy ให้ครบถ้วน