本章路線圖 / Learning path
- 1. Start with security goals|先認識安全目標
- 2. Recognize threats|辨認威脅
- 3. Symmetric and asymmetric keys|對稱與非對稱金鑰
- 4. Hash, signature and certificate|雜湊、簽署與證書
- 5. Authentication, authorization and OAuth|認證、授權與 OAuth
- 6. TLS, VPN and endpoint protection|TLS、VPN 與端點保護
開啟補充筆記、計算與自測 / Open additional notes, calculations and quiz →
1. Start with security goals|先認識安全目標
Confidentiality means only authorized parties can read data. Integrity means unauthorized changes can be detected. Availability means the service remains usable. Authentication checks identity; authorization checks what that identity is allowed to do. Non-repudiation concerns evidence that supports accountability.
機密性是只有獲授權人士可讀取資料;完整性是可偵測未授權修改;可用性是服務保持可用。認證檢查身份;授權檢查該身份獲准做甚麼。不可否認性涉及可支持責任追究的證據。
A stolen password threatens authentication; reading a private message threatens confidentiality; altering a payment threatens integrity. / 密碼被盜威脅認證;讀取私人訊息威脅機密性;修改付款資料威脅完整性。
2. Recognize threats|辨認威脅
Spoofing impersonates an entity, sniffing observes traffic, tampering modifies data, and theft can expose the device and local files. Wireless signals extend beyond physical walls, so an attacker may be within radio range without being inside the premises. Controls should match the threat and protected asset.
偽冒是假扮實體;竊聽是觀察流量;竄改是修改資料;失竊可能暴露裝置和本地檔案。無線訊號可穿過實體邊界,因此攻擊者即使不在場所內,也可能位於無線範圍。防護須配合威脅及要保護的資產。
Encryption can protect data in transit, but it cannot prevent a thief from reading data on an already unlocked compromised device. / 加密可保護傳輸中的資料,但不能阻止小偷讀取已解鎖且被攻陷的裝置。
3. Symmetric and asymmetric keys|對稱與非對稱金鑰
Symmetric encryption uses a shared secret key and is efficient for large amounts of data. Asymmetric cryptography uses a public/private key pair; the public key may be distributed while the private key must be protected. Hybrid protocols use asymmetric methods for authentication or establishing a shared key, then symmetric protection for the session.
對稱加密使用共享秘密金鑰,處理大量資料時有效率。非對稱密碼技術使用公鑰/私鑰:公鑰可分發,私鑰必須保護。混合協定使用非對稱方法進行認證或建立共享金鑰,然後以對稱方式保護工作階段。
Never send a private key to everyone. The public key is public; it must still be bound to the correct identity. / 不可把私鑰公開給所有人。公鑰雖然公開,但仍須確認它屬於正確身份。
4. Hash, signature and certificate|雜湊、簽署與證書
A hash summarizes data, but an attacker can replace both a message and an unauthenticated hash. A signature created with a private signing key can be verified using its public key to check integrity and the corresponding signer. A certificate binds an identity to a public key; the verifier must validate the chain and intended identity.
雜湊概括資料,但攻擊者可以同時替換訊息及未經認證的雜湊。使用私鑰產生的簽署,可用相應公鑰驗證完整性及簽署者。證書把身份與公鑰綁定;驗證者必須檢查信任鏈及預期身份。
When visiting a site, accepting any certificate without checking its name enables impersonation; a valid-looking key alone does not establish who owns it. / 瀏覽網站時若接受任何證書而不檢查名稱,便可能受偽冒攻擊;單有一把看似有效的金鑰不能證明擁有人。
5. Authentication, authorization and OAuth|認證、授權與 OAuth
Authentication answers “who are you?” Authorization answers “what may you do?” Two-factor authentication combines different factor categories, such as a password and a separate possession factor. OAuth delegates limited access using tokens; it is an authorization framework, not a complete identity protocol by itself.
認證回答「你是誰?」;授權回答「你可以做甚麼?」雙因素認證結合不同種類因素,例如密碼和獨立持有的因素。OAuth 使用 token 委派有限權限;它是授權框架,本身不是完整身份認證協定。
A photo app may receive a token allowing it to read selected files; this should not require handing the app the user’s password. / 相片程式可獲得只讀取指定檔案的 token,不應因此取得用戶密碼。
6. TLS, VPN and endpoint protection|TLS、VPN 與端點保護
TLS protects communication between its endpoints when identity and certificates are correctly validated. A VPN protects a tunnel between its endpoints, often using TLS or IPsec. A firewall enforces traffic policy. These controls do not replace secure applications, device updates, local encryption, strong locks and a plan for a lost device.
正確驗證身份及證書時,TLS 保護兩端點間的通訊。VPN 保護兩個端點之間的隧道,常使用 TLS 或 IPsec。防火牆執行流量政策。這些控制不能取代安全應用程式、裝置更新、本地加密、強健鎖定及裝置遺失應變計劃。
An evil-twin Wi-Fi network can copy a familiar network name; authenticate the actual service endpoint rather than relying on the SSID alone. / 邪惡雙胞胎 Wi-Fi 可複製熟悉的網絡名稱;須驗證真正服務端點,不能只依賴 SSID。