Skip to main content
QUICK REVIEW

[Paper Review] RIGORITYJ: Deployment-quality Detection of Java Cryptographic Vulnerabilities

Sazzadur Rahaman, Ya Xiao|arXiv (Cornell University)|Jun 18, 2018
Advanced Malware Detection TechniquesComputer Science3 citations
TL;DR

RIGORITYJ is a deployment-quality static analysis tool that detects cryptographic vulnerabilities in Java programs by systematically pruning irrelevant code elements to reduce false positives. It outperforms commercial tools like DHS SWAMP and Synopsys Coverity in coverage and soundness, achieving a 2.34% false positive rate on Apache projects and enabling real-world hardening of critical open-source systems like Spark and Ranger.

ABSTRACT

Cryptographic API misuses threaten software security. Examples include exposed secrets, predictable random numbers, and vulnerable certificate verification. Our goal in this work is to produce deployment-quality program analysis tools for automatically inspecting various cryptographic API uses in complex Java programs. The main challenge is how to reduce false positives (FP) without compromising analysis quality. Unfortunately, state-of-the-art solutions in this space were not designed to be deployment-grade and did not address this issue. Our main technical innovation is a set of algorithms for systematically removing irrelevant elements (from program slices) to reduce false alerts. We compared the detection capability of our tool, RIGORITYJ with popular commercial tools (e.g., DHS SWAMP and Synopsys Coverity) which shows that RIGORITYJ offers more coverage and soundness than all of them. Our evaluation on 46 high-impact large-scale Apache projects and 6,181 Android apps, which generates many security insights. We observed violations for most of our 16 rules. 96\% of the Android vulnerabilities come from the libraries. There is a widespread insecure practice of storing plaintext passwords. We manually went through the 2,008 Apache alerts and confirmed 1,961 true positives (2.34% FP rate). We contacted Apache with our security findings. This helped multiple popular Apache projects to harden their code, including Spark, Ranger, and Ofbiz. We also discuss the pragmatic constraints that hinder secure coding.

Motivation & Objective

  • To develop a deployment-grade static analysis tool that detects cryptographic API misuses in Java programs with minimal false positives.
  • To address the critical limitation of existing tools, which are not designed for production use and suffer from high false positive rates.
  • To improve detection accuracy by systematically removing irrelevant program elements from analysis slices.
  • To evaluate the tool on real-world, large-scale software systems to demonstrate practical impact.
  • To identify and report widespread insecure coding practices in open-source and Android applications.

Proposed method

  • The tool constructs program slices focused on cryptographic operations and removes irrelevant code paths using a context-sensitive, taint-based analysis.
  • It applies a series of pruning heuristics to eliminate code segments that do not influence cryptographic behavior, reducing noise.
  • The approach integrates precise taint tracking with control and data flow analysis to isolate only relevant cryptographic operations.
  • It uses a rule-based system with 16 custom security rules targeting common cryptographic anti-patterns.
  • The analysis is optimized for scalability to handle large codebases like Apache projects and Android apps.
  • The tool was validated through manual triage of 2,008 alerts from Apache projects, confirming high precision.

Experimental results

Research questions

  • RQ1Can a static analysis tool achieve high precision and low false positive rates in detecting cryptographic vulnerabilities in real-world Java applications?
  • RQ2How does the performance of RIGORITYJ compare to commercial tools like DHS SWAMP and Synopsys Coverity in terms of coverage and soundness?
  • RQ3What are the most common cryptographic vulnerabilities present in large-scale open-source and Android projects?
  • RQ4To what extent are cryptographic vulnerabilities in production code due to library usage rather than application logic?
  • RQ5What practical constraints hinder developers from writing secure cryptographic code in practice?

Key findings

  • RIGORITYJ achieved a 2.34% false positive rate on 2,008 alerts from Apache projects, with 1,961 confirmed as true positives.
  • The tool detected cryptographic vulnerabilities in 96% of Android apps due to insecure library usage, not application code.
  • A widespread practice of storing plaintext passwords was identified across multiple projects.
  • The tool’s detection capability exceeded that of commercial tools like DHS SWAMP and Synopsys Coverity in both coverage and soundness.
  • Security findings were reported to Apache, leading to hardening of critical systems including Spark, Ranger, and Ofbiz.
  • The study revealed systemic challenges in secure coding, including poor adherence to cryptographic best practices despite available guidance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.