CrySL:验证加密API的正确使用
CrySL: Validating Correct Usage of Cryptographic APIs
摘要:
各种研究经验表明,大多数Java和Android应用程序滥用加密库,导致破坏性的数据安全漏洞。因此,在开发过程的早期发现此类误用至关重要。事实上,不安全的使用并不是例外,而是规范,这排除了基于属性推断和异常检测的方法。在本文中,我们提出了CrySL,一种定义语言,使密码学专家能够指定他们提供的密码库的安全使用。CrySL将方法调用序列和数据流约束的一般概念与与加密算法及其参数相关的特定于域的约束相结合。我们已经实现了一个编译器,将CrySL规则转换为上下文和流敏感的需求驱动的静态分析。分析会自动检查给定的Java或Android应用程序是否违反了CrySL编码的规则。我们通过分析10,001个Android应用程序来实证评估我们的规则。我们的研究结果表明,加密API的滥用仍然很普遍,96%的应用程序至少包含一个滥用。然而,我们观察到较少的误用,在以前的工作中报告。
英文摘要:
Various studies have empirically shown that the majority of Java and Android apps misuse cryptographic libraries, causing devastating breaches of data security. Therefore, it is crucial to detect such misuses early in the development process. The fact that insecure usages are not the exception but the norm precludes approaches based on property inference and anomaly detection. In this paper, we present CrySL, a definition language that enables cryptography experts to specify the secure usage of the cryptographic libraries that they provide. CrySL combines the generic concepts of method-call sequences and data-flow constraints with domain-specific constraints related to cryptographic algorithms and their parameters. We have implemented a compiler that translates a CrySL ruleset into a context- and flow-sensitive demand-driven static analysis. The analysis automatically checks a given Java or Android app for violations of the CrySL-encoded rules. We empirically evaluated our ruleset through analyzing 10,001 Android apps. Our results show that misuse of cryptographic APIs is still widespread, with 96% of apps containing at least one misuse. However, we observed fewer of the misuses that were reported in previous work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。