顯示具有 crypto 標籤的文章。 顯示所有文章
顯示具有 crypto 標籤的文章。 顯示所有文章

2016年9月7日 星期三

翻譯練習:Google is working to safeguard Chrome from quantum computers

✧ 本篇為翻譯練習,原文轉自:
http://www.theverge.com/2016/7/7/12120280/google-chrome-canary-quantum-computing-encryption-new-hope




Google is working to safeguard Chrome from quantum computers
Using software called the New Hope algorithm
Google 正試圖透過 New Hope 演算法保護 Chrome 不被量子電腦威脅

Google is working on safeguarding Chrome against the potential threat of quantum computers, the company announced today. It's doing so by implementing post-quantum cryptography in an experimental version of the browser. While there exist hardware defenses against the vastly superior computing power of quantum machines, Google is using a new so-called post-quantum key-exchange algorithm. This software, called the New Hope algorithm, is enabled in Chrome Canary, a kind of testing ground for new browser technology, on only a small number of connections between the browser and Google servers.

Google 今日公布他們正藉由在瀏覽器上執行實驗性質的後量子密碼學,來努力保護 Chrome 瀏覽器不受量子電腦帶來的潛藏威脅所影響。儘管存在能抵禦量子電腦極強大運算能力的硬體,Google 仍使用了所謂的「後量子金鑰交換演算法」,而這個被他們稱作「New Hope」的演算法,已在用以測試新型瀏覽器技術的 Google Canary 上啟用,然而僅應用於少部分瀏覽器與 Google 伺服器之間的通訊。

Although quantum computers of this variety are only small and experimental at this stage, Google is taking precautions for the worst case scenario. "While they will, no doubt, be of huge benefit in some areas of study, some of the problems that they [quantum computers] are effective at solving are the ones that we use to secure digital communications," writes Matt Braithwaite, a Google software engineer, in a blog post. "Specifically, if large quantum computers can be built then they may be able to break the asymmetric cryptographic primitives that are currently used in TLS, the security protocol behind HTTPS." In other words, quantum computers could undermine the security of the entire internet.

即便現階段這種量子電腦規模還很小且僅具實驗性質,但 Google 已開始在為可能發生的最糟情況作準備,「量子電腦雖無庸置疑地能為某些學術領域帶來巨大效益,但其中有些它能高效解決的運算,正是目前我們仰賴以確保數位通訊安全的根本。」一位 Google 軟體工程師 Matt Braithwaite 在他的部落格中寫到。「具體而言,倘若大型量子電腦真的被成功實作出來的話,將可能破壞非對稱密碼系統,並對現行 HTTPS 背後的安全協定 TLS 造成影響。」也就是說,量子電腦可能會重新定義整個網路世界的安全性。

QUANTUM COMPUTERS PUT ALL ENCRYPTED INTERNET COMMUNICATION AT RISK
量子電腦將令加密連線暴露在風險之中

Quantum computers promise computational power far exceeding today's standards by taking advantage of the underpinning physics discipline. So the presence of a hypothetical future quantum computer, Braithwaite adds, puts at risk any and all encrypted internet communication past or present. It's unclear how secure New Hope will prove to be for Chrome, and Braithwaite admits it could be less secure than its existing encryption. But Google says New Hope — developed by researchers Erdem Alkim, Léo Ducas, Thomas Pöppelmann and Peter Schwabe — was the most promising of all post-quantum key-exchange software it looked into last year.

由於採用了物理學科的優點,量子電腦擁有遠超出今日電腦標準的運算能力,故 Braithwaite 也補充道,如想像中的量子電腦真的出現,那麼無論是過去或現在的任何加密傳輸資訊,都將暴露在風險之中。目前尚未證實 New Hope 能為 Chorme 帶來多高的安全性,甚至 Braithwaite 亦承認 New Hope 有可能比原先的加密方式更不安全,然而 Google 表示,從去年到現在為止的資料看起來,由 Erdem Alkim、Léo Ducas、Thomas Pöppelmann 及 Peter Schwabe 這四位研究者所開發的這個演算法,已是前景最被看好的一種後量子金鑰交換軟體了。

GOOGLE PLANS TO DISCONTINUE THE PROJECT WITHIN TWO YEARSGoogle 計畫於兩年內終止 New Hope 計畫


The plan is not to create a standard for others to adopt, but to gather information and experience on how to deploy post-quantum cryptography. So Google will discontinue the use of New Hope within two years, hopefully by replacing it with something better, the company says.

New Hope 計畫的目的並不在於創造一個新的標準,以供其他人使用,而是蒐集相關資料及增加使用後量子密碼的經驗。因此,Google 表示將在兩年之內停止使用 New Hope,並期待能提出一個更好的方案來取代它。

Canary users can check if the algorithm is being used on certain domains by opening up Google's Security Panel developer tool and looking for "CECPQ1" under the key exchange row.

Canary 的使用者若想檢查與特定域名的連線是否有使用 New Hope,可以透過開啟 Google 的安全面板這個開發者工具,並於 Key Exchange 下查看「CEPQ1」的相關狀態。
 
 
 

2016年8月20日 星期六

COSCUP 2016:「深入淺出 Google / Dropbox / GitHub 都採用的 FIDO U2F」






  「深入淺出 Google / Dropbox / GitHub 都採用的 FIDO U2F」是今年 COSCUP 第一場分軌的議程,講師吳忠憲目前為臺灣大學快速密碼學實驗室的成員(剛好也是我的實驗室學長 XD),本次演講主題著重在身份驗證和 FIDO U2F 的相關實作。


  在演講中,講師從一般性的密碼驗證開始討論,介紹包含密碼管理員等數種使用方式和其所帶來的危險性,例如一般線上服務的驗證方式,密碼會多次以明文型態在系統中出現,無論使用者端或伺服器端,都有許多可能將密碼洩漏出去的危機,也難以避開網路釣魚 (Phishing)、鍵盤側錄 (KeyLogger) 及中間人攻擊 (Man-In-The-Middle Attack) 等,而密碼本身的管理和避免被釣魚的責任仍與使用者本身使用習慣緊密關聯,因此傳統的驗證模式不僅安全性不足,甚至可能間接影響使用者、讓使用者習慣於使用類似或相同的密碼,使得原先就已搖搖欲墜的密碼安全更加薄弱。


  二階段驗證 (Second Factor Authentication, 2AF) 即為一種不錯的解決方式,透過輸入密碼外的第二重使用者身份驗證,能夠大大地提升安全性、避免弱密碼造成的安全性下降,其中單次有效密碼 (One Time Password, OTP) 就已行之有年、在一定程度上頗為被廣泛運用,OTP 主要以時間差做為密碼產生器和伺服器同步的方式,每次認證時都產生新的密碼且認證後便將其拋棄,因此可以緩解密碼不安全的問題並有效對抗重送攻擊 (Replay Attack)。然而,OTP 在使用者體驗的表現上仍有待加強,且客戶端、伺服器端的安全性亦有可能的疑慮,於是在 2012 年時由聯想、PayPal 等企業創辦了一個行業協會--FIDO 聯盟 (Fast IDentity Online Alliance) [1],FIDO 聯盟致力於開發更加簡單、安全、開源且跨平台的驗證標準,至今已有通用二因子驗證 (Universal 2nd Factor, U2F) 和通用驗證框架 (Universal Authentication Framework, UAF) 兩套標準文件釋出。

graphic_FIDOExperience_SM
圖片來源:https://fidoalliance.org/

  做為本場演講主角的 U2F 目前已被包含 Google、GitHub、Dropbox 在內的一些網站支援,它使用「Challenge-Response」的方式,在 Relying Party、Client、Authenticator 三方之間互相溝通、進行驗證,裝置在初始註冊時會生成新的金鑰配對,驗證時則接收並解開一個挑戰訊息簽章,再回傳數位簽章及 Auth Counter。U2F 具有以下幾個顯著的特色:
  1. 使用公鑰認證系統,秘密資訊不會洩漏。此外,每次註冊時都會產生一組專屬公私鑰配對,且有唯一的 Key Handle 作為標誌,提升了匿名性的同時也防止包含設備商在內的其他人取得秘密訊息。
  2. 元件間的介面均有規範,因此無需安裝任何額外的 Driver,使用上步驟也十分簡化,使用者體驗比之 OTP 更加良好。
  3. 可對抗網路釣魚、中間人攻擊、重送攻擊等,若有金鑰遭複製或竊取的狀況也可偵測到、做出反應。
  4. 驗證過程中完全不需要任何的可信賴第三方 (Trusted Third Party)。

U2F Process Flow
圖片來源:https://www.yubico.com/about/background/fido/

  綜上所述,我們可以發現 U2F 擁有很多面向上的安全優勢,但其實 U2F 也不是百分之百的完美。除了 COSCUP 外,講師吳忠憲今年亦有在 PyCon Taiwan [2] 和即將到來的 JSDC [3] 發表 FIDO U2F 主題的演講,而議程後我與講師稍微聊了一會,談到他在推廣 U2F 時觀察與遭遇到的狀況,他坦言 U2F 目前仍有其必須突破的困境,「因為現在瀏覽器中只有 Google Chrome 是官方就能使用 U2F 的,其他瀏覽器都得另外裝第三方的外掛,而且 U2F 的使用不像 OTP 那樣下載個 App 就解決了,還得要買一個小小的設備,再加上臺灣購買 YubiKey [4] 有些麻煩,所以一般使用者比較不會有機會使用......」他說,因此即使使用體驗改善了、技術門檻不高,但真的有在使用 U2F、能實際感受到 U2F 便利之處的使用者卻不多,導致並非所有網站都會引進這個正在起步中的 U2F 標準,多數都依然停留在觀望的階段。
   「至於開源與資安之間的關聯、影響,已經講了很久,把程式碼開放出去令更多人能一起用、一起看、一起改,當然就能讓程式變得更好更安全。我本身是因為喜歡這個技術、覺得這很棒,因而才想去推廣 U2F,但我也認為還有很多好東西都是需要被介紹給大家的,有像這樣的舞台可以推廣還不錯。」最後,他也十分謙虛的表示只會給自己今日的表現 40 分,以後會再多加調整和精進,期待未來能帶給大家更棒的演講。


-
參考及延伸
[1] FIDO Alliance https://fidoalliance.org/
[2] PyCon Taiwan 2016 https://tw.pycon.org/2016/
[3] JSDC 2016 http://2016.jsdc.tw/