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

在大规模代码库中发现密码漏洞的行业经验

Industrial Experience of Finding Cryptographic Vulnerabilities in Large-scale Codebases

Ya Xiao, Yang Zhao, Nicholas Allen, Nathan Keynes, Danfeng, Yao, Cristina Cifuentes

摘要:

企业环境经常使用静态分析工具筛选大规模(数百万行代码)代码库,以发现错误和漏洞。Parfait是Oracle中使用的静态代码分析工具,用于查找工业代码库中的安全漏洞。近年来,许多研究表明,Java中存在着由于误用密码API而导致的复杂密码漏洞。在本文中,我们描述了如何实现一个精确的和可扩展的检测这些复杂的密码漏洞的基础上Parfait框架。密码漏洞检测的关键挑战是伪影响引起的高误报率。如果在构造安全临界值时使用了与安全无关的常量,则会产生伪影响。静态分析通常无法将它们与暴露敏感信息的硬编码常量区分开来。我们通过专门化Parfait中使用的反向递归分析来解决这个问题,其中包含细化见解,这是CryptoGuard工具的一个想法。我们评估我们的分析全面的Java加密漏洞基准和11个大型现实世界的应用程序。实验结果表明,基于Parfait的密码漏洞检测器能够在大规模的代码库中发现真实世界的密码漏洞,具有较高的正确率和较低的运行时间开销。

英文摘要:

Enterprise environment often screens large-scale (millions of lines of code) codebases with static analysis tools to find bugs and vulnerabilities. Parfait is a static code analysis tool used in Oracle to find security vulnerabilities in industrial codebases. Recently, many studies show that there are complicated cryptographic vulnerabilities caused by misusing cryptographic APIs in Java. In this paper, we describe how we realize a precise and scalable detection of these complicated cryptographic vulnerabilities based on Parfait framework. The key challenge in the detection of cryptographic vulnerabilities is the high false alarm rate caused by pseudo-influences. Pseudo-influences happen if security-irrelevant constants are used in constructing security-critical values. Static analysis is usually unable to distinguish them from hard-coded constants that expose sensitive information. We tackle this problem by specializing the backward dataflow analysis used in Parfait with refinement insights, an idea from the tool CryptoGuard. We evaluate our analyzer on a comprehensive Java cryptographic vulnerability benchmark and eleven large real-world applications. The results show that the Parfait-based cryptographic vulnerability detector can find real-world cryptographic vulnerabilities in large-scale codebases with high true-positive rates and low runtime cost.

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

↑