你真的不应该卷你自己的密码:密码库漏洞的实证研究
You Really Shouldn't Roll Your Own Crypto: An Empirical Study of Vulnerabilities in Cryptographic Libraries
摘要:
互联网的安全依赖于少数开源加密库:其中任何一个漏洞都有可能危及相当大比例的网络流量。尽管存在这种潜在的安全影响,但加密软件中漏洞的特征和原因尚未得到很好的理解。在这项工作中,我们进行了第一次全面分析的加密库和影响他们的漏洞。我们从国家漏洞数据库、单个项目存储库和邮件列表以及八个广泛使用的加密库的其他相关来源收集数据。我们最有趣的发现之一是,加密库中只有27.2%的漏洞是加密问题,而37.2%的漏洞是内存安全问题,这表明系统级漏洞比实际的加密程序更安全。在我们对这些漏洞的原因进行调查时,我们发现这些库的复杂性与其(不)安全性之间存在很强的相关性,经验性地证明了臃肿的加密代码库的潜在风险。我们进一步将我们的研究结果与非加密系统进行比较,观察到这些系统确实比类似的系统更复杂,并且这种过度的复杂性似乎会在加密库中产生比非加密软件更多的漏洞。
英文摘要:
The security of the Internet rests on a small number of open-source cryptographic libraries: a vulnerability in any one of them threatens to compromise a significant percentage of web traffic. Despite this potential for security impact, the characteristics and causes of vulnerabilities in cryptographic software are not well understood. In this work, we conduct the first comprehensive analysis of cryptographic libraries and the vulnerabilities affecting them. We collect data from the National Vulnerability Database, individual project repositories and mailing lists, and other relevant sources for eight widely used cryptographic libraries. Among our most interesting findings is that only 27.2% of vulnerabilities in cryptographic libraries are cryptographic issues while 37.2% of vulnerabilities are memory safety issues, indicating that systems-level bugs are a greater security concern than the actual cryptographic procedures. In our investigation of the causes of these vulnerabilities, we find evidence of a strong correlation between the complexity of these libraries and their (in)security, empirically demonstrating the potential risks of bloated cryptographic codebases. We further compare our findings with non-cryptographic systems, observing that these systems are, indeed, more complex than similar counterparts, and that this excess complexity appears to produce significantly more vulnerabilities in cryptographic libraries than in non-cryptographic software.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。