CryptoGuard: High Precision Detection of Cryptographic Vulnerabilities in Massive-sized Java Projects
Preprint
Abstract
Cryptographic API misuses, such as exposed secrets, predictable random numbers, and vulnerable certificate verification, seriously threaten software security. The vision of automatically screening cryptographic API calls in massive-sized (e.g., millions of LoC) Java programs is not new. However, hindered by the practical difficulty of reducing false positives without compromising analysis quality, this goal has not been accomplished. State-of-the-art crypto API screening solutions are not designed to operate on a large scale. Our technical innovation is a set of fast and highly accurate slicing algorithms. Our algorithms refine program slices by identifying language-specific irrelevant elements. The refinements reduce false alerts by 76% to 80% in our experiments. Running our tool, CrytoGuard, on 46 high-impact large-scale Apache projects and 6,181 Android apps generate many security insights. Our findings helped multiple popular Apache projects to harden their code, including Spark, Ranger, and Ofbiz. We also have made substantial progress towards the science of analysis in this space, including: i) manually analyzing 1,295 Apache alerts and confirming 1,277 true positives (98.61% precision), ii) creating a benchmark with 38-unit basic cases and 74-unit advanced cases, iii) performing an in-depth comparison with leading solutions including CrySL, SpotBugs, and Coverity. We are in the process of integrating CryptoGuard with the Software Assurance Marketplace (SWAMP).Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- CrySL: An Extensible Approach to Validating the Correct Usage of Cryptographic APIsIEEE Transactions on Software Engineering, 2019
- Cryptanalytic time–memory trade-off for password hashing schemesInternational Journal of Information Security, 2018
- The First Collision for Full SHA-12017
- AndroSSL: A Platform to Test Android Applications Connection Security2016
- Probabilistic Program Modeling for High-Precision Anomaly Classification2015
- Profiling user-trigger dependence for Android malware detectionComputers & Security, 2015
- Why don't software developers use static analysis tools to find bugs?2013
- Factoring RSA Keys from Certified Smart Cards: Coppersmith in the Wild2013
- Chosen-Prefix Collisions for MD5 and Colliding X.509 Certificates for Different Identities2007
- Improving intrusion detection performance using keyword selection and neural networksComputer Networks, 2000