arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.04991cs.CR
收藏

DT-SIM: 面向MPC安全性的基于属性的测试

DT-SIM: Property-Based Testing for MPC Security

Mako Bates, Joseph P. Near

AI总结:

针对MPC协议安全检测形式化方法难度高、缺自动化工具的问题,提出基于属性的灰盒测试方法,借助概率编程与统计推断,可高效检测MPC比特级实现的安全漏洞。

摘要:

用于保证协议满足密码学安全定义的形式化方法已取得长足进展,但这类方法仍需大量人力投入,目前仍缺乏一种能够主动识别不安全协议的自动化工具。在本研究中,我们证明基于属性的测试——即“多次运行测试以观察是否会失效”的方法——能够有效检测安全协议中的安全漏洞。我们专门针对安全多方计算(Secure Multi-Party Computation, MPC)展开研究,因为针对比特级实现的该安全定义的形式化方法难度极高。\n我们借助概率编程语言与统计推断领域的已有研究成果,设计了一种能够检测MPC协议比特级实现中各类缺陷的测试方法。该测试为灰盒测试,仅需要协议消耗的随机数记录,以及输入、输出和消息的传输记录。它成功检测出了经典GMW协议的两种不同实现中被人为引入的多种错误与偏差。在应用于数百个随机生成的协议时,该方法识别出其中几乎所有协议都存在安全问题。我们还对测试的参数进行了分析,并讨论了MPC(不)安全性检测难度高的原因。

英文摘要:

Formal methods for guaranteeing that a protocol satisfies a cryptographic security definition have advanced substantially, but such methods are still labor intensive and the need remains for an automated tool that can positively identify an insecure protocol. In this work, we demonstrate that property-based testing, "run it a bunch of times and see if it breaks", is effective for detecting security bugs in secure protocols. We specifically target Secure Multi-Party Computation (MPC), because formal methods targeting this security definition for bit-model implementations are particularly difficult. Using results from the literature for Probabilistic Programming Languages and statistical inference, we devise a test that can detect various flaws in a bit-level implementation of an MPC protocol. The test is grey-box; it requires only transcripts of randomness consumed by the protocol and of the inputs, outputs, and messages. It successfully detects several different mistakes and biases introduced into two different implementations of the classic GMW protocol. Applied to hundreds of randomly generated protocols, it identifies nearly all of them as insecure. We also include an analysis of the parameters of the test, and discussion of what makes detection of MPC (in)security difficult.

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

↑