arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.12743cs.CR
收藏

《黑客帝国2:重装上阵》:Matrix密码套件的机械化形式化分析

The Matrix Reloaded: A Mechanized Formal Analysis of the Matrix Cryptographic Suite

Jacob Ginesin, Cristina Nita-Rotaru

AI总结:

本文使用Verifpal对Matrix的Olm与Megolm协议及其组合进行机械化形式化分析,并与Signal和Sender Keys比较,揭示预密钥签名对安全性的关键影响。

摘要:

WhatsApp、Facebook Messenger、Matrix和Signal应用等安全即时群组消息应用已在当今互联网中无处不在,累计服务数十亿用户。与例如WhatsApp不同,Matrix可以以联邦方式部署,允许用户选择由哪台服务器管理其聊天。为适应这种架构差异,Matrix采用了两种新颖的密码协议:保护成对通信的Olm,以及依赖Olm并保护群组通信的Megolm。Olm和Megolm在实践中广泛部署以保护群组通信的Signal和Sender Keys相似,并共享安全目标。尽管Olm、Megolm和Sender Keys已在计算模型中得到人工分析,但尚不存在符号分析或正确性的机械化证明。对密码协议而言,使用机械化证明和计算机辅助分析非常重要,因为手写证明和分析容易出错,且常带有细微错误。我们使用Verifpal构建了Olm和Megolm及其组合的形式化模型。我们证明了关于Olm和Megolm的多种受关注属性,包括认证性、机密性、前向保密性和失陷后安全性。我们还将已知限制、先前发现的攻击,以及来自规范和先前文献的攻击者轻易获胜情形机械化。最后,我们对Sender Keys以及Signal与Sender Keys的组合进行建模,以便与Olm、Megolm及其组合进行比较。根据分析,我们得出结论:如果Olm预密钥经过签名,Olm与Megolm的组合具有与Signal和Sender Keys组合相当的安全性;如果Olm预密钥未经签名,其失陷后安全性可证明更差。

英文摘要:

Secure instant group messaging applications such as WhatsApp, Facebook Messenger, Matrix, and the Signal Application have become ubiquitous in today's internet, cumulatively serving billions of users. Unlike WhatsApp, for example, Matrix can be deployed in a federated manner, allowing users to choose which server manages their chats. To account for this difference in architecture, Matrix employs two novel cryptographic protocols: Olm, which secures pairwise communications, and Megolm, which relies on Olm and secures group communications. Olm and Megolm are similar to and share security goals with Signal and Sender Keys, which are widely deployed in practice to secure group communications. While Olm, Megolm, and Sender Keys have been manually analyzed in the computational model, no symbolic analysis nor mechanized proofs of correctness exist. Using mechanized proofs and computer-aided analysis is important for cryptographic protocols, as hand-written proofs and analysis are error-prone and often carry subtle mistakes. Using Verifpal, we construct formal models of Olm and Megolm, as well as their composition. We prove various properties of interest about Olm and Megolm, including authentication, confidentiality, forward secrecy, and post-compromise security. We also mechanize known limitations, previously discovered attacks, and trivial attacker wins from the specifications and previous literature. Finally, we model Sender Keys and the composition of Signal with Sender Keys in order to draw a comparison with Olm, Megolm, and their composition. From our analysis we conclude the composition of Olm and Megolm has comparable security to the composition of Signal and Sender Keys if Olm pre-keys are signed, and provably worse post-compromise security if Olm pre-keys are not signed.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑