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

密码学库中侧信道漏洞检测自动化工具的系统性评估

A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries

Antoine Geimer, Mathéo Vergnolle, Frédéric Recoules, Lesly-Ann Daniel, Sébastien Bardin, Clémentine Maurice

AI总结:

本研究系统评估34个侧信道检测框架,选取5个工具构建统一基准,测试其发现密码学库中真实漏洞的能力,发现现有工具因缺乏SIMD指令、隐式流和内部秘密生成支持而难以检测漏洞,并提出改进建议。

摘要:

为了保护密码学实现免受侧信道漏洞的影响,开发者必须采用常数时间编程实践。由于这些实践容易出错,许多侧信道检测工具已被提出。尽管如此,此类漏洞仍经常在密码学库中被手动发现。虽然Jancar等人最近的论文表明开发者很少进行侧信道检测,但尚不清楚现有的检测工具是否首先能够发现这些漏洞。为了回答这个问题,我们调查了文献,构建了一个包含34个侧信道检测框架的分类体系。我们提供的分类比较了多个标准,包括使用的方法、分析的扩展性或考虑的威胁模型。然后,我们在选定的5个有前景的检测工具上构建了一个统一的通用基准,包含代表性的密码学操作。该基准使我们能够更好地比较每个工具的能力及其分析的扩展性。此外,我们提供了最近发表的侧信道漏洞的分类。接着,我们在重现这些漏洞子集及其出现上下文的基准上测试每个选定的工具。我们发现现有工具可能因多种原因难以发现漏洞,主要是缺乏对SIMD指令、隐式流和内部秘密生成的支持。基于我们的发现,我们为研究社区和密码学库开发者提出了一套建议,旨在提高侧信道检测工具的有效性。

英文摘要:

To protect cryptographic implementations from side-channel vulnerabilities, developers must adopt constant-time programming practices. As these can be error-prone, many side-channel detection tools have been proposed. Despite this, such vulnerabilities are still manually found in cryptographic libraries. While a recent paper by Jancar et al. shows that developers rarely perform side-channel detection, it is unclear if existing detection tools could have found these vulnerabilities in the first place. To answer this question, we surveyed the literature to build a classification of 34 side-channel detection frameworks. The classification we offer compares multiple criteria, including the methods used, the scalability of the analysis or the threat model considered. We then built a unified common benchmark of representative cryptographic operations on a selection of 5 promising detection tools. This benchmark allows us to better compare the capabilities of each tool, and the scalability of their analysis. Additionally, we offer a classification of recently published side-channel vulnerabilities. We then test each of the selected tools on benchmarks reproducing a subset of these vulnerabilities as well as the context in which they appear. We find that existing tools can struggle to find vulnerabilities for a variety of reasons, mainly the lack of support for SIMD instructions, implicit flows, and internal secret generation. Based on our findings, we develop a set of recommendations for the research community and cryptographic library developers, with the goal to improve the effectiveness of side-channel detection tools.

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

↑